From 4593034919ec64445592df4aa690e6913b993b54 Mon Sep 17 00:00:00 2001 From: John Spaetzel Date: Wed, 7 Oct 2026 10:21:50 -0700 Subject: [PATCH 1/6] Document Idempotency-Key reuse on 409 conflict errors. Callers need to know a reused key or in-progress POST/PUT can return 409, and how to retry with the same key. Co-authored-by: Cursor --- openapi-fern.yaml | 4 ++-- openapi-sdk.yaml | 4 ++-- openapi.yaml | 4 ++-- translations/en.yaml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/openapi-fern.yaml b/openapi-fern.yaml index 7f68a6004..c541b24f3 100644 --- a/openapi-fern.yaml +++ b/openapi-fern.yaml @@ -35349,8 +35349,8 @@ x-error-codes: conflict: http_status: 409 summary: The request was well-formed but conflicts with the current state. - cause: The target resource is in a state incompatible with the request (e.g. a signature request is still being set up). - remediation: 'Wait briefly and retry, or listen for a callback event confirming the resource is ready.' + cause: The target resource is in a state incompatible with the request (e.g. a signature request is still being set up). A POST or PUT can also return this status when an Idempotency-Key header is reused with different parameters, or while the original request is still in progress. + remediation: 'Wait briefly and retry, or listen for a callback event confirming the resource is ready. To make a POST or PUT safe to retry, send the same Idempotency-Key header (1 to 255 characters) with the other headers for that request. The same key and request within 24 hours returns the original response, with Idempotent-Replayed: true. Use a new key for a different request.' retryable: conditional exceeded_rate: http_status: 429 diff --git a/openapi-sdk.yaml b/openapi-sdk.yaml index a05971e9f..c9efc2f8f 100644 --- a/openapi-sdk.yaml +++ b/openapi-sdk.yaml @@ -14940,8 +14940,8 @@ x-error-codes: conflict: http_status: 409 summary: 'The request was well-formed but conflicts with the current state.' - cause: 'The target resource is in a state incompatible with the request (e.g. a signature request is still being set up).' - remediation: 'Wait briefly and retry, or listen for a callback event confirming the resource is ready.' + cause: 'The target resource is in a state incompatible with the request (e.g. a signature request is still being set up). A POST or PUT can also return this status when an Idempotency-Key header is reused with different parameters, or while the original request is still in progress.' + remediation: 'Wait briefly and retry, or listen for a callback event confirming the resource is ready. To make a POST or PUT safe to retry, send the same Idempotency-Key header (1 to 255 characters) with the other headers for that request. The same key and request within 24 hours returns the original response, with Idempotent-Replayed: true. Use a new key for a different request.' retryable: conditional exceeded_rate: http_status: 429 diff --git a/openapi.yaml b/openapi.yaml index 6be19e5a2..867e3a2bb 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -15811,8 +15811,8 @@ x-error-codes: conflict: http_status: 409 summary: 'The request was well-formed but conflicts with the current state.' - cause: 'The target resource is in a state incompatible with the request (e.g. a signature request is still being set up).' - remediation: 'Wait briefly and retry, or listen for a callback event confirming the resource is ready.' + cause: 'The target resource is in a state incompatible with the request (e.g. a signature request is still being set up). A POST or PUT can also return this status when an Idempotency-Key header is reused with different parameters, or while the original request is still in progress.' + remediation: 'Wait briefly and retry, or listen for a callback event confirming the resource is ready. To make a POST or PUT safe to retry, send the same Idempotency-Key header (1 to 255 characters) with the other headers for that request. The same key and request within 24 hours returns the original response, with Idempotent-Replayed: true. Use a new key for a different request.' retryable: conditional exceeded_rate: http_status: 429 diff --git a/translations/en.yaml b/translations/en.yaml index 866334d59..798143095 100644 --- a/translations/en.yaml +++ b/translations/en.yaml @@ -2070,8 +2070,8 @@ "ErrorCatalog::not_found::REMEDIATION": "Verify the id and that the resource belongs to the authenticated account." "ErrorCatalog::conflict::SUMMARY": "The request was well-formed but conflicts with the current state." -"ErrorCatalog::conflict::CAUSE": "The target resource is in a state incompatible with the request (e.g. a signature request is still being set up)." -"ErrorCatalog::conflict::REMEDIATION": "Wait briefly and retry, or listen for a callback event confirming the resource is ready." +"ErrorCatalog::conflict::CAUSE": "The target resource is in a state incompatible with the request (e.g. a signature request is still being set up). A POST or PUT can also return this status when an Idempotency-Key header is reused with different parameters, or while the original request is still in progress." +"ErrorCatalog::conflict::REMEDIATION": "Wait briefly and retry, or listen for a callback event confirming the resource is ready. To make a POST or PUT safe to retry, send the same Idempotency-Key header (1 to 255 characters) with the other headers for that request. The same key and request within 24 hours returns the original response, with Idempotent-Replayed: true. Use a new key for a different request." "ErrorCatalog::exceeded_rate::SUMMARY": "Your account's API request rate limit has been exceeded." "ErrorCatalog::exceeded_rate::CAUSE": "Too many requests were sent within the rate-limit window for this request type." From 4dee1b14d08d5cd8f3ef7440c712ea1676f1cd99 Mon Sep 17 00:00:00 2001 From: John Spaetzel Date: Wed, 7 Oct 2026 15:25:47 -0700 Subject: [PATCH 2/6] Document Idempotency-Key on POST and PUT operations. Add the optional request header and Idempotent-Replayed response header to the spec, and regenerate the SDKs so each client can pass the key on a single call. Co-authored-by: Cursor --- openapi-fern.yaml | 205 +++++ openapi-raw.yaml | 215 +++++ openapi-sdk.yaml | 205 +++++ openapi.yaml | 205 +++++ sdks/dotnet/docs/AccountApi.md | 21 +- sdks/dotnet/docs/ApiAppApi.md | 14 +- sdks/dotnet/docs/DocumentApi.md | 7 +- sdks/dotnet/docs/EmbeddedApi.md | 7 +- sdks/dotnet/docs/FaxApi.md | 7 +- sdks/dotnet/docs/FaxLineApi.md | 21 +- sdks/dotnet/docs/ReportApi.md | 7 +- sdks/dotnet/docs/SignatureRequestApi.md | 105 ++- sdks/dotnet/docs/TeamApi.md | 28 +- sdks/dotnet/docs/TemplateApi.md | 42 +- sdks/dotnet/docs/UnclaimedDraftApi.md | 28 +- .../dotnet/src/Dropbox.Sign/Api/AccountApi.cs | 108 ++- sdks/dotnet/src/Dropbox.Sign/Api/ApiAppApi.cs | 72 +- .../src/Dropbox.Sign/Api/DocumentApi.cs | 36 +- .../src/Dropbox.Sign/Api/EmbeddedApi.cs | 36 +- sdks/dotnet/src/Dropbox.Sign/Api/FaxApi.cs | 36 +- .../dotnet/src/Dropbox.Sign/Api/FaxLineApi.cs | 108 ++- sdks/dotnet/src/Dropbox.Sign/Api/ReportApi.cs | 36 +- .../Dropbox.Sign/Api/SignatureRequestApi.cs | 540 ++++++++---- sdks/dotnet/src/Dropbox.Sign/Api/TeamApi.cs | 144 +++- .../src/Dropbox.Sign/Api/TemplateApi.cs | 216 +++-- .../src/Dropbox.Sign/Api/UnclaimedDraftApi.cs | 144 +++- .../java-v1/bin/generate-overload-methods.php | 14 +- sdks/java-v1/docs/AccountApi.md | 15 +- sdks/java-v1/docs/ApiAppApi.md | 10 +- sdks/java-v1/docs/DocumentApi.md | 5 +- sdks/java-v1/docs/EmbeddedApi.md | 5 +- sdks/java-v1/docs/FaxApi.md | 5 +- sdks/java-v1/docs/FaxLineApi.md | 15 +- sdks/java-v1/docs/ReportApi.md | 5 +- sdks/java-v1/docs/SignatureRequestApi.md | 75 +- sdks/java-v1/docs/TeamApi.md | 20 +- sdks/java-v1/docs/TemplateApi.md | 30 +- sdks/java-v1/docs/UnclaimedDraftApi.md | 20 +- .../java/com/dropbox/sign/api/AccountApi.java | 123 ++- .../java/com/dropbox/sign/api/ApiAppApi.java | 84 +- .../com/dropbox/sign/api/DocumentApi.java | 45 +- .../com/dropbox/sign/api/EmbeddedApi.java | 45 +- .../java/com/dropbox/sign/api/FaxApi.java | 43 +- .../java/com/dropbox/sign/api/FaxLineApi.java | 127 ++- .../java/com/dropbox/sign/api/ReportApi.java | 41 +- .../dropbox/sign/api/SignatureRequestApi.java | 766 ++++++++++++++++-- .../java/com/dropbox/sign/api/TeamApi.java | 184 ++++- .../com/dropbox/sign/api/TemplateApi.java | 280 ++++++- .../dropbox/sign/api/UnclaimedDraftApi.java | 204 ++++- .../java-v2/bin/generate-overload-methods.php | 14 +- sdks/java-v2/docs/AccountApi.md | 15 +- sdks/java-v2/docs/ApiAppApi.md | 10 +- sdks/java-v2/docs/DocumentApi.md | 5 +- sdks/java-v2/docs/EmbeddedApi.md | 5 +- sdks/java-v2/docs/FaxApi.md | 5 +- sdks/java-v2/docs/FaxLineApi.md | 15 +- sdks/java-v2/docs/ReportApi.md | 5 +- sdks/java-v2/docs/SignatureRequestApi.md | 75 +- sdks/java-v2/docs/TeamApi.md | 20 +- sdks/java-v2/docs/TemplateApi.md | 30 +- sdks/java-v2/docs/UnclaimedDraftApi.md | 20 +- .../java/com/dropbox/sign/api/AccountApi.java | 111 ++- .../java/com/dropbox/sign/api/ApiAppApi.java | 74 +- .../com/dropbox/sign/api/DocumentApi.java | 37 +- .../com/dropbox/sign/api/EmbeddedApi.java | 37 +- .../java/com/dropbox/sign/api/FaxApi.java | 37 +- .../java/com/dropbox/sign/api/FaxLineApi.java | 111 ++- .../java/com/dropbox/sign/api/ReportApi.java | 37 +- .../dropbox/sign/api/SignatureRequestApi.java | 555 +++++++++++-- .../java/com/dropbox/sign/api/TeamApi.java | 159 +++- .../com/dropbox/sign/api/TemplateApi.java | 222 ++++- .../dropbox/sign/api/UnclaimedDraftApi.java | 148 +++- sdks/node/api/accountApi.ts | 18 + sdks/node/api/apiAppApi.ts | 12 + sdks/node/api/documentApi.ts | 6 + sdks/node/api/embeddedApi.ts | 6 + sdks/node/api/faxApi.ts | 6 + sdks/node/api/faxLineApi.ts | 18 + sdks/node/api/reportApi.ts | 6 + sdks/node/api/signatureRequestApi.ts | 90 ++ sdks/node/api/teamApi.ts | 24 + sdks/node/api/templateApi.ts | 36 + sdks/node/api/unclaimedDraftApi.ts | 24 + sdks/node/dist/api.js | 287 ++++++- sdks/node/docs/api/AccountApi.md | 9 +- sdks/node/docs/api/ApiAppApi.md | 6 +- sdks/node/docs/api/DocumentApi.md | 3 +- sdks/node/docs/api/EmbeddedApi.md | 3 +- sdks/node/docs/api/FaxApi.md | 3 +- sdks/node/docs/api/FaxLineApi.md | 9 +- sdks/node/docs/api/ReportApi.md | 3 +- sdks/node/docs/api/SignatureRequestApi.md | 45 +- sdks/node/docs/api/TeamApi.md | 12 +- sdks/node/docs/api/TemplateApi.md | 18 +- sdks/node/docs/api/UnclaimedDraftApi.md | 12 +- sdks/node/types/api/accountApi.d.ts | 6 +- sdks/node/types/api/apiAppApi.d.ts | 4 +- sdks/node/types/api/documentApi.d.ts | 2 +- sdks/node/types/api/embeddedApi.d.ts | 2 +- sdks/node/types/api/faxApi.d.ts | 2 +- sdks/node/types/api/faxLineApi.d.ts | 6 +- sdks/node/types/api/reportApi.d.ts | 2 +- sdks/node/types/api/signatureRequestApi.d.ts | 30 +- sdks/node/types/api/teamApi.d.ts | 8 +- sdks/node/types/api/templateApi.d.ts | 12 +- sdks/node/types/api/unclaimedDraftApi.d.ts | 8 +- sdks/php/docs/Api/AccountApi.md | 9 +- sdks/php/docs/Api/ApiAppApi.md | 6 +- sdks/php/docs/Api/DocumentApi.md | 3 +- sdks/php/docs/Api/EmbeddedApi.md | 3 +- sdks/php/docs/Api/FaxApi.md | 3 +- sdks/php/docs/Api/FaxLineApi.md | 9 +- sdks/php/docs/Api/ReportApi.md | 3 +- sdks/php/docs/Api/SignatureRequestApi.md | 45 +- sdks/php/docs/Api/TeamApi.md | 12 +- sdks/php/docs/Api/TemplateApi.md | 18 +- sdks/php/docs/Api/UnclaimedDraftApi.md | 12 +- sdks/php/src/Api/AccountApi.php | 105 ++- sdks/php/src/Api/ApiAppApi.php | 70 +- sdks/php/src/Api/DocumentApi.php | 35 +- sdks/php/src/Api/EmbeddedApi.php | 35 +- sdks/php/src/Api/FaxApi.php | 35 +- sdks/php/src/Api/FaxLineApi.php | 105 ++- sdks/php/src/Api/ReportApi.php | 35 +- sdks/php/src/Api/SignatureRequestApi.php | 579 +++++++++---- sdks/php/src/Api/TeamApi.php | 140 +++- sdks/php/src/Api/TemplateApi.php | 228 ++++-- sdks/php/src/Api/UnclaimedDraftApi.php | 140 +++- sdks/python/docs/AccountApi.md | 9 +- sdks/python/docs/ApiAppApi.md | 6 +- sdks/python/docs/DocumentApi.md | 3 +- sdks/python/docs/EmbeddedApi.md | 3 +- sdks/python/docs/FaxApi.md | 3 +- sdks/python/docs/FaxLineApi.md | 9 +- sdks/python/docs/ReportApi.md | 3 +- sdks/python/docs/SignatureRequestApi.md | 45 +- sdks/python/docs/TeamApi.md | 12 +- sdks/python/docs/TemplateApi.md | 18 +- sdks/python/docs/UnclaimedDraftApi.md | 12 +- sdks/python/dropbox_sign/api/account_api.py | 90 ++ sdks/python/dropbox_sign/api/api_app_api.py | 60 ++ sdks/python/dropbox_sign/api/document_api.py | 33 + sdks/python/dropbox_sign/api/embedded_api.py | 31 + sdks/python/dropbox_sign/api/fax_api.py | 30 + sdks/python/dropbox_sign/api/fax_line_api.py | 90 ++ sdks/python/dropbox_sign/api/report_api.py | 33 + .../dropbox_sign/api/signature_request_api.py | 450 ++++++++++ sdks/python/dropbox_sign/api/team_api.py | 120 +++ sdks/python/dropbox_sign/api/template_api.py | 180 ++++ .../dropbox_sign/api/unclaimed_draft_api.py | 121 +++ sdks/ruby/docs/AccountApi.md | 21 +- sdks/ruby/docs/ApiAppApi.md | 14 +- sdks/ruby/docs/DocumentApi.md | 7 +- sdks/ruby/docs/EmbeddedApi.md | 7 +- sdks/ruby/docs/FaxApi.md | 7 +- sdks/ruby/docs/FaxLineApi.md | 21 +- sdks/ruby/docs/ReportApi.md | 7 +- sdks/ruby/docs/SignatureRequestApi.md | 105 ++- sdks/ruby/docs/TeamApi.md | 22 +- sdks/ruby/docs/TemplateApi.md | 42 +- sdks/ruby/docs/UnclaimedDraftApi.md | 28 +- sdks/ruby/lib/dropbox-sign/api/account_api.rb | 33 + sdks/ruby/lib/dropbox-sign/api/api_app_api.rb | 22 + .../ruby/lib/dropbox-sign/api/document_api.rb | 11 + .../ruby/lib/dropbox-sign/api/embedded_api.rb | 11 + sdks/ruby/lib/dropbox-sign/api/fax_api.rb | 11 + .../ruby/lib/dropbox-sign/api/fax_line_api.rb | 33 + sdks/ruby/lib/dropbox-sign/api/report_api.rb | 11 + .../dropbox-sign/api/signature_request_api.rb | 165 ++++ sdks/ruby/lib/dropbox-sign/api/team_api.rb | 44 + .../ruby/lib/dropbox-sign/api/template_api.rb | 66 ++ .../dropbox-sign/api/unclaimed_draft_api.rb | 44 + translations/en.yaml | 2 + 173 files changed, 9106 insertions(+), 1858 deletions(-) diff --git a/openapi-fern.yaml b/openapi-fern.yaml index c541b24f3..b589f34b3 100644 --- a/openapi-fern.yaml +++ b/openapi-fern.yaml @@ -95,6 +95,9 @@ paths: $ref: '#/components/examples/AccountCreateRequest' oauth_example: $ref: '#/components/examples/AccountCreateRequestOAuth' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: successful operation @@ -105,6 +108,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -590,6 +595,9 @@ paths: examples: example: $ref: '#/components/examples/AccountUpdateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: successful operation @@ -600,6 +608,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -856,6 +866,9 @@ paths: examples: example: $ref: '#/components/examples/AccountVerifyRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: successful operation @@ -866,6 +879,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -1118,6 +1133,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/ApiAppCreateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '201': description: successful operation @@ -1128,6 +1146,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -1728,6 +1748,8 @@ paths: schema: type: string example: 0dd3b823a682527788c4e40cb7b6f7e9 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -1750,6 +1772,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -3097,6 +3121,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/DocumentFieldDetectionRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: successful operation @@ -3107,6 +3134,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -3370,6 +3399,8 @@ paths: schema: type: string example: f57db65d3f933b5316d398057a36176831451a35 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -3389,6 +3420,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -4583,6 +4616,9 @@ paths: examples: example: $ref: '#/components/examples/FaxLineAddUserRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: successful operation @@ -4593,6 +4629,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -5160,6 +5198,9 @@ paths: examples: example: $ref: '#/components/examples/FaxLineCreateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: successful operation @@ -5170,6 +5211,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -6140,6 +6183,9 @@ paths: examples: example: $ref: '#/components/examples/FaxLineRemoveUserRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: successful operation @@ -6150,6 +6196,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -6645,6 +6693,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/FaxSendRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: successful operation @@ -6655,6 +6706,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -7486,6 +7539,9 @@ paths: examples: example: $ref: '#/components/examples/ReportCreateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: successful operation @@ -7496,6 +7552,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -7774,6 +7832,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/SignatureRequestBulkCreateEmbeddedWithTemplateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: successful operation @@ -7784,6 +7845,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -8468,6 +8531,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/SignatureRequestBulkSendWithTemplateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: successful operation @@ -8478,6 +8544,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -9164,6 +9232,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: successful operation @@ -9174,6 +9244,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: {} 4XX: @@ -9394,6 +9466,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/SignatureRequestCreateEmbeddedRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: successful operation @@ -9404,6 +9479,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -9904,6 +9981,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/SignatureRequestCreateEmbeddedWithTemplateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: successful operation @@ -9914,6 +9994,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -10335,6 +10417,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -10359,6 +10443,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -10918,6 +11004,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -10942,6 +11030,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -11442,6 +11532,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -11464,6 +11556,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -11886,6 +11980,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -11908,6 +12004,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -13732,6 +13830,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: successful operation @@ -13742,6 +13842,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -13971,6 +14073,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -13990,6 +14094,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -14254,6 +14360,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: successful operation @@ -14264,6 +14372,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: {} 4XX: @@ -14475,6 +14585,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/SignatureRequestSendRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: successful operation @@ -14485,6 +14598,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -15044,6 +15159,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/SignatureRequestSendWithTemplateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: successful operation @@ -15054,6 +15172,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -15604,6 +15724,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -15623,6 +15745,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -15886,6 +16010,8 @@ paths: schema: type: string example: 4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -15907,6 +16033,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -16164,6 +16292,9 @@ paths: examples: example: $ref: '#/components/examples/TeamCreateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: successful operation @@ -16174,6 +16305,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -16831,6 +16964,9 @@ paths: examples: example: $ref: '#/components/examples/TeamUpdateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: successful operation @@ -16841,6 +16977,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -17816,6 +17954,9 @@ paths: $ref: '#/components/examples/TeamRemoveMemberRequest' account_id_example: $ref: '#/components/examples/TeamRemoveMemberRequestAccountId' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '201': description: successful operation @@ -17826,6 +17967,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -18345,6 +18488,8 @@ paths: schema: type: string example: f57db65d3f933b5316d398057a36176831451a35 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -18364,6 +18509,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -18633,6 +18780,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/TemplateCreateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: successful operation @@ -18643,6 +18793,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -19401,6 +19553,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/TemplateCreateEmbeddedDraftRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: successful operation @@ -19411,6 +19566,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -19948,6 +20105,8 @@ paths: schema: type: string example: f57db65d3f933b5316d398057a36176831451a35 + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: successful operation @@ -19958,6 +20117,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: {} 4XX: @@ -21432,6 +21593,8 @@ paths: schema: type: string example: f57db65d3f933b5316d398057a36176831451a35 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -21451,6 +21614,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -21717,6 +21882,8 @@ paths: schema: type: string example: f57db65d3f933b5316d398057a36176831451a35 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -21739,6 +21906,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -22020,6 +22189,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/UnclaimedDraftCreateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: successful operation @@ -22030,6 +22202,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -22400,6 +22574,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/UnclaimedDraftCreateEmbeddedRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: successful operation @@ -22410,6 +22587,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -22704,6 +22883,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/UnclaimedDraftCreateEmbeddedWithTemplateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: successful operation @@ -22714,6 +22896,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -23127,6 +23311,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -23146,6 +23332,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -30201,6 +30389,16 @@ components: default: Hello API Event Received x-fern-audiences: - events + parameters: + IdempotencyKey: + name: Idempotency-Key + in: header + description: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + required: false + schema: + type: string + maxLength: 255 + minLength: 1 examples: AccountCreateRequest: summary: Default Example @@ -35116,6 +35314,13 @@ components: type: integer format: int64 example: 1430170900 + Idempotent-Replayed: + description: Present and true when replaying a stored response. + required: false + schema: + type: boolean + enum: + - true securitySchemes: api_key: type: http diff --git a/openapi-raw.yaml b/openapi-raw.yaml index 7295d2c6e..4ed6aa64c 100644 --- a/openapi-raw.yaml +++ b/openapi-raw.yaml @@ -31,6 +31,9 @@ paths: $ref: '#/components/examples/AccountCreateRequest' oauth_example: $ref: '#/components/examples/AccountCreateRequestOAuth' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -41,6 +44,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -235,6 +240,9 @@ paths: examples: example: $ref: '#/components/examples/AccountUpdateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -245,6 +253,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -335,6 +345,9 @@ paths: examples: example: $ref: '#/components/examples/AccountVerifyRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -345,6 +358,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -438,6 +453,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/ApiAppCreateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '201': description: 'successful operation' @@ -448,6 +466,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -637,6 +657,8 @@ paths: schema: type: string example: 0dd3b823a682527788c4e40cb7b6f7e9 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -659,6 +681,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -936,9 +960,15 @@ paths: summary: 'Resend an API notification asynchronously.' description: 'Queues an API notification by event_type and id. A new notification event is generated from current object state.' operationId: apiNotificationRetry + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '202': description: 'Resend queued' + headers: + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' 4XX: description: failed_operation content: @@ -1204,6 +1234,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/DocumentFieldDetectionRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -1214,6 +1247,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -1302,6 +1337,8 @@ paths: schema: type: string example: f57db65d3f933b5316d398057a36176831451a35 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -1321,6 +1358,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -1796,6 +1835,9 @@ paths: examples: example: $ref: '#/components/examples/FaxLineAddUserRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -1806,6 +1848,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -2076,6 +2120,9 @@ paths: examples: example: $ref: '#/components/examples/FaxLineCreateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -2086,6 +2133,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -2477,6 +2526,9 @@ paths: examples: example: $ref: '#/components/examples/FaxLineRemoveUserRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -2487,6 +2539,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -2683,6 +2737,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/FaxSendRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -2693,6 +2750,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -2974,6 +3033,9 @@ paths: examples: example: $ref: '#/components/examples/ReportCreateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -2984,6 +3046,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -3072,6 +3136,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/SignatureRequestBulkCreateEmbeddedWithTemplateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -3082,6 +3149,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -3174,6 +3243,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/SignatureRequestBulkSendWithTemplateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -3184,6 +3256,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -3275,6 +3349,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -3285,6 +3361,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: { } 4XX: @@ -3380,6 +3458,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/SignatureRequestCreateEmbeddedRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -3390,6 +3471,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -3483,6 +3566,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/SignatureRequestCreateEmbeddedWithTemplateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -3493,6 +3579,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -3583,6 +3671,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -3607,6 +3697,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -3700,6 +3792,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -3724,6 +3818,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -3816,6 +3912,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -3838,6 +3936,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -3930,6 +4030,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -3952,6 +4054,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -4602,6 +4706,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -4612,6 +4718,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -4702,6 +4810,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -4721,6 +4831,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -4816,6 +4928,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -4826,6 +4940,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: { } 4XX: @@ -4917,6 +5033,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/SignatureRequestSendRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -4927,6 +5046,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -5021,6 +5142,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/SignatureRequestSendWithTemplateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -5031,6 +5155,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -5120,6 +5246,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -5139,6 +5267,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -5231,6 +5361,8 @@ paths: schema: type: string example: 4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -5252,6 +5384,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -5342,6 +5476,9 @@ paths: examples: example: $ref: '#/components/examples/TeamCreateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -5352,6 +5489,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -5612,6 +5751,9 @@ paths: examples: example: $ref: '#/components/examples/TeamUpdateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -5622,6 +5764,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -6026,6 +6170,9 @@ paths: $ref: '#/components/examples/TeamRemoveMemberRequest' account_id_example: $ref: '#/components/examples/TeamRemoveMemberRequestAccountId' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '201': description: 'successful operation' @@ -6036,6 +6183,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -6242,6 +6391,8 @@ paths: schema: type: string example: f57db65d3f933b5316d398057a36176831451a35 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -6261,6 +6412,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -6360,6 +6513,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/TemplateCreateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -6370,6 +6526,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -6471,6 +6629,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/TemplateCreateEmbeddedDraftRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -6481,6 +6642,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -6573,6 +6736,8 @@ paths: schema: type: string example: f57db65d3f933b5316d398057a36176831451a35 + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -6583,6 +6748,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: { } 4XX: @@ -7220,6 +7387,8 @@ paths: schema: type: string example: f57db65d3f933b5316d398057a36176831451a35 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -7239,6 +7408,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -7329,6 +7500,8 @@ paths: schema: type: string example: f57db65d3f933b5316d398057a36176831451a35 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -7351,6 +7524,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -7447,6 +7622,8 @@ paths: schema: type: string example: f57db65d3f933b5316d398057a36176831451a35 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -7469,6 +7646,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -7570,6 +7749,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/UnclaimedDraftCreateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -7580,6 +7762,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -7677,6 +7861,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/UnclaimedDraftCreateEmbeddedRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -7687,6 +7874,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -7783,6 +7972,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/UnclaimedDraftCreateEmbeddedWithTemplateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -7793,6 +7985,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -7885,6 +8079,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -7904,6 +8100,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -14234,6 +14432,16 @@ components: default: 'Hello API Event Received' x-fern-audiences: - events + parameters: + IdempotencyKey: + name: Idempotency-Key + in: header + description: '_t__Common::Idempotency::KEY' + required: false + schema: + type: string + maxLength: 255 + minLength: 1 examples: AccountCreateRequest: summary: 'Default Example' @@ -14992,6 +15200,13 @@ components: type: integer format: int64 example: 1430170900 + Idempotent-Replayed: + description: '_t__Common::Idempotency::REPLAYED' + required: false + schema: + type: boolean + enum: + - true securitySchemes: api_key: type: http diff --git a/openapi-sdk.yaml b/openapi-sdk.yaml index c9efc2f8f..70cf5f824 100644 --- a/openapi-sdk.yaml +++ b/openapi-sdk.yaml @@ -31,6 +31,9 @@ paths: $ref: '#/components/examples/AccountCreateRequest' oauth_example: $ref: '#/components/examples/AccountCreateRequestOAuth' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -41,6 +44,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -241,6 +246,9 @@ paths: examples: example: $ref: '#/components/examples/AccountUpdateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -251,6 +259,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -341,6 +351,9 @@ paths: examples: example: $ref: '#/components/examples/AccountVerifyRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -351,6 +364,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -444,6 +459,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/ApiAppCreateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '201': description: 'successful operation' @@ -454,6 +472,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -643,6 +663,8 @@ paths: schema: type: string example: 0dd3b823a682527788c4e40cb7b6f7e9 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -665,6 +687,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -1169,6 +1193,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/DocumentFieldDetectionRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -1179,6 +1206,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -1267,6 +1296,8 @@ paths: schema: type: string example: f57db65d3f933b5316d398057a36176831451a35 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -1286,6 +1317,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -1761,6 +1794,9 @@ paths: examples: example: $ref: '#/components/examples/FaxLineAddUserRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -1771,6 +1807,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -2041,6 +2079,9 @@ paths: examples: example: $ref: '#/components/examples/FaxLineCreateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -2051,6 +2092,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -2442,6 +2485,9 @@ paths: examples: example: $ref: '#/components/examples/FaxLineRemoveUserRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -2452,6 +2498,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -2648,6 +2696,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/FaxSendRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -2658,6 +2709,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -2942,6 +2995,9 @@ paths: examples: example: $ref: '#/components/examples/ReportCreateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -2952,6 +3008,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -3043,6 +3101,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/SignatureRequestBulkCreateEmbeddedWithTemplateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -3053,6 +3114,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -3148,6 +3211,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/SignatureRequestBulkSendWithTemplateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -3158,6 +3224,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -3258,6 +3326,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -3268,6 +3338,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: {} '4XX': @@ -3363,6 +3435,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/SignatureRequestCreateEmbeddedRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -3373,6 +3448,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -3466,6 +3543,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/SignatureRequestCreateEmbeddedWithTemplateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -3476,6 +3556,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -3569,6 +3651,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -3593,6 +3677,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -3689,6 +3775,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -3713,6 +3801,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -3808,6 +3898,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -3830,6 +3922,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -3925,6 +4019,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -3947,6 +4043,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -4609,6 +4707,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -4619,6 +4719,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -4712,6 +4814,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -4731,6 +4835,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -4831,6 +4937,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -4841,6 +4949,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: {} '4XX': @@ -4932,6 +5042,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/SignatureRequestSendRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -4942,6 +5055,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -5036,6 +5151,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/SignatureRequestSendWithTemplateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -5046,6 +5164,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -5140,6 +5260,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -5159,6 +5281,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -5251,6 +5375,8 @@ paths: schema: type: string example: 4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -5272,6 +5398,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -5362,6 +5490,9 @@ paths: examples: example: $ref: '#/components/examples/TeamCreateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -5372,6 +5503,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -5632,6 +5765,9 @@ paths: examples: example: $ref: '#/components/examples/TeamUpdateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -5642,6 +5778,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -6046,6 +6184,9 @@ paths: $ref: '#/components/examples/TeamRemoveMemberRequest' account_id_example: $ref: '#/components/examples/TeamRemoveMemberRequestAccountId' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '201': description: 'successful operation' @@ -6056,6 +6197,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -6262,6 +6405,8 @@ paths: schema: type: string example: f57db65d3f933b5316d398057a36176831451a35 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -6281,6 +6426,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -6385,6 +6532,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/TemplateCreateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -6395,6 +6545,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -6496,6 +6648,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/TemplateCreateEmbeddedDraftRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -6506,6 +6661,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -6598,6 +6755,8 @@ paths: schema: type: string example: f57db65d3f933b5316d398057a36176831451a35 + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -6608,6 +6767,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: {} '4XX': @@ -7257,6 +7418,8 @@ paths: schema: type: string example: f57db65d3f933b5316d398057a36176831451a35 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -7276,6 +7439,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -7378,6 +7543,8 @@ paths: schema: type: string example: f57db65d3f933b5316d398057a36176831451a35 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -7400,6 +7567,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -7501,6 +7670,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/UnclaimedDraftCreateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -7511,6 +7683,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -7611,6 +7785,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/UnclaimedDraftCreateEmbeddedRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -7621,6 +7798,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -7720,6 +7899,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/UnclaimedDraftCreateEmbeddedWithTemplateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -7730,6 +7912,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -7825,6 +8009,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -7844,6 +8030,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -14121,6 +14309,16 @@ components: default: 'Hello API Event Received' x-fern-audiences: - events + parameters: + IdempotencyKey: + name: Idempotency-Key + in: header + description: 'Reuse the same key when retrying the same request. Must be 1 to 255 characters.' + required: false + schema: + type: string + maxLength: 255 + minLength: 1 examples: AccountCreateRequest: summary: 'Default Example' @@ -14876,6 +15074,13 @@ components: type: integer format: int64 example: 1430170900 + Idempotent-Replayed: + description: 'Present and true when replaying a stored response.' + required: false + schema: + type: boolean + enum: + - true securitySchemes: api_key: type: http diff --git a/openapi.yaml b/openapi.yaml index 867e3a2bb..f4ec75394 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -31,6 +31,9 @@ paths: $ref: '#/components/examples/AccountCreateRequest' oauth_example: $ref: '#/components/examples/AccountCreateRequestOAuth' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -41,6 +44,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -241,6 +246,9 @@ paths: examples: example: $ref: '#/components/examples/AccountUpdateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -251,6 +259,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -341,6 +351,9 @@ paths: examples: example: $ref: '#/components/examples/AccountVerifyRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -351,6 +364,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -444,6 +459,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/ApiAppCreateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '201': description: 'successful operation' @@ -454,6 +472,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -643,6 +663,8 @@ paths: schema: type: string example: 0dd3b823a682527788c4e40cb7b6f7e9 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -665,6 +687,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -1169,6 +1193,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/DocumentFieldDetectionRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -1179,6 +1206,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -1267,6 +1296,8 @@ paths: schema: type: string example: f57db65d3f933b5316d398057a36176831451a35 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -1286,6 +1317,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -1761,6 +1794,9 @@ paths: examples: example: $ref: '#/components/examples/FaxLineAddUserRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -1771,6 +1807,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -2041,6 +2079,9 @@ paths: examples: example: $ref: '#/components/examples/FaxLineCreateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -2051,6 +2092,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -2442,6 +2485,9 @@ paths: examples: example: $ref: '#/components/examples/FaxLineRemoveUserRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -2452,6 +2498,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -2648,6 +2696,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/FaxSendRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -2658,6 +2709,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -2942,6 +2995,9 @@ paths: examples: example: $ref: '#/components/examples/ReportCreateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -2952,6 +3008,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -3043,6 +3101,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/SignatureRequestBulkCreateEmbeddedWithTemplateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -3053,6 +3114,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -3148,6 +3211,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/SignatureRequestBulkSendWithTemplateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -3158,6 +3224,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -3258,6 +3326,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -3268,6 +3338,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: {} '4XX': @@ -3363,6 +3435,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/SignatureRequestCreateEmbeddedRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -3373,6 +3448,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -3466,6 +3543,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/SignatureRequestCreateEmbeddedWithTemplateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -3476,6 +3556,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -3569,6 +3651,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -3593,6 +3677,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -3689,6 +3775,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -3713,6 +3801,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -3808,6 +3898,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -3830,6 +3922,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -3925,6 +4019,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -3947,6 +4043,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -4609,6 +4707,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -4619,6 +4719,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -4712,6 +4814,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -4731,6 +4835,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -4831,6 +4937,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -4841,6 +4949,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: {} '4XX': @@ -4932,6 +5042,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/SignatureRequestSendRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -4942,6 +5055,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -5036,6 +5151,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/SignatureRequestSendWithTemplateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -5046,6 +5164,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -5140,6 +5260,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -5159,6 +5281,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -5251,6 +5375,8 @@ paths: schema: type: string example: 4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -5272,6 +5398,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -5362,6 +5490,9 @@ paths: examples: example: $ref: '#/components/examples/TeamCreateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -5372,6 +5503,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -5632,6 +5765,9 @@ paths: examples: example: $ref: '#/components/examples/TeamUpdateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -5642,6 +5778,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -6046,6 +6184,9 @@ paths: $ref: '#/components/examples/TeamRemoveMemberRequest' account_id_example: $ref: '#/components/examples/TeamRemoveMemberRequestAccountId' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '201': description: 'successful operation' @@ -6056,6 +6197,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -6262,6 +6405,8 @@ paths: schema: type: string example: f57db65d3f933b5316d398057a36176831451a35 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -6281,6 +6426,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -6385,6 +6532,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/TemplateCreateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -6395,6 +6545,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -6496,6 +6648,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/TemplateCreateEmbeddedDraftRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -6506,6 +6661,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -6598,6 +6755,8 @@ paths: schema: type: string example: f57db65d3f933b5316d398057a36176831451a35 + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -6608,6 +6767,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: {} '4XX': @@ -7257,6 +7418,8 @@ paths: schema: type: string example: f57db65d3f933b5316d398057a36176831451a35 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -7276,6 +7439,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -7378,6 +7543,8 @@ paths: schema: type: string example: f57db65d3f933b5316d398057a36176831451a35 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -7400,6 +7567,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -7501,6 +7670,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/UnclaimedDraftCreateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -7511,6 +7683,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -7611,6 +7785,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/UnclaimedDraftCreateEmbeddedRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -7621,6 +7798,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -7720,6 +7899,9 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/UnclaimedDraftCreateEmbeddedWithTemplateRequest' + parameters: + - + $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -7730,6 +7912,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -7825,6 +8009,8 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 + - + $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -7844,6 +8030,8 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' + Idempotent-Replayed: + $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -14771,6 +14959,16 @@ components: default: 'Hello API Event Received' x-fern-audiences: - events + parameters: + IdempotencyKey: + name: Idempotency-Key + in: header + description: 'Reuse the same key when retrying the same request. Must be 1 to 255 characters.' + required: false + schema: + type: string + maxLength: 255 + minLength: 1 examples: AccountCreateRequest: summary: 'Default Example' @@ -15526,6 +15724,13 @@ components: type: integer format: int64 example: 1430170900 + Idempotent-Replayed: + description: 'Present and true when replaying a stored response.' + required: false + schema: + type: boolean + enum: + - true securitySchemes: api_key: type: http diff --git a/sdks/dotnet/docs/AccountApi.md b/sdks/dotnet/docs/AccountApi.md index f62f83365..5ebd88885 100644 --- a/sdks/dotnet/docs/AccountApi.md +++ b/sdks/dotnet/docs/AccountApi.md @@ -11,7 +11,7 @@ All URIs are relative to *https://api.hellosign.com/v3* # **AccountCreate** -> AccountCreateResponse AccountCreate (AccountCreateRequest accountCreateRequest) +> AccountCreateResponse AccountCreate (AccountCreateRequest accountCreateRequest, string? idempotencyKey = null) Create Account @@ -68,7 +68,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Create Account - ApiResponse response = apiInstance.AccountCreateWithHttpInfo(accountCreateRequest); + ApiResponse response = apiInstance.AccountCreateWithHttpInfo(accountCreateRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -86,6 +86,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **accountCreateRequest** | [**AccountCreateRequest**](AccountCreateRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -104,7 +105,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -206,7 +207,7 @@ catch (ApiException e) # **AccountUpdate** -> AccountGetResponse AccountUpdate (AccountUpdateRequest accountUpdateRequest) +> AccountGetResponse AccountUpdate (AccountUpdateRequest accountUpdateRequest, string? idempotencyKey = null) Update Account @@ -264,7 +265,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Update Account - ApiResponse response = apiInstance.AccountUpdateWithHttpInfo(accountUpdateRequest); + ApiResponse response = apiInstance.AccountUpdateWithHttpInfo(accountUpdateRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -282,6 +283,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **accountUpdateRequest** | [**AccountUpdateRequest**](AccountUpdateRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -300,14 +302,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **AccountVerify** -> AccountVerifyResponse AccountVerify (AccountVerifyRequest accountVerifyRequest) +> AccountVerifyResponse AccountVerify (AccountVerifyRequest accountVerifyRequest, string? idempotencyKey = null) Verify Account @@ -364,7 +366,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Verify Account - ApiResponse response = apiInstance.AccountVerifyWithHttpInfo(accountVerifyRequest); + ApiResponse response = apiInstance.AccountVerifyWithHttpInfo(accountVerifyRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -382,6 +384,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **accountVerifyRequest** | [**AccountVerifyRequest**](AccountVerifyRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -400,7 +403,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/dotnet/docs/ApiAppApi.md b/sdks/dotnet/docs/ApiAppApi.md index e94d26a30..84dfb9ca5 100644 --- a/sdks/dotnet/docs/ApiAppApi.md +++ b/sdks/dotnet/docs/ApiAppApi.md @@ -12,7 +12,7 @@ All URIs are relative to *https://api.hellosign.com/v3* # **ApiAppCreate** -> ApiAppGetResponse ApiAppCreate (ApiAppCreateRequest apiAppCreateRequest) +> ApiAppGetResponse ApiAppCreate (ApiAppCreateRequest apiAppCreateRequest, string? idempotencyKey = null) Create API App @@ -91,7 +91,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Create API App - ApiResponse response = apiInstance.ApiAppCreateWithHttpInfo(apiAppCreateRequest); + ApiResponse response = apiInstance.ApiAppCreateWithHttpInfo(apiAppCreateRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -109,6 +109,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **apiAppCreateRequest** | [**ApiAppCreateRequest**](ApiAppCreateRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -127,7 +128,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **201** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **201** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -419,7 +420,7 @@ catch (ApiException e) # **ApiAppUpdate** -> ApiAppGetResponse ApiAppUpdate (string clientId, ApiAppUpdateRequest apiAppUpdateRequest) +> ApiAppGetResponse ApiAppUpdate (string clientId, ApiAppUpdateRequest apiAppUpdateRequest, string? idempotencyKey = null) Update API App @@ -500,7 +501,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Update API App - ApiResponse response = apiInstance.ApiAppUpdateWithHttpInfo(clientId, apiAppUpdateRequest); + ApiResponse response = apiInstance.ApiAppUpdateWithHttpInfo(clientId, apiAppUpdateRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -519,6 +520,7 @@ catch (ApiException e) |------|------|-------------|-------| | **clientId** | **string** | The client id of the API App to update. | | | **apiAppUpdateRequest** | [**ApiAppUpdateRequest**](ApiAppUpdateRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -537,7 +539,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/dotnet/docs/DocumentApi.md b/sdks/dotnet/docs/DocumentApi.md index 6b2fe15dd..72a13b8ec 100644 --- a/sdks/dotnet/docs/DocumentApi.md +++ b/sdks/dotnet/docs/DocumentApi.md @@ -8,7 +8,7 @@ All URIs are relative to *https://api.hellosign.com/v3* # **DocumentDetectFields** -> DocumentFieldDetectionResponse DocumentDetectFields (DocumentFieldDetectionRequest documentFieldDetectionRequest) +> DocumentFieldDetectionResponse DocumentDetectFields (DocumentFieldDetectionRequest documentFieldDetectionRequest, string? idempotencyKey = null) Detect Document Fields @@ -70,7 +70,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Detect Document Fields - ApiResponse response = apiInstance.DocumentDetectFieldsWithHttpInfo(documentFieldDetectionRequest); + ApiResponse response = apiInstance.DocumentDetectFieldsWithHttpInfo(documentFieldDetectionRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -88,6 +88,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **documentFieldDetectionRequest** | [**DocumentFieldDetectionRequest**](DocumentFieldDetectionRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -106,7 +107,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/dotnet/docs/EmbeddedApi.md b/sdks/dotnet/docs/EmbeddedApi.md index 473f3dfaf..66aee8108 100644 --- a/sdks/dotnet/docs/EmbeddedApi.md +++ b/sdks/dotnet/docs/EmbeddedApi.md @@ -9,7 +9,7 @@ All URIs are relative to *https://api.hellosign.com/v3* # **EmbeddedEditUrl** -> EmbeddedEditUrlResponse EmbeddedEditUrl (string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest) +> EmbeddedEditUrlResponse EmbeddedEditUrl (string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, string? idempotencyKey = null) Get Embedded Template Edit URL @@ -72,7 +72,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Get Embedded Template Edit URL - ApiResponse response = apiInstance.EmbeddedEditUrlWithHttpInfo(templateId, embeddedEditUrlRequest); + ApiResponse response = apiInstance.EmbeddedEditUrlWithHttpInfo(templateId, embeddedEditUrlRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -91,6 +91,7 @@ catch (ApiException e) |------|------|-------------|-------| | **templateId** | **string** | The id of the template to edit. | | | **embeddedEditUrlRequest** | [**EmbeddedEditUrlRequest**](EmbeddedEditUrlRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -109,7 +110,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/dotnet/docs/FaxApi.md b/sdks/dotnet/docs/FaxApi.md index 41349a481..e618bddbd 100644 --- a/sdks/dotnet/docs/FaxApi.md +++ b/sdks/dotnet/docs/FaxApi.md @@ -391,7 +391,7 @@ catch (ApiException e) # **FaxSend** -> FaxGetResponse FaxSend (FaxSendRequest faxSendRequest) +> FaxGetResponse FaxSend (FaxSendRequest faxSendRequest, string? idempotencyKey = null) Send Fax @@ -460,7 +460,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Send Fax - ApiResponse response = apiInstance.FaxSendWithHttpInfo(faxSendRequest); + ApiResponse response = apiInstance.FaxSendWithHttpInfo(faxSendRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -478,6 +478,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **faxSendRequest** | [**FaxSendRequest**](FaxSendRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -496,7 +497,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/dotnet/docs/FaxLineApi.md b/sdks/dotnet/docs/FaxLineApi.md index 42ebfe88b..b3b81e224 100644 --- a/sdks/dotnet/docs/FaxLineApi.md +++ b/sdks/dotnet/docs/FaxLineApi.md @@ -14,7 +14,7 @@ All URIs are relative to *https://api.hellosign.com/v3* # **FaxLineAddUser** -> FaxLineResponse FaxLineAddUser (FaxLineAddUserRequest faxLineAddUserRequest) +> FaxLineResponse FaxLineAddUser (FaxLineAddUserRequest faxLineAddUserRequest, string? idempotencyKey = null) Add Fax Line User @@ -71,7 +71,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Add Fax Line User - ApiResponse response = apiInstance.FaxLineAddUserWithHttpInfo(faxLineAddUserRequest); + ApiResponse response = apiInstance.FaxLineAddUserWithHttpInfo(faxLineAddUserRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -89,6 +89,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **faxLineAddUserRequest** | [**FaxLineAddUserRequest**](FaxLineAddUserRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -107,7 +108,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -212,7 +213,7 @@ catch (ApiException e) # **FaxLineCreate** -> FaxLineResponse FaxLineCreate (FaxLineCreateRequest faxLineCreateRequest) +> FaxLineResponse FaxLineCreate (FaxLineCreateRequest faxLineCreateRequest, string? idempotencyKey = null) Purchase Fax Line @@ -269,7 +270,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Purchase Fax Line - ApiResponse response = apiInstance.FaxLineCreateWithHttpInfo(faxLineCreateRequest); + ApiResponse response = apiInstance.FaxLineCreateWithHttpInfo(faxLineCreateRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -287,6 +288,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **faxLineCreateRequest** | [**FaxLineCreateRequest**](FaxLineCreateRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -305,7 +307,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -601,7 +603,7 @@ catch (ApiException e) # **FaxLineRemoveUser** -> FaxLineResponse FaxLineRemoveUser (FaxLineRemoveUserRequest faxLineRemoveUserRequest) +> FaxLineResponse FaxLineRemoveUser (FaxLineRemoveUserRequest faxLineRemoveUserRequest, string? idempotencyKey = null) Remove Fax Line Access @@ -658,7 +660,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Remove Fax Line Access - ApiResponse response = apiInstance.FaxLineRemoveUserWithHttpInfo(faxLineRemoveUserRequest); + ApiResponse response = apiInstance.FaxLineRemoveUserWithHttpInfo(faxLineRemoveUserRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -676,6 +678,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **faxLineRemoveUserRequest** | [**FaxLineRemoveUserRequest**](FaxLineRemoveUserRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -694,7 +697,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/dotnet/docs/ReportApi.md b/sdks/dotnet/docs/ReportApi.md index 324902c65..714ea5ee4 100644 --- a/sdks/dotnet/docs/ReportApi.md +++ b/sdks/dotnet/docs/ReportApi.md @@ -8,7 +8,7 @@ All URIs are relative to *https://api.hellosign.com/v3* # **ReportCreate** -> ReportCreateResponse ReportCreate (ReportCreateRequest reportCreateRequest) +> ReportCreateResponse ReportCreate (ReportCreateRequest reportCreateRequest, string? idempotencyKey = null) Create Report @@ -69,7 +69,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Create Report - ApiResponse response = apiInstance.ReportCreateWithHttpInfo(reportCreateRequest); + ApiResponse response = apiInstance.ReportCreateWithHttpInfo(reportCreateRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -87,6 +87,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **reportCreateRequest** | [**ReportCreateRequest**](ReportCreateRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -105,7 +106,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/dotnet/docs/SignatureRequestApi.md b/sdks/dotnet/docs/SignatureRequestApi.md index 68b0c2f0a..5a08da116 100644 --- a/sdks/dotnet/docs/SignatureRequestApi.md +++ b/sdks/dotnet/docs/SignatureRequestApi.md @@ -27,7 +27,7 @@ All URIs are relative to *https://api.hellosign.com/v3* # **SignatureRequestBulkCreateEmbeddedWithTemplate** -> BulkSendJobSendResponse SignatureRequestBulkCreateEmbeddedWithTemplate (SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest) +> BulkSendJobSendResponse SignatureRequestBulkCreateEmbeddedWithTemplate (SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, string? idempotencyKey = null) Embedded Bulk Send with Template @@ -161,7 +161,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Embedded Bulk Send with Template - ApiResponse response = apiInstance.SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestBulkCreateEmbeddedWithTemplateRequest); + ApiResponse response = apiInstance.SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestBulkCreateEmbeddedWithTemplateRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -179,6 +179,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **signatureRequestBulkCreateEmbeddedWithTemplateRequest** | [**SignatureRequestBulkCreateEmbeddedWithTemplateRequest**](SignatureRequestBulkCreateEmbeddedWithTemplateRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -197,14 +198,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **SignatureRequestBulkSendWithTemplate** -> BulkSendJobSendResponse SignatureRequestBulkSendWithTemplate (SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest) +> BulkSendJobSendResponse SignatureRequestBulkSendWithTemplate (SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, string? idempotencyKey = null) Bulk Send with Template @@ -338,7 +339,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Bulk Send with Template - ApiResponse response = apiInstance.SignatureRequestBulkSendWithTemplateWithHttpInfo(signatureRequestBulkSendWithTemplateRequest); + ApiResponse response = apiInstance.SignatureRequestBulkSendWithTemplateWithHttpInfo(signatureRequestBulkSendWithTemplateRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -356,6 +357,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **signatureRequestBulkSendWithTemplateRequest** | [**SignatureRequestBulkSendWithTemplateRequest**](SignatureRequestBulkSendWithTemplateRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -374,14 +376,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **SignatureRequestCancel** -> void SignatureRequestCancel (string signatureRequestId) +> void SignatureRequestCancel (string signatureRequestId, string? idempotencyKey = null) Cancel Incomplete Signature Request @@ -432,7 +434,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Cancel Incomplete Signature Request - apiInstance.SignatureRequestCancelWithHttpInfo(signatureRequestId); + apiInstance.SignatureRequestCancelWithHttpInfo(signatureRequestId, idempotencyKey); } catch (ApiException e) { @@ -447,6 +449,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **signatureRequestId** | **string** | The id of the incomplete SignatureRequest to cancel. | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -465,14 +468,14 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **SignatureRequestCreateEmbedded** -> SignatureRequestGetResponse SignatureRequestCreateEmbedded (SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest) +> SignatureRequestGetResponse SignatureRequestCreateEmbedded (SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, string? idempotencyKey = null) Create Embedded Signature Request @@ -573,7 +576,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Create Embedded Signature Request - ApiResponse response = apiInstance.SignatureRequestCreateEmbeddedWithHttpInfo(signatureRequestCreateEmbeddedRequest); + ApiResponse response = apiInstance.SignatureRequestCreateEmbeddedWithHttpInfo(signatureRequestCreateEmbeddedRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -591,6 +594,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **signatureRequestCreateEmbeddedRequest** | [**SignatureRequestCreateEmbeddedRequest**](SignatureRequestCreateEmbeddedRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -609,14 +613,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **SignatureRequestCreateEmbeddedWithTemplate** -> SignatureRequestGetResponse SignatureRequestCreateEmbeddedWithTemplate (SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest) +> SignatureRequestGetResponse SignatureRequestCreateEmbeddedWithTemplate (SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, string? idempotencyKey = null) Create Embedded Signature Request with Template @@ -701,7 +705,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Create Embedded Signature Request with Template - ApiResponse response = apiInstance.SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestCreateEmbeddedWithTemplateRequest); + ApiResponse response = apiInstance.SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestCreateEmbeddedWithTemplateRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -719,6 +723,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **signatureRequestCreateEmbeddedWithTemplateRequest** | [**SignatureRequestCreateEmbeddedWithTemplateRequest**](SignatureRequestCreateEmbeddedWithTemplateRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -737,14 +742,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **SignatureRequestEdit** -> SignatureRequestGetResponse SignatureRequestEdit (string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest) +> SignatureRequestGetResponse SignatureRequestEdit (string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, string? idempotencyKey = null) Edit Signature Request @@ -855,7 +860,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Edit Signature Request - ApiResponse response = apiInstance.SignatureRequestEditWithHttpInfo(signatureRequestId, signatureRequestEditRequest); + ApiResponse response = apiInstance.SignatureRequestEditWithHttpInfo(signatureRequestId, signatureRequestEditRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -874,6 +879,7 @@ catch (ApiException e) |------|------|-------------|-------| | **signatureRequestId** | **string** | The id of the SignatureRequest to edit. | | | **signatureRequestEditRequest** | [**SignatureRequestEditRequest**](SignatureRequestEditRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -892,14 +898,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **SignatureRequestEditEmbedded** -> SignatureRequestGetResponse SignatureRequestEditEmbedded (string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest) +> SignatureRequestGetResponse SignatureRequestEditEmbedded (string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, string? idempotencyKey = null) Edit Embedded Signature Request @@ -1000,7 +1006,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Edit Embedded Signature Request - ApiResponse response = apiInstance.SignatureRequestEditEmbeddedWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedRequest); + ApiResponse response = apiInstance.SignatureRequestEditEmbeddedWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -1019,6 +1025,7 @@ catch (ApiException e) |------|------|-------------|-------| | **signatureRequestId** | **string** | The id of the SignatureRequest to edit. | | | **signatureRequestEditEmbeddedRequest** | [**SignatureRequestEditEmbeddedRequest**](SignatureRequestEditEmbeddedRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1037,14 +1044,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **SignatureRequestEditEmbeddedWithTemplate** -> SignatureRequestGetResponse SignatureRequestEditEmbeddedWithTemplate (string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest) +> SignatureRequestGetResponse SignatureRequestEditEmbeddedWithTemplate (string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, string? idempotencyKey = null) Edit Embedded Signature Request with Template @@ -1129,7 +1136,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Edit Embedded Signature Request with Template - ApiResponse response = apiInstance.SignatureRequestEditEmbeddedWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest); + ApiResponse response = apiInstance.SignatureRequestEditEmbeddedWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -1148,6 +1155,7 @@ catch (ApiException e) |------|------|-------------|-------| | **signatureRequestId** | **string** | The id of the SignatureRequest to edit. | | | **signatureRequestEditEmbeddedWithTemplateRequest** | [**SignatureRequestEditEmbeddedWithTemplateRequest**](SignatureRequestEditEmbeddedWithTemplateRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1166,14 +1174,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **SignatureRequestEditWithTemplate** -> SignatureRequestGetResponse SignatureRequestEditWithTemplate (string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest) +> SignatureRequestGetResponse SignatureRequestEditWithTemplate (string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, string? idempotencyKey = null) Edit Signature Request With Template @@ -1281,7 +1289,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Edit Signature Request With Template - ApiResponse response = apiInstance.SignatureRequestEditWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditWithTemplateRequest); + ApiResponse response = apiInstance.SignatureRequestEditWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditWithTemplateRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -1300,6 +1308,7 @@ catch (ApiException e) |------|------|-------------|-------| | **signatureRequestId** | **string** | The id of the SignatureRequest to edit. | | | **signatureRequestEditWithTemplateRequest** | [**SignatureRequestEditWithTemplateRequest**](SignatureRequestEditWithTemplateRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1318,7 +1327,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1815,7 +1824,7 @@ catch (ApiException e) # **SignatureRequestReleaseHold** -> SignatureRequestGetResponse SignatureRequestReleaseHold (string signatureRequestId) +> SignatureRequestGetResponse SignatureRequestReleaseHold (string signatureRequestId, string? idempotencyKey = null) Release On-Hold Signature Request @@ -1868,7 +1877,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Release On-Hold Signature Request - ApiResponse response = apiInstance.SignatureRequestReleaseHoldWithHttpInfo(signatureRequestId); + ApiResponse response = apiInstance.SignatureRequestReleaseHoldWithHttpInfo(signatureRequestId, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -1886,6 +1895,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **signatureRequestId** | **string** | The id of the SignatureRequest to release. | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1904,14 +1914,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **SignatureRequestRemind** -> SignatureRequestGetResponse SignatureRequestRemind (string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest) +> SignatureRequestGetResponse SignatureRequestRemind (string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, string? idempotencyKey = null) Send Request Reminder @@ -1969,7 +1979,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Send Request Reminder - ApiResponse response = apiInstance.SignatureRequestRemindWithHttpInfo(signatureRequestId, signatureRequestRemindRequest); + ApiResponse response = apiInstance.SignatureRequestRemindWithHttpInfo(signatureRequestId, signatureRequestRemindRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -1988,6 +1998,7 @@ catch (ApiException e) |------|------|-------------|-------| | **signatureRequestId** | **string** | The id of the SignatureRequest to send a reminder for. | | | **signatureRequestRemindRequest** | [**SignatureRequestRemindRequest**](SignatureRequestRemindRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -2006,14 +2017,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **SignatureRequestRemove** -> void SignatureRequestRemove (string signatureRequestId) +> void SignatureRequestRemove (string signatureRequestId, string? idempotencyKey = null) Remove Signature Request Access @@ -2063,7 +2074,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Remove Signature Request Access - apiInstance.SignatureRequestRemoveWithHttpInfo(signatureRequestId); + apiInstance.SignatureRequestRemoveWithHttpInfo(signatureRequestId, idempotencyKey); } catch (ApiException e) { @@ -2078,6 +2089,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **signatureRequestId** | **string** | The id of the SignatureRequest to remove. | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -2096,14 +2108,14 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **SignatureRequestSend** -> SignatureRequestGetResponse SignatureRequestSend (SignatureRequestSendRequest signatureRequestSendRequest) +> SignatureRequestGetResponse SignatureRequestSend (SignatureRequestSendRequest signatureRequestSendRequest, string? idempotencyKey = null) Send Signature Request @@ -2214,7 +2226,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Send Signature Request - ApiResponse response = apiInstance.SignatureRequestSendWithHttpInfo(signatureRequestSendRequest); + ApiResponse response = apiInstance.SignatureRequestSendWithHttpInfo(signatureRequestSendRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -2232,6 +2244,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **signatureRequestSendRequest** | [**SignatureRequestSendRequest**](SignatureRequestSendRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -2250,14 +2263,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **SignatureRequestSendWithTemplate** -> SignatureRequestGetResponse SignatureRequestSendWithTemplate (SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest) +> SignatureRequestGetResponse SignatureRequestSendWithTemplate (SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, string? idempotencyKey = null) Send with Template @@ -2365,7 +2378,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Send with Template - ApiResponse response = apiInstance.SignatureRequestSendWithTemplateWithHttpInfo(signatureRequestSendWithTemplateRequest); + ApiResponse response = apiInstance.SignatureRequestSendWithTemplateWithHttpInfo(signatureRequestSendWithTemplateRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -2383,6 +2396,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **signatureRequestSendWithTemplateRequest** | [**SignatureRequestSendWithTemplateRequest**](SignatureRequestSendWithTemplateRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -2401,14 +2415,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **SignatureRequestUpdate** -> SignatureRequestGetResponse SignatureRequestUpdate (string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest) +> SignatureRequestGetResponse SignatureRequestUpdate (string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, string? idempotencyKey = null) Update Signature Request @@ -2467,7 +2481,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Update Signature Request - ApiResponse response = apiInstance.SignatureRequestUpdateWithHttpInfo(signatureRequestId, signatureRequestUpdateRequest); + ApiResponse response = apiInstance.SignatureRequestUpdateWithHttpInfo(signatureRequestId, signatureRequestUpdateRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -2486,6 +2500,7 @@ catch (ApiException e) |------|------|-------------|-------| | **signatureRequestId** | **string** | The id of the SignatureRequest to update. | | | **signatureRequestUpdateRequest** | [**SignatureRequestUpdateRequest**](SignatureRequestUpdateRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -2504,7 +2519,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/dotnet/docs/TeamApi.md b/sdks/dotnet/docs/TeamApi.md index 2e5e8784f..84ea68714 100644 --- a/sdks/dotnet/docs/TeamApi.md +++ b/sdks/dotnet/docs/TeamApi.md @@ -17,7 +17,7 @@ All URIs are relative to *https://api.hellosign.com/v3* # **TeamAddMember** -> TeamGetResponse TeamAddMember (TeamAddMemberRequest teamAddMemberRequest, string? teamId = null) +> TeamGetResponse TeamAddMember (TeamAddMemberRequest teamAddMemberRequest, string? teamId = null, string? idempotencyKey = null) Add User to Team @@ -75,7 +75,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Add User to Team - ApiResponse response = apiInstance.TeamAddMemberWithHttpInfo(teamAddMemberRequest, teamId); + ApiResponse response = apiInstance.TeamAddMemberWithHttpInfo(teamAddMemberRequest, teamId, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -94,6 +94,7 @@ catch (ApiException e) |------|------|-------------|-------| | **teamAddMemberRequest** | [**TeamAddMemberRequest**](TeamAddMemberRequest.md) | | | | **teamId** | **string?** | The id of the team. | [optional] | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -112,14 +113,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **TeamCreate** -> TeamGetResponse TeamCreate (TeamCreateRequest teamCreateRequest) +> TeamGetResponse TeamCreate (TeamCreateRequest teamCreateRequest, string? idempotencyKey = null) Create Team @@ -176,7 +177,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Create Team - ApiResponse response = apiInstance.TeamCreateWithHttpInfo(teamCreateRequest); + ApiResponse response = apiInstance.TeamCreateWithHttpInfo(teamCreateRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -194,6 +195,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **teamCreateRequest** | [**TeamCreateRequest**](TeamCreateRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -212,7 +214,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -684,7 +686,7 @@ catch (ApiException e) # **TeamRemoveMember** -> TeamGetResponse TeamRemoveMember (TeamRemoveMemberRequest teamRemoveMemberRequest) +> TeamGetResponse TeamRemoveMember (TeamRemoveMemberRequest teamRemoveMemberRequest, string? idempotencyKey = null) Remove User from Team @@ -742,7 +744,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Remove User from Team - ApiResponse response = apiInstance.TeamRemoveMemberWithHttpInfo(teamRemoveMemberRequest); + ApiResponse response = apiInstance.TeamRemoveMemberWithHttpInfo(teamRemoveMemberRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -760,6 +762,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **teamRemoveMemberRequest** | [**TeamRemoveMemberRequest**](TeamRemoveMemberRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -778,7 +781,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **201** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **201** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -885,7 +888,7 @@ catch (ApiException e) # **TeamUpdate** -> TeamGetResponse TeamUpdate (TeamUpdateRequest teamUpdateRequest) +> TeamGetResponse TeamUpdate (TeamUpdateRequest teamUpdateRequest, string? idempotencyKey = null) Update Team @@ -942,7 +945,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Update Team - ApiResponse response = apiInstance.TeamUpdateWithHttpInfo(teamUpdateRequest); + ApiResponse response = apiInstance.TeamUpdateWithHttpInfo(teamUpdateRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -960,6 +963,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **teamUpdateRequest** | [**TeamUpdateRequest**](TeamUpdateRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -978,7 +982,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/dotnet/docs/TemplateApi.md b/sdks/dotnet/docs/TemplateApi.md index 133b641e6..1acd6e1e8 100644 --- a/sdks/dotnet/docs/TemplateApi.md +++ b/sdks/dotnet/docs/TemplateApi.md @@ -18,7 +18,7 @@ All URIs are relative to *https://api.hellosign.com/v3* # **TemplateAddUser** -> TemplateGetResponse TemplateAddUser (string templateId, TemplateAddUserRequest templateAddUserRequest) +> TemplateGetResponse TemplateAddUser (string templateId, TemplateAddUserRequest templateAddUserRequest, string? idempotencyKey = null) Add User to Template @@ -76,7 +76,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Add User to Template - ApiResponse response = apiInstance.TemplateAddUserWithHttpInfo(templateId, templateAddUserRequest); + ApiResponse response = apiInstance.TemplateAddUserWithHttpInfo(templateId, templateAddUserRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -95,6 +95,7 @@ catch (ApiException e) |------|------|-------------|-------| | **templateId** | **string** | The id of the Template to give the Account access to. | | | **templateAddUserRequest** | [**TemplateAddUserRequest**](TemplateAddUserRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -113,14 +114,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **TemplateCreate** -> TemplateCreateResponse TemplateCreate (TemplateCreateRequest templateCreateRequest) +> TemplateCreateResponse TemplateCreate (TemplateCreateRequest templateCreateRequest, string? idempotencyKey = null) Create Template @@ -267,7 +268,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Create Template - ApiResponse response = apiInstance.TemplateCreateWithHttpInfo(templateCreateRequest); + ApiResponse response = apiInstance.TemplateCreateWithHttpInfo(templateCreateRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -285,6 +286,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **templateCreateRequest** | [**TemplateCreateRequest**](TemplateCreateRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -303,14 +305,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **TemplateCreateEmbeddedDraft** -> TemplateCreateEmbeddedDraftResponse TemplateCreateEmbeddedDraft (TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest) +> TemplateCreateEmbeddedDraftResponse TemplateCreateEmbeddedDraft (TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, string? idempotencyKey = null) Create Embedded Template Draft @@ -420,7 +422,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Create Embedded Template Draft - ApiResponse response = apiInstance.TemplateCreateEmbeddedDraftWithHttpInfo(templateCreateEmbeddedDraftRequest); + ApiResponse response = apiInstance.TemplateCreateEmbeddedDraftWithHttpInfo(templateCreateEmbeddedDraftRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -438,6 +440,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **templateCreateEmbeddedDraftRequest** | [**TemplateCreateEmbeddedDraftRequest**](TemplateCreateEmbeddedDraftRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -456,14 +459,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **TemplateDelete** -> void TemplateDelete (string templateId) +> void TemplateDelete (string templateId, string? idempotencyKey = null) Delete Template @@ -514,7 +517,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Delete Template - apiInstance.TemplateDeleteWithHttpInfo(templateId); + apiInstance.TemplateDeleteWithHttpInfo(templateId, idempotencyKey); } catch (ApiException e) { @@ -529,6 +532,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **templateId** | **string** | The id of the Template to delete. | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -547,7 +551,7 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1043,7 +1047,7 @@ catch (ApiException e) # **TemplateRemoveUser** -> TemplateGetResponse TemplateRemoveUser (string templateId, TemplateRemoveUserRequest templateRemoveUserRequest) +> TemplateGetResponse TemplateRemoveUser (string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, string? idempotencyKey = null) Remove User from Template @@ -1101,7 +1105,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Remove User from Template - ApiResponse response = apiInstance.TemplateRemoveUserWithHttpInfo(templateId, templateRemoveUserRequest); + ApiResponse response = apiInstance.TemplateRemoveUserWithHttpInfo(templateId, templateRemoveUserRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -1120,6 +1124,7 @@ catch (ApiException e) |------|------|-------------|-------| | **templateId** | **string** | The id of the Template to remove the Account's access to. | | | **templateRemoveUserRequest** | [**TemplateRemoveUserRequest**](TemplateRemoveUserRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1138,14 +1143,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **TemplateUpdateFiles** -> TemplateUpdateFilesResponse TemplateUpdateFiles (string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest) +> TemplateUpdateFilesResponse TemplateUpdateFiles (string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, string? idempotencyKey = null) Update Template Files @@ -1209,7 +1214,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Update Template Files - ApiResponse response = apiInstance.TemplateUpdateFilesWithHttpInfo(templateId, templateUpdateFilesRequest); + ApiResponse response = apiInstance.TemplateUpdateFilesWithHttpInfo(templateId, templateUpdateFilesRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -1228,6 +1233,7 @@ catch (ApiException e) |------|------|-------------|-------| | **templateId** | **string** | The ID of the template whose files to update. | | | **templateUpdateFilesRequest** | [**TemplateUpdateFilesRequest**](TemplateUpdateFilesRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1246,7 +1252,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/dotnet/docs/UnclaimedDraftApi.md b/sdks/dotnet/docs/UnclaimedDraftApi.md index 3bd6eda05..e385fc60a 100644 --- a/sdks/dotnet/docs/UnclaimedDraftApi.md +++ b/sdks/dotnet/docs/UnclaimedDraftApi.md @@ -11,7 +11,7 @@ All URIs are relative to *https://api.hellosign.com/v3* # **UnclaimedDraftCreate** -> UnclaimedDraftCreateResponse UnclaimedDraftCreate (UnclaimedDraftCreateRequest unclaimedDraftCreateRequest) +> UnclaimedDraftCreateResponse UnclaimedDraftCreate (UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, string? idempotencyKey = null) Create Unclaimed Draft @@ -88,7 +88,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Create Unclaimed Draft - ApiResponse response = apiInstance.UnclaimedDraftCreateWithHttpInfo(unclaimedDraftCreateRequest); + ApiResponse response = apiInstance.UnclaimedDraftCreateWithHttpInfo(unclaimedDraftCreateRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -106,6 +106,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **unclaimedDraftCreateRequest** | [**UnclaimedDraftCreateRequest**](UnclaimedDraftCreateRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -124,14 +125,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **UnclaimedDraftCreateEmbedded** -> UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbedded (UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest) +> UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbedded (UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, string? idempotencyKey = null) Create Embedded Unclaimed Draft @@ -197,7 +198,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Create Embedded Unclaimed Draft - ApiResponse response = apiInstance.UnclaimedDraftCreateEmbeddedWithHttpInfo(unclaimedDraftCreateEmbeddedRequest); + ApiResponse response = apiInstance.UnclaimedDraftCreateEmbeddedWithHttpInfo(unclaimedDraftCreateEmbeddedRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -215,6 +216,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **unclaimedDraftCreateEmbeddedRequest** | [**UnclaimedDraftCreateEmbeddedRequest**](UnclaimedDraftCreateEmbeddedRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -233,14 +235,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **UnclaimedDraftCreateEmbeddedWithTemplate** -> UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbeddedWithTemplate (UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest) +> UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbeddedWithTemplate (UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, string? idempotencyKey = null) Create Embedded Unclaimed Draft with Template @@ -325,7 +327,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Create Embedded Unclaimed Draft with Template - ApiResponse response = apiInstance.UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(unclaimedDraftCreateEmbeddedWithTemplateRequest); + ApiResponse response = apiInstance.UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(unclaimedDraftCreateEmbeddedWithTemplateRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -343,6 +345,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **unclaimedDraftCreateEmbeddedWithTemplateRequest** | [**UnclaimedDraftCreateEmbeddedWithTemplateRequest**](UnclaimedDraftCreateEmbeddedWithTemplateRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -361,14 +364,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **UnclaimedDraftEditAndResend** -> UnclaimedDraftCreateResponse UnclaimedDraftEditAndResend (string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest) +> UnclaimedDraftCreateResponse UnclaimedDraftEditAndResend (string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, string? idempotencyKey = null) Edit and Resend Unclaimed Draft @@ -427,7 +430,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Edit and Resend Unclaimed Draft - ApiResponse response = apiInstance.UnclaimedDraftEditAndResendWithHttpInfo(signatureRequestId, unclaimedDraftEditAndResendRequest); + ApiResponse response = apiInstance.UnclaimedDraftEditAndResendWithHttpInfo(signatureRequestId, unclaimedDraftEditAndResendRequest, idempotencyKey); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -446,6 +449,7 @@ catch (ApiException e) |------|------|-------------|-------| | **signatureRequestId** | **string** | The ID of the signature request to edit and resend. | | | **unclaimedDraftEditAndResendRequest** | [**UnclaimedDraftEditAndResendRequest**](UnclaimedDraftEditAndResendRequest.md) | | | +| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -464,7 +468,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/AccountApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/AccountApi.cs index 1a06b0003..8fae6e0d6 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/AccountApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/AccountApi.cs @@ -36,9 +36,10 @@ public interface IAccountApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// AccountCreateResponse - AccountCreateResponse AccountCreate(AccountCreateRequest accountCreateRequest, int operationIndex = 0); + AccountCreateResponse AccountCreate(AccountCreateRequest accountCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Create Account @@ -49,9 +50,10 @@ public interface IAccountApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of AccountCreateResponse - ApiResponse AccountCreateWithHttpInfo(AccountCreateRequest accountCreateRequest, int operationIndex = 0); + ApiResponse AccountCreateWithHttpInfo(AccountCreateRequest accountCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Get Account /// @@ -88,9 +90,10 @@ public interface IAccountApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountUpdateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// AccountGetResponse - AccountGetResponse AccountUpdate(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0); + AccountGetResponse AccountUpdate(AccountUpdateRequest accountUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Update Account @@ -101,9 +104,10 @@ public interface IAccountApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountUpdateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of AccountGetResponse - ApiResponse AccountUpdateWithHttpInfo(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0); + ApiResponse AccountUpdateWithHttpInfo(AccountUpdateRequest accountUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Verify Account /// @@ -113,9 +117,10 @@ public interface IAccountApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountVerifyExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// AccountVerifyResponse - AccountVerifyResponse AccountVerify(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0); + AccountVerifyResponse AccountVerify(AccountVerifyRequest accountVerifyRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Verify Account @@ -126,9 +131,10 @@ public interface IAccountApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountVerifyExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of AccountVerifyResponse - ApiResponse AccountVerifyWithHttpInfo(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0); + ApiResponse AccountVerifyWithHttpInfo(AccountVerifyRequest accountVerifyRequest, string? idempotencyKey = default(string?), int operationIndex = 0); #endregion Synchronous Operations } @@ -147,10 +153,11 @@ public interface IAccountApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountCreateResponse - System.Threading.Tasks.Task AccountCreateAsync(AccountCreateRequest accountCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task AccountCreateAsync(AccountCreateRequest accountCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Account @@ -161,10 +168,11 @@ public interface IAccountApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountCreateResponse) - System.Threading.Tasks.Task> AccountCreateWithHttpInfoAsync(AccountCreateRequest accountCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> AccountCreateWithHttpInfoAsync(AccountCreateRequest accountCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Account /// @@ -203,10 +211,11 @@ public interface IAccountApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountUpdateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountGetResponse - System.Threading.Tasks.Task AccountUpdateAsync(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task AccountUpdateAsync(AccountUpdateRequest accountUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update Account @@ -217,10 +226,11 @@ public interface IAccountApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountUpdateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountGetResponse) - System.Threading.Tasks.Task> AccountUpdateWithHttpInfoAsync(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> AccountUpdateWithHttpInfoAsync(AccountUpdateRequest accountUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Verify Account /// @@ -230,10 +240,11 @@ public interface IAccountApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountVerifyExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountVerifyResponse - System.Threading.Tasks.Task AccountVerifyAsync(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task AccountVerifyAsync(AccountVerifyRequest accountVerifyRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Verify Account @@ -244,10 +255,11 @@ public interface IAccountApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountVerifyExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountVerifyResponse) - System.Threading.Tasks.Task> AccountVerifyWithHttpInfoAsync(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> AccountVerifyWithHttpInfoAsync(AccountVerifyRequest accountVerifyRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -374,11 +386,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// AccountCreateResponse - public AccountCreateResponse AccountCreate(AccountCreateRequest accountCreateRequest, int operationIndex = 0) + public AccountCreateResponse AccountCreate(AccountCreateRequest accountCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = AccountCreateWithHttpInfo(accountCreateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = AccountCreateWithHttpInfo(accountCreateRequest, idempotencyKey); return localVarResponse.Data; } @@ -388,9 +401,10 @@ public AccountCreateResponse AccountCreate(AccountCreateRequest accountCreateReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of AccountCreateResponse - public Dropbox.Sign.Client.ApiResponse AccountCreateWithHttpInfo(AccountCreateRequest accountCreateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse AccountCreateWithHttpInfo(AccountCreateRequest accountCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'accountCreateRequest' is set if (accountCreateRequest == null) @@ -429,6 +443,10 @@ public Dropbox.Sign.Client.ApiResponse AccountCreateWithH localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "AccountApi.AccountCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -466,12 +484,13 @@ public Dropbox.Sign.Client.ApiResponse AccountCreateWithH /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountCreateResponse - public async System.Threading.Tasks.Task AccountCreateAsync(AccountCreateRequest accountCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task AccountCreateAsync(AccountCreateRequest accountCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await AccountCreateWithHttpInfoAsync(accountCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await AccountCreateWithHttpInfoAsync(accountCreateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -481,10 +500,11 @@ public Dropbox.Sign.Client.ApiResponse AccountCreateWithH /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountCreateResponse) - public async System.Threading.Tasks.Task> AccountCreateWithHttpInfoAsync(AccountCreateRequest accountCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> AccountCreateWithHttpInfoAsync(AccountCreateRequest accountCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'accountCreateRequest' is set if (accountCreateRequest == null) @@ -524,6 +544,10 @@ public Dropbox.Sign.Client.ApiResponse AccountCreateWithH localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "AccountApi.AccountCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -740,11 +764,12 @@ public Dropbox.Sign.Client.ApiResponse AccountCreateWithH /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountUpdateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// AccountGetResponse - public AccountGetResponse AccountUpdate(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0) + public AccountGetResponse AccountUpdate(AccountUpdateRequest accountUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = AccountUpdateWithHttpInfo(accountUpdateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = AccountUpdateWithHttpInfo(accountUpdateRequest, idempotencyKey); return localVarResponse.Data; } @@ -754,9 +779,10 @@ public AccountGetResponse AccountUpdate(AccountUpdateRequest accountUpdateReques /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountUpdateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of AccountGetResponse - public Dropbox.Sign.Client.ApiResponse AccountUpdateWithHttpInfo(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse AccountUpdateWithHttpInfo(AccountUpdateRequest accountUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'accountUpdateRequest' is set if (accountUpdateRequest == null) @@ -795,6 +821,10 @@ public Dropbox.Sign.Client.ApiResponse AccountUpdateWithHttp localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "AccountApi.AccountUpdate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -832,12 +862,13 @@ public Dropbox.Sign.Client.ApiResponse AccountUpdateWithHttp /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountUpdateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountGetResponse - public async System.Threading.Tasks.Task AccountUpdateAsync(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task AccountUpdateAsync(AccountUpdateRequest accountUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await AccountUpdateWithHttpInfoAsync(accountUpdateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await AccountUpdateWithHttpInfoAsync(accountUpdateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -847,10 +878,11 @@ public Dropbox.Sign.Client.ApiResponse AccountUpdateWithHttp /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountUpdateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountGetResponse) - public async System.Threading.Tasks.Task> AccountUpdateWithHttpInfoAsync(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> AccountUpdateWithHttpInfoAsync(AccountUpdateRequest accountUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'accountUpdateRequest' is set if (accountUpdateRequest == null) @@ -890,6 +922,10 @@ public Dropbox.Sign.Client.ApiResponse AccountUpdateWithHttp localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "AccountApi.AccountUpdate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -928,11 +964,12 @@ public Dropbox.Sign.Client.ApiResponse AccountUpdateWithHttp /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountVerifyExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// AccountVerifyResponse - public AccountVerifyResponse AccountVerify(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0) + public AccountVerifyResponse AccountVerify(AccountVerifyRequest accountVerifyRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = AccountVerifyWithHttpInfo(accountVerifyRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = AccountVerifyWithHttpInfo(accountVerifyRequest, idempotencyKey); return localVarResponse.Data; } @@ -942,9 +979,10 @@ public AccountVerifyResponse AccountVerify(AccountVerifyRequest accountVerifyReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountVerifyExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of AccountVerifyResponse - public Dropbox.Sign.Client.ApiResponse AccountVerifyWithHttpInfo(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse AccountVerifyWithHttpInfo(AccountVerifyRequest accountVerifyRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'accountVerifyRequest' is set if (accountVerifyRequest == null) @@ -983,6 +1021,10 @@ public Dropbox.Sign.Client.ApiResponse AccountVerifyWithH localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "AccountApi.AccountVerify"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1020,12 +1062,13 @@ public Dropbox.Sign.Client.ApiResponse AccountVerifyWithH /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountVerifyExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountVerifyResponse - public async System.Threading.Tasks.Task AccountVerifyAsync(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task AccountVerifyAsync(AccountVerifyRequest accountVerifyRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await AccountVerifyWithHttpInfoAsync(accountVerifyRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await AccountVerifyWithHttpInfoAsync(accountVerifyRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1035,10 +1078,11 @@ public Dropbox.Sign.Client.ApiResponse AccountVerifyWithH /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountVerifyExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountVerifyResponse) - public async System.Threading.Tasks.Task> AccountVerifyWithHttpInfoAsync(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> AccountVerifyWithHttpInfoAsync(AccountVerifyRequest accountVerifyRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'accountVerifyRequest' is set if (accountVerifyRequest == null) @@ -1078,6 +1122,10 @@ public Dropbox.Sign.Client.ApiResponse AccountVerifyWithH localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "AccountApi.AccountVerify"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/ApiAppApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/ApiAppApi.cs index 10610c791..f6d18a46e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/ApiAppApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/ApiAppApi.cs @@ -36,9 +36,10 @@ public interface IApiAppApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/ApiAppCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiAppGetResponse - ApiAppGetResponse ApiAppCreate(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0); + ApiAppGetResponse ApiAppCreate(ApiAppCreateRequest apiAppCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Create API App @@ -49,9 +50,10 @@ public interface IApiAppApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/ApiAppCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of ApiAppGetResponse - ApiResponse ApiAppCreateWithHttpInfo(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0); + ApiResponse ApiAppCreateWithHttpInfo(ApiAppCreateRequest apiAppCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Delete API App /// @@ -139,9 +141,10 @@ public interface IApiAppApiSync : IApiAccessor /// Thrown when fails to make API call /// The client id of the API App to update. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiAppGetResponse - ApiAppGetResponse ApiAppUpdate(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0); + ApiAppGetResponse ApiAppUpdate(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Update API App @@ -153,9 +156,10 @@ public interface IApiAppApiSync : IApiAccessor /// Thrown when fails to make API call /// The client id of the API App to update. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of ApiAppGetResponse - ApiResponse ApiAppUpdateWithHttpInfo(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0); + ApiResponse ApiAppUpdateWithHttpInfo(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); #endregion Synchronous Operations } @@ -174,10 +178,11 @@ public interface IApiAppApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/ApiAppCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiAppGetResponse - System.Threading.Tasks.Task ApiAppCreateAsync(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiAppCreateAsync(ApiAppCreateRequest apiAppCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create API App @@ -188,10 +193,11 @@ public interface IApiAppApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/ApiAppCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiAppGetResponse) - System.Threading.Tasks.Task> ApiAppCreateWithHttpInfoAsync(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ApiAppCreateWithHttpInfoAsync(ApiAppCreateRequest apiAppCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Delete API App /// @@ -285,10 +291,11 @@ public interface IApiAppApiAsync : IApiAccessor /// Thrown when fails to make API call /// The client id of the API App to update. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiAppGetResponse - System.Threading.Tasks.Task ApiAppUpdateAsync(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiAppUpdateAsync(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update API App @@ -300,10 +307,11 @@ public interface IApiAppApiAsync : IApiAccessor /// Thrown when fails to make API call /// The client id of the API App to update. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiAppGetResponse) - System.Threading.Tasks.Task> ApiAppUpdateWithHttpInfoAsync(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ApiAppUpdateWithHttpInfoAsync(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -430,11 +438,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/ApiAppCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiAppGetResponse - public ApiAppGetResponse ApiAppCreate(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0) + public ApiAppGetResponse ApiAppCreate(ApiAppCreateRequest apiAppCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = ApiAppCreateWithHttpInfo(apiAppCreateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = ApiAppCreateWithHttpInfo(apiAppCreateRequest, idempotencyKey); return localVarResponse.Data; } @@ -444,9 +453,10 @@ public ApiAppGetResponse ApiAppCreate(ApiAppCreateRequest apiAppCreateRequest, i /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/ApiAppCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of ApiAppGetResponse - public Dropbox.Sign.Client.ApiResponse ApiAppCreateWithHttpInfo(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse ApiAppCreateWithHttpInfo(ApiAppCreateRequest apiAppCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'apiAppCreateRequest' is set if (apiAppCreateRequest == null) @@ -485,6 +495,10 @@ public Dropbox.Sign.Client.ApiResponse ApiAppCreateWithHttpIn localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "ApiAppApi.ApiAppCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -522,12 +536,13 @@ public Dropbox.Sign.Client.ApiResponse ApiAppCreateWithHttpIn /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/ApiAppCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiAppGetResponse - public async System.Threading.Tasks.Task ApiAppCreateAsync(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiAppCreateAsync(ApiAppCreateRequest apiAppCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await ApiAppCreateWithHttpInfoAsync(apiAppCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await ApiAppCreateWithHttpInfoAsync(apiAppCreateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -537,10 +552,11 @@ public Dropbox.Sign.Client.ApiResponse ApiAppCreateWithHttpIn /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/ApiAppCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiAppGetResponse) - public async System.Threading.Tasks.Task> ApiAppCreateWithHttpInfoAsync(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ApiAppCreateWithHttpInfoAsync(ApiAppCreateRequest apiAppCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'apiAppCreateRequest' is set if (apiAppCreateRequest == null) @@ -580,6 +596,10 @@ public Dropbox.Sign.Client.ApiResponse ApiAppCreateWithHttpIn localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "ApiAppApi.ApiAppCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1139,11 +1159,12 @@ public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( /// Thrown when fails to make API call /// The client id of the API App to update. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiAppGetResponse - public ApiAppGetResponse ApiAppUpdate(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0) + public ApiAppGetResponse ApiAppUpdate(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = ApiAppUpdateWithHttpInfo(clientId, apiAppUpdateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = ApiAppUpdateWithHttpInfo(clientId, apiAppUpdateRequest, idempotencyKey); return localVarResponse.Data; } @@ -1154,9 +1175,10 @@ public ApiAppGetResponse ApiAppUpdate(string clientId, ApiAppUpdateRequest apiAp /// Thrown when fails to make API call /// The client id of the API App to update. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of ApiAppGetResponse - public Dropbox.Sign.Client.ApiResponse ApiAppUpdateWithHttpInfo(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse ApiAppUpdateWithHttpInfo(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'clientId' is set if (clientId == null) @@ -1202,6 +1224,10 @@ public Dropbox.Sign.Client.ApiResponse ApiAppUpdateWithHttpIn } localVarRequestOptions.PathParameters.Add("client_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId)); // path parameter + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "ApiAppApi.ApiAppUpdate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1240,12 +1266,13 @@ public Dropbox.Sign.Client.ApiResponse ApiAppUpdateWithHttpIn /// Thrown when fails to make API call /// The client id of the API App to update. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiAppGetResponse - public async System.Threading.Tasks.Task ApiAppUpdateAsync(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiAppUpdateAsync(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await ApiAppUpdateWithHttpInfoAsync(clientId, apiAppUpdateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await ApiAppUpdateWithHttpInfoAsync(clientId, apiAppUpdateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1256,10 +1283,11 @@ public Dropbox.Sign.Client.ApiResponse ApiAppUpdateWithHttpIn /// Thrown when fails to make API call /// The client id of the API App to update. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiAppGetResponse) - public async System.Threading.Tasks.Task> ApiAppUpdateWithHttpInfoAsync(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ApiAppUpdateWithHttpInfoAsync(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'clientId' is set if (clientId == null) @@ -1306,6 +1334,10 @@ public Dropbox.Sign.Client.ApiResponse ApiAppUpdateWithHttpIn } localVarRequestOptions.PathParameters.Add("client_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId)); // path parameter + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "ApiAppApi.ApiAppUpdate"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/DocumentApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/DocumentApi.cs index 3bd7a700a..a29ed5d94 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/DocumentApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/DocumentApi.cs @@ -36,9 +36,10 @@ public interface IDocumentApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/DocumentDetectFieldsExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// DocumentFieldDetectionResponse - DocumentFieldDetectionResponse DocumentDetectFields(DocumentFieldDetectionRequest documentFieldDetectionRequest, int operationIndex = 0); + DocumentFieldDetectionResponse DocumentDetectFields(DocumentFieldDetectionRequest documentFieldDetectionRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Detect Document Fields @@ -49,9 +50,10 @@ public interface IDocumentApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/DocumentDetectFieldsExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of DocumentFieldDetectionResponse - ApiResponse DocumentDetectFieldsWithHttpInfo(DocumentFieldDetectionRequest documentFieldDetectionRequest, int operationIndex = 0); + ApiResponse DocumentDetectFieldsWithHttpInfo(DocumentFieldDetectionRequest documentFieldDetectionRequest, string? idempotencyKey = default(string?), int operationIndex = 0); #endregion Synchronous Operations } @@ -70,10 +72,11 @@ public interface IDocumentApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/DocumentDetectFieldsExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of DocumentFieldDetectionResponse - System.Threading.Tasks.Task DocumentDetectFieldsAsync(DocumentFieldDetectionRequest documentFieldDetectionRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task DocumentDetectFieldsAsync(DocumentFieldDetectionRequest documentFieldDetectionRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Detect Document Fields @@ -84,10 +87,11 @@ public interface IDocumentApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/DocumentDetectFieldsExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (DocumentFieldDetectionResponse) - System.Threading.Tasks.Task> DocumentDetectFieldsWithHttpInfoAsync(DocumentFieldDetectionRequest documentFieldDetectionRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> DocumentDetectFieldsWithHttpInfoAsync(DocumentFieldDetectionRequest documentFieldDetectionRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -214,11 +218,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/DocumentDetectFieldsExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// DocumentFieldDetectionResponse - public DocumentFieldDetectionResponse DocumentDetectFields(DocumentFieldDetectionRequest documentFieldDetectionRequest, int operationIndex = 0) + public DocumentFieldDetectionResponse DocumentDetectFields(DocumentFieldDetectionRequest documentFieldDetectionRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = DocumentDetectFieldsWithHttpInfo(documentFieldDetectionRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = DocumentDetectFieldsWithHttpInfo(documentFieldDetectionRequest, idempotencyKey); return localVarResponse.Data; } @@ -228,9 +233,10 @@ public DocumentFieldDetectionResponse DocumentDetectFields(DocumentFieldDetectio /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/DocumentDetectFieldsExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of DocumentFieldDetectionResponse - public Dropbox.Sign.Client.ApiResponse DocumentDetectFieldsWithHttpInfo(DocumentFieldDetectionRequest documentFieldDetectionRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse DocumentDetectFieldsWithHttpInfo(DocumentFieldDetectionRequest documentFieldDetectionRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'documentFieldDetectionRequest' is set if (documentFieldDetectionRequest == null) @@ -269,6 +275,10 @@ public Dropbox.Sign.Client.ApiResponse DocumentD localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "DocumentApi.DocumentDetectFields"; localVarRequestOptions.OperationIndex = operationIndex; @@ -306,12 +316,13 @@ public Dropbox.Sign.Client.ApiResponse DocumentD /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/DocumentDetectFieldsExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of DocumentFieldDetectionResponse - public async System.Threading.Tasks.Task DocumentDetectFieldsAsync(DocumentFieldDetectionRequest documentFieldDetectionRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DocumentDetectFieldsAsync(DocumentFieldDetectionRequest documentFieldDetectionRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await DocumentDetectFieldsWithHttpInfoAsync(documentFieldDetectionRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await DocumentDetectFieldsWithHttpInfoAsync(documentFieldDetectionRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -321,10 +332,11 @@ public Dropbox.Sign.Client.ApiResponse DocumentD /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/DocumentDetectFieldsExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (DocumentFieldDetectionResponse) - public async System.Threading.Tasks.Task> DocumentDetectFieldsWithHttpInfoAsync(DocumentFieldDetectionRequest documentFieldDetectionRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> DocumentDetectFieldsWithHttpInfoAsync(DocumentFieldDetectionRequest documentFieldDetectionRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'documentFieldDetectionRequest' is set if (documentFieldDetectionRequest == null) @@ -364,6 +376,10 @@ public Dropbox.Sign.Client.ApiResponse DocumentD localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "DocumentApi.DocumentDetectFields"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/EmbeddedApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/EmbeddedApi.cs index 85ab285a4..2630e9aa4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/EmbeddedApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/EmbeddedApi.cs @@ -37,9 +37,10 @@ public interface IEmbeddedApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the template to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// EmbeddedEditUrlResponse - EmbeddedEditUrlResponse EmbeddedEditUrl(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0); + EmbeddedEditUrlResponse EmbeddedEditUrl(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Get Embedded Template Edit URL @@ -51,9 +52,10 @@ public interface IEmbeddedApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the template to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of EmbeddedEditUrlResponse - ApiResponse EmbeddedEditUrlWithHttpInfo(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0); + ApiResponse EmbeddedEditUrlWithHttpInfo(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Get Embedded Sign URL /// @@ -98,10 +100,11 @@ public interface IEmbeddedApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the template to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of EmbeddedEditUrlResponse - System.Threading.Tasks.Task EmbeddedEditUrlAsync(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task EmbeddedEditUrlAsync(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Embedded Template Edit URL @@ -113,10 +116,11 @@ public interface IEmbeddedApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the template to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (EmbeddedEditUrlResponse) - System.Threading.Tasks.Task> EmbeddedEditUrlWithHttpInfoAsync(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> EmbeddedEditUrlWithHttpInfoAsync(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Embedded Sign URL /// @@ -271,11 +275,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// The id of the template to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// EmbeddedEditUrlResponse - public EmbeddedEditUrlResponse EmbeddedEditUrl(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0) + public EmbeddedEditUrlResponse EmbeddedEditUrl(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = EmbeddedEditUrlWithHttpInfo(templateId, embeddedEditUrlRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = EmbeddedEditUrlWithHttpInfo(templateId, embeddedEditUrlRequest, idempotencyKey); return localVarResponse.Data; } @@ -286,9 +291,10 @@ public EmbeddedEditUrlResponse EmbeddedEditUrl(string templateId, EmbeddedEditUr /// Thrown when fails to make API call /// The id of the template to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of EmbeddedEditUrlResponse - public Dropbox.Sign.Client.ApiResponse EmbeddedEditUrlWithHttpInfo(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse EmbeddedEditUrlWithHttpInfo(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'templateId' is set if (templateId == null) @@ -334,6 +340,10 @@ public Dropbox.Sign.Client.ApiResponse EmbeddedEditUrlW } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "EmbeddedApi.EmbeddedEditUrl"; localVarRequestOptions.OperationIndex = operationIndex; @@ -372,12 +382,13 @@ public Dropbox.Sign.Client.ApiResponse EmbeddedEditUrlW /// Thrown when fails to make API call /// The id of the template to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of EmbeddedEditUrlResponse - public async System.Threading.Tasks.Task EmbeddedEditUrlAsync(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task EmbeddedEditUrlAsync(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await EmbeddedEditUrlWithHttpInfoAsync(templateId, embeddedEditUrlRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await EmbeddedEditUrlWithHttpInfoAsync(templateId, embeddedEditUrlRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -388,10 +399,11 @@ public Dropbox.Sign.Client.ApiResponse EmbeddedEditUrlW /// Thrown when fails to make API call /// The id of the template to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (EmbeddedEditUrlResponse) - public async System.Threading.Tasks.Task> EmbeddedEditUrlWithHttpInfoAsync(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> EmbeddedEditUrlWithHttpInfoAsync(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'templateId' is set if (templateId == null) @@ -438,6 +450,10 @@ public Dropbox.Sign.Client.ApiResponse EmbeddedEditUrlW } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "EmbeddedApi.EmbeddedEditUrl"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/FaxApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/FaxApi.cs index faa75bbde..03ff6263e 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/FaxApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/FaxApi.cs @@ -138,9 +138,10 @@ public interface IFaxApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxSendExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// FaxGetResponse - FaxGetResponse FaxSend(FaxSendRequest faxSendRequest, int operationIndex = 0); + FaxGetResponse FaxSend(FaxSendRequest faxSendRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Send Fax @@ -151,9 +152,10 @@ public interface IFaxApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxSendExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of FaxGetResponse - ApiResponse FaxSendWithHttpInfo(FaxSendRequest faxSendRequest, int operationIndex = 0); + ApiResponse FaxSendWithHttpInfo(FaxSendRequest faxSendRequest, string? idempotencyKey = default(string?), int operationIndex = 0); #endregion Synchronous Operations } @@ -282,10 +284,11 @@ public interface IFaxApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxSendExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxGetResponse - System.Threading.Tasks.Task FaxSendAsync(FaxSendRequest faxSendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task FaxSendAsync(FaxSendRequest faxSendRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Send Fax @@ -296,10 +299,11 @@ public interface IFaxApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxSendExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxGetResponse) - System.Threading.Tasks.Task> FaxSendWithHttpInfoAsync(FaxSendRequest faxSendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FaxSendWithHttpInfoAsync(FaxSendRequest faxSendRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -1072,11 +1076,12 @@ public Dropbox.Sign.Client.ApiResponse FaxGetWithHttpInfo(string /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxSendExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// FaxGetResponse - public FaxGetResponse FaxSend(FaxSendRequest faxSendRequest, int operationIndex = 0) + public FaxGetResponse FaxSend(FaxSendRequest faxSendRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = FaxSendWithHttpInfo(faxSendRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = FaxSendWithHttpInfo(faxSendRequest, idempotencyKey); return localVarResponse.Data; } @@ -1086,9 +1091,10 @@ public FaxGetResponse FaxSend(FaxSendRequest faxSendRequest, int operationIndex /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxSendExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of FaxGetResponse - public Dropbox.Sign.Client.ApiResponse FaxSendWithHttpInfo(FaxSendRequest faxSendRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse FaxSendWithHttpInfo(FaxSendRequest faxSendRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'faxSendRequest' is set if (faxSendRequest == null) @@ -1127,6 +1133,10 @@ public Dropbox.Sign.Client.ApiResponse FaxSendWithHttpInfo(FaxSe localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "FaxApi.FaxSend"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1158,12 +1168,13 @@ public Dropbox.Sign.Client.ApiResponse FaxSendWithHttpInfo(FaxSe /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxSendExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxGetResponse - public async System.Threading.Tasks.Task FaxSendAsync(FaxSendRequest faxSendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FaxSendAsync(FaxSendRequest faxSendRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxSendWithHttpInfoAsync(faxSendRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxSendWithHttpInfoAsync(faxSendRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1173,10 +1184,11 @@ public Dropbox.Sign.Client.ApiResponse FaxSendWithHttpInfo(FaxSe /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxSendExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxGetResponse) - public async System.Threading.Tasks.Task> FaxSendWithHttpInfoAsync(FaxSendRequest faxSendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FaxSendWithHttpInfoAsync(FaxSendRequest faxSendRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'faxSendRequest' is set if (faxSendRequest == null) @@ -1216,6 +1228,10 @@ public Dropbox.Sign.Client.ApiResponse FaxSendWithHttpInfo(FaxSe localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "FaxApi.FaxSend"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/FaxLineApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/FaxLineApi.cs index e756a48f5..f090170ec 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/FaxLineApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/FaxLineApi.cs @@ -36,9 +36,10 @@ public interface IFaxLineApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineAddUserExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// FaxLineResponse - FaxLineResponse FaxLineAddUser(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0); + FaxLineResponse FaxLineAddUser(FaxLineAddUserRequest faxLineAddUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Add Fax Line User @@ -49,9 +50,10 @@ public interface IFaxLineApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineAddUserExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of FaxLineResponse - ApiResponse FaxLineAddUserWithHttpInfo(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0); + ApiResponse FaxLineAddUserWithHttpInfo(FaxLineAddUserRequest faxLineAddUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Get Available Fax Line Area Codes /// @@ -92,9 +94,10 @@ public interface IFaxLineApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// FaxLineResponse - FaxLineResponse FaxLineCreate(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0); + FaxLineResponse FaxLineCreate(FaxLineCreateRequest faxLineCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Purchase Fax Line @@ -105,9 +108,10 @@ public interface IFaxLineApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of FaxLineResponse - ApiResponse FaxLineCreateWithHttpInfo(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0); + ApiResponse FaxLineCreateWithHttpInfo(FaxLineCreateRequest faxLineCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Delete Fax Line /// @@ -198,9 +202,10 @@ public interface IFaxLineApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineRemoveUserExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// FaxLineResponse - FaxLineResponse FaxLineRemoveUser(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0); + FaxLineResponse FaxLineRemoveUser(FaxLineRemoveUserRequest faxLineRemoveUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Remove Fax Line Access @@ -211,9 +216,10 @@ public interface IFaxLineApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineRemoveUserExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of FaxLineResponse - ApiResponse FaxLineRemoveUserWithHttpInfo(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0); + ApiResponse FaxLineRemoveUserWithHttpInfo(FaxLineRemoveUserRequest faxLineRemoveUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0); #endregion Synchronous Operations } @@ -232,10 +238,11 @@ public interface IFaxLineApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineAddUserExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - System.Threading.Tasks.Task FaxLineAddUserAsync(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task FaxLineAddUserAsync(FaxLineAddUserRequest faxLineAddUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Add Fax Line User @@ -246,10 +253,11 @@ public interface IFaxLineApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineAddUserExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - System.Threading.Tasks.Task> FaxLineAddUserWithHttpInfoAsync(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FaxLineAddUserWithHttpInfoAsync(FaxLineAddUserRequest faxLineAddUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Available Fax Line Area Codes /// @@ -292,10 +300,11 @@ public interface IFaxLineApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - System.Threading.Tasks.Task FaxLineCreateAsync(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task FaxLineCreateAsync(FaxLineCreateRequest faxLineCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Purchase Fax Line @@ -306,10 +315,11 @@ public interface IFaxLineApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - System.Threading.Tasks.Task> FaxLineCreateWithHttpInfoAsync(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FaxLineCreateWithHttpInfoAsync(FaxLineCreateRequest faxLineCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Delete Fax Line /// @@ -406,10 +416,11 @@ public interface IFaxLineApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineRemoveUserExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - System.Threading.Tasks.Task FaxLineRemoveUserAsync(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task FaxLineRemoveUserAsync(FaxLineRemoveUserRequest faxLineRemoveUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Remove Fax Line Access @@ -420,10 +431,11 @@ public interface IFaxLineApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineRemoveUserExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - System.Threading.Tasks.Task> FaxLineRemoveUserWithHttpInfoAsync(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FaxLineRemoveUserWithHttpInfoAsync(FaxLineRemoveUserRequest faxLineRemoveUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -550,11 +562,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineAddUserExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// FaxLineResponse - public FaxLineResponse FaxLineAddUser(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0) + public FaxLineResponse FaxLineAddUser(FaxLineAddUserRequest faxLineAddUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = FaxLineAddUserWithHttpInfo(faxLineAddUserRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = FaxLineAddUserWithHttpInfo(faxLineAddUserRequest, idempotencyKey); return localVarResponse.Data; } @@ -564,9 +577,10 @@ public FaxLineResponse FaxLineAddUser(FaxLineAddUserRequest faxLineAddUserReques /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineAddUserExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of FaxLineResponse - public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpInfo(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpInfo(FaxLineAddUserRequest faxLineAddUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'faxLineAddUserRequest' is set if (faxLineAddUserRequest == null) @@ -605,6 +619,10 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpIn localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "FaxLineApi.FaxLineAddUser"; localVarRequestOptions.OperationIndex = operationIndex; @@ -636,12 +654,13 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpIn /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineAddUserExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - public async System.Threading.Tasks.Task FaxLineAddUserAsync(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FaxLineAddUserAsync(FaxLineAddUserRequest faxLineAddUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxLineAddUserWithHttpInfoAsync(faxLineAddUserRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxLineAddUserWithHttpInfoAsync(faxLineAddUserRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -651,10 +670,11 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpIn /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineAddUserExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - public async System.Threading.Tasks.Task> FaxLineAddUserWithHttpInfoAsync(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FaxLineAddUserWithHttpInfoAsync(FaxLineAddUserRequest faxLineAddUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'faxLineAddUserRequest' is set if (faxLineAddUserRequest == null) @@ -694,6 +714,10 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpIn localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "FaxLineApi.FaxLineAddUser"; localVarRequestOptions.OperationIndex = operationIndex; @@ -922,11 +946,12 @@ public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpIn /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// FaxLineResponse - public FaxLineResponse FaxLineCreate(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0) + public FaxLineResponse FaxLineCreate(FaxLineCreateRequest faxLineCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = FaxLineCreateWithHttpInfo(faxLineCreateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = FaxLineCreateWithHttpInfo(faxLineCreateRequest, idempotencyKey); return localVarResponse.Data; } @@ -936,9 +961,10 @@ public FaxLineResponse FaxLineCreate(FaxLineCreateRequest faxLineCreateRequest, /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of FaxLineResponse - public Dropbox.Sign.Client.ApiResponse FaxLineCreateWithHttpInfo(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse FaxLineCreateWithHttpInfo(FaxLineCreateRequest faxLineCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'faxLineCreateRequest' is set if (faxLineCreateRequest == null) @@ -977,6 +1003,10 @@ public Dropbox.Sign.Client.ApiResponse FaxLineCreateWithHttpInf localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "FaxLineApi.FaxLineCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1008,12 +1038,13 @@ public Dropbox.Sign.Client.ApiResponse FaxLineCreateWithHttpInf /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - public async System.Threading.Tasks.Task FaxLineCreateAsync(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FaxLineCreateAsync(FaxLineCreateRequest faxLineCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxLineCreateWithHttpInfoAsync(faxLineCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxLineCreateWithHttpInfoAsync(faxLineCreateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1023,10 +1054,11 @@ public Dropbox.Sign.Client.ApiResponse FaxLineCreateWithHttpInf /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - public async System.Threading.Tasks.Task> FaxLineCreateWithHttpInfoAsync(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FaxLineCreateWithHttpInfoAsync(FaxLineCreateRequest faxLineCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'faxLineCreateRequest' is set if (faxLineCreateRequest == null) @@ -1066,6 +1098,10 @@ public Dropbox.Sign.Client.ApiResponse FaxLineCreateWithHttpInf localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "FaxLineApi.FaxLineCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1622,11 +1658,12 @@ public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo(s /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineRemoveUserExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// FaxLineResponse - public FaxLineResponse FaxLineRemoveUser(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0) + public FaxLineResponse FaxLineRemoveUser(FaxLineRemoveUserRequest faxLineRemoveUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = FaxLineRemoveUserWithHttpInfo(faxLineRemoveUserRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = FaxLineRemoveUserWithHttpInfo(faxLineRemoveUserRequest, idempotencyKey); return localVarResponse.Data; } @@ -1636,9 +1673,10 @@ public FaxLineResponse FaxLineRemoveUser(FaxLineRemoveUserRequest faxLineRemoveU /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineRemoveUserExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of FaxLineResponse - public Dropbox.Sign.Client.ApiResponse FaxLineRemoveUserWithHttpInfo(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse FaxLineRemoveUserWithHttpInfo(FaxLineRemoveUserRequest faxLineRemoveUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'faxLineRemoveUserRequest' is set if (faxLineRemoveUserRequest == null) @@ -1677,6 +1715,10 @@ public Dropbox.Sign.Client.ApiResponse FaxLineRemoveUserWithHtt localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "FaxLineApi.FaxLineRemoveUser"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1708,12 +1750,13 @@ public Dropbox.Sign.Client.ApiResponse FaxLineRemoveUserWithHtt /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineRemoveUserExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - public async System.Threading.Tasks.Task FaxLineRemoveUserAsync(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FaxLineRemoveUserAsync(FaxLineRemoveUserRequest faxLineRemoveUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxLineRemoveUserWithHttpInfoAsync(faxLineRemoveUserRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxLineRemoveUserWithHttpInfoAsync(faxLineRemoveUserRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1723,10 +1766,11 @@ public Dropbox.Sign.Client.ApiResponse FaxLineRemoveUserWithHtt /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineRemoveUserExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - public async System.Threading.Tasks.Task> FaxLineRemoveUserWithHttpInfoAsync(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FaxLineRemoveUserWithHttpInfoAsync(FaxLineRemoveUserRequest faxLineRemoveUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'faxLineRemoveUserRequest' is set if (faxLineRemoveUserRequest == null) @@ -1766,6 +1810,10 @@ public Dropbox.Sign.Client.ApiResponse FaxLineRemoveUserWithHtt localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "FaxLineApi.FaxLineRemoveUser"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/ReportApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/ReportApi.cs index 0e075a0e3..a32731387 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/ReportApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/ReportApi.cs @@ -36,9 +36,10 @@ public interface IReportApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/ReportCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ReportCreateResponse - ReportCreateResponse ReportCreate(ReportCreateRequest reportCreateRequest, int operationIndex = 0); + ReportCreateResponse ReportCreate(ReportCreateRequest reportCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Create Report @@ -49,9 +50,10 @@ public interface IReportApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/ReportCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of ReportCreateResponse - ApiResponse ReportCreateWithHttpInfo(ReportCreateRequest reportCreateRequest, int operationIndex = 0); + ApiResponse ReportCreateWithHttpInfo(ReportCreateRequest reportCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); #endregion Synchronous Operations } @@ -70,10 +72,11 @@ public interface IReportApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/ReportCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ReportCreateResponse - System.Threading.Tasks.Task ReportCreateAsync(ReportCreateRequest reportCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task ReportCreateAsync(ReportCreateRequest reportCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Report @@ -84,10 +87,11 @@ public interface IReportApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/ReportCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ReportCreateResponse) - System.Threading.Tasks.Task> ReportCreateWithHttpInfoAsync(ReportCreateRequest reportCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ReportCreateWithHttpInfoAsync(ReportCreateRequest reportCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -214,11 +218,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/ReportCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ReportCreateResponse - public ReportCreateResponse ReportCreate(ReportCreateRequest reportCreateRequest, int operationIndex = 0) + public ReportCreateResponse ReportCreate(ReportCreateRequest reportCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = ReportCreateWithHttpInfo(reportCreateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = ReportCreateWithHttpInfo(reportCreateRequest, idempotencyKey); return localVarResponse.Data; } @@ -228,9 +233,10 @@ public ReportCreateResponse ReportCreate(ReportCreateRequest reportCreateRequest /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/ReportCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of ReportCreateResponse - public Dropbox.Sign.Client.ApiResponse ReportCreateWithHttpInfo(ReportCreateRequest reportCreateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse ReportCreateWithHttpInfo(ReportCreateRequest reportCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'reportCreateRequest' is set if (reportCreateRequest == null) @@ -269,6 +275,10 @@ public Dropbox.Sign.Client.ApiResponse ReportCreateWithHtt localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "ReportApi.ReportCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -300,12 +310,13 @@ public Dropbox.Sign.Client.ApiResponse ReportCreateWithHtt /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/ReportCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ReportCreateResponse - public async System.Threading.Tasks.Task ReportCreateAsync(ReportCreateRequest reportCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ReportCreateAsync(ReportCreateRequest reportCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await ReportCreateWithHttpInfoAsync(reportCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await ReportCreateWithHttpInfoAsync(reportCreateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -315,10 +326,11 @@ public Dropbox.Sign.Client.ApiResponse ReportCreateWithHtt /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/ReportCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ReportCreateResponse) - public async System.Threading.Tasks.Task> ReportCreateWithHttpInfoAsync(ReportCreateRequest reportCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ReportCreateWithHttpInfoAsync(ReportCreateRequest reportCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'reportCreateRequest' is set if (reportCreateRequest == null) @@ -358,6 +370,10 @@ public Dropbox.Sign.Client.ApiResponse ReportCreateWithHtt localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "ReportApi.ReportCreate"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/SignatureRequestApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/SignatureRequestApi.cs index 05be3bf6d..4d58762f8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/SignatureRequestApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/SignatureRequestApi.cs @@ -36,9 +36,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// BulkSendJobSendResponse - BulkSendJobSendResponse SignatureRequestBulkCreateEmbeddedWithTemplate(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0); + BulkSendJobSendResponse SignatureRequestBulkCreateEmbeddedWithTemplate(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Embedded Bulk Send with Template @@ -49,9 +50,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of BulkSendJobSendResponse - ApiResponse SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0); + ApiResponse SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Bulk Send with Template /// @@ -61,9 +63,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// BulkSendJobSendResponse - BulkSendJobSendResponse SignatureRequestBulkSendWithTemplate(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0); + BulkSendJobSendResponse SignatureRequestBulkSendWithTemplate(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Bulk Send with Template @@ -74,9 +77,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of BulkSendJobSendResponse - ApiResponse SignatureRequestBulkSendWithTemplateWithHttpInfo(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0); + ApiResponse SignatureRequestBulkSendWithTemplateWithHttpInfo(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Cancel Incomplete Signature Request /// @@ -86,9 +90,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCancelExample.cs /// Thrown when fails to make API call /// The id of the incomplete SignatureRequest to cancel. + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// - void SignatureRequestCancel(string signatureRequestId, int operationIndex = 0); + void SignatureRequestCancel(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Cancel Incomplete Signature Request @@ -99,9 +104,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCancelExample.cs /// Thrown when fails to make API call /// The id of the incomplete SignatureRequest to cancel. + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse SignatureRequestCancelWithHttpInfo(string signatureRequestId, int operationIndex = 0); + ApiResponse SignatureRequestCancelWithHttpInfo(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Create Embedded Signature Request /// @@ -111,9 +117,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCreateEmbeddedExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestCreateEmbedded(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0); + SignatureRequestGetResponse SignatureRequestCreateEmbedded(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Create Embedded Signature Request @@ -124,9 +131,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCreateEmbeddedExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestCreateEmbeddedWithHttpInfo(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0); + ApiResponse SignatureRequestCreateEmbeddedWithHttpInfo(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Create Embedded Signature Request with Template /// @@ -136,9 +144,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestCreateEmbeddedWithTemplate(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0); + SignatureRequestGetResponse SignatureRequestCreateEmbeddedWithTemplate(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Create Embedded Signature Request with Template @@ -149,9 +158,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0); + ApiResponse SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Edit Signature Request /// @@ -162,9 +172,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestEdit(string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, int operationIndex = 0); + SignatureRequestGetResponse SignatureRequestEdit(string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Edit Signature Request @@ -176,9 +187,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestEditWithHttpInfo(string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, int operationIndex = 0); + ApiResponse SignatureRequestEditWithHttpInfo(string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Edit Embedded Signature Request /// @@ -189,9 +201,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestEditEmbedded(string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, int operationIndex = 0); + SignatureRequestGetResponse SignatureRequestEditEmbedded(string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Edit Embedded Signature Request @@ -203,9 +216,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestEditEmbeddedWithHttpInfo(string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, int operationIndex = 0); + ApiResponse SignatureRequestEditEmbeddedWithHttpInfo(string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Edit Embedded Signature Request with Template /// @@ -216,9 +230,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestEditEmbeddedWithTemplate(string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, int operationIndex = 0); + SignatureRequestGetResponse SignatureRequestEditEmbeddedWithTemplate(string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Edit Embedded Signature Request with Template @@ -230,9 +245,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestEditEmbeddedWithTemplateWithHttpInfo(string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, int operationIndex = 0); + ApiResponse SignatureRequestEditEmbeddedWithTemplateWithHttpInfo(string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Edit Signature Request With Template /// @@ -243,9 +259,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestEditWithTemplate(string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, int operationIndex = 0); + SignatureRequestGetResponse SignatureRequestEditWithTemplate(string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Edit Signature Request With Template @@ -257,9 +274,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestEditWithTemplateWithHttpInfo(string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, int operationIndex = 0); + ApiResponse SignatureRequestEditWithTemplateWithHttpInfo(string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Download Files /// @@ -404,9 +422,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestReleaseHoldExample.cs /// Thrown when fails to make API call /// The id of the SignatureRequest to release. + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestReleaseHold(string signatureRequestId, int operationIndex = 0); + SignatureRequestGetResponse SignatureRequestReleaseHold(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Release On-Hold Signature Request @@ -417,9 +436,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestReleaseHoldExample.cs /// Thrown when fails to make API call /// The id of the SignatureRequest to release. + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestReleaseHoldWithHttpInfo(string signatureRequestId, int operationIndex = 0); + ApiResponse SignatureRequestReleaseHoldWithHttpInfo(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Send Request Reminder /// @@ -430,9 +450,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to send a reminder for. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestRemind(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0); + SignatureRequestGetResponse SignatureRequestRemind(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Send Request Reminder @@ -444,9 +465,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to send a reminder for. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestRemindWithHttpInfo(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0); + ApiResponse SignatureRequestRemindWithHttpInfo(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Remove Signature Request Access /// @@ -456,9 +478,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestRemoveExample.cs /// Thrown when fails to make API call /// The id of the SignatureRequest to remove. + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// - void SignatureRequestRemove(string signatureRequestId, int operationIndex = 0); + void SignatureRequestRemove(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Remove Signature Request Access @@ -469,9 +492,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestRemoveExample.cs /// Thrown when fails to make API call /// The id of the SignatureRequest to remove. + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse SignatureRequestRemoveWithHttpInfo(string signatureRequestId, int operationIndex = 0); + ApiResponse SignatureRequestRemoveWithHttpInfo(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Send Signature Request /// @@ -481,9 +505,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestSendExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestSend(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0); + SignatureRequestGetResponse SignatureRequestSend(SignatureRequestSendRequest signatureRequestSendRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Send Signature Request @@ -494,9 +519,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestSendExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestSendWithHttpInfo(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0); + ApiResponse SignatureRequestSendWithHttpInfo(SignatureRequestSendRequest signatureRequestSendRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Send with Template /// @@ -506,9 +532,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestSendWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestSendWithTemplate(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0); + SignatureRequestGetResponse SignatureRequestSendWithTemplate(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Send with Template @@ -519,9 +546,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestSendWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestSendWithTemplateWithHttpInfo(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0); + ApiResponse SignatureRequestSendWithTemplateWithHttpInfo(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Update Signature Request /// @@ -532,9 +560,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to update. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestUpdate(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0); + SignatureRequestGetResponse SignatureRequestUpdate(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Update Signature Request @@ -546,9 +575,10 @@ public interface ISignatureRequestApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to update. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestUpdateWithHttpInfo(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0); + ApiResponse SignatureRequestUpdateWithHttpInfo(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); #endregion Synchronous Operations } @@ -567,10 +597,11 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of BulkSendJobSendResponse - System.Threading.Tasks.Task SignatureRequestBulkCreateEmbeddedWithTemplateAsync(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestBulkCreateEmbeddedWithTemplateAsync(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Embedded Bulk Send with Template @@ -581,10 +612,11 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (BulkSendJobSendResponse) - System.Threading.Tasks.Task> SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfoAsync(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfoAsync(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Bulk Send with Template /// @@ -594,10 +626,11 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of BulkSendJobSendResponse - System.Threading.Tasks.Task SignatureRequestBulkSendWithTemplateAsync(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestBulkSendWithTemplateAsync(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Bulk Send with Template @@ -608,10 +641,11 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (BulkSendJobSendResponse) - System.Threading.Tasks.Task> SignatureRequestBulkSendWithTemplateWithHttpInfoAsync(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestBulkSendWithTemplateWithHttpInfoAsync(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Cancel Incomplete Signature Request /// @@ -621,10 +655,11 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCancelExample.cs /// Thrown when fails to make API call /// The id of the incomplete SignatureRequest to cancel. + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task SignatureRequestCancelAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestCancelAsync(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Cancel Incomplete Signature Request @@ -635,10 +670,11 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCancelExample.cs /// Thrown when fails to make API call /// The id of the incomplete SignatureRequest to cancel. + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> SignatureRequestCancelWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestCancelWithHttpInfoAsync(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Embedded Signature Request /// @@ -648,10 +684,11 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCreateEmbeddedExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestCreateEmbeddedAsync(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestCreateEmbeddedAsync(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Embedded Signature Request @@ -662,10 +699,11 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCreateEmbeddedExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithHttpInfoAsync(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithHttpInfoAsync(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Embedded Signature Request with Template /// @@ -675,10 +713,11 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestCreateEmbeddedWithTemplateAsync(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestCreateEmbeddedWithTemplateAsync(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Embedded Signature Request with Template @@ -689,10 +728,11 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithTemplateWithHttpInfoAsync(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithTemplateWithHttpInfoAsync(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Edit Signature Request /// @@ -703,10 +743,11 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestEditAsync(string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestEditAsync(string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Edit Signature Request @@ -718,10 +759,11 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestEditWithHttpInfoAsync(string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestEditWithHttpInfoAsync(string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Edit Embedded Signature Request /// @@ -732,10 +774,11 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestEditEmbeddedAsync(string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestEditEmbeddedAsync(string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Edit Embedded Signature Request @@ -747,10 +790,11 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestEditEmbeddedWithHttpInfoAsync(string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestEditEmbeddedWithHttpInfoAsync(string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Edit Embedded Signature Request with Template /// @@ -761,10 +805,11 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestEditEmbeddedWithTemplateAsync(string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestEditEmbeddedWithTemplateAsync(string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Edit Embedded Signature Request with Template @@ -776,10 +821,11 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestEditEmbeddedWithTemplateWithHttpInfoAsync(string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestEditEmbeddedWithTemplateWithHttpInfoAsync(string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Edit Signature Request With Template /// @@ -790,10 +836,11 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestEditWithTemplateAsync(string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestEditWithTemplateAsync(string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Edit Signature Request With Template @@ -805,10 +852,11 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestEditWithTemplateWithHttpInfoAsync(string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestEditWithTemplateWithHttpInfoAsync(string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Download Files /// @@ -963,10 +1011,11 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestReleaseHoldExample.cs /// Thrown when fails to make API call /// The id of the SignatureRequest to release. + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestReleaseHoldAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestReleaseHoldAsync(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Release On-Hold Signature Request @@ -977,10 +1026,11 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestReleaseHoldExample.cs /// Thrown when fails to make API call /// The id of the SignatureRequest to release. + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestReleaseHoldWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestReleaseHoldWithHttpInfoAsync(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Send Request Reminder /// @@ -991,10 +1041,11 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to send a reminder for. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestRemindAsync(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestRemindAsync(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Send Request Reminder @@ -1006,10 +1057,11 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to send a reminder for. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestRemindWithHttpInfoAsync(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestRemindWithHttpInfoAsync(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Remove Signature Request Access /// @@ -1019,10 +1071,11 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestRemoveExample.cs /// Thrown when fails to make API call /// The id of the SignatureRequest to remove. + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task SignatureRequestRemoveAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestRemoveAsync(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Remove Signature Request Access @@ -1033,10 +1086,11 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestRemoveExample.cs /// Thrown when fails to make API call /// The id of the SignatureRequest to remove. + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> SignatureRequestRemoveWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestRemoveWithHttpInfoAsync(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Send Signature Request /// @@ -1046,10 +1100,11 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestSendExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestSendAsync(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestSendAsync(SignatureRequestSendRequest signatureRequestSendRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Send Signature Request @@ -1060,10 +1115,11 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestSendExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestSendWithHttpInfoAsync(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestSendWithHttpInfoAsync(SignatureRequestSendRequest signatureRequestSendRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Send with Template /// @@ -1073,10 +1129,11 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestSendWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestSendWithTemplateAsync(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestSendWithTemplateAsync(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Send with Template @@ -1087,10 +1144,11 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestSendWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestSendWithTemplateWithHttpInfoAsync(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestSendWithTemplateWithHttpInfoAsync(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update Signature Request /// @@ -1101,10 +1159,11 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to update. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestUpdateAsync(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestUpdateAsync(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update Signature Request @@ -1116,10 +1175,11 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to update. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestUpdateWithHttpInfoAsync(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestUpdateWithHttpInfoAsync(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -1246,11 +1306,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// BulkSendJobSendResponse - public BulkSendJobSendResponse SignatureRequestBulkCreateEmbeddedWithTemplate(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0) + public BulkSendJobSendResponse SignatureRequestBulkCreateEmbeddedWithTemplate(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestBulkCreateEmbeddedWithTemplateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestBulkCreateEmbeddedWithTemplateRequest, idempotencyKey); return localVarResponse.Data; } @@ -1260,9 +1321,10 @@ public BulkSendJobSendResponse SignatureRequestBulkCreateEmbeddedWithTemplate(Si /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of BulkSendJobSendResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'signatureRequestBulkCreateEmbeddedWithTemplateRequest' is set if (signatureRequestBulkCreateEmbeddedWithTemplateRequest == null) @@ -1301,6 +1363,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestBulkCreateEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1332,12 +1398,13 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of BulkSendJobSendResponse - public async System.Threading.Tasks.Task SignatureRequestBulkCreateEmbeddedWithTemplateAsync(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestBulkCreateEmbeddedWithTemplateAsync(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfoAsync(signatureRequestBulkCreateEmbeddedWithTemplateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfoAsync(signatureRequestBulkCreateEmbeddedWithTemplateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1347,10 +1414,11 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (BulkSendJobSendResponse) - public async System.Threading.Tasks.Task> SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfoAsync(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfoAsync(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestBulkCreateEmbeddedWithTemplateRequest' is set if (signatureRequestBulkCreateEmbeddedWithTemplateRequest == null) @@ -1390,6 +1458,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestBulkCreateEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1422,11 +1494,12 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// BulkSendJobSendResponse - public BulkSendJobSendResponse SignatureRequestBulkSendWithTemplate(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0) + public BulkSendJobSendResponse SignatureRequestBulkSendWithTemplate(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestBulkSendWithTemplateWithHttpInfo(signatureRequestBulkSendWithTemplateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestBulkSendWithTemplateWithHttpInfo(signatureRequestBulkSendWithTemplateRequest, idempotencyKey); return localVarResponse.Data; } @@ -1436,9 +1509,10 @@ public BulkSendJobSendResponse SignatureRequestBulkSendWithTemplate(SignatureReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of BulkSendJobSendResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestBulkSendWithTemplateWithHttpInfo(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestBulkSendWithTemplateWithHttpInfo(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'signatureRequestBulkSendWithTemplateRequest' is set if (signatureRequestBulkSendWithTemplateRequest == null) @@ -1477,6 +1551,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestBulkSendWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1514,12 +1592,13 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of BulkSendJobSendResponse - public async System.Threading.Tasks.Task SignatureRequestBulkSendWithTemplateAsync(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestBulkSendWithTemplateAsync(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestBulkSendWithTemplateWithHttpInfoAsync(signatureRequestBulkSendWithTemplateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestBulkSendWithTemplateWithHttpInfoAsync(signatureRequestBulkSendWithTemplateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1529,10 +1608,11 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (BulkSendJobSendResponse) - public async System.Threading.Tasks.Task> SignatureRequestBulkSendWithTemplateWithHttpInfoAsync(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestBulkSendWithTemplateWithHttpInfoAsync(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestBulkSendWithTemplateRequest' is set if (signatureRequestBulkSendWithTemplateRequest == null) @@ -1572,6 +1652,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestBulkSendWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1610,11 +1694,12 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequest /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCancelExample.cs /// Thrown when fails to make API call /// The id of the incomplete SignatureRequest to cancel. + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// - public void SignatureRequestCancel(string signatureRequestId, int operationIndex = 0) + public void SignatureRequestCancel(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0) { - SignatureRequestCancelWithHttpInfo(signatureRequestId); + SignatureRequestCancelWithHttpInfo(signatureRequestId, idempotencyKey); } /// @@ -1623,9 +1708,10 @@ public void SignatureRequestCancel(string signatureRequestId, int operationIndex /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCancelExample.cs /// Thrown when fails to make API call /// The id of the incomplete SignatureRequest to cancel. + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Dropbox.Sign.Client.ApiResponse SignatureRequestCancelWithHttpInfo(string signatureRequestId, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestCancelWithHttpInfo(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -1656,6 +1742,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestCancelWithHttpInf } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestCancel"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1693,12 +1783,13 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestCancelWithHttpInf /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCancelExample.cs /// Thrown when fails to make API call /// The id of the incomplete SignatureRequest to cancel. + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task SignatureRequestCancelAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestCancelAsync(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - await SignatureRequestCancelWithHttpInfoAsync(signatureRequestId, operationIndex, cancellationToken).ConfigureAwait(false); + await SignatureRequestCancelWithHttpInfoAsync(signatureRequestId, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); } /// @@ -1707,10 +1798,11 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestCancelWithHttpInf /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCancelExample.cs /// Thrown when fails to make API call /// The id of the incomplete SignatureRequest to cancel. + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> SignatureRequestCancelWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestCancelWithHttpInfoAsync(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -1742,6 +1834,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestCancelWithHttpInf } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestCancel"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1780,11 +1876,12 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestCancelWithHttpInf /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCreateEmbeddedExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestCreateEmbedded(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0) + public SignatureRequestGetResponse SignatureRequestCreateEmbedded(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestCreateEmbeddedWithHttpInfo(signatureRequestCreateEmbeddedRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestCreateEmbeddedWithHttpInfo(signatureRequestCreateEmbeddedRequest, idempotencyKey); return localVarResponse.Data; } @@ -1794,9 +1891,10 @@ public SignatureRequestGetResponse SignatureRequestCreateEmbedded(SignatureReque /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCreateEmbeddedExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestCreateEmbeddedWithHttpInfo(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestCreateEmbeddedWithHttpInfo(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'signatureRequestCreateEmbeddedRequest' is set if (signatureRequestCreateEmbeddedRequest == null) @@ -1835,6 +1933,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestCreateEmbedded"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1872,12 +1974,13 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCreateEmbeddedExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestCreateEmbeddedAsync(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestCreateEmbeddedAsync(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestCreateEmbeddedWithHttpInfoAsync(signatureRequestCreateEmbeddedRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestCreateEmbeddedWithHttpInfoAsync(signatureRequestCreateEmbeddedRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1887,10 +1990,11 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCreateEmbeddedExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithHttpInfoAsync(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithHttpInfoAsync(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestCreateEmbeddedRequest' is set if (signatureRequestCreateEmbeddedRequest == null) @@ -1930,6 +2034,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestCreateEmbedded"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1968,11 +2076,12 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestCreateEmbeddedWithTemplate(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0) + public SignatureRequestGetResponse SignatureRequestCreateEmbeddedWithTemplate(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestCreateEmbeddedWithTemplateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestCreateEmbeddedWithTemplateRequest, idempotencyKey); return localVarResponse.Data; } @@ -1982,9 +2091,10 @@ public SignatureRequestGetResponse SignatureRequestCreateEmbeddedWithTemplate(Si /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'signatureRequestCreateEmbeddedWithTemplateRequest' is set if (signatureRequestCreateEmbeddedWithTemplateRequest == null) @@ -2023,6 +2133,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestCreateEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2060,12 +2174,13 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestCreateEmbeddedWithTemplateAsync(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestCreateEmbeddedWithTemplateAsync(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestCreateEmbeddedWithTemplateWithHttpInfoAsync(signatureRequestCreateEmbeddedWithTemplateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestCreateEmbeddedWithTemplateWithHttpInfoAsync(signatureRequestCreateEmbeddedWithTemplateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2075,10 +2190,11 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithTemplateWithHttpInfoAsync(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithTemplateWithHttpInfoAsync(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestCreateEmbeddedWithTemplateRequest' is set if (signatureRequestCreateEmbeddedWithTemplateRequest == null) @@ -2118,6 +2234,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestCreateEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2157,11 +2277,12 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestEdit(string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, int operationIndex = 0) + public SignatureRequestGetResponse SignatureRequestEdit(string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestEditWithHttpInfo(signatureRequestId, signatureRequestEditRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestEditWithHttpInfo(signatureRequestId, signatureRequestEditRequest, idempotencyKey); return localVarResponse.Data; } @@ -2172,9 +2293,10 @@ public SignatureRequestGetResponse SignatureRequestEdit(string signatureRequestI /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestEditWithHttpInfo(string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestEditWithHttpInfo(string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -2220,6 +2342,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestEdit"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2258,12 +2384,13 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestEditAsync(string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestEditAsync(string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestEditWithHttpInfoAsync(signatureRequestId, signatureRequestEditRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestEditWithHttpInfoAsync(signatureRequestId, signatureRequestEditRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2274,10 +2401,11 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestEditWithHttpInfoAsync(string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestEditWithHttpInfoAsync(string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -2324,6 +2452,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestEdit"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2363,11 +2495,12 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestEditEmbedded(string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, int operationIndex = 0) + public SignatureRequestGetResponse SignatureRequestEditEmbedded(string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestEditEmbeddedWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestEditEmbeddedWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedRequest, idempotencyKey); return localVarResponse.Data; } @@ -2378,9 +2511,10 @@ public SignatureRequestGetResponse SignatureRequestEditEmbedded(string signature /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestEditEmbeddedWithHttpInfo(string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestEditEmbeddedWithHttpInfo(string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -2426,6 +2560,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestEditEmbedded"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2464,12 +2602,13 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestEditEmbeddedAsync(string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestEditEmbeddedAsync(string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestEditEmbeddedWithHttpInfoAsync(signatureRequestId, signatureRequestEditEmbeddedRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestEditEmbeddedWithHttpInfoAsync(signatureRequestId, signatureRequestEditEmbeddedRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2480,10 +2619,11 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestEditEmbeddedWithHttpInfoAsync(string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestEditEmbeddedWithHttpInfoAsync(string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -2530,6 +2670,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestEditEmbedded"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2569,11 +2713,12 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestEditEmbeddedWithTemplate(string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, int operationIndex = 0) + public SignatureRequestGetResponse SignatureRequestEditEmbeddedWithTemplate(string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestEditEmbeddedWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestEditEmbeddedWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest, idempotencyKey); return localVarResponse.Data; } @@ -2584,9 +2729,10 @@ public SignatureRequestGetResponse SignatureRequestEditEmbeddedWithTemplate(stri /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestEditEmbeddedWithTemplateWithHttpInfo(string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestEditEmbeddedWithTemplateWithHttpInfo(string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -2632,6 +2778,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestEditEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2670,12 +2820,13 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestEditEmbeddedWithTemplateAsync(string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestEditEmbeddedWithTemplateAsync(string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestEditEmbeddedWithTemplateWithHttpInfoAsync(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestEditEmbeddedWithTemplateWithHttpInfoAsync(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2686,10 +2837,11 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestEditEmbeddedWithTemplateWithHttpInfoAsync(string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestEditEmbeddedWithTemplateWithHttpInfoAsync(string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -2736,6 +2888,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestEditEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2775,11 +2931,12 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestEditWithTemplate(string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, int operationIndex = 0) + public SignatureRequestGetResponse SignatureRequestEditWithTemplate(string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestEditWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditWithTemplateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestEditWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditWithTemplateRequest, idempotencyKey); return localVarResponse.Data; } @@ -2790,9 +2947,10 @@ public SignatureRequestGetResponse SignatureRequestEditWithTemplate(string signa /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestEditWithTemplateWithHttpInfo(string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestEditWithTemplateWithHttpInfo(string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -2838,6 +2996,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestEditWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2876,12 +3038,13 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestEditWithTemplateAsync(string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestEditWithTemplateAsync(string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestEditWithTemplateWithHttpInfoAsync(signatureRequestId, signatureRequestEditWithTemplateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestEditWithTemplateWithHttpInfoAsync(signatureRequestId, signatureRequestEditWithTemplateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2892,10 +3055,11 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestEditWithTemplateWithHttpInfoAsync(string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestEditWithTemplateWithHttpInfoAsync(string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -2942,6 +3106,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestEditWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -3898,11 +4066,12 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestReleaseHoldExample.cs /// Thrown when fails to make API call /// The id of the SignatureRequest to release. + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestReleaseHold(string signatureRequestId, int operationIndex = 0) + public SignatureRequestGetResponse SignatureRequestReleaseHold(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestReleaseHoldWithHttpInfo(signatureRequestId); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestReleaseHoldWithHttpInfo(signatureRequestId, idempotencyKey); return localVarResponse.Data; } @@ -3912,9 +4081,10 @@ public SignatureRequestGetResponse SignatureRequestReleaseHold(string signatureR /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestReleaseHoldExample.cs /// Thrown when fails to make API call /// The id of the SignatureRequest to release. + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestReleaseHoldWithHttpInfo(string signatureRequestId, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestReleaseHoldWithHttpInfo(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -3945,6 +4115,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestReleaseHold"; localVarRequestOptions.OperationIndex = operationIndex; @@ -3982,12 +4156,13 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestReleaseHoldExample.cs /// Thrown when fails to make API call /// The id of the SignatureRequest to release. + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestReleaseHoldAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestReleaseHoldAsync(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestReleaseHoldWithHttpInfoAsync(signatureRequestId, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestReleaseHoldWithHttpInfoAsync(signatureRequestId, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -3997,10 +4172,11 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestReleaseHoldExample.cs /// Thrown when fails to make API call /// The id of the SignatureRequest to release. + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestReleaseHoldWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestReleaseHoldWithHttpInfoAsync(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -4032,6 +4208,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestReleaseHold"; localVarRequestOptions.OperationIndex = operationIndex; @@ -4071,11 +4251,12 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Thrown when fails to make API call /// The id of the SignatureRequest to send a reminder for. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestRemind(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0) + public SignatureRequestGetResponse SignatureRequestRemind(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestRemindWithHttpInfo(signatureRequestId, signatureRequestRemindRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestRemindWithHttpInfo(signatureRequestId, signatureRequestRemindRequest, idempotencyKey); return localVarResponse.Data; } @@ -4086,9 +4267,10 @@ public SignatureRequestGetResponse SignatureRequestRemind(string signatureReques /// Thrown when fails to make API call /// The id of the SignatureRequest to send a reminder for. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestRemindWithHttpInfo(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestRemindWithHttpInfo(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -4134,6 +4316,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestRemind"; localVarRequestOptions.OperationIndex = operationIndex; @@ -4172,12 +4358,13 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Thrown when fails to make API call /// The id of the SignatureRequest to send a reminder for. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestRemindAsync(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestRemindAsync(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestRemindWithHttpInfoAsync(signatureRequestId, signatureRequestRemindRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestRemindWithHttpInfoAsync(signatureRequestId, signatureRequestRemindRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -4188,10 +4375,11 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Thrown when fails to make API call /// The id of the SignatureRequest to send a reminder for. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestRemindWithHttpInfoAsync(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestRemindWithHttpInfoAsync(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -4238,6 +4426,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestRemind"; localVarRequestOptions.OperationIndex = operationIndex; @@ -4276,11 +4468,12 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestRemoveExample.cs /// Thrown when fails to make API call /// The id of the SignatureRequest to remove. + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// - public void SignatureRequestRemove(string signatureRequestId, int operationIndex = 0) + public void SignatureRequestRemove(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0) { - SignatureRequestRemoveWithHttpInfo(signatureRequestId); + SignatureRequestRemoveWithHttpInfo(signatureRequestId, idempotencyKey); } /// @@ -4289,9 +4482,10 @@ public void SignatureRequestRemove(string signatureRequestId, int operationIndex /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestRemoveExample.cs /// Thrown when fails to make API call /// The id of the SignatureRequest to remove. + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Dropbox.Sign.Client.ApiResponse SignatureRequestRemoveWithHttpInfo(string signatureRequestId, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestRemoveWithHttpInfo(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -4322,6 +4516,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestRemoveWithHttpInf } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestRemove"; localVarRequestOptions.OperationIndex = operationIndex; @@ -4353,12 +4551,13 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestRemoveWithHttpInf /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestRemoveExample.cs /// Thrown when fails to make API call /// The id of the SignatureRequest to remove. + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task SignatureRequestRemoveAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestRemoveAsync(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - await SignatureRequestRemoveWithHttpInfoAsync(signatureRequestId, operationIndex, cancellationToken).ConfigureAwait(false); + await SignatureRequestRemoveWithHttpInfoAsync(signatureRequestId, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); } /// @@ -4367,10 +4566,11 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestRemoveWithHttpInf /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestRemoveExample.cs /// Thrown when fails to make API call /// The id of the SignatureRequest to remove. + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> SignatureRequestRemoveWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestRemoveWithHttpInfoAsync(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -4402,6 +4602,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestRemoveWithHttpInf } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestRemove"; localVarRequestOptions.OperationIndex = operationIndex; @@ -4434,11 +4638,12 @@ public Dropbox.Sign.Client.ApiResponse SignatureRequestRemoveWithHttpInf /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestSendExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestSend(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0) + public SignatureRequestGetResponse SignatureRequestSend(SignatureRequestSendRequest signatureRequestSendRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestSendWithHttpInfo(signatureRequestSendRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestSendWithHttpInfo(signatureRequestSendRequest, idempotencyKey); return localVarResponse.Data; } @@ -4448,9 +4653,10 @@ public SignatureRequestGetResponse SignatureRequestSend(SignatureRequestSendRequ /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestSendExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestSendWithHttpInfo(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestSendWithHttpInfo(SignatureRequestSendRequest signatureRequestSendRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'signatureRequestSendRequest' is set if (signatureRequestSendRequest == null) @@ -4489,6 +4695,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestSend"; localVarRequestOptions.OperationIndex = operationIndex; @@ -4526,12 +4736,13 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestSendExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestSendAsync(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestSendAsync(SignatureRequestSendRequest signatureRequestSendRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestSendWithHttpInfoAsync(signatureRequestSendRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestSendWithHttpInfoAsync(signatureRequestSendRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -4541,10 +4752,11 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestSendExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestSendWithHttpInfoAsync(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestSendWithHttpInfoAsync(SignatureRequestSendRequest signatureRequestSendRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestSendRequest' is set if (signatureRequestSendRequest == null) @@ -4584,6 +4796,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestSend"; localVarRequestOptions.OperationIndex = operationIndex; @@ -4622,11 +4838,12 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestSendWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestSendWithTemplate(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0) + public SignatureRequestGetResponse SignatureRequestSendWithTemplate(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestSendWithTemplateWithHttpInfo(signatureRequestSendWithTemplateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestSendWithTemplateWithHttpInfo(signatureRequestSendWithTemplateRequest, idempotencyKey); return localVarResponse.Data; } @@ -4636,9 +4853,10 @@ public SignatureRequestGetResponse SignatureRequestSendWithTemplate(SignatureReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestSendWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestSendWithTemplateWithHttpInfo(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestSendWithTemplateWithHttpInfo(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'signatureRequestSendWithTemplateRequest' is set if (signatureRequestSendWithTemplateRequest == null) @@ -4677,6 +4895,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestSendWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -4714,12 +4936,13 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestSendWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestSendWithTemplateAsync(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestSendWithTemplateAsync(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestSendWithTemplateWithHttpInfoAsync(signatureRequestSendWithTemplateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestSendWithTemplateWithHttpInfoAsync(signatureRequestSendWithTemplateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -4729,10 +4952,11 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestSendWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestSendWithTemplateWithHttpInfoAsync(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestSendWithTemplateWithHttpInfoAsync(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestSendWithTemplateRequest' is set if (signatureRequestSendWithTemplateRequest == null) @@ -4772,6 +4996,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestSendWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -4811,11 +5039,12 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Thrown when fails to make API call /// The id of the SignatureRequest to update. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestUpdate(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0) + public SignatureRequestGetResponse SignatureRequestUpdate(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestUpdateWithHttpInfo(signatureRequestId, signatureRequestUpdateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestUpdateWithHttpInfo(signatureRequestId, signatureRequestUpdateRequest, idempotencyKey); return localVarResponse.Data; } @@ -4826,9 +5055,10 @@ public SignatureRequestGetResponse SignatureRequestUpdate(string signatureReques /// Thrown when fails to make API call /// The id of the SignatureRequest to update. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestUpdateWithHttpInfo(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestUpdateWithHttpInfo(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -4874,6 +5104,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestUpdate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -4912,12 +5146,13 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Thrown when fails to make API call /// The id of the SignatureRequest to update. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestUpdateAsync(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestUpdateAsync(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestUpdateWithHttpInfoAsync(signatureRequestId, signatureRequestUpdateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestUpdateWithHttpInfoAsync(signatureRequestId, signatureRequestUpdateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -4928,10 +5163,11 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Thrown when fails to make API call /// The id of the SignatureRequest to update. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestUpdateWithHttpInfoAsync(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestUpdateWithHttpInfoAsync(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -4978,6 +5214,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestUpdate"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/TeamApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/TeamApi.cs index fd94530dd..9d1293378 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/TeamApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/TeamApi.cs @@ -37,9 +37,10 @@ public interface ITeamApiSync : IApiAccessor /// Thrown when fails to make API call /// /// The id of the team. (optional) + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TeamGetResponse - TeamGetResponse TeamAddMember(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0); + TeamGetResponse TeamAddMember(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Add User to Team @@ -51,9 +52,10 @@ public interface ITeamApiSync : IApiAccessor /// Thrown when fails to make API call /// /// The id of the team. (optional) + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TeamGetResponse - ApiResponse TeamAddMemberWithHttpInfo(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0); + ApiResponse TeamAddMemberWithHttpInfo(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Create Team /// @@ -63,9 +65,10 @@ public interface ITeamApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TeamGetResponse - TeamGetResponse TeamCreate(TeamCreateRequest teamCreateRequest, int operationIndex = 0); + TeamGetResponse TeamCreate(TeamCreateRequest teamCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Create Team @@ -76,9 +79,10 @@ public interface ITeamApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TeamGetResponse - ApiResponse TeamCreateWithHttpInfo(TeamCreateRequest teamCreateRequest, int operationIndex = 0); + ApiResponse TeamCreateWithHttpInfo(TeamCreateRequest teamCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Delete Team /// @@ -213,9 +217,10 @@ public interface ITeamApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamRemoveMemberExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TeamGetResponse - TeamGetResponse TeamRemoveMember(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0); + TeamGetResponse TeamRemoveMember(TeamRemoveMemberRequest teamRemoveMemberRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Remove User from Team @@ -226,9 +231,10 @@ public interface ITeamApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamRemoveMemberExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TeamGetResponse - ApiResponse TeamRemoveMemberWithHttpInfo(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0); + ApiResponse TeamRemoveMemberWithHttpInfo(TeamRemoveMemberRequest teamRemoveMemberRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// List Sub Teams /// @@ -267,9 +273,10 @@ public interface ITeamApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamUpdateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TeamGetResponse - TeamGetResponse TeamUpdate(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0); + TeamGetResponse TeamUpdate(TeamUpdateRequest teamUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Update Team @@ -280,9 +287,10 @@ public interface ITeamApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamUpdateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TeamGetResponse - ApiResponse TeamUpdateWithHttpInfo(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0); + ApiResponse TeamUpdateWithHttpInfo(TeamUpdateRequest teamUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); #endregion Synchronous Operations } @@ -302,10 +310,11 @@ public interface ITeamApiAsync : IApiAccessor /// Thrown when fails to make API call /// /// The id of the team. (optional) + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - System.Threading.Tasks.Task TeamAddMemberAsync(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TeamAddMemberAsync(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Add User to Team @@ -317,10 +326,11 @@ public interface ITeamApiAsync : IApiAccessor /// Thrown when fails to make API call /// /// The id of the team. (optional) + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - System.Threading.Tasks.Task> TeamAddMemberWithHttpInfoAsync(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TeamAddMemberWithHttpInfoAsync(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Team /// @@ -330,10 +340,11 @@ public interface ITeamApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - System.Threading.Tasks.Task TeamCreateAsync(TeamCreateRequest teamCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TeamCreateAsync(TeamCreateRequest teamCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Team @@ -344,10 +355,11 @@ public interface ITeamApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - System.Threading.Tasks.Task> TeamCreateWithHttpInfoAsync(TeamCreateRequest teamCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TeamCreateWithHttpInfoAsync(TeamCreateRequest teamCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Delete Team /// @@ -492,10 +504,11 @@ public interface ITeamApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamRemoveMemberExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - System.Threading.Tasks.Task TeamRemoveMemberAsync(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TeamRemoveMemberAsync(TeamRemoveMemberRequest teamRemoveMemberRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Remove User from Team @@ -506,10 +519,11 @@ public interface ITeamApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamRemoveMemberExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - System.Threading.Tasks.Task> TeamRemoveMemberWithHttpInfoAsync(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TeamRemoveMemberWithHttpInfoAsync(TeamRemoveMemberRequest teamRemoveMemberRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// List Sub Teams /// @@ -550,10 +564,11 @@ public interface ITeamApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamUpdateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - System.Threading.Tasks.Task TeamUpdateAsync(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TeamUpdateAsync(TeamUpdateRequest teamUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update Team @@ -564,10 +579,11 @@ public interface ITeamApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamUpdateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - System.Threading.Tasks.Task> TeamUpdateWithHttpInfoAsync(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TeamUpdateWithHttpInfoAsync(TeamUpdateRequest teamUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -695,11 +711,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// /// The id of the team. (optional) + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TeamGetResponse - public TeamGetResponse TeamAddMember(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0) + public TeamGetResponse TeamAddMember(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TeamAddMemberWithHttpInfo(teamAddMemberRequest, teamId); + Dropbox.Sign.Client.ApiResponse localVarResponse = TeamAddMemberWithHttpInfo(teamAddMemberRequest, teamId, idempotencyKey); return localVarResponse.Data; } @@ -710,9 +727,10 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// /// The id of the team. (optional) + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TeamGetResponse - public Dropbox.Sign.Client.ApiResponse TeamAddMemberWithHttpInfo(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TeamAddMemberWithHttpInfo(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'teamAddMemberRequest' is set if (teamAddMemberRequest == null) @@ -755,6 +773,10 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "team_id", teamId)); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "TeamApi.TeamAddMember"; localVarRequestOptions.OperationIndex = operationIndex; @@ -793,12 +815,13 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// /// The id of the team. (optional) + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - public async System.Threading.Tasks.Task TeamAddMemberAsync(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TeamAddMemberAsync(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamAddMemberWithHttpInfoAsync(teamAddMemberRequest, teamId, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamAddMemberWithHttpInfoAsync(teamAddMemberRequest, teamId, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -809,10 +832,11 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// /// The id of the team. (optional) + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - public async System.Threading.Tasks.Task> TeamAddMemberWithHttpInfoAsync(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TeamAddMemberWithHttpInfoAsync(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'teamAddMemberRequest' is set if (teamAddMemberRequest == null) @@ -856,6 +880,10 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "team_id", teamId)); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "TeamApi.TeamAddMember"; localVarRequestOptions.OperationIndex = operationIndex; @@ -894,11 +922,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TeamGetResponse - public TeamGetResponse TeamCreate(TeamCreateRequest teamCreateRequest, int operationIndex = 0) + public TeamGetResponse TeamCreate(TeamCreateRequest teamCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TeamCreateWithHttpInfo(teamCreateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = TeamCreateWithHttpInfo(teamCreateRequest, idempotencyKey); return localVarResponse.Data; } @@ -908,9 +937,10 @@ public TeamGetResponse TeamCreate(TeamCreateRequest teamCreateRequest, int opera /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TeamGetResponse - public Dropbox.Sign.Client.ApiResponse TeamCreateWithHttpInfo(TeamCreateRequest teamCreateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TeamCreateWithHttpInfo(TeamCreateRequest teamCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'teamCreateRequest' is set if (teamCreateRequest == null) @@ -949,6 +979,10 @@ public Dropbox.Sign.Client.ApiResponse TeamCreateWithHttpInfo(T localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "TeamApi.TeamCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -986,12 +1020,13 @@ public Dropbox.Sign.Client.ApiResponse TeamCreateWithHttpInfo(T /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - public async System.Threading.Tasks.Task TeamCreateAsync(TeamCreateRequest teamCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TeamCreateAsync(TeamCreateRequest teamCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamCreateWithHttpInfoAsync(teamCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamCreateWithHttpInfoAsync(teamCreateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1001,10 +1036,11 @@ public Dropbox.Sign.Client.ApiResponse TeamCreateWithHttpInfo(T /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - public async System.Threading.Tasks.Task> TeamCreateWithHttpInfoAsync(TeamCreateRequest teamCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TeamCreateWithHttpInfoAsync(TeamCreateRequest teamCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'teamCreateRequest' is set if (teamCreateRequest == null) @@ -1044,6 +1080,10 @@ public Dropbox.Sign.Client.ApiResponse TeamCreateWithHttpInfo(T localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "TeamApi.TeamCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1916,11 +1956,12 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamRemoveMemberExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TeamGetResponse - public TeamGetResponse TeamRemoveMember(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0) + public TeamGetResponse TeamRemoveMember(TeamRemoveMemberRequest teamRemoveMemberRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TeamRemoveMemberWithHttpInfo(teamRemoveMemberRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = TeamRemoveMemberWithHttpInfo(teamRemoveMemberRequest, idempotencyKey); return localVarResponse.Data; } @@ -1930,9 +1971,10 @@ public TeamGetResponse TeamRemoveMember(TeamRemoveMemberRequest teamRemoveMember /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamRemoveMemberExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TeamGetResponse - public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttpInfo(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttpInfo(TeamRemoveMemberRequest teamRemoveMemberRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'teamRemoveMemberRequest' is set if (teamRemoveMemberRequest == null) @@ -1971,6 +2013,10 @@ public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttp localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "TeamApi.TeamRemoveMember"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2008,12 +2054,13 @@ public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttp /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamRemoveMemberExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - public async System.Threading.Tasks.Task TeamRemoveMemberAsync(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TeamRemoveMemberAsync(TeamRemoveMemberRequest teamRemoveMemberRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamRemoveMemberWithHttpInfoAsync(teamRemoveMemberRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamRemoveMemberWithHttpInfoAsync(teamRemoveMemberRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2023,10 +2070,11 @@ public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttp /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamRemoveMemberExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - public async System.Threading.Tasks.Task> TeamRemoveMemberWithHttpInfoAsync(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TeamRemoveMemberWithHttpInfoAsync(TeamRemoveMemberRequest teamRemoveMemberRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'teamRemoveMemberRequest' is set if (teamRemoveMemberRequest == null) @@ -2066,6 +2114,10 @@ public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttp localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "TeamApi.TeamRemoveMember"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2300,11 +2352,12 @@ public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttp /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamUpdateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TeamGetResponse - public TeamGetResponse TeamUpdate(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0) + public TeamGetResponse TeamUpdate(TeamUpdateRequest teamUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TeamUpdateWithHttpInfo(teamUpdateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = TeamUpdateWithHttpInfo(teamUpdateRequest, idempotencyKey); return localVarResponse.Data; } @@ -2314,9 +2367,10 @@ public TeamGetResponse TeamUpdate(TeamUpdateRequest teamUpdateRequest, int opera /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamUpdateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TeamGetResponse - public Dropbox.Sign.Client.ApiResponse TeamUpdateWithHttpInfo(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TeamUpdateWithHttpInfo(TeamUpdateRequest teamUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'teamUpdateRequest' is set if (teamUpdateRequest == null) @@ -2355,6 +2409,10 @@ public Dropbox.Sign.Client.ApiResponse TeamUpdateWithHttpInfo(T localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "TeamApi.TeamUpdate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2392,12 +2450,13 @@ public Dropbox.Sign.Client.ApiResponse TeamUpdateWithHttpInfo(T /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamUpdateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - public async System.Threading.Tasks.Task TeamUpdateAsync(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TeamUpdateAsync(TeamUpdateRequest teamUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamUpdateWithHttpInfoAsync(teamUpdateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamUpdateWithHttpInfoAsync(teamUpdateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2407,10 +2466,11 @@ public Dropbox.Sign.Client.ApiResponse TeamUpdateWithHttpInfo(T /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamUpdateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - public async System.Threading.Tasks.Task> TeamUpdateWithHttpInfoAsync(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TeamUpdateWithHttpInfoAsync(TeamUpdateRequest teamUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'teamUpdateRequest' is set if (teamUpdateRequest == null) @@ -2450,6 +2510,10 @@ public Dropbox.Sign.Client.ApiResponse TeamUpdateWithHttpInfo(T localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "TeamApi.TeamUpdate"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/TemplateApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/TemplateApi.cs index b80bdffd5..41dfd4f7c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/TemplateApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/TemplateApi.cs @@ -37,9 +37,10 @@ public interface ITemplateApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the Template to give the Account access to. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TemplateGetResponse - TemplateGetResponse TemplateAddUser(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0); + TemplateGetResponse TemplateAddUser(string templateId, TemplateAddUserRequest templateAddUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Add User to Template @@ -51,9 +52,10 @@ public interface ITemplateApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the Template to give the Account access to. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TemplateGetResponse - ApiResponse TemplateAddUserWithHttpInfo(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0); + ApiResponse TemplateAddUserWithHttpInfo(string templateId, TemplateAddUserRequest templateAddUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Create Template /// @@ -63,9 +65,10 @@ public interface ITemplateApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TemplateCreateResponse - TemplateCreateResponse TemplateCreate(TemplateCreateRequest templateCreateRequest, int operationIndex = 0); + TemplateCreateResponse TemplateCreate(TemplateCreateRequest templateCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Create Template @@ -76,9 +79,10 @@ public interface ITemplateApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TemplateCreateResponse - ApiResponse TemplateCreateWithHttpInfo(TemplateCreateRequest templateCreateRequest, int operationIndex = 0); + ApiResponse TemplateCreateWithHttpInfo(TemplateCreateRequest templateCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Create Embedded Template Draft /// @@ -88,9 +92,10 @@ public interface ITemplateApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateCreateEmbeddedDraftExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TemplateCreateEmbeddedDraftResponse - TemplateCreateEmbeddedDraftResponse TemplateCreateEmbeddedDraft(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0); + TemplateCreateEmbeddedDraftResponse TemplateCreateEmbeddedDraft(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Create Embedded Template Draft @@ -101,9 +106,10 @@ public interface ITemplateApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateCreateEmbeddedDraftExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TemplateCreateEmbeddedDraftResponse - ApiResponse TemplateCreateEmbeddedDraftWithHttpInfo(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0); + ApiResponse TemplateCreateEmbeddedDraftWithHttpInfo(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Delete Template /// @@ -113,9 +119,10 @@ public interface ITemplateApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateDeleteExample.cs /// Thrown when fails to make API call /// The id of the Template to delete. + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// - void TemplateDelete(string templateId, int operationIndex = 0); + void TemplateDelete(string templateId, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Delete Template @@ -126,9 +133,10 @@ public interface ITemplateApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateDeleteExample.cs /// Thrown when fails to make API call /// The id of the Template to delete. + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse TemplateDeleteWithHttpInfo(string templateId, int operationIndex = 0); + ApiResponse TemplateDeleteWithHttpInfo(string templateId, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Get Template Files /// @@ -274,9 +282,10 @@ public interface ITemplateApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the Template to remove the Account's access to. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TemplateGetResponse - TemplateGetResponse TemplateRemoveUser(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0); + TemplateGetResponse TemplateRemoveUser(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Remove User from Template @@ -288,9 +297,10 @@ public interface ITemplateApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the Template to remove the Account's access to. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TemplateGetResponse - ApiResponse TemplateRemoveUserWithHttpInfo(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0); + ApiResponse TemplateRemoveUserWithHttpInfo(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Update Template Files /// @@ -301,9 +311,10 @@ public interface ITemplateApiSync : IApiAccessor /// Thrown when fails to make API call /// The ID of the template whose files to update. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TemplateUpdateFilesResponse - TemplateUpdateFilesResponse TemplateUpdateFiles(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0); + TemplateUpdateFilesResponse TemplateUpdateFiles(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Update Template Files @@ -315,9 +326,10 @@ public interface ITemplateApiSync : IApiAccessor /// Thrown when fails to make API call /// The ID of the template whose files to update. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TemplateUpdateFilesResponse - ApiResponse TemplateUpdateFilesWithHttpInfo(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0); + ApiResponse TemplateUpdateFilesWithHttpInfo(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, string? idempotencyKey = default(string?), int operationIndex = 0); #endregion Synchronous Operations } @@ -337,10 +349,11 @@ public interface ITemplateApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the Template to give the Account access to. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateGetResponse - System.Threading.Tasks.Task TemplateAddUserAsync(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateAddUserAsync(string templateId, TemplateAddUserRequest templateAddUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Add User to Template @@ -352,10 +365,11 @@ public interface ITemplateApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the Template to give the Account access to. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateGetResponse) - System.Threading.Tasks.Task> TemplateAddUserWithHttpInfoAsync(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TemplateAddUserWithHttpInfoAsync(string templateId, TemplateAddUserRequest templateAddUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Template /// @@ -365,10 +379,11 @@ public interface ITemplateApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateCreateResponse - System.Threading.Tasks.Task TemplateCreateAsync(TemplateCreateRequest templateCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateCreateAsync(TemplateCreateRequest templateCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Template @@ -379,10 +394,11 @@ public interface ITemplateApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateCreateResponse) - System.Threading.Tasks.Task> TemplateCreateWithHttpInfoAsync(TemplateCreateRequest templateCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TemplateCreateWithHttpInfoAsync(TemplateCreateRequest templateCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Embedded Template Draft /// @@ -392,10 +408,11 @@ public interface ITemplateApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateCreateEmbeddedDraftExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateCreateEmbeddedDraftResponse - System.Threading.Tasks.Task TemplateCreateEmbeddedDraftAsync(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateCreateEmbeddedDraftAsync(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Embedded Template Draft @@ -406,10 +423,11 @@ public interface ITemplateApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateCreateEmbeddedDraftExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateCreateEmbeddedDraftResponse) - System.Threading.Tasks.Task> TemplateCreateEmbeddedDraftWithHttpInfoAsync(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TemplateCreateEmbeddedDraftWithHttpInfoAsync(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Delete Template /// @@ -419,10 +437,11 @@ public interface ITemplateApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateDeleteExample.cs /// Thrown when fails to make API call /// The id of the Template to delete. + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task TemplateDeleteAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateDeleteAsync(string templateId, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Delete Template @@ -433,10 +452,11 @@ public interface ITemplateApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateDeleteExample.cs /// Thrown when fails to make API call /// The id of the Template to delete. + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> TemplateDeleteWithHttpInfoAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TemplateDeleteWithHttpInfoAsync(string templateId, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Template Files /// @@ -592,10 +612,11 @@ public interface ITemplateApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the Template to remove the Account's access to. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateGetResponse - System.Threading.Tasks.Task TemplateRemoveUserAsync(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateRemoveUserAsync(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Remove User from Template @@ -607,10 +628,11 @@ public interface ITemplateApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the Template to remove the Account's access to. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateGetResponse) - System.Threading.Tasks.Task> TemplateRemoveUserWithHttpInfoAsync(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TemplateRemoveUserWithHttpInfoAsync(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update Template Files /// @@ -621,10 +643,11 @@ public interface ITemplateApiAsync : IApiAccessor /// Thrown when fails to make API call /// The ID of the template whose files to update. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateUpdateFilesResponse - System.Threading.Tasks.Task TemplateUpdateFilesAsync(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateUpdateFilesAsync(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update Template Files @@ -636,10 +659,11 @@ public interface ITemplateApiAsync : IApiAccessor /// Thrown when fails to make API call /// The ID of the template whose files to update. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateUpdateFilesResponse) - System.Threading.Tasks.Task> TemplateUpdateFilesWithHttpInfoAsync(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TemplateUpdateFilesWithHttpInfoAsync(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -767,11 +791,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// The id of the Template to give the Account access to. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TemplateGetResponse - public TemplateGetResponse TemplateAddUser(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0) + public TemplateGetResponse TemplateAddUser(string templateId, TemplateAddUserRequest templateAddUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateAddUserWithHttpInfo(templateId, templateAddUserRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateAddUserWithHttpInfo(templateId, templateAddUserRequest, idempotencyKey); return localVarResponse.Data; } @@ -782,9 +807,10 @@ public TemplateGetResponse TemplateAddUser(string templateId, TemplateAddUserReq /// Thrown when fails to make API call /// The id of the Template to give the Account access to. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TemplateGetResponse - public Dropbox.Sign.Client.ApiResponse TemplateAddUserWithHttpInfo(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TemplateAddUserWithHttpInfo(string templateId, TemplateAddUserRequest templateAddUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'templateId' is set if (templateId == null) @@ -830,6 +856,10 @@ public Dropbox.Sign.Client.ApiResponse TemplateAddUserWithH } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "TemplateApi.TemplateAddUser"; localVarRequestOptions.OperationIndex = operationIndex; @@ -868,12 +898,13 @@ public Dropbox.Sign.Client.ApiResponse TemplateAddUserWithH /// Thrown when fails to make API call /// The id of the Template to give the Account access to. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateGetResponse - public async System.Threading.Tasks.Task TemplateAddUserAsync(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateAddUserAsync(string templateId, TemplateAddUserRequest templateAddUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateAddUserWithHttpInfoAsync(templateId, templateAddUserRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateAddUserWithHttpInfoAsync(templateId, templateAddUserRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -884,10 +915,11 @@ public Dropbox.Sign.Client.ApiResponse TemplateAddUserWithH /// Thrown when fails to make API call /// The id of the Template to give the Account access to. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateGetResponse) - public async System.Threading.Tasks.Task> TemplateAddUserWithHttpInfoAsync(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateAddUserWithHttpInfoAsync(string templateId, TemplateAddUserRequest templateAddUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'templateId' is set if (templateId == null) @@ -934,6 +966,10 @@ public Dropbox.Sign.Client.ApiResponse TemplateAddUserWithH } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "TemplateApi.TemplateAddUser"; localVarRequestOptions.OperationIndex = operationIndex; @@ -972,11 +1008,12 @@ public Dropbox.Sign.Client.ApiResponse TemplateAddUserWithH /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TemplateCreateResponse - public TemplateCreateResponse TemplateCreate(TemplateCreateRequest templateCreateRequest, int operationIndex = 0) + public TemplateCreateResponse TemplateCreate(TemplateCreateRequest templateCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateCreateWithHttpInfo(templateCreateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateCreateWithHttpInfo(templateCreateRequest, idempotencyKey); return localVarResponse.Data; } @@ -986,9 +1023,10 @@ public TemplateCreateResponse TemplateCreate(TemplateCreateRequest templateCreat /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TemplateCreateResponse - public Dropbox.Sign.Client.ApiResponse TemplateCreateWithHttpInfo(TemplateCreateRequest templateCreateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TemplateCreateWithHttpInfo(TemplateCreateRequest templateCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'templateCreateRequest' is set if (templateCreateRequest == null) @@ -1027,6 +1065,10 @@ public Dropbox.Sign.Client.ApiResponse TemplateCreateWit localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "TemplateApi.TemplateCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1064,12 +1106,13 @@ public Dropbox.Sign.Client.ApiResponse TemplateCreateWit /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateCreateResponse - public async System.Threading.Tasks.Task TemplateCreateAsync(TemplateCreateRequest templateCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateCreateAsync(TemplateCreateRequest templateCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateCreateWithHttpInfoAsync(templateCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateCreateWithHttpInfoAsync(templateCreateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1079,10 +1122,11 @@ public Dropbox.Sign.Client.ApiResponse TemplateCreateWit /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateCreateResponse) - public async System.Threading.Tasks.Task> TemplateCreateWithHttpInfoAsync(TemplateCreateRequest templateCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateCreateWithHttpInfoAsync(TemplateCreateRequest templateCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'templateCreateRequest' is set if (templateCreateRequest == null) @@ -1122,6 +1166,10 @@ public Dropbox.Sign.Client.ApiResponse TemplateCreateWit localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "TemplateApi.TemplateCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1160,11 +1208,12 @@ public Dropbox.Sign.Client.ApiResponse TemplateCreateWit /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateCreateEmbeddedDraftExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TemplateCreateEmbeddedDraftResponse - public TemplateCreateEmbeddedDraftResponse TemplateCreateEmbeddedDraft(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0) + public TemplateCreateEmbeddedDraftResponse TemplateCreateEmbeddedDraft(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateCreateEmbeddedDraftWithHttpInfo(templateCreateEmbeddedDraftRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateCreateEmbeddedDraftWithHttpInfo(templateCreateEmbeddedDraftRequest, idempotencyKey); return localVarResponse.Data; } @@ -1174,9 +1223,10 @@ public TemplateCreateEmbeddedDraftResponse TemplateCreateEmbeddedDraft(TemplateC /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateCreateEmbeddedDraftExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TemplateCreateEmbeddedDraftResponse - public Dropbox.Sign.Client.ApiResponse TemplateCreateEmbeddedDraftWithHttpInfo(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TemplateCreateEmbeddedDraftWithHttpInfo(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'templateCreateEmbeddedDraftRequest' is set if (templateCreateEmbeddedDraftRequest == null) @@ -1215,6 +1265,10 @@ public Dropbox.Sign.Client.ApiResponse Temp localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "TemplateApi.TemplateCreateEmbeddedDraft"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1252,12 +1306,13 @@ public Dropbox.Sign.Client.ApiResponse Temp /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateCreateEmbeddedDraftExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateCreateEmbeddedDraftResponse - public async System.Threading.Tasks.Task TemplateCreateEmbeddedDraftAsync(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateCreateEmbeddedDraftAsync(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateCreateEmbeddedDraftWithHttpInfoAsync(templateCreateEmbeddedDraftRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateCreateEmbeddedDraftWithHttpInfoAsync(templateCreateEmbeddedDraftRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1267,10 +1322,11 @@ public Dropbox.Sign.Client.ApiResponse Temp /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateCreateEmbeddedDraftExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateCreateEmbeddedDraftResponse) - public async System.Threading.Tasks.Task> TemplateCreateEmbeddedDraftWithHttpInfoAsync(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateCreateEmbeddedDraftWithHttpInfoAsync(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'templateCreateEmbeddedDraftRequest' is set if (templateCreateEmbeddedDraftRequest == null) @@ -1310,6 +1366,10 @@ public Dropbox.Sign.Client.ApiResponse Temp localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "TemplateApi.TemplateCreateEmbeddedDraft"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1348,11 +1408,12 @@ public Dropbox.Sign.Client.ApiResponse Temp /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateDeleteExample.cs /// Thrown when fails to make API call /// The id of the Template to delete. + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// - public void TemplateDelete(string templateId, int operationIndex = 0) + public void TemplateDelete(string templateId, string? idempotencyKey = default(string?), int operationIndex = 0) { - TemplateDeleteWithHttpInfo(templateId); + TemplateDeleteWithHttpInfo(templateId, idempotencyKey); } /// @@ -1361,9 +1422,10 @@ public void TemplateDelete(string templateId, int operationIndex = 0) /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateDeleteExample.cs /// Thrown when fails to make API call /// The id of the Template to delete. + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo(string templateId, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo(string templateId, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'templateId' is set if (templateId == null) @@ -1394,6 +1456,10 @@ public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo(string } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "TemplateApi.TemplateDelete"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1431,12 +1497,13 @@ public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo(string /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateDeleteExample.cs /// Thrown when fails to make API call /// The id of the Template to delete. + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task TemplateDeleteAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateDeleteAsync(string templateId, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - await TemplateDeleteWithHttpInfoAsync(templateId, operationIndex, cancellationToken).ConfigureAwait(false); + await TemplateDeleteWithHttpInfoAsync(templateId, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); } /// @@ -1445,10 +1512,11 @@ public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo(string /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateDeleteExample.cs /// Thrown when fails to make API call /// The id of the Template to delete. + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TemplateDeleteWithHttpInfoAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateDeleteWithHttpInfoAsync(string templateId, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'templateId' is set if (templateId == null) @@ -1480,6 +1548,10 @@ public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo(string } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "TemplateApi.TemplateDelete"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2437,11 +2509,12 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI /// Thrown when fails to make API call /// The id of the Template to remove the Account's access to. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TemplateGetResponse - public TemplateGetResponse TemplateRemoveUser(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0) + public TemplateGetResponse TemplateRemoveUser(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateRemoveUserWithHttpInfo(templateId, templateRemoveUserRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateRemoveUserWithHttpInfo(templateId, templateRemoveUserRequest, idempotencyKey); return localVarResponse.Data; } @@ -2452,9 +2525,10 @@ public TemplateGetResponse TemplateRemoveUser(string templateId, TemplateRemoveU /// Thrown when fails to make API call /// The id of the Template to remove the Account's access to. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TemplateGetResponse - public Dropbox.Sign.Client.ApiResponse TemplateRemoveUserWithHttpInfo(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TemplateRemoveUserWithHttpInfo(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'templateId' is set if (templateId == null) @@ -2500,6 +2574,10 @@ public Dropbox.Sign.Client.ApiResponse TemplateRemoveUserWi } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "TemplateApi.TemplateRemoveUser"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2538,12 +2616,13 @@ public Dropbox.Sign.Client.ApiResponse TemplateRemoveUserWi /// Thrown when fails to make API call /// The id of the Template to remove the Account's access to. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateGetResponse - public async System.Threading.Tasks.Task TemplateRemoveUserAsync(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateRemoveUserAsync(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateRemoveUserWithHttpInfoAsync(templateId, templateRemoveUserRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateRemoveUserWithHttpInfoAsync(templateId, templateRemoveUserRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2554,10 +2633,11 @@ public Dropbox.Sign.Client.ApiResponse TemplateRemoveUserWi /// Thrown when fails to make API call /// The id of the Template to remove the Account's access to. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateGetResponse) - public async System.Threading.Tasks.Task> TemplateRemoveUserWithHttpInfoAsync(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateRemoveUserWithHttpInfoAsync(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'templateId' is set if (templateId == null) @@ -2604,6 +2684,10 @@ public Dropbox.Sign.Client.ApiResponse TemplateRemoveUserWi } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "TemplateApi.TemplateRemoveUser"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2643,11 +2727,12 @@ public Dropbox.Sign.Client.ApiResponse TemplateRemoveUserWi /// Thrown when fails to make API call /// The ID of the template whose files to update. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TemplateUpdateFilesResponse - public TemplateUpdateFilesResponse TemplateUpdateFiles(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0) + public TemplateUpdateFilesResponse TemplateUpdateFiles(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateUpdateFilesWithHttpInfo(templateId, templateUpdateFilesRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateUpdateFilesWithHttpInfo(templateId, templateUpdateFilesRequest, idempotencyKey); return localVarResponse.Data; } @@ -2658,9 +2743,10 @@ public TemplateUpdateFilesResponse TemplateUpdateFiles(string templateId, Templa /// Thrown when fails to make API call /// The ID of the template whose files to update. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TemplateUpdateFilesResponse - public Dropbox.Sign.Client.ApiResponse TemplateUpdateFilesWithHttpInfo(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TemplateUpdateFilesWithHttpInfo(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'templateId' is set if (templateId == null) @@ -2706,6 +2792,10 @@ public Dropbox.Sign.Client.ApiResponse TemplateUpda } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "TemplateApi.TemplateUpdateFiles"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2744,12 +2834,13 @@ public Dropbox.Sign.Client.ApiResponse TemplateUpda /// Thrown when fails to make API call /// The ID of the template whose files to update. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateUpdateFilesResponse - public async System.Threading.Tasks.Task TemplateUpdateFilesAsync(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateUpdateFilesAsync(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateUpdateFilesWithHttpInfoAsync(templateId, templateUpdateFilesRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateUpdateFilesWithHttpInfoAsync(templateId, templateUpdateFilesRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2760,10 +2851,11 @@ public Dropbox.Sign.Client.ApiResponse TemplateUpda /// Thrown when fails to make API call /// The ID of the template whose files to update. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateUpdateFilesResponse) - public async System.Threading.Tasks.Task> TemplateUpdateFilesWithHttpInfoAsync(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateUpdateFilesWithHttpInfoAsync(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'templateId' is set if (templateId == null) @@ -2810,6 +2902,10 @@ public Dropbox.Sign.Client.ApiResponse TemplateUpda } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "TemplateApi.TemplateUpdateFiles"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/UnclaimedDraftApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/UnclaimedDraftApi.cs index a41df498f..86c7373e6 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/UnclaimedDraftApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/UnclaimedDraftApi.cs @@ -36,9 +36,10 @@ public interface IUnclaimedDraftApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// UnclaimedDraftCreateResponse - UnclaimedDraftCreateResponse UnclaimedDraftCreate(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0); + UnclaimedDraftCreateResponse UnclaimedDraftCreate(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Create Unclaimed Draft @@ -49,9 +50,10 @@ public interface IUnclaimedDraftApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of UnclaimedDraftCreateResponse - ApiResponse UnclaimedDraftCreateWithHttpInfo(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0); + ApiResponse UnclaimedDraftCreateWithHttpInfo(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Create Embedded Unclaimed Draft /// @@ -61,9 +63,10 @@ public interface IUnclaimedDraftApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// UnclaimedDraftCreateResponse - UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbedded(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0); + UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbedded(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Create Embedded Unclaimed Draft @@ -74,9 +77,10 @@ public interface IUnclaimedDraftApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of UnclaimedDraftCreateResponse - ApiResponse UnclaimedDraftCreateEmbeddedWithHttpInfo(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0); + ApiResponse UnclaimedDraftCreateEmbeddedWithHttpInfo(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Create Embedded Unclaimed Draft with Template /// @@ -86,9 +90,10 @@ public interface IUnclaimedDraftApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// UnclaimedDraftCreateResponse - UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbeddedWithTemplate(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0); + UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbeddedWithTemplate(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Create Embedded Unclaimed Draft with Template @@ -99,9 +104,10 @@ public interface IUnclaimedDraftApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of UnclaimedDraftCreateResponse - ApiResponse UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0); + ApiResponse UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Edit and Resend Unclaimed Draft /// @@ -112,9 +118,10 @@ public interface IUnclaimedDraftApiSync : IApiAccessor /// Thrown when fails to make API call /// The ID of the signature request to edit and resend. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// UnclaimedDraftCreateResponse - UnclaimedDraftCreateResponse UnclaimedDraftEditAndResend(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0); + UnclaimedDraftCreateResponse UnclaimedDraftEditAndResend(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, string? idempotencyKey = default(string?), int operationIndex = 0); /// /// Edit and Resend Unclaimed Draft @@ -126,9 +133,10 @@ public interface IUnclaimedDraftApiSync : IApiAccessor /// Thrown when fails to make API call /// The ID of the signature request to edit and resend. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of UnclaimedDraftCreateResponse - ApiResponse UnclaimedDraftEditAndResendWithHttpInfo(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0); + ApiResponse UnclaimedDraftEditAndResendWithHttpInfo(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, string? idempotencyKey = default(string?), int operationIndex = 0); #endregion Synchronous Operations } @@ -147,10 +155,11 @@ public interface IUnclaimedDraftApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - System.Threading.Tasks.Task UnclaimedDraftCreateAsync(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UnclaimedDraftCreateAsync(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Unclaimed Draft @@ -161,10 +170,11 @@ public interface IUnclaimedDraftApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - System.Threading.Tasks.Task> UnclaimedDraftCreateWithHttpInfoAsync(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UnclaimedDraftCreateWithHttpInfoAsync(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Embedded Unclaimed Draft /// @@ -174,10 +184,11 @@ public interface IUnclaimedDraftApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedAsync(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedAsync(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Embedded Unclaimed Draft @@ -188,10 +199,11 @@ public interface IUnclaimedDraftApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithHttpInfoAsync(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithHttpInfoAsync(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Embedded Unclaimed Draft with Template /// @@ -201,10 +213,11 @@ public interface IUnclaimedDraftApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedWithTemplateAsync(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedWithTemplateAsync(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Embedded Unclaimed Draft with Template @@ -215,10 +228,11 @@ public interface IUnclaimedDraftApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfoAsync(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfoAsync(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Edit and Resend Unclaimed Draft /// @@ -229,10 +243,11 @@ public interface IUnclaimedDraftApiAsync : IApiAccessor /// Thrown when fails to make API call /// The ID of the signature request to edit and resend. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - System.Threading.Tasks.Task UnclaimedDraftEditAndResendAsync(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UnclaimedDraftEditAndResendAsync(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Edit and Resend Unclaimed Draft @@ -244,10 +259,11 @@ public interface IUnclaimedDraftApiAsync : IApiAccessor /// Thrown when fails to make API call /// The ID of the signature request to edit and resend. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - System.Threading.Tasks.Task> UnclaimedDraftEditAndResendWithHttpInfoAsync(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UnclaimedDraftEditAndResendWithHttpInfoAsync(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -374,11 +390,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// UnclaimedDraftCreateResponse - public UnclaimedDraftCreateResponse UnclaimedDraftCreate(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0) + public UnclaimedDraftCreateResponse UnclaimedDraftCreate(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = UnclaimedDraftCreateWithHttpInfo(unclaimedDraftCreateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = UnclaimedDraftCreateWithHttpInfo(unclaimedDraftCreateRequest, idempotencyKey); return localVarResponse.Data; } @@ -388,9 +405,10 @@ public UnclaimedDraftCreateResponse UnclaimedDraftCreate(UnclaimedDraftCreateReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of UnclaimedDraftCreateResponse - public Dropbox.Sign.Client.ApiResponse UnclaimedDraftCreateWithHttpInfo(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse UnclaimedDraftCreateWithHttpInfo(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'unclaimedDraftCreateRequest' is set if (unclaimedDraftCreateRequest == null) @@ -429,6 +447,10 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -466,12 +488,13 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - public async System.Threading.Tasks.Task UnclaimedDraftCreateAsync(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UnclaimedDraftCreateAsync(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await UnclaimedDraftCreateWithHttpInfoAsync(unclaimedDraftCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await UnclaimedDraftCreateWithHttpInfoAsync(unclaimedDraftCreateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -481,10 +504,11 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - public async System.Threading.Tasks.Task> UnclaimedDraftCreateWithHttpInfoAsync(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UnclaimedDraftCreateWithHttpInfoAsync(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'unclaimedDraftCreateRequest' is set if (unclaimedDraftCreateRequest == null) @@ -524,6 +548,10 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -562,11 +590,12 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// UnclaimedDraftCreateResponse - public UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbedded(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0) + public UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbedded(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = UnclaimedDraftCreateEmbeddedWithHttpInfo(unclaimedDraftCreateEmbeddedRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = UnclaimedDraftCreateEmbeddedWithHttpInfo(unclaimedDraftCreateEmbeddedRequest, idempotencyKey); return localVarResponse.Data; } @@ -576,9 +605,10 @@ public UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbedded(UnclaimedDraftC /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of UnclaimedDraftCreateResponse - public Dropbox.Sign.Client.ApiResponse UnclaimedDraftCreateEmbeddedWithHttpInfo(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse UnclaimedDraftCreateEmbeddedWithHttpInfo(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'unclaimedDraftCreateEmbeddedRequest' is set if (unclaimedDraftCreateEmbeddedRequest == null) @@ -617,6 +647,10 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftCreateEmbedded"; localVarRequestOptions.OperationIndex = operationIndex; @@ -654,12 +688,13 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - public async System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedAsync(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedAsync(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await UnclaimedDraftCreateEmbeddedWithHttpInfoAsync(unclaimedDraftCreateEmbeddedRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await UnclaimedDraftCreateEmbeddedWithHttpInfoAsync(unclaimedDraftCreateEmbeddedRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -669,10 +704,11 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - public async System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithHttpInfoAsync(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithHttpInfoAsync(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'unclaimedDraftCreateEmbeddedRequest' is set if (unclaimedDraftCreateEmbeddedRequest == null) @@ -712,6 +748,10 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftCreateEmbedded"; localVarRequestOptions.OperationIndex = operationIndex; @@ -750,11 +790,12 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// UnclaimedDraftCreateResponse - public UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbeddedWithTemplate(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0) + public UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbeddedWithTemplate(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(unclaimedDraftCreateEmbeddedWithTemplateRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(unclaimedDraftCreateEmbeddedWithTemplateRequest, idempotencyKey); return localVarResponse.Data; } @@ -764,9 +805,10 @@ public UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbeddedWithTemplate(Unc /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of UnclaimedDraftCreateResponse - public Dropbox.Sign.Client.ApiResponse UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'unclaimedDraftCreateEmbeddedWithTemplateRequest' is set if (unclaimedDraftCreateEmbeddedWithTemplateRequest == null) @@ -805,6 +847,10 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftCreateEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -842,12 +888,13 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - public async System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedWithTemplateAsync(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedWithTemplateAsync(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfoAsync(unclaimedDraftCreateEmbeddedWithTemplateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfoAsync(unclaimedDraftCreateEmbeddedWithTemplateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -857,10 +904,11 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - public async System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfoAsync(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfoAsync(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'unclaimedDraftCreateEmbeddedWithTemplateRequest' is set if (unclaimedDraftCreateEmbeddedWithTemplateRequest == null) @@ -900,6 +948,10 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftCreateEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -939,11 +991,12 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// Thrown when fails to make API call /// The ID of the signature request to edit and resend. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// UnclaimedDraftCreateResponse - public UnclaimedDraftCreateResponse UnclaimedDraftEditAndResend(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0) + public UnclaimedDraftCreateResponse UnclaimedDraftEditAndResend(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = UnclaimedDraftEditAndResendWithHttpInfo(signatureRequestId, unclaimedDraftEditAndResendRequest); + Dropbox.Sign.Client.ApiResponse localVarResponse = UnclaimedDraftEditAndResendWithHttpInfo(signatureRequestId, unclaimedDraftEditAndResendRequest, idempotencyKey); return localVarResponse.Data; } @@ -954,9 +1007,10 @@ public UnclaimedDraftCreateResponse UnclaimedDraftEditAndResend(string signature /// Thrown when fails to make API call /// The ID of the signature request to edit and resend. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of UnclaimedDraftCreateResponse - public Dropbox.Sign.Client.ApiResponse UnclaimedDraftEditAndResendWithHttpInfo(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse UnclaimedDraftEditAndResendWithHttpInfo(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, string? idempotencyKey = default(string?), int operationIndex = 0) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -1002,6 +1056,10 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftEditAndResend"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1040,12 +1098,13 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// Thrown when fails to make API call /// The ID of the signature request to edit and resend. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - public async System.Threading.Tasks.Task UnclaimedDraftEditAndResendAsync(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UnclaimedDraftEditAndResendAsync(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await UnclaimedDraftEditAndResendWithHttpInfoAsync(signatureRequestId, unclaimedDraftEditAndResendRequest, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await UnclaimedDraftEditAndResendWithHttpInfoAsync(signatureRequestId, unclaimedDraftEditAndResendRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1056,10 +1115,11 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr /// Thrown when fails to make API call /// The ID of the signature request to edit and resend. /// + /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - public async System.Threading.Tasks.Task> UnclaimedDraftEditAndResendWithHttpInfoAsync(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UnclaimedDraftEditAndResendWithHttpInfoAsync(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -1106,6 +1166,10 @@ public Dropbox.Sign.Client.ApiResponse UnclaimedDr } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter + if (idempotencyKey != null) + { + localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + } localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftEditAndResend"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/java-v1/bin/generate-overload-methods.php b/sdks/java-v1/bin/generate-overload-methods.php index e700bd265..7d9150696 100755 --- a/sdks/java-v1/bin/generate-overload-methods.php +++ b/sdks/java-v1/bin/generate-overload-methods.php @@ -178,20 +178,28 @@ private function template( $typeList = implode(', ', $typeList); $setters = implode("\n ", $setters); + // OpenAPI Generator emits an empty returnType for void operations. + $isVoid = $returnType === '' || $returnType === 'void'; + $methodReturnType = $isVoid ? 'void' : $returnType; + $httpReturnType = $isVoid ? 'Void' : $returnType; + $methodCall = $isVoid + ? "{$method}WithHttpInfo({$paramList});" + : "return {$method}WithHttpInfo({$paramList}).getData();"; + return << {$method}WithHttpInfo({$methodSignature}) throws ApiException { + public ApiResponse<{$httpReturnType}> {$method}WithHttpInfo({$methodSignature}) throws ApiException { {$setters} return {$method}WithHttpInfo({$paramList}); diff --git a/sdks/java-v1/docs/AccountApi.md b/sdks/java-v1/docs/AccountApi.md index e638f559d..e253448a3 100644 --- a/sdks/java-v1/docs/AccountApi.md +++ b/sdks/java-v1/docs/AccountApi.md @@ -13,7 +13,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## accountCreate -> AccountCreateResponse accountCreate(accountCreateRequest) +> AccountCreateResponse accountCreate(accountCreateRequest, idempotencyKey) Create Account @@ -75,6 +75,7 @@ public class AccountCreateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **accountCreateRequest** | [**AccountCreateRequest**](AccountCreateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -92,7 +93,7 @@ public class AccountCreateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | @@ -182,7 +183,7 @@ public class AccountGetExample ## accountUpdate -> AccountGetResponse accountUpdate(accountUpdateRequest) +> AccountGetResponse accountUpdate(accountUpdateRequest, idempotencyKey) Update Account @@ -245,6 +246,7 @@ public class AccountUpdateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **accountUpdateRequest** | [**AccountUpdateRequest**](AccountUpdateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -262,13 +264,13 @@ public class AccountUpdateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## accountVerify -> AccountVerifyResponse accountVerify(accountVerifyRequest) +> AccountVerifyResponse accountVerify(accountVerifyRequest, idempotencyKey) Verify Account @@ -330,6 +332,7 @@ public class AccountVerifyExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **accountVerifyRequest** | [**AccountVerifyRequest**](AccountVerifyRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -347,6 +350,6 @@ public class AccountVerifyExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v1/docs/ApiAppApi.md b/sdks/java-v1/docs/ApiAppApi.md index c9e5fd615..8b31761bf 100644 --- a/sdks/java-v1/docs/ApiAppApi.md +++ b/sdks/java-v1/docs/ApiAppApi.md @@ -14,7 +14,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## apiAppCreate -> ApiAppGetResponse apiAppCreate(apiAppCreateRequest) +> ApiAppGetResponse apiAppCreate(apiAppCreateRequest, idempotencyKey) Create API App @@ -93,6 +93,7 @@ public class ApiAppCreateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **apiAppCreateRequest** | [**ApiAppCreateRequest**](ApiAppCreateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -110,7 +111,7 @@ public class ApiAppCreateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **201** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **201** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | @@ -362,7 +363,7 @@ public class ApiAppListExample ## apiAppUpdate -> ApiAppGetResponse apiAppUpdate(clientId, apiAppUpdateRequest) +> ApiAppGetResponse apiAppUpdate(clientId, apiAppUpdateRequest, idempotencyKey) Update API App @@ -444,6 +445,7 @@ public class ApiAppUpdateExample |------------- | ------------- | ------------- | -------------| **clientId** | **String**| The client id of the API App to update. | **apiAppUpdateRequest** | [**ApiAppUpdateRequest**](ApiAppUpdateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -461,6 +463,6 @@ public class ApiAppUpdateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v1/docs/DocumentApi.md b/sdks/java-v1/docs/DocumentApi.md index c72d11a30..6500739bc 100644 --- a/sdks/java-v1/docs/DocumentApi.md +++ b/sdks/java-v1/docs/DocumentApi.md @@ -10,7 +10,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## documentDetectFields -> DocumentFieldDetectionResponse documentDetectFields(documentFieldDetectionRequest) +> DocumentFieldDetectionResponse documentDetectFields(documentFieldDetectionRequest, idempotencyKey) Detect Document Fields @@ -74,6 +74,7 @@ public class DocumentDetectFieldsExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **documentFieldDetectionRequest** | [**DocumentFieldDetectionRequest**](DocumentFieldDetectionRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -91,6 +92,6 @@ public class DocumentDetectFieldsExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v1/docs/EmbeddedApi.md b/sdks/java-v1/docs/EmbeddedApi.md index 416c319ee..d5dd0b75e 100644 --- a/sdks/java-v1/docs/EmbeddedApi.md +++ b/sdks/java-v1/docs/EmbeddedApi.md @@ -11,7 +11,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## embeddedEditUrl -> EmbeddedEditUrlResponse embeddedEditUrl(templateId, embeddedEditUrlRequest) +> EmbeddedEditUrlResponse embeddedEditUrl(templateId, embeddedEditUrlRequest, idempotencyKey) Get Embedded Template Edit URL @@ -80,6 +80,7 @@ public class EmbeddedEditUrlExample |------------- | ------------- | ------------- | -------------| **templateId** | **String**| The id of the template to edit. | **embeddedEditUrlRequest** | [**EmbeddedEditUrlRequest**](EmbeddedEditUrlRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -97,7 +98,7 @@ public class EmbeddedEditUrlExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v1/docs/FaxApi.md b/sdks/java-v1/docs/FaxApi.md index 7ee47ff0e..31a62d42a 100644 --- a/sdks/java-v1/docs/FaxApi.md +++ b/sdks/java-v1/docs/FaxApi.md @@ -337,7 +337,7 @@ public class FaxListExample ## faxSend -> FaxGetResponse faxSend(faxSendRequest) +> FaxGetResponse faxSend(faxSendRequest, idempotencyKey) Send Fax @@ -407,6 +407,7 @@ public class FaxSendExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **faxSendRequest** | [**FaxSendRequest**](FaxSendRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -424,6 +425,6 @@ public class FaxSendExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v1/docs/FaxLineApi.md b/sdks/java-v1/docs/FaxLineApi.md index 79ccf8b93..8e98aeae7 100644 --- a/sdks/java-v1/docs/FaxLineApi.md +++ b/sdks/java-v1/docs/FaxLineApi.md @@ -16,7 +16,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## faxLineAddUser -> FaxLineResponse faxLineAddUser(faxLineAddUserRequest) +> FaxLineResponse faxLineAddUser(faxLineAddUserRequest, idempotencyKey) Add Fax Line User @@ -78,6 +78,7 @@ public class FaxLineAddUserExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **faxLineAddUserRequest** | [**FaxLineAddUserRequest**](FaxLineAddUserRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -95,7 +96,7 @@ public class FaxLineAddUserExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | @@ -188,7 +189,7 @@ public class FaxLineAreaCodeGetExample ## faxLineCreate -> FaxLineResponse faxLineCreate(faxLineCreateRequest) +> FaxLineResponse faxLineCreate(faxLineCreateRequest, idempotencyKey) Purchase Fax Line @@ -250,6 +251,7 @@ public class FaxLineCreateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **faxLineCreateRequest** | [**FaxLineCreateRequest**](FaxLineCreateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -267,7 +269,7 @@ public class FaxLineCreateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | @@ -523,7 +525,7 @@ public class FaxLineListExample ## faxLineRemoveUser -> FaxLineResponse faxLineRemoveUser(faxLineRemoveUserRequest) +> FaxLineResponse faxLineRemoveUser(faxLineRemoveUserRequest, idempotencyKey) Remove Fax Line Access @@ -585,6 +587,7 @@ public class FaxLineRemoveUserExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **faxLineRemoveUserRequest** | [**FaxLineRemoveUserRequest**](FaxLineRemoveUserRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -602,6 +605,6 @@ public class FaxLineRemoveUserExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v1/docs/ReportApi.md b/sdks/java-v1/docs/ReportApi.md index cadac49ae..e0368b4c9 100644 --- a/sdks/java-v1/docs/ReportApi.md +++ b/sdks/java-v1/docs/ReportApi.md @@ -10,7 +10,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## reportCreate -> ReportCreateResponse reportCreate(reportCreateRequest) +> ReportCreateResponse reportCreate(reportCreateRequest, idempotencyKey) Create Report @@ -78,6 +78,7 @@ public class ReportCreateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **reportCreateRequest** | [**ReportCreateRequest**](ReportCreateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -95,6 +96,6 @@ public class ReportCreateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v1/docs/SignatureRequestApi.md b/sdks/java-v1/docs/SignatureRequestApi.md index bf16f02c0..e8665a90a 100644 --- a/sdks/java-v1/docs/SignatureRequestApi.md +++ b/sdks/java-v1/docs/SignatureRequestApi.md @@ -29,7 +29,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## signatureRequestBulkCreateEmbeddedWithTemplate -> BulkSendJobSendResponse signatureRequestBulkCreateEmbeddedWithTemplate(signatureRequestBulkCreateEmbeddedWithTemplateRequest) +> BulkSendJobSendResponse signatureRequestBulkCreateEmbeddedWithTemplate(signatureRequestBulkCreateEmbeddedWithTemplateRequest, idempotencyKey) Embedded Bulk Send with Template @@ -157,6 +157,7 @@ public class SignatureRequestBulkCreateEmbeddedWithTemplateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestBulkCreateEmbeddedWithTemplateRequest** | [**SignatureRequestBulkCreateEmbeddedWithTemplateRequest**](SignatureRequestBulkCreateEmbeddedWithTemplateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -174,13 +175,13 @@ public class SignatureRequestBulkCreateEmbeddedWithTemplateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## signatureRequestBulkSendWithTemplate -> BulkSendJobSendResponse signatureRequestBulkSendWithTemplate(signatureRequestBulkSendWithTemplateRequest) +> BulkSendJobSendResponse signatureRequestBulkSendWithTemplate(signatureRequestBulkSendWithTemplateRequest, idempotencyKey) Bulk Send with Template @@ -308,6 +309,7 @@ public class SignatureRequestBulkSendWithTemplateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestBulkSendWithTemplateRequest** | [**SignatureRequestBulkSendWithTemplateRequest**](SignatureRequestBulkSendWithTemplateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -325,13 +327,13 @@ public class SignatureRequestBulkSendWithTemplateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## signatureRequestCancel -> signatureRequestCancel(signatureRequestId) +> signatureRequestCancel(signatureRequestId, idempotencyKey) Cancel Incomplete Signature Request @@ -396,6 +398,7 @@ public class SignatureRequestCancelExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the incomplete SignatureRequest to cancel. | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -413,13 +416,13 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## signatureRequestCreateEmbedded -> SignatureRequestGetResponse signatureRequestCreateEmbedded(signatureRequestCreateEmbeddedRequest) +> SignatureRequestGetResponse signatureRequestCreateEmbedded(signatureRequestCreateEmbeddedRequest, idempotencyKey) Create Embedded Signature Request @@ -517,6 +520,7 @@ public class SignatureRequestCreateEmbeddedExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestCreateEmbeddedRequest** | [**SignatureRequestCreateEmbeddedRequest**](SignatureRequestCreateEmbeddedRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -534,13 +538,13 @@ public class SignatureRequestCreateEmbeddedExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## signatureRequestCreateEmbeddedWithTemplate -> SignatureRequestGetResponse signatureRequestCreateEmbeddedWithTemplate(signatureRequestCreateEmbeddedWithTemplateRequest) +> SignatureRequestGetResponse signatureRequestCreateEmbeddedWithTemplate(signatureRequestCreateEmbeddedWithTemplateRequest, idempotencyKey) Create Embedded Signature Request with Template @@ -627,6 +631,7 @@ public class SignatureRequestCreateEmbeddedWithTemplateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestCreateEmbeddedWithTemplateRequest** | [**SignatureRequestCreateEmbeddedWithTemplateRequest**](SignatureRequestCreateEmbeddedWithTemplateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -644,13 +649,13 @@ public class SignatureRequestCreateEmbeddedWithTemplateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## signatureRequestEdit -> SignatureRequestGetResponse signatureRequestEdit(signatureRequestId, signatureRequestEditRequest) +> SignatureRequestGetResponse signatureRequestEdit(signatureRequestId, signatureRequestEditRequest, idempotencyKey) Edit Signature Request @@ -760,6 +765,7 @@ public class SignatureRequestEditExample |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the SignatureRequest to edit. | **signatureRequestEditRequest** | [**SignatureRequestEditRequest**](SignatureRequestEditRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -777,13 +783,13 @@ public class SignatureRequestEditExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## signatureRequestEditEmbedded -> SignatureRequestGetResponse signatureRequestEditEmbedded(signatureRequestId, signatureRequestEditEmbeddedRequest) +> SignatureRequestGetResponse signatureRequestEditEmbedded(signatureRequestId, signatureRequestEditEmbeddedRequest, idempotencyKey) Edit Embedded Signature Request @@ -884,6 +890,7 @@ public class SignatureRequestEditEmbeddedExample |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the SignatureRequest to edit. | **signatureRequestEditEmbeddedRequest** | [**SignatureRequestEditEmbeddedRequest**](SignatureRequestEditEmbeddedRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -901,13 +908,13 @@ public class SignatureRequestEditEmbeddedExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## signatureRequestEditEmbeddedWithTemplate -> SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest) +> SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest, idempotencyKey) Edit Embedded Signature Request with Template @@ -997,6 +1004,7 @@ public class SignatureRequestEditEmbeddedWithTemplateExample |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the SignatureRequest to edit. | **signatureRequestEditEmbeddedWithTemplateRequest** | [**SignatureRequestEditEmbeddedWithTemplateRequest**](SignatureRequestEditEmbeddedWithTemplateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -1014,13 +1022,13 @@ public class SignatureRequestEditEmbeddedWithTemplateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## signatureRequestEditWithTemplate -> SignatureRequestGetResponse signatureRequestEditWithTemplate(signatureRequestId, signatureRequestEditWithTemplateRequest) +> SignatureRequestGetResponse signatureRequestEditWithTemplate(signatureRequestId, signatureRequestEditWithTemplateRequest, idempotencyKey) Edit Signature Request With Template @@ -1129,6 +1137,7 @@ public class SignatureRequestEditWithTemplateExample |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the SignatureRequest to edit. | **signatureRequestEditWithTemplateRequest** | [**SignatureRequestEditWithTemplateRequest**](SignatureRequestEditWithTemplateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -1146,7 +1155,7 @@ public class SignatureRequestEditWithTemplateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | @@ -1579,7 +1588,7 @@ public class SignatureRequestListExample ## signatureRequestReleaseHold -> SignatureRequestGetResponse signatureRequestReleaseHold(signatureRequestId) +> SignatureRequestGetResponse signatureRequestReleaseHold(signatureRequestId, idempotencyKey) Release On-Hold Signature Request @@ -1638,6 +1647,7 @@ public class SignatureRequestReleaseHoldExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the SignatureRequest to release. | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -1655,13 +1665,13 @@ public class SignatureRequestReleaseHoldExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## signatureRequestRemind -> SignatureRequestGetResponse signatureRequestRemind(signatureRequestId, signatureRequestRemindRequest) +> SignatureRequestGetResponse signatureRequestRemind(signatureRequestId, signatureRequestRemindRequest, idempotencyKey) Send Request Reminder @@ -1727,6 +1737,7 @@ public class SignatureRequestRemindExample |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the SignatureRequest to send a reminder for. | **signatureRequestRemindRequest** | [**SignatureRequestRemindRequest**](SignatureRequestRemindRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -1744,13 +1755,13 @@ public class SignatureRequestRemindExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## signatureRequestRemove -> signatureRequestRemove(signatureRequestId) +> signatureRequestRemove(signatureRequestId, idempotencyKey) Remove Signature Request Access @@ -1810,6 +1821,7 @@ public class SignatureRequestRemoveExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the SignatureRequest to remove. | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -1827,13 +1839,13 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## signatureRequestSend -> SignatureRequestGetResponse signatureRequestSend(signatureRequestSendRequest) +> SignatureRequestGetResponse signatureRequestSend(signatureRequestSendRequest, idempotencyKey) Send Signature Request @@ -1940,6 +1952,7 @@ public class SignatureRequestSendExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestSendRequest** | [**SignatureRequestSendRequest**](SignatureRequestSendRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -1957,13 +1970,13 @@ public class SignatureRequestSendExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## signatureRequestSendWithTemplate -> SignatureRequestGetResponse signatureRequestSendWithTemplate(signatureRequestSendWithTemplateRequest) +> SignatureRequestGetResponse signatureRequestSendWithTemplate(signatureRequestSendWithTemplateRequest, idempotencyKey) Send with Template @@ -2069,6 +2082,7 @@ public class SignatureRequestSendWithTemplateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestSendWithTemplateRequest** | [**SignatureRequestSendWithTemplateRequest**](SignatureRequestSendWithTemplateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -2086,13 +2100,13 @@ public class SignatureRequestSendWithTemplateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## signatureRequestUpdate -> SignatureRequestGetResponse signatureRequestUpdate(signatureRequestId, signatureRequestUpdateRequest) +> SignatureRequestGetResponse signatureRequestUpdate(signatureRequestId, signatureRequestUpdateRequest, idempotencyKey) Update Signature Request @@ -2161,6 +2175,7 @@ public class SignatureRequestUpdateExample |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the SignatureRequest to update. | **signatureRequestUpdateRequest** | [**SignatureRequestUpdateRequest**](SignatureRequestUpdateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -2178,6 +2193,6 @@ public class SignatureRequestUpdateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v1/docs/TeamApi.md b/sdks/java-v1/docs/TeamApi.md index abb3f1ee0..981b1f0ec 100644 --- a/sdks/java-v1/docs/TeamApi.md +++ b/sdks/java-v1/docs/TeamApi.md @@ -19,7 +19,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## teamAddMember -> TeamGetResponse teamAddMember(teamAddMemberRequest, teamId) +> TeamGetResponse teamAddMember(teamAddMemberRequest, teamId, idempotencyKey) Add User to Team @@ -83,6 +83,7 @@ public class TeamAddMemberExample |------------- | ------------- | ------------- | -------------| **teamAddMemberRequest** | [**TeamAddMemberRequest**](TeamAddMemberRequest.md)| | **teamId** | **String**| The id of the team. | [optional] + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -100,13 +101,13 @@ public class TeamAddMemberExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## teamCreate -> TeamGetResponse teamCreate(teamCreateRequest) +> TeamGetResponse teamCreate(teamCreateRequest, idempotencyKey) Create Team @@ -168,6 +169,7 @@ public class TeamCreateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **teamCreateRequest** | [**TeamCreateRequest**](TeamCreateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -185,7 +187,7 @@ public class TeamCreateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | @@ -593,7 +595,7 @@ public class TeamMembersExample ## teamRemoveMember -> TeamGetResponse teamRemoveMember(teamRemoveMemberRequest) +> TeamGetResponse teamRemoveMember(teamRemoveMemberRequest, idempotencyKey) Remove User from Team @@ -656,6 +658,7 @@ public class TeamRemoveMemberExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **teamRemoveMemberRequest** | [**TeamRemoveMemberRequest**](TeamRemoveMemberRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -673,7 +676,7 @@ public class TeamRemoveMemberExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **201** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **201** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | @@ -765,7 +768,7 @@ public class TeamSubTeamsExample ## teamUpdate -> TeamGetResponse teamUpdate(teamUpdateRequest) +> TeamGetResponse teamUpdate(teamUpdateRequest, idempotencyKey) Update Team @@ -827,6 +830,7 @@ public class TeamUpdateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **teamUpdateRequest** | [**TeamUpdateRequest**](TeamUpdateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -844,6 +848,6 @@ public class TeamUpdateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v1/docs/TemplateApi.md b/sdks/java-v1/docs/TemplateApi.md index e9233865f..56963b69b 100644 --- a/sdks/java-v1/docs/TemplateApi.md +++ b/sdks/java-v1/docs/TemplateApi.md @@ -20,7 +20,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## templateAddUser -> TemplateGetResponse templateAddUser(templateId, templateAddUserRequest) +> TemplateGetResponse templateAddUser(templateId, templateAddUserRequest, idempotencyKey) Add User to Template @@ -84,6 +84,7 @@ public class TemplateAddUserExample |------------- | ------------- | ------------- | -------------| **templateId** | **String**| The id of the Template to give the Account access to. | **templateAddUserRequest** | [**TemplateAddUserRequest**](TemplateAddUserRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -101,13 +102,13 @@ public class TemplateAddUserExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## templateCreate -> TemplateCreateResponse templateCreate(templateCreateRequest) +> TemplateCreateResponse templateCreate(templateCreateRequest, idempotencyKey) Create Template @@ -249,6 +250,7 @@ public class TemplateCreateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **templateCreateRequest** | [**TemplateCreateRequest**](TemplateCreateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -266,13 +268,13 @@ public class TemplateCreateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## templateCreateEmbeddedDraft -> TemplateCreateEmbeddedDraftResponse templateCreateEmbeddedDraft(templateCreateEmbeddedDraftRequest) +> TemplateCreateEmbeddedDraftResponse templateCreateEmbeddedDraft(templateCreateEmbeddedDraftRequest, idempotencyKey) Create Embedded Template Draft @@ -376,6 +378,7 @@ public class TemplateCreateEmbeddedDraftExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **templateCreateEmbeddedDraftRequest** | [**TemplateCreateEmbeddedDraftRequest**](TemplateCreateEmbeddedDraftRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -393,13 +396,13 @@ public class TemplateCreateEmbeddedDraftExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## templateDelete -> templateDelete(templateId) +> templateDelete(templateId, idempotencyKey) Delete Template @@ -456,6 +459,7 @@ public class TemplateDeleteExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **templateId** | **String**| The id of the Template to delete. | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -473,7 +477,7 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | @@ -906,7 +910,7 @@ public class TemplateListExample ## templateRemoveUser -> TemplateGetResponse templateRemoveUser(templateId, templateRemoveUserRequest) +> TemplateGetResponse templateRemoveUser(templateId, templateRemoveUserRequest, idempotencyKey) Remove User from Template @@ -970,6 +974,7 @@ public class TemplateRemoveUserExample |------------- | ------------- | ------------- | -------------| **templateId** | **String**| The id of the Template to remove the Account's access to. | **templateRemoveUserRequest** | [**TemplateRemoveUserRequest**](TemplateRemoveUserRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -987,13 +992,13 @@ public class TemplateRemoveUserExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## templateUpdateFiles -> TemplateUpdateFilesResponse templateUpdateFiles(templateId, templateUpdateFilesRequest) +> TemplateUpdateFilesResponse templateUpdateFiles(templateId, templateUpdateFilesRequest, idempotencyKey) Update Template Files @@ -1070,6 +1075,7 @@ public class TemplateUpdateFilesExample |------------- | ------------- | ------------- | -------------| **templateId** | **String**| The ID of the template whose files to update. | **templateUpdateFilesRequest** | [**TemplateUpdateFilesRequest**](TemplateUpdateFilesRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -1087,6 +1093,6 @@ public class TemplateUpdateFilesExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v1/docs/UnclaimedDraftApi.md b/sdks/java-v1/docs/UnclaimedDraftApi.md index 3f4dadabd..f7816f232 100644 --- a/sdks/java-v1/docs/UnclaimedDraftApi.md +++ b/sdks/java-v1/docs/UnclaimedDraftApi.md @@ -13,7 +13,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## unclaimedDraftCreate -> UnclaimedDraftCreateResponse unclaimedDraftCreate(unclaimedDraftCreateRequest) +> UnclaimedDraftCreateResponse unclaimedDraftCreate(unclaimedDraftCreateRequest, idempotencyKey) Create Unclaimed Draft @@ -89,6 +89,7 @@ public class UnclaimedDraftCreateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **unclaimedDraftCreateRequest** | [**UnclaimedDraftCreateRequest**](UnclaimedDraftCreateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -106,13 +107,13 @@ public class UnclaimedDraftCreateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## unclaimedDraftCreateEmbedded -> UnclaimedDraftCreateResponse unclaimedDraftCreateEmbedded(unclaimedDraftCreateEmbeddedRequest) +> UnclaimedDraftCreateResponse unclaimedDraftCreateEmbedded(unclaimedDraftCreateEmbeddedRequest, idempotencyKey) Create Embedded Unclaimed Draft @@ -181,6 +182,7 @@ public class UnclaimedDraftCreateEmbeddedExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **unclaimedDraftCreateEmbeddedRequest** | [**UnclaimedDraftCreateEmbeddedRequest**](UnclaimedDraftCreateEmbeddedRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -198,13 +200,13 @@ public class UnclaimedDraftCreateEmbeddedExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## unclaimedDraftCreateEmbeddedWithTemplate -> UnclaimedDraftCreateResponse unclaimedDraftCreateEmbeddedWithTemplate(unclaimedDraftCreateEmbeddedWithTemplateRequest) +> UnclaimedDraftCreateResponse unclaimedDraftCreateEmbeddedWithTemplate(unclaimedDraftCreateEmbeddedWithTemplateRequest, idempotencyKey) Create Embedded Unclaimed Draft with Template @@ -292,6 +294,7 @@ public class UnclaimedDraftCreateEmbeddedWithTemplateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **unclaimedDraftCreateEmbeddedWithTemplateRequest** | [**UnclaimedDraftCreateEmbeddedWithTemplateRequest**](UnclaimedDraftCreateEmbeddedWithTemplateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -309,13 +312,13 @@ public class UnclaimedDraftCreateEmbeddedWithTemplateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## unclaimedDraftEditAndResend -> UnclaimedDraftCreateResponse unclaimedDraftEditAndResend(signatureRequestId, unclaimedDraftEditAndResendRequest) +> UnclaimedDraftCreateResponse unclaimedDraftEditAndResend(signatureRequestId, unclaimedDraftEditAndResendRequest, idempotencyKey) Edit and Resend Unclaimed Draft @@ -382,6 +385,7 @@ public class UnclaimedDraftEditAndResendExample |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The ID of the signature request to edit and resend. | **unclaimedDraftEditAndResendRequest** | [**UnclaimedDraftEditAndResendRequest**](UnclaimedDraftEditAndResendRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -399,6 +403,6 @@ public class UnclaimedDraftEditAndResendExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/AccountApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/AccountApi.java index 836bd4bf4..8cfef09c3 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/AccountApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/AccountApi.java @@ -55,19 +55,41 @@ public void setApiClient(ApiClient apiClient) { * `email_address`. * * @param accountCreateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return AccountCreateResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public AccountCreateResponse accountCreate( + AccountCreateRequest accountCreateRequest, String idempotencyKey) throws ApiException { + return accountCreateWithHttpInfo(accountCreateRequest, idempotencyKey).getData(); + } + + /** + * @see AccountApi#accountCreate(AccountCreateRequest, String) + */ public AccountCreateResponse accountCreate(AccountCreateRequest accountCreateRequest) throws ApiException { - return accountCreateWithHttpInfo(accountCreateRequest).getData(); + String idempotencyKey = null; + + return accountCreateWithHttpInfo(accountCreateRequest, idempotencyKey).getData(); + } + + /** + * @see AccountApi#accountCreateWithHttpInfo(AccountCreateRequest, String) + */ + public ApiResponse accountCreateWithHttpInfo( + AccountCreateRequest accountCreateRequest) throws ApiException { + String idempotencyKey = null; + + return accountCreateWithHttpInfo(accountCreateRequest, idempotencyKey); } /** @@ -75,18 +97,20 @@ public AccountCreateResponse accountCreate(AccountCreateRequest accountCreateReq * `email_address`. * * @param accountCreateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<AccountCreateResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse accountCreateWithHttpInfo( - AccountCreateRequest accountCreateRequest) throws ApiException { + AccountCreateRequest accountCreateRequest, String idempotencyKey) throws ApiException { // Check required parameters if (accountCreateRequest == null) { @@ -96,6 +120,13 @@ public ApiResponse accountCreateWithHttpInfo( + " accountCreate"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = accountCreateRequest.createFormData(); @@ -113,7 +144,7 @@ public ApiResponse accountCreateWithHttpInfo( "POST", new ArrayList<>(), isFileTypeFound ? null : accountCreateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -239,19 +270,41 @@ public ApiResponse accountGetWithHttpInfo( * updates to the [Callback URL](/api/reference/tag/Callbacks-and-Events) and locale. * * @param accountUpdateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return AccountGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public AccountGetResponse accountUpdate( + AccountUpdateRequest accountUpdateRequest, String idempotencyKey) throws ApiException { + return accountUpdateWithHttpInfo(accountUpdateRequest, idempotencyKey).getData(); + } + + /** + * @see AccountApi#accountUpdate(AccountUpdateRequest, String) + */ public AccountGetResponse accountUpdate(AccountUpdateRequest accountUpdateRequest) throws ApiException { - return accountUpdateWithHttpInfo(accountUpdateRequest).getData(); + String idempotencyKey = null; + + return accountUpdateWithHttpInfo(accountUpdateRequest, idempotencyKey).getData(); + } + + /** + * @see AccountApi#accountUpdateWithHttpInfo(AccountUpdateRequest, String) + */ + public ApiResponse accountUpdateWithHttpInfo( + AccountUpdateRequest accountUpdateRequest) throws ApiException { + String idempotencyKey = null; + + return accountUpdateWithHttpInfo(accountUpdateRequest, idempotencyKey); } /** @@ -259,18 +312,20 @@ public AccountGetResponse accountUpdate(AccountUpdateRequest accountUpdateReques * updates to the [Callback URL](/api/reference/tag/Callbacks-and-Events) and locale. * * @param accountUpdateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<AccountGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse accountUpdateWithHttpInfo( - AccountUpdateRequest accountUpdateRequest) throws ApiException { + AccountUpdateRequest accountUpdateRequest, String idempotencyKey) throws ApiException { // Check required parameters if (accountUpdateRequest == null) { @@ -280,6 +335,13 @@ public ApiResponse accountUpdateWithHttpInfo( + " accountUpdate"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = accountUpdateRequest.createFormData(); @@ -297,7 +359,7 @@ public ApiResponse accountUpdateWithHttpInfo( "PUT", new ArrayList<>(), isFileTypeFound ? null : accountUpdateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -311,37 +373,61 @@ public ApiResponse accountUpdateWithHttpInfo( * Verify Account Verifies whether an Dropbox Sign Account exists for the given email address. * * @param accountVerifyRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return AccountVerifyResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public AccountVerifyResponse accountVerify( + AccountVerifyRequest accountVerifyRequest, String idempotencyKey) throws ApiException { + return accountVerifyWithHttpInfo(accountVerifyRequest, idempotencyKey).getData(); + } + + /** + * @see AccountApi#accountVerify(AccountVerifyRequest, String) + */ public AccountVerifyResponse accountVerify(AccountVerifyRequest accountVerifyRequest) throws ApiException { - return accountVerifyWithHttpInfo(accountVerifyRequest).getData(); + String idempotencyKey = null; + + return accountVerifyWithHttpInfo(accountVerifyRequest, idempotencyKey).getData(); + } + + /** + * @see AccountApi#accountVerifyWithHttpInfo(AccountVerifyRequest, String) + */ + public ApiResponse accountVerifyWithHttpInfo( + AccountVerifyRequest accountVerifyRequest) throws ApiException { + String idempotencyKey = null; + + return accountVerifyWithHttpInfo(accountVerifyRequest, idempotencyKey); } /** * Verify Account Verifies whether an Dropbox Sign Account exists for the given email address. * * @param accountVerifyRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<AccountVerifyResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse accountVerifyWithHttpInfo( - AccountVerifyRequest accountVerifyRequest) throws ApiException { + AccountVerifyRequest accountVerifyRequest, String idempotencyKey) throws ApiException { // Check required parameters if (accountVerifyRequest == null) { @@ -351,6 +437,13 @@ public ApiResponse accountVerifyWithHttpInfo( + " accountVerify"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = accountVerifyRequest.createFormData(); @@ -368,7 +461,7 @@ public ApiResponse accountVerifyWithHttpInfo( "POST", new ArrayList<>(), isFileTypeFound ? null : accountVerifyRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/ApiAppApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/ApiAppApi.java index b74007e35..3f92bca67 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/ApiAppApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/ApiAppApi.java @@ -52,37 +52,61 @@ public void setApiClient(ApiClient apiClient) { * Create API App Creates a new API App. * * @param apiAppCreateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiAppGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public ApiAppGetResponse apiAppCreate( + ApiAppCreateRequest apiAppCreateRequest, String idempotencyKey) throws ApiException { + return apiAppCreateWithHttpInfo(apiAppCreateRequest, idempotencyKey).getData(); + } + + /** + * @see ApiAppApi#apiAppCreate(ApiAppCreateRequest, String) + */ public ApiAppGetResponse apiAppCreate(ApiAppCreateRequest apiAppCreateRequest) throws ApiException { - return apiAppCreateWithHttpInfo(apiAppCreateRequest).getData(); + String idempotencyKey = null; + + return apiAppCreateWithHttpInfo(apiAppCreateRequest, idempotencyKey).getData(); + } + + /** + * @see ApiAppApi#apiAppCreateWithHttpInfo(ApiAppCreateRequest, String) + */ + public ApiResponse apiAppCreateWithHttpInfo( + ApiAppCreateRequest apiAppCreateRequest) throws ApiException { + String idempotencyKey = null; + + return apiAppCreateWithHttpInfo(apiAppCreateRequest, idempotencyKey); } /** * Create API App Creates a new API App. * * @param apiAppCreateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<ApiAppGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse apiAppCreateWithHttpInfo( - ApiAppCreateRequest apiAppCreateRequest) throws ApiException { + ApiAppCreateRequest apiAppCreateRequest, String idempotencyKey) throws ApiException { // Check required parameters if (apiAppCreateRequest == null) { @@ -92,6 +116,13 @@ public ApiResponse apiAppCreateWithHttpInfo( + " apiAppCreate"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = apiAppCreateRequest.createFormData(); @@ -109,7 +140,7 @@ public ApiResponse apiAppCreateWithHttpInfo( "POST", new ArrayList<>(), isFileTypeFound ? null : apiAppCreateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -381,19 +412,42 @@ public ApiResponse apiAppListWithHttpInfo(Integer page, Inte * * @param clientId The client id of the API App to update. (required) * @param apiAppUpdateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiAppGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public ApiAppGetResponse apiAppUpdate( + String clientId, ApiAppUpdateRequest apiAppUpdateRequest, String idempotencyKey) + throws ApiException { + return apiAppUpdateWithHttpInfo(clientId, apiAppUpdateRequest, idempotencyKey).getData(); + } + + /** + * @see ApiAppApi#apiAppUpdate(String, ApiAppUpdateRequest, String) + */ public ApiAppGetResponse apiAppUpdate(String clientId, ApiAppUpdateRequest apiAppUpdateRequest) throws ApiException { - return apiAppUpdateWithHttpInfo(clientId, apiAppUpdateRequest).getData(); + String idempotencyKey = null; + + return apiAppUpdateWithHttpInfo(clientId, apiAppUpdateRequest, idempotencyKey).getData(); + } + + /** + * @see ApiAppApi#apiAppUpdateWithHttpInfo(String, ApiAppUpdateRequest, String) + */ + public ApiResponse apiAppUpdateWithHttpInfo( + String clientId, ApiAppUpdateRequest apiAppUpdateRequest) throws ApiException { + String idempotencyKey = null; + + return apiAppUpdateWithHttpInfo(clientId, apiAppUpdateRequest, idempotencyKey); } /** @@ -403,18 +457,21 @@ public ApiAppGetResponse apiAppUpdate(String clientId, ApiAppUpdateRequest apiAp * * @param clientId The client id of the API App to update. (required) * @param apiAppUpdateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<ApiAppGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse apiAppUpdateWithHttpInfo( - String clientId, ApiAppUpdateRequest apiAppUpdateRequest) throws ApiException { + String clientId, ApiAppUpdateRequest apiAppUpdateRequest, String idempotencyKey) + throws ApiException { // Check required parameters if (clientId == null) { @@ -433,6 +490,13 @@ public ApiResponse apiAppUpdateWithHttpInfo( "/api_app/{client_id}" .replaceAll("\\{client_id}", apiClient.escapeString(clientId.toString())); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = apiAppUpdateRequest.createFormData(); @@ -450,7 +514,7 @@ public ApiResponse apiAppUpdateWithHttpInfo( "PUT", new ArrayList<>(), isFileTypeFound ? null : apiAppUpdateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/DocumentApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/DocumentApi.java index ccb577536..133e81159 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/DocumentApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/DocumentApi.java @@ -48,19 +48,44 @@ public void setApiClient(ApiClient apiClient) { * annotations or Dropbox Sign text tags. * * @param documentFieldDetectionRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return DocumentFieldDetectionResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public DocumentFieldDetectionResponse documentDetectFields( + DocumentFieldDetectionRequest documentFieldDetectionRequest, String idempotencyKey) + throws ApiException { + return documentDetectFieldsWithHttpInfo(documentFieldDetectionRequest, idempotencyKey) + .getData(); + } + + /** + * @see DocumentApi#documentDetectFields(DocumentFieldDetectionRequest, String) + */ public DocumentFieldDetectionResponse documentDetectFields( DocumentFieldDetectionRequest documentFieldDetectionRequest) throws ApiException { - return documentDetectFieldsWithHttpInfo(documentFieldDetectionRequest).getData(); + String idempotencyKey = null; + + return documentDetectFieldsWithHttpInfo(documentFieldDetectionRequest, idempotencyKey) + .getData(); + } + + /** + * @see DocumentApi#documentDetectFieldsWithHttpInfo(DocumentFieldDetectionRequest, String) + */ + public ApiResponse documentDetectFieldsWithHttpInfo( + DocumentFieldDetectionRequest documentFieldDetectionRequest) throws ApiException { + String idempotencyKey = null; + + return documentDetectFieldsWithHttpInfo(documentFieldDetectionRequest, idempotencyKey); } /** @@ -68,18 +93,21 @@ public DocumentFieldDetectionResponse documentDetectFields( * annotations or Dropbox Sign text tags. * * @param documentFieldDetectionRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<DocumentFieldDetectionResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse documentDetectFieldsWithHttpInfo( - DocumentFieldDetectionRequest documentFieldDetectionRequest) throws ApiException { + DocumentFieldDetectionRequest documentFieldDetectionRequest, String idempotencyKey) + throws ApiException { // Check required parameters if (documentFieldDetectionRequest == null) { @@ -89,6 +117,13 @@ public ApiResponse documentDetectFieldsWithHttpI + " documentDetectFields"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = documentFieldDetectionRequest.createFormData(); @@ -107,7 +142,7 @@ public ApiResponse documentDetectFieldsWithHttpI "POST", new ArrayList<>(), isFileTypeFound ? null : documentFieldDetectionRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/EmbeddedApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/EmbeddedApi.java index e89671c3d..cfe2d6d95 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/EmbeddedApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/EmbeddedApi.java @@ -52,19 +52,44 @@ public void setApiClient(ApiClient apiClient) { * * @param templateId The id of the template to edit. (required) * @param embeddedEditUrlRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return EmbeddedEditUrlResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public EmbeddedEditUrlResponse embeddedEditUrl( + String templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, String idempotencyKey) + throws ApiException { + return embeddedEditUrlWithHttpInfo(templateId, embeddedEditUrlRequest, idempotencyKey) + .getData(); + } + + /** + * @see EmbeddedApi#embeddedEditUrl(String, EmbeddedEditUrlRequest, String) + */ public EmbeddedEditUrlResponse embeddedEditUrl( String templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest) throws ApiException { - return embeddedEditUrlWithHttpInfo(templateId, embeddedEditUrlRequest).getData(); + String idempotencyKey = null; + + return embeddedEditUrlWithHttpInfo(templateId, embeddedEditUrlRequest, idempotencyKey) + .getData(); + } + + /** + * @see EmbeddedApi#embeddedEditUrlWithHttpInfo(String, EmbeddedEditUrlRequest, String) + */ + public ApiResponse embeddedEditUrlWithHttpInfo( + String templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest) throws ApiException { + String idempotencyKey = null; + + return embeddedEditUrlWithHttpInfo(templateId, embeddedEditUrlRequest, idempotencyKey); } /** @@ -74,18 +99,21 @@ public EmbeddedEditUrlResponse embeddedEditUrl( * * @param templateId The id of the template to edit. (required) * @param embeddedEditUrlRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<EmbeddedEditUrlResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse embeddedEditUrlWithHttpInfo( - String templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest) throws ApiException { + String templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, String idempotencyKey) + throws ApiException { // Check required parameters if (templateId == null) { @@ -106,6 +134,13 @@ public ApiResponse embeddedEditUrlWithHttpInfo( .replaceAll( "\\{template_id}", apiClient.escapeString(templateId.toString())); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = embeddedEditUrlRequest.createFormData(); @@ -123,7 +158,7 @@ public ApiResponse embeddedEditUrlWithHttpInfo( "POST", new ArrayList<>(), isFileTypeFound ? null : embeddedEditUrlRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/FaxApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/FaxApi.java index 259f1117d..e0436c37d 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/FaxApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/FaxApi.java @@ -369,36 +369,60 @@ public ApiResponse faxListWithHttpInfo(Integer page, Integer pa * Send Fax Creates and sends a new Fax with the submitted file(s) * * @param faxSendRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return FaxGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public FaxGetResponse faxSend(FaxSendRequest faxSendRequest, String idempotencyKey) + throws ApiException { + return faxSendWithHttpInfo(faxSendRequest, idempotencyKey).getData(); + } + + /** + * @see FaxApi#faxSend(FaxSendRequest, String) + */ public FaxGetResponse faxSend(FaxSendRequest faxSendRequest) throws ApiException { - return faxSendWithHttpInfo(faxSendRequest).getData(); + String idempotencyKey = null; + + return faxSendWithHttpInfo(faxSendRequest, idempotencyKey).getData(); + } + + /** + * @see FaxApi#faxSendWithHttpInfo(FaxSendRequest, String) + */ + public ApiResponse faxSendWithHttpInfo(FaxSendRequest faxSendRequest) + throws ApiException { + String idempotencyKey = null; + + return faxSendWithHttpInfo(faxSendRequest, idempotencyKey); } /** * Send Fax Creates and sends a new Fax with the submitted file(s) * * @param faxSendRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<FaxGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse faxSendWithHttpInfo(FaxSendRequest faxSendRequest) - throws ApiException { + public ApiResponse faxSendWithHttpInfo( + FaxSendRequest faxSendRequest, String idempotencyKey) throws ApiException { // Check required parameters if (faxSendRequest == null) { @@ -406,6 +430,13 @@ public ApiResponse faxSendWithHttpInfo(FaxSendRequest faxSendReq 400, "Missing the required parameter 'faxSendRequest' when calling faxSend"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = faxSendRequest.createFormData(); @@ -423,7 +454,7 @@ public ApiResponse faxSendWithHttpInfo(FaxSendRequest faxSendReq "POST", new ArrayList<>(), isFileTypeFound ? null : faxSendRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/FaxLineApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/FaxLineApi.java index 346232fe7..e6ef4af7e 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/FaxLineApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/FaxLineApi.java @@ -55,37 +55,63 @@ public void setApiClient(ApiClient apiClient) { * Add Fax Line User Grants a user access to the specified Fax Line. * * @param faxLineAddUserRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return FaxLineResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public FaxLineResponse faxLineAddUser( + FaxLineAddUserRequest faxLineAddUserRequest, String idempotencyKey) + throws ApiException { + return faxLineAddUserWithHttpInfo(faxLineAddUserRequest, idempotencyKey).getData(); + } + + /** + * @see FaxLineApi#faxLineAddUser(FaxLineAddUserRequest, String) + */ public FaxLineResponse faxLineAddUser(FaxLineAddUserRequest faxLineAddUserRequest) throws ApiException { - return faxLineAddUserWithHttpInfo(faxLineAddUserRequest).getData(); + String idempotencyKey = null; + + return faxLineAddUserWithHttpInfo(faxLineAddUserRequest, idempotencyKey).getData(); + } + + /** + * @see FaxLineApi#faxLineAddUserWithHttpInfo(FaxLineAddUserRequest, String) + */ + public ApiResponse faxLineAddUserWithHttpInfo( + FaxLineAddUserRequest faxLineAddUserRequest) throws ApiException { + String idempotencyKey = null; + + return faxLineAddUserWithHttpInfo(faxLineAddUserRequest, idempotencyKey); } /** * Add Fax Line User Grants a user access to the specified Fax Line. * * @param faxLineAddUserRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<FaxLineResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse faxLineAddUserWithHttpInfo( - FaxLineAddUserRequest faxLineAddUserRequest) throws ApiException { + FaxLineAddUserRequest faxLineAddUserRequest, String idempotencyKey) + throws ApiException { // Check required parameters if (faxLineAddUserRequest == null) { @@ -95,6 +121,13 @@ public ApiResponse faxLineAddUserWithHttpInfo( + " faxLineAddUser"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = faxLineAddUserRequest.createFormData(); @@ -111,7 +144,7 @@ public ApiResponse faxLineAddUserWithHttpInfo( "PUT", new ArrayList<>(), isFileTypeFound ? null : faxLineAddUserRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -273,37 +306,61 @@ public ApiResponse faxLineAreaCodeGetWithHttpInfo( * Purchase Fax Line Purchases a new Fax Line * * @param faxLineCreateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return FaxLineResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public FaxLineResponse faxLineCreate( + FaxLineCreateRequest faxLineCreateRequest, String idempotencyKey) throws ApiException { + return faxLineCreateWithHttpInfo(faxLineCreateRequest, idempotencyKey).getData(); + } + + /** + * @see FaxLineApi#faxLineCreate(FaxLineCreateRequest, String) + */ public FaxLineResponse faxLineCreate(FaxLineCreateRequest faxLineCreateRequest) throws ApiException { - return faxLineCreateWithHttpInfo(faxLineCreateRequest).getData(); + String idempotencyKey = null; + + return faxLineCreateWithHttpInfo(faxLineCreateRequest, idempotencyKey).getData(); + } + + /** + * @see FaxLineApi#faxLineCreateWithHttpInfo(FaxLineCreateRequest, String) + */ + public ApiResponse faxLineCreateWithHttpInfo( + FaxLineCreateRequest faxLineCreateRequest) throws ApiException { + String idempotencyKey = null; + + return faxLineCreateWithHttpInfo(faxLineCreateRequest, idempotencyKey); } /** * Purchase Fax Line Purchases a new Fax Line * * @param faxLineCreateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<FaxLineResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse faxLineCreateWithHttpInfo( - FaxLineCreateRequest faxLineCreateRequest) throws ApiException { + FaxLineCreateRequest faxLineCreateRequest, String idempotencyKey) throws ApiException { // Check required parameters if (faxLineCreateRequest == null) { @@ -313,6 +370,13 @@ public ApiResponse faxLineCreateWithHttpInfo( + " faxLineCreate"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = faxLineCreateRequest.createFormData(); @@ -329,7 +393,7 @@ public ApiResponse faxLineCreateWithHttpInfo( "POST", new ArrayList<>(), isFileTypeFound ? null : faxLineCreateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -653,37 +717,63 @@ public ApiResponse faxLineListWithHttpInfo( * Remove Fax Line Access Removes a user's access to the specified Fax Line * * @param faxLineRemoveUserRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return FaxLineResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public FaxLineResponse faxLineRemoveUser( + FaxLineRemoveUserRequest faxLineRemoveUserRequest, String idempotencyKey) + throws ApiException { + return faxLineRemoveUserWithHttpInfo(faxLineRemoveUserRequest, idempotencyKey).getData(); + } + + /** + * @see FaxLineApi#faxLineRemoveUser(FaxLineRemoveUserRequest, String) + */ public FaxLineResponse faxLineRemoveUser(FaxLineRemoveUserRequest faxLineRemoveUserRequest) throws ApiException { - return faxLineRemoveUserWithHttpInfo(faxLineRemoveUserRequest).getData(); + String idempotencyKey = null; + + return faxLineRemoveUserWithHttpInfo(faxLineRemoveUserRequest, idempotencyKey).getData(); + } + + /** + * @see FaxLineApi#faxLineRemoveUserWithHttpInfo(FaxLineRemoveUserRequest, String) + */ + public ApiResponse faxLineRemoveUserWithHttpInfo( + FaxLineRemoveUserRequest faxLineRemoveUserRequest) throws ApiException { + String idempotencyKey = null; + + return faxLineRemoveUserWithHttpInfo(faxLineRemoveUserRequest, idempotencyKey); } /** * Remove Fax Line Access Removes a user's access to the specified Fax Line * * @param faxLineRemoveUserRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<FaxLineResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse faxLineRemoveUserWithHttpInfo( - FaxLineRemoveUserRequest faxLineRemoveUserRequest) throws ApiException { + FaxLineRemoveUserRequest faxLineRemoveUserRequest, String idempotencyKey) + throws ApiException { // Check required parameters if (faxLineRemoveUserRequest == null) { @@ -693,6 +783,13 @@ public ApiResponse faxLineRemoveUserWithHttpInfo( + " faxLineRemoveUser"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = faxLineRemoveUserRequest.createFormData(); @@ -709,7 +806,7 @@ public ApiResponse faxLineRemoveUserWithHttpInfo( "PUT", new ArrayList<>(), isFileTypeFound ? null : faxLineRemoveUserRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/ReportApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/ReportApi.java index 32c6bea91..4ba7662aa 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/ReportApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/ReportApi.java @@ -50,19 +50,41 @@ public void setApiClient(ApiClient apiClient) { * duration, and `start_date` must not be more than 10 years in the past. * * @param reportCreateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ReportCreateResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public ReportCreateResponse reportCreate( + ReportCreateRequest reportCreateRequest, String idempotencyKey) throws ApiException { + return reportCreateWithHttpInfo(reportCreateRequest, idempotencyKey).getData(); + } + + /** + * @see ReportApi#reportCreate(ReportCreateRequest, String) + */ public ReportCreateResponse reportCreate(ReportCreateRequest reportCreateRequest) throws ApiException { - return reportCreateWithHttpInfo(reportCreateRequest).getData(); + String idempotencyKey = null; + + return reportCreateWithHttpInfo(reportCreateRequest, idempotencyKey).getData(); + } + + /** + * @see ReportApi#reportCreateWithHttpInfo(ReportCreateRequest, String) + */ + public ApiResponse reportCreateWithHttpInfo( + ReportCreateRequest reportCreateRequest) throws ApiException { + String idempotencyKey = null; + + return reportCreateWithHttpInfo(reportCreateRequest, idempotencyKey); } /** @@ -72,18 +94,20 @@ public ReportCreateResponse reportCreate(ReportCreateRequest reportCreateRequest * duration, and `start_date` must not be more than 10 years in the past. * * @param reportCreateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<ReportCreateResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse reportCreateWithHttpInfo( - ReportCreateRequest reportCreateRequest) throws ApiException { + ReportCreateRequest reportCreateRequest, String idempotencyKey) throws ApiException { // Check required parameters if (reportCreateRequest == null) { @@ -93,6 +117,13 @@ public ApiResponse reportCreateWithHttpInfo( + " reportCreate"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = reportCreateRequest.createFormData(); @@ -110,7 +141,7 @@ public ApiResponse reportCreateWithHttpInfo( "POST", new ArrayList<>(), isFileTypeFound ? null : reportCreateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/SignatureRequestApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/SignatureRequestApi.java index acda9a05e..964b794d9 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/SignatureRequestApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/SignatureRequestApi.java @@ -70,25 +70,60 @@ public void setApiClient(ApiClient apiClient) { * Sign. **NOTE:** Only available for Standard plan and higher. * * @param signatureRequestBulkCreateEmbeddedWithTemplateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return BulkSendJobSendResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public BulkSendJobSendResponse signatureRequestBulkCreateEmbeddedWithTemplate( + SignatureRequestBulkCreateEmbeddedWithTemplateRequest + signatureRequestBulkCreateEmbeddedWithTemplateRequest, + String idempotencyKey) + throws ApiException { + return signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo( + signatureRequestBulkCreateEmbeddedWithTemplateRequest, idempotencyKey) + .getData(); + } + + /** + * @see + * SignatureRequestApi#signatureRequestBulkCreateEmbeddedWithTemplate(SignatureRequestBulkCreateEmbeddedWithTemplateRequest, + * String) + */ public BulkSendJobSendResponse signatureRequestBulkCreateEmbeddedWithTemplate( SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest) throws ApiException { + String idempotencyKey = null; + return signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo( - signatureRequestBulkCreateEmbeddedWithTemplateRequest) + signatureRequestBulkCreateEmbeddedWithTemplateRequest, idempotencyKey) .getData(); } + /** + * @see + * SignatureRequestApi#signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestBulkCreateEmbeddedWithTemplateRequest, + * String) + */ + public ApiResponse + signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo( + SignatureRequestBulkCreateEmbeddedWithTemplateRequest + signatureRequestBulkCreateEmbeddedWithTemplateRequest) + throws ApiException { + String idempotencyKey = null; + + return signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo( + signatureRequestBulkCreateEmbeddedWithTemplateRequest, idempotencyKey); + } + /** * Embedded Bulk Send with Template Creates BulkSendJob which sends up to 250 SignatureRequests * in bulk based off of the provided Template(s) specified with the `template_ids` @@ -97,20 +132,23 @@ public BulkSendJobSendResponse signatureRequestBulkCreateEmbeddedWithTemplate( * Sign. **NOTE:** Only available for Standard plan and higher. * * @param signatureRequestBulkCreateEmbeddedWithTemplateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<BulkSendJobSendResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo( SignatureRequestBulkCreateEmbeddedWithTemplateRequest - signatureRequestBulkCreateEmbeddedWithTemplateRequest) + signatureRequestBulkCreateEmbeddedWithTemplateRequest, + String idempotencyKey) throws ApiException { // Check required parameters @@ -122,6 +160,13 @@ public BulkSendJobSendResponse signatureRequestBulkCreateEmbeddedWithTemplate( + " signatureRequestBulkCreateEmbeddedWithTemplate"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestBulkCreateEmbeddedWithTemplateRequest.createFormData(); @@ -140,7 +185,7 @@ public BulkSendJobSendResponse signatureRequestBulkCreateEmbeddedWithTemplate( "POST", new ArrayList<>(), isFileTypeFound ? null : signatureRequestBulkCreateEmbeddedWithTemplateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -156,42 +201,77 @@ public BulkSendJobSendResponse signatureRequestBulkCreateEmbeddedWithTemplate( * **NOTE:** Only available for Standard plan and higher. * * @param signatureRequestBulkSendWithTemplateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return BulkSendJobSendResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public BulkSendJobSendResponse signatureRequestBulkSendWithTemplate( + SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, + String idempotencyKey) + throws ApiException { + return signatureRequestBulkSendWithTemplateWithHttpInfo( + signatureRequestBulkSendWithTemplateRequest, idempotencyKey) + .getData(); + } + + /** + * @see + * SignatureRequestApi#signatureRequestBulkSendWithTemplate(SignatureRequestBulkSendWithTemplateRequest, + * String) + */ public BulkSendJobSendResponse signatureRequestBulkSendWithTemplate( SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest) throws ApiException { + String idempotencyKey = null; + return signatureRequestBulkSendWithTemplateWithHttpInfo( - signatureRequestBulkSendWithTemplateRequest) + signatureRequestBulkSendWithTemplateRequest, idempotencyKey) .getData(); } + /** + * @see + * SignatureRequestApi#signatureRequestBulkSendWithTemplateWithHttpInfo(SignatureRequestBulkSendWithTemplateRequest, + * String) + */ + public ApiResponse signatureRequestBulkSendWithTemplateWithHttpInfo( + SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest) + throws ApiException { + String idempotencyKey = null; + + return signatureRequestBulkSendWithTemplateWithHttpInfo( + signatureRequestBulkSendWithTemplateRequest, idempotencyKey); + } + /** * Bulk Send with Template Creates BulkSendJob which sends up to 250 SignatureRequests in bulk * based off of the provided Template(s) specified with the `template_ids` parameter. * **NOTE:** Only available for Standard plan and higher. * * @param signatureRequestBulkSendWithTemplateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<BulkSendJobSendResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse signatureRequestBulkSendWithTemplateWithHttpInfo( - SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest) + SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, + String idempotencyKey) throws ApiException { // Check required parameters @@ -202,6 +282,13 @@ public ApiResponse signatureRequestBulkSendWithTemplate + " when calling signatureRequestBulkSendWithTemplate"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestBulkSendWithTemplateRequest.createFormData(); @@ -220,7 +307,7 @@ public ApiResponse signatureRequestBulkSendWithTemplate "POST", new ArrayList<>(), isFileTypeFound ? null : signatureRequestBulkSendWithTemplateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -251,17 +338,39 @@ public ApiResponse signatureRequestBulkSendWithTemplate * endpoint: `POST /signature_request/remove/[:signature_request_id]`. * * @param signatureRequestId The id of the incomplete SignatureRequest to cancel. (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public void signatureRequestCancel(String signatureRequestId, String idempotencyKey) + throws ApiException { + signatureRequestCancelWithHttpInfo(signatureRequestId, idempotencyKey); + } + + /** + * @see SignatureRequestApi#signatureRequestCancel(String, String) + */ public void signatureRequestCancel(String signatureRequestId) throws ApiException { - signatureRequestCancelWithHttpInfo(signatureRequestId); + String idempotencyKey = null; + + signatureRequestCancelWithHttpInfo(signatureRequestId, idempotencyKey); + } + + /** + * @see SignatureRequestApi#signatureRequestCancelWithHttpInfo(String, String) + */ + public ApiResponse signatureRequestCancelWithHttpInfo(String signatureRequestId) + throws ApiException { + String idempotencyKey = null; + + return signatureRequestCancelWithHttpInfo(signatureRequestId, idempotencyKey); } /** @@ -285,18 +394,20 @@ public void signatureRequestCancel(String signatureRequestId) throws ApiExceptio * endpoint: `POST /signature_request/remove/[:signature_request_id]`. * * @param signatureRequestId The id of the incomplete SignatureRequest to cancel. (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse signatureRequestCancelWithHttpInfo(String signatureRequestId) - throws ApiException { + public ApiResponse signatureRequestCancelWithHttpInfo( + String signatureRequestId, String idempotencyKey) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -313,6 +424,13 @@ public ApiResponse signatureRequestCancelWithHttpInfo(String signatureRequ "\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = new HashMap(); @@ -326,7 +444,7 @@ public ApiResponse signatureRequestCancelWithHttpInfo(String signatureRequ "POST", new ArrayList<>(), null, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -345,23 +463,56 @@ public ApiResponse signatureRequestCancelWithHttpInfo(String signatureRequ * Sign. * * @param signatureRequestCreateEmbeddedRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public SignatureRequestGetResponse signatureRequestCreateEmbedded( + SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, + String idempotencyKey) + throws ApiException { + return signatureRequestCreateEmbeddedWithHttpInfo( + signatureRequestCreateEmbeddedRequest, idempotencyKey) + .getData(); + } + + /** + * @see + * SignatureRequestApi#signatureRequestCreateEmbedded(SignatureRequestCreateEmbeddedRequest, + * String) + */ public SignatureRequestGetResponse signatureRequestCreateEmbedded( SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest) throws ApiException { - return signatureRequestCreateEmbeddedWithHttpInfo(signatureRequestCreateEmbeddedRequest) + String idempotencyKey = null; + + return signatureRequestCreateEmbeddedWithHttpInfo( + signatureRequestCreateEmbeddedRequest, idempotencyKey) .getData(); } + /** + * @see + * SignatureRequestApi#signatureRequestCreateEmbeddedWithHttpInfo(SignatureRequestCreateEmbeddedRequest, + * String) + */ + public ApiResponse signatureRequestCreateEmbeddedWithHttpInfo( + SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest) + throws ApiException { + String idempotencyKey = null; + + return signatureRequestCreateEmbeddedWithHttpInfo( + signatureRequestCreateEmbeddedRequest, idempotencyKey); + } + /** * Create Embedded Signature Request Creates a new SignatureRequest with the submitted documents * to be signed in an embedded iFrame. If form_fields_per_document is not specified, a signature @@ -371,18 +522,21 @@ public SignatureRequestGetResponse signatureRequestCreateEmbedded( * Sign. * * @param signatureRequestCreateEmbeddedRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse signatureRequestCreateEmbeddedWithHttpInfo( - SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest) + SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, + String idempotencyKey) throws ApiException { // Check required parameters @@ -393,6 +547,13 @@ public ApiResponse signatureRequestCreateEmbeddedWi + " calling signatureRequestCreateEmbedded"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestCreateEmbeddedRequest.createFormData(); @@ -411,7 +572,7 @@ public ApiResponse signatureRequestCreateEmbeddedWi "POST", new ArrayList<>(), isFileTypeFound ? null : signatureRequestCreateEmbeddedRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -428,25 +589,60 @@ public ApiResponse signatureRequestCreateEmbeddedWi * on Dropbox Sign. * * @param signatureRequestCreateEmbeddedWithTemplateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public SignatureRequestGetResponse signatureRequestCreateEmbeddedWithTemplate( + SignatureRequestCreateEmbeddedWithTemplateRequest + signatureRequestCreateEmbeddedWithTemplateRequest, + String idempotencyKey) + throws ApiException { + return signatureRequestCreateEmbeddedWithTemplateWithHttpInfo( + signatureRequestCreateEmbeddedWithTemplateRequest, idempotencyKey) + .getData(); + } + + /** + * @see + * SignatureRequestApi#signatureRequestCreateEmbeddedWithTemplate(SignatureRequestCreateEmbeddedWithTemplateRequest, + * String) + */ public SignatureRequestGetResponse signatureRequestCreateEmbeddedWithTemplate( SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest) throws ApiException { + String idempotencyKey = null; + return signatureRequestCreateEmbeddedWithTemplateWithHttpInfo( - signatureRequestCreateEmbeddedWithTemplateRequest) + signatureRequestCreateEmbeddedWithTemplateRequest, idempotencyKey) .getData(); } + /** + * @see + * SignatureRequestApi#signatureRequestCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestCreateEmbeddedWithTemplateRequest, + * String) + */ + public ApiResponse + signatureRequestCreateEmbeddedWithTemplateWithHttpInfo( + SignatureRequestCreateEmbeddedWithTemplateRequest + signatureRequestCreateEmbeddedWithTemplateRequest) + throws ApiException { + String idempotencyKey = null; + + return signatureRequestCreateEmbeddedWithTemplateWithHttpInfo( + signatureRequestCreateEmbeddedWithTemplateRequest, idempotencyKey); + } + /** * Create Embedded Signature Request with Template Creates a new SignatureRequest based on the * given Template(s) to be signed in an embedded iFrame. Note that embedded signature requests @@ -454,20 +650,23 @@ public SignatureRequestGetResponse signatureRequestCreateEmbeddedWithTemplate( * on Dropbox Sign. * * @param signatureRequestCreateEmbeddedWithTemplateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse signatureRequestCreateEmbeddedWithTemplateWithHttpInfo( SignatureRequestCreateEmbeddedWithTemplateRequest - signatureRequestCreateEmbeddedWithTemplateRequest) + signatureRequestCreateEmbeddedWithTemplateRequest, + String idempotencyKey) throws ApiException { // Check required parameters @@ -479,6 +678,13 @@ public SignatureRequestGetResponse signatureRequestCreateEmbeddedWithTemplate( + " signatureRequestCreateEmbeddedWithTemplate"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestCreateEmbeddedWithTemplateRequest.createFormData(); @@ -497,7 +703,7 @@ public SignatureRequestGetResponse signatureRequestCreateEmbeddedWithTemplate( "POST", new ArrayList<>(), isFileTypeFound ? null : signatureRequestCreateEmbeddedWithTemplateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -515,23 +721,54 @@ public SignatureRequestGetResponse signatureRequestCreateEmbeddedWithTemplate( * * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public SignatureRequestGetResponse signatureRequestEdit( + String signatureRequestId, + SignatureRequestEditRequest signatureRequestEditRequest, + String idempotencyKey) + throws ApiException { + return signatureRequestEditWithHttpInfo( + signatureRequestId, signatureRequestEditRequest, idempotencyKey) + .getData(); + } + + /** + * @see SignatureRequestApi#signatureRequestEdit(String, SignatureRequestEditRequest, String) + */ public SignatureRequestGetResponse signatureRequestEdit( String signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest) throws ApiException { - return signatureRequestEditWithHttpInfo(signatureRequestId, signatureRequestEditRequest) + String idempotencyKey = null; + + return signatureRequestEditWithHttpInfo( + signatureRequestId, signatureRequestEditRequest, idempotencyKey) .getData(); } + /** + * @see SignatureRequestApi#signatureRequestEditWithHttpInfo(String, + * SignatureRequestEditRequest, String) + */ + public ApiResponse signatureRequestEditWithHttpInfo( + String signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest) + throws ApiException { + String idempotencyKey = null; + + return signatureRequestEditWithHttpInfo( + signatureRequestId, signatureRequestEditRequest, idempotencyKey); + } + /** * Edit Signature Request Edits and sends a SignatureRequest with the submitted documents. If * `form_fields_per_document` is not specified, a signature page will be affixed where @@ -540,18 +777,22 @@ public SignatureRequestGetResponse signatureRequestEdit( * * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse signatureRequestEditWithHttpInfo( - String signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest) + String signatureRequestId, + SignatureRequestEditRequest signatureRequestEditRequest, + String idempotencyKey) throws ApiException { // Check required parameters @@ -575,6 +816,13 @@ public ApiResponse signatureRequestEditWithHttpInfo "\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestEditRequest.createFormData(); @@ -593,7 +841,7 @@ public ApiResponse signatureRequestEditWithHttpInfo "PUT", new ArrayList<>(), isFileTypeFound ? null : signatureRequestEditRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -613,25 +861,57 @@ public ApiResponse signatureRequestEditWithHttpInfo * * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditEmbeddedRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public SignatureRequestGetResponse signatureRequestEditEmbedded( + String signatureRequestId, + SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, + String idempotencyKey) + throws ApiException { + return signatureRequestEditEmbeddedWithHttpInfo( + signatureRequestId, signatureRequestEditEmbeddedRequest, idempotencyKey) + .getData(); + } + + /** + * @see SignatureRequestApi#signatureRequestEditEmbedded(String, + * SignatureRequestEditEmbeddedRequest, String) + */ public SignatureRequestGetResponse signatureRequestEditEmbedded( String signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest) throws ApiException { + String idempotencyKey = null; + return signatureRequestEditEmbeddedWithHttpInfo( - signatureRequestId, signatureRequestEditEmbeddedRequest) + signatureRequestId, signatureRequestEditEmbeddedRequest, idempotencyKey) .getData(); } + /** + * @see SignatureRequestApi#signatureRequestEditEmbeddedWithHttpInfo(String, + * SignatureRequestEditEmbeddedRequest, String) + */ + public ApiResponse signatureRequestEditEmbeddedWithHttpInfo( + String signatureRequestId, + SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest) + throws ApiException { + String idempotencyKey = null; + + return signatureRequestEditEmbeddedWithHttpInfo( + signatureRequestId, signatureRequestEditEmbeddedRequest, idempotencyKey); + } + /** * Edit Embedded Signature Request Edits a SignatureRequest with the submitted documents to be * signed in an embedded iFrame. If form_fields_per_document is not specified, a signature page @@ -642,19 +922,22 @@ public SignatureRequestGetResponse signatureRequestEditEmbedded( * * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditEmbeddedRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse signatureRequestEditEmbeddedWithHttpInfo( String signatureRequestId, - SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest) + SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, + String idempotencyKey) throws ApiException { // Check required parameters @@ -678,6 +961,13 @@ public ApiResponse signatureRequestEditEmbeddedWith "\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestEditEmbeddedRequest.createFormData(); @@ -696,7 +986,7 @@ public ApiResponse signatureRequestEditEmbeddedWith "PUT", new ArrayList<>(), isFileTypeFound ? null : signatureRequestEditEmbeddedRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -714,26 +1004,67 @@ public ApiResponse signatureRequestEditEmbeddedWith * * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditEmbeddedWithTemplateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate( + String signatureRequestId, + SignatureRequestEditEmbeddedWithTemplateRequest + signatureRequestEditEmbeddedWithTemplateRequest, + String idempotencyKey) + throws ApiException { + return signatureRequestEditEmbeddedWithTemplateWithHttpInfo( + signatureRequestId, + signatureRequestEditEmbeddedWithTemplateRequest, + idempotencyKey) + .getData(); + } + + /** + * @see SignatureRequestApi#signatureRequestEditEmbeddedWithTemplate(String, + * SignatureRequestEditEmbeddedWithTemplateRequest, String) + */ public SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate( String signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest) throws ApiException { + String idempotencyKey = null; + return signatureRequestEditEmbeddedWithTemplateWithHttpInfo( - signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest) + signatureRequestId, + signatureRequestEditEmbeddedWithTemplateRequest, + idempotencyKey) .getData(); } + /** + * @see SignatureRequestApi#signatureRequestEditEmbeddedWithTemplateWithHttpInfo(String, + * SignatureRequestEditEmbeddedWithTemplateRequest, String) + */ + public ApiResponse + signatureRequestEditEmbeddedWithTemplateWithHttpInfo( + String signatureRequestId, + SignatureRequestEditEmbeddedWithTemplateRequest + signatureRequestEditEmbeddedWithTemplateRequest) + throws ApiException { + String idempotencyKey = null; + + return signatureRequestEditEmbeddedWithTemplateWithHttpInfo( + signatureRequestId, + signatureRequestEditEmbeddedWithTemplateRequest, + idempotencyKey); + } + /** * Edit Embedded Signature Request with Template Edits a SignatureRequest based on the given * Template(s) to be signed in an embedded iFrame. Note that embedded signature requests can @@ -742,13 +1073,15 @@ public SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate( * * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditEmbeddedWithTemplateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ @@ -756,7 +1089,8 @@ public SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate( signatureRequestEditEmbeddedWithTemplateWithHttpInfo( String signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest - signatureRequestEditEmbeddedWithTemplateRequest) + signatureRequestEditEmbeddedWithTemplateRequest, + String idempotencyKey) throws ApiException { // Check required parameters @@ -781,6 +1115,13 @@ public SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate( "\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestEditEmbeddedWithTemplateRequest.createFormData(); @@ -799,7 +1140,7 @@ public SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate( "PUT", new ArrayList<>(), isFileTypeFound ? null : signatureRequestEditEmbeddedWithTemplateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -816,25 +1157,57 @@ public SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate( * * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditWithTemplateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public SignatureRequestGetResponse signatureRequestEditWithTemplate( + String signatureRequestId, + SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, + String idempotencyKey) + throws ApiException { + return signatureRequestEditWithTemplateWithHttpInfo( + signatureRequestId, signatureRequestEditWithTemplateRequest, idempotencyKey) + .getData(); + } + + /** + * @see SignatureRequestApi#signatureRequestEditWithTemplate(String, + * SignatureRequestEditWithTemplateRequest, String) + */ public SignatureRequestGetResponse signatureRequestEditWithTemplate( String signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest) throws ApiException { + String idempotencyKey = null; + return signatureRequestEditWithTemplateWithHttpInfo( - signatureRequestId, signatureRequestEditWithTemplateRequest) + signatureRequestId, signatureRequestEditWithTemplateRequest, idempotencyKey) .getData(); } + /** + * @see SignatureRequestApi#signatureRequestEditWithTemplateWithHttpInfo(String, + * SignatureRequestEditWithTemplateRequest, String) + */ + public ApiResponse signatureRequestEditWithTemplateWithHttpInfo( + String signatureRequestId, + SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest) + throws ApiException { + String idempotencyKey = null; + + return signatureRequestEditWithTemplateWithHttpInfo( + signatureRequestId, signatureRequestEditWithTemplateRequest, idempotencyKey); + } + /** * Edit Signature Request With Template Edits and sends a SignatureRequest based off of the * Template(s) specified with the template_ids parameter. **NOTE:** Edit and resend *will* @@ -842,19 +1215,22 @@ public SignatureRequestGetResponse signatureRequestEditWithTemplate( * * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditWithTemplateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse signatureRequestEditWithTemplateWithHttpInfo( String signatureRequestId, - SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest) + SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, + String idempotencyKey) throws ApiException { // Check required parameters @@ -878,6 +1254,13 @@ public ApiResponse signatureRequestEditWithTemplate "\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestEditWithTemplateRequest.createFormData(); @@ -896,7 +1279,7 @@ public ApiResponse signatureRequestEditWithTemplate "PUT", new ArrayList<>(), isFileTypeFound ? null : signatureRequestEditWithTemplateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -1484,19 +1867,43 @@ public ApiResponse signatureRequestListWithHttpInf * held. Releasing the SignatureRequest will send requests to all signers. * * @param signatureRequestId The id of the SignatureRequest to release. (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public SignatureRequestGetResponse signatureRequestReleaseHold( + String signatureRequestId, String idempotencyKey) throws ApiException { + return signatureRequestReleaseHoldWithHttpInfo(signatureRequestId, idempotencyKey) + .getData(); + } + + /** + * @see SignatureRequestApi#signatureRequestReleaseHold(String, String) + */ public SignatureRequestGetResponse signatureRequestReleaseHold(String signatureRequestId) throws ApiException { - return signatureRequestReleaseHoldWithHttpInfo(signatureRequestId).getData(); + String idempotencyKey = null; + + return signatureRequestReleaseHoldWithHttpInfo(signatureRequestId, idempotencyKey) + .getData(); + } + + /** + * @see SignatureRequestApi#signatureRequestReleaseHoldWithHttpInfo(String, String) + */ + public ApiResponse signatureRequestReleaseHoldWithHttpInfo( + String signatureRequestId) throws ApiException { + String idempotencyKey = null; + + return signatureRequestReleaseHoldWithHttpInfo(signatureRequestId, idempotencyKey); } /** @@ -1506,18 +1913,20 @@ public SignatureRequestGetResponse signatureRequestReleaseHold(String signatureR * held. Releasing the SignatureRequest will send requests to all signers. * * @param signatureRequestId The id of the SignatureRequest to release. (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse signatureRequestReleaseHoldWithHttpInfo( - String signatureRequestId) throws ApiException { + String signatureRequestId, String idempotencyKey) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -1534,6 +1943,13 @@ public ApiResponse signatureRequestReleaseHoldWithH "\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = new HashMap(); @@ -1549,7 +1965,7 @@ public ApiResponse signatureRequestReleaseHoldWithH "POST", new ArrayList<>(), null, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -1567,23 +1983,55 @@ public ApiResponse signatureRequestReleaseHoldWithH * * @param signatureRequestId The id of the SignatureRequest to send a reminder for. (required) * @param signatureRequestRemindRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public SignatureRequestGetResponse signatureRequestRemind( + String signatureRequestId, + SignatureRequestRemindRequest signatureRequestRemindRequest, + String idempotencyKey) + throws ApiException { + return signatureRequestRemindWithHttpInfo( + signatureRequestId, signatureRequestRemindRequest, idempotencyKey) + .getData(); + } + + /** + * @see SignatureRequestApi#signatureRequestRemind(String, SignatureRequestRemindRequest, + * String) + */ public SignatureRequestGetResponse signatureRequestRemind( String signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest) throws ApiException { - return signatureRequestRemindWithHttpInfo(signatureRequestId, signatureRequestRemindRequest) + String idempotencyKey = null; + + return signatureRequestRemindWithHttpInfo( + signatureRequestId, signatureRequestRemindRequest, idempotencyKey) .getData(); } + /** + * @see SignatureRequestApi#signatureRequestRemindWithHttpInfo(String, + * SignatureRequestRemindRequest, String) + */ + public ApiResponse signatureRequestRemindWithHttpInfo( + String signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest) + throws ApiException { + String idempotencyKey = null; + + return signatureRequestRemindWithHttpInfo( + signatureRequestId, signatureRequestRemindRequest, idempotencyKey); + } + /** * Send Request Reminder Sends an email to the signer reminding them to sign the signature * request. You cannot send a reminder within 1 hour of the last reminder that was sent. This @@ -1592,18 +2040,22 @@ public SignatureRequestGetResponse signatureRequestRemind( * * @param signatureRequestId The id of the SignatureRequest to send a reminder for. (required) * @param signatureRequestRemindRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse signatureRequestRemindWithHttpInfo( - String signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest) + String signatureRequestId, + SignatureRequestRemindRequest signatureRequestRemindRequest, + String idempotencyKey) throws ApiException { // Check required parameters @@ -1627,6 +2079,13 @@ public ApiResponse signatureRequestRemindWithHttpIn "\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestRemindRequest.createFormData(); @@ -1644,7 +2103,7 @@ public ApiResponse signatureRequestRemindWithHttpIn "POST", new ArrayList<>(), isFileTypeFound ? null : signatureRequestRemindRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -1663,17 +2122,39 @@ public ApiResponse signatureRequestRemindWithHttpIn * return a 200 OK response. * * @param signatureRequestId The id of the SignatureRequest to remove. (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public void signatureRequestRemove(String signatureRequestId, String idempotencyKey) + throws ApiException { + signatureRequestRemoveWithHttpInfo(signatureRequestId, idempotencyKey); + } + + /** + * @see SignatureRequestApi#signatureRequestRemove(String, String) + */ public void signatureRequestRemove(String signatureRequestId) throws ApiException { - signatureRequestRemoveWithHttpInfo(signatureRequestId); + String idempotencyKey = null; + + signatureRequestRemoveWithHttpInfo(signatureRequestId, idempotencyKey); + } + + /** + * @see SignatureRequestApi#signatureRequestRemoveWithHttpInfo(String, String) + */ + public ApiResponse signatureRequestRemoveWithHttpInfo(String signatureRequestId) + throws ApiException { + String idempotencyKey = null; + + return signatureRequestRemoveWithHttpInfo(signatureRequestId, idempotencyKey); } /** @@ -1685,18 +2166,20 @@ public void signatureRequestRemove(String signatureRequestId) throws ApiExceptio * return a 200 OK response. * * @param signatureRequestId The id of the SignatureRequest to remove. (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse signatureRequestRemoveWithHttpInfo(String signatureRequestId) - throws ApiException { + public ApiResponse signatureRequestRemoveWithHttpInfo( + String signatureRequestId, String idempotencyKey) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -1713,6 +2196,13 @@ public ApiResponse signatureRequestRemoveWithHttpInfo(String signatureRequ "\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = new HashMap(); @@ -1726,7 +2216,7 @@ public ApiResponse signatureRequestRemoveWithHttpInfo(String signatureRequ "POST", new ArrayList<>(), null, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -1743,19 +2233,45 @@ public ApiResponse signatureRequestRemoveWithHttpInfo(String signatureRequ * contained documents. * * @param signatureRequestSendRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public SignatureRequestGetResponse signatureRequestSend( + SignatureRequestSendRequest signatureRequestSendRequest, String idempotencyKey) + throws ApiException { + return signatureRequestSendWithHttpInfo(signatureRequestSendRequest, idempotencyKey) + .getData(); + } + + /** + * @see SignatureRequestApi#signatureRequestSend(SignatureRequestSendRequest, String) + */ + public SignatureRequestGetResponse signatureRequestSend( + SignatureRequestSendRequest signatureRequestSendRequest) throws ApiException { + String idempotencyKey = null; + + return signatureRequestSendWithHttpInfo(signatureRequestSendRequest, idempotencyKey) + .getData(); + } + + /** + * @see SignatureRequestApi#signatureRequestSendWithHttpInfo(SignatureRequestSendRequest, + * String) + */ + public ApiResponse signatureRequestSendWithHttpInfo( SignatureRequestSendRequest signatureRequestSendRequest) throws ApiException { - return signatureRequestSendWithHttpInfo(signatureRequestSendRequest).getData(); + String idempotencyKey = null; + + return signatureRequestSendWithHttpInfo(signatureRequestSendRequest, idempotencyKey); } /** @@ -1765,18 +2281,21 @@ public SignatureRequestGetResponse signatureRequestSend( * contained documents. * * @param signatureRequestSendRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse signatureRequestSendWithHttpInfo( - SignatureRequestSendRequest signatureRequestSendRequest) throws ApiException { + SignatureRequestSendRequest signatureRequestSendRequest, String idempotencyKey) + throws ApiException { // Check required parameters if (signatureRequestSendRequest == null) { @@ -1786,6 +2305,13 @@ public ApiResponse signatureRequestSendWithHttpInfo + " signatureRequestSend"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestSendRequest.createFormData(); @@ -1804,7 +2330,7 @@ public ApiResponse signatureRequestSendWithHttpInfo "POST", new ArrayList<>(), isFileTypeFound ? null : signatureRequestSendRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -1819,40 +2345,76 @@ public ApiResponse signatureRequestSendWithHttpInfo * specified with the `template_ids` parameter. * * @param signatureRequestSendWithTemplateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public SignatureRequestGetResponse signatureRequestSendWithTemplate( + SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, + String idempotencyKey) + throws ApiException { + return signatureRequestSendWithTemplateWithHttpInfo( + signatureRequestSendWithTemplateRequest, idempotencyKey) + .getData(); + } + + /** + * @see + * SignatureRequestApi#signatureRequestSendWithTemplate(SignatureRequestSendWithTemplateRequest, + * String) + */ public SignatureRequestGetResponse signatureRequestSendWithTemplate( SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest) throws ApiException { - return signatureRequestSendWithTemplateWithHttpInfo(signatureRequestSendWithTemplateRequest) + String idempotencyKey = null; + + return signatureRequestSendWithTemplateWithHttpInfo( + signatureRequestSendWithTemplateRequest, idempotencyKey) .getData(); } + /** + * @see + * SignatureRequestApi#signatureRequestSendWithTemplateWithHttpInfo(SignatureRequestSendWithTemplateRequest, + * String) + */ + public ApiResponse signatureRequestSendWithTemplateWithHttpInfo( + SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest) + throws ApiException { + String idempotencyKey = null; + + return signatureRequestSendWithTemplateWithHttpInfo( + signatureRequestSendWithTemplateRequest, idempotencyKey); + } + /** * Send with Template Creates and sends a new SignatureRequest based off of the Template(s) * specified with the `template_ids` parameter. * * @param signatureRequestSendWithTemplateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse signatureRequestSendWithTemplateWithHttpInfo( - SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest) + SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, + String idempotencyKey) throws ApiException { // Check required parameters @@ -1863,6 +2425,13 @@ public ApiResponse signatureRequestSendWithTemplate + " calling signatureRequestSendWithTemplate"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestSendWithTemplateRequest.createFormData(); @@ -1881,7 +2450,7 @@ public ApiResponse signatureRequestSendWithTemplate "POST", new ArrayList<>(), isFileTypeFound ? null : signatureRequestSendWithTemplateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -1900,23 +2469,55 @@ public ApiResponse signatureRequestSendWithTemplate * * @param signatureRequestId The id of the SignatureRequest to update. (required) * @param signatureRequestUpdateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public SignatureRequestGetResponse signatureRequestUpdate( + String signatureRequestId, + SignatureRequestUpdateRequest signatureRequestUpdateRequest, + String idempotencyKey) + throws ApiException { + return signatureRequestUpdateWithHttpInfo( + signatureRequestId, signatureRequestUpdateRequest, idempotencyKey) + .getData(); + } + + /** + * @see SignatureRequestApi#signatureRequestUpdate(String, SignatureRequestUpdateRequest, + * String) + */ public SignatureRequestGetResponse signatureRequestUpdate( String signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest) throws ApiException { - return signatureRequestUpdateWithHttpInfo(signatureRequestId, signatureRequestUpdateRequest) + String idempotencyKey = null; + + return signatureRequestUpdateWithHttpInfo( + signatureRequestId, signatureRequestUpdateRequest, idempotencyKey) .getData(); } + /** + * @see SignatureRequestApi#signatureRequestUpdateWithHttpInfo(String, + * SignatureRequestUpdateRequest, String) + */ + public ApiResponse signatureRequestUpdateWithHttpInfo( + String signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest) + throws ApiException { + String idempotencyKey = null; + + return signatureRequestUpdateWithHttpInfo( + signatureRequestId, signatureRequestUpdateRequest, idempotencyKey); + } + /** * Update Signature Request Updates the email address and/or the name for a given signer on a * signature request. You can listen for the `signature_request_email_bounce` event on @@ -1926,18 +2527,22 @@ public SignatureRequestGetResponse signatureRequestUpdate( * * @param signatureRequestId The id of the SignatureRequest to update. (required) * @param signatureRequestUpdateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse signatureRequestUpdateWithHttpInfo( - String signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest) + String signatureRequestId, + SignatureRequestUpdateRequest signatureRequestUpdateRequest, + String idempotencyKey) throws ApiException { // Check required parameters @@ -1961,6 +2566,13 @@ public ApiResponse signatureRequestUpdateWithHttpIn "\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestUpdateRequest.createFormData(); @@ -1978,7 +2590,7 @@ public ApiResponse signatureRequestUpdateWithHttpIn "POST", new ArrayList<>(), isFileTypeFound ? null : signatureRequestUpdateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/TeamApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/TeamApi.java index 7ccffdb6d..895a5dd26 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/TeamApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/TeamApi.java @@ -61,39 +61,64 @@ public void setApiClient(ApiClient apiClient) { * * @param teamAddMemberRequest (required) * @param teamId The id of the team. (optional) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return TeamGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public TeamGetResponse teamAddMember(TeamAddMemberRequest teamAddMemberRequest, String teamId) + public TeamGetResponse teamAddMember( + TeamAddMemberRequest teamAddMemberRequest, String teamId, String idempotencyKey) throws ApiException { - return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId).getData(); + return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId, idempotencyKey).getData(); } /** - * @see TeamApi#teamAddMember(TeamAddMemberRequest, String) + * @see TeamApi#teamAddMember(TeamAddMemberRequest, String, String) */ public TeamGetResponse teamAddMember(TeamAddMemberRequest teamAddMemberRequest) throws ApiException { String teamId = null; + String idempotencyKey = null; - return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId).getData(); + return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId, idempotencyKey).getData(); } /** - * @see TeamApi#teamAddMemberWithHttpInfo(TeamAddMemberRequest, String) + * @see TeamApi#teamAddMemberWithHttpInfo(TeamAddMemberRequest, String, String) */ public ApiResponse teamAddMemberWithHttpInfo( TeamAddMemberRequest teamAddMemberRequest) throws ApiException { String teamId = null; + String idempotencyKey = null; + + return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId, idempotencyKey); + } + + /** + * @see TeamApi#teamAddMember(TeamAddMemberRequest, String, String) + */ + public TeamGetResponse teamAddMember(TeamAddMemberRequest teamAddMemberRequest, String teamId) + throws ApiException { + String idempotencyKey = null; + + return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId, idempotencyKey).getData(); + } + + /** + * @see TeamApi#teamAddMemberWithHttpInfo(TeamAddMemberRequest, String, String) + */ + public ApiResponse teamAddMemberWithHttpInfo( + TeamAddMemberRequest teamAddMemberRequest, String teamId) throws ApiException { + String idempotencyKey = null; - return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId); + return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId, idempotencyKey); } /** @@ -104,18 +129,21 @@ public ApiResponse teamAddMemberWithHttpInfo( * * @param teamAddMemberRequest (required) * @param teamId The id of the team. (optional) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<TeamGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse teamAddMemberWithHttpInfo( - TeamAddMemberRequest teamAddMemberRequest, String teamId) throws ApiException { + TeamAddMemberRequest teamAddMemberRequest, String teamId, String idempotencyKey) + throws ApiException { // Check required parameters if (teamAddMemberRequest == null) { @@ -129,6 +157,13 @@ public ApiResponse teamAddMemberWithHttpInfo( List localVarQueryParams = new ArrayList<>(apiClient.parameterToPairs("", "team_id", teamId)); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = teamAddMemberRequest.createFormData(); @@ -145,7 +180,7 @@ public ApiResponse teamAddMemberWithHttpInfo( "PUT", localVarQueryParams, isFileTypeFound ? null : teamAddMemberRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -160,18 +195,40 @@ public ApiResponse teamAddMemberWithHttpInfo( * Team to invoke. * * @param teamCreateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return TeamGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public TeamGetResponse teamCreate(TeamCreateRequest teamCreateRequest, String idempotencyKey) + throws ApiException { + return teamCreateWithHttpInfo(teamCreateRequest, idempotencyKey).getData(); + } + + /** + * @see TeamApi#teamCreate(TeamCreateRequest, String) + */ public TeamGetResponse teamCreate(TeamCreateRequest teamCreateRequest) throws ApiException { - return teamCreateWithHttpInfo(teamCreateRequest).getData(); + String idempotencyKey = null; + + return teamCreateWithHttpInfo(teamCreateRequest, idempotencyKey).getData(); + } + + /** + * @see TeamApi#teamCreateWithHttpInfo(TeamCreateRequest, String) + */ + public ApiResponse teamCreateWithHttpInfo(TeamCreateRequest teamCreateRequest) + throws ApiException { + String idempotencyKey = null; + + return teamCreateWithHttpInfo(teamCreateRequest, idempotencyKey); } /** @@ -179,18 +236,20 @@ public TeamGetResponse teamCreate(TeamCreateRequest teamCreateRequest) throws Ap * Team to invoke. * * @param teamCreateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<TeamGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse teamCreateWithHttpInfo(TeamCreateRequest teamCreateRequest) - throws ApiException { + public ApiResponse teamCreateWithHttpInfo( + TeamCreateRequest teamCreateRequest, String idempotencyKey) throws ApiException { // Check required parameters if (teamCreateRequest == null) { @@ -199,6 +258,13 @@ public ApiResponse teamCreateWithHttpInfo(TeamCreateRequest tea "Missing the required parameter 'teamCreateRequest' when calling teamCreate"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = teamCreateRequest.createFormData(); @@ -215,7 +281,7 @@ public ApiResponse teamCreateWithHttpInfo(TeamCreateRequest tea "POST", new ArrayList<>(), isFileTypeFound ? null : teamCreateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -645,19 +711,42 @@ public ApiResponse teamMembersWithHttpInfo( * fully executed. * * @param teamRemoveMemberRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return TeamGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public TeamGetResponse teamRemoveMember( + TeamRemoveMemberRequest teamRemoveMemberRequest, String idempotencyKey) + throws ApiException { + return teamRemoveMemberWithHttpInfo(teamRemoveMemberRequest, idempotencyKey).getData(); + } + + /** + * @see TeamApi#teamRemoveMember(TeamRemoveMemberRequest, String) + */ public TeamGetResponse teamRemoveMember(TeamRemoveMemberRequest teamRemoveMemberRequest) throws ApiException { - return teamRemoveMemberWithHttpInfo(teamRemoveMemberRequest).getData(); + String idempotencyKey = null; + + return teamRemoveMemberWithHttpInfo(teamRemoveMemberRequest, idempotencyKey).getData(); + } + + /** + * @see TeamApi#teamRemoveMemberWithHttpInfo(TeamRemoveMemberRequest, String) + */ + public ApiResponse teamRemoveMemberWithHttpInfo( + TeamRemoveMemberRequest teamRemoveMemberRequest) throws ApiException { + String idempotencyKey = null; + + return teamRemoveMemberWithHttpInfo(teamRemoveMemberRequest, idempotencyKey); } /** @@ -669,18 +758,21 @@ public TeamGetResponse teamRemoveMember(TeamRemoveMemberRequest teamRemoveMember * fully executed. * * @param teamRemoveMemberRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<TeamGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse teamRemoveMemberWithHttpInfo( - TeamRemoveMemberRequest teamRemoveMemberRequest) throws ApiException { + TeamRemoveMemberRequest teamRemoveMemberRequest, String idempotencyKey) + throws ApiException { // Check required parameters if (teamRemoveMemberRequest == null) { @@ -690,6 +782,13 @@ public ApiResponse teamRemoveMemberWithHttpInfo( + " teamRemoveMember"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = teamRemoveMemberRequest.createFormData(); @@ -706,7 +805,7 @@ public ApiResponse teamRemoveMemberWithHttpInfo( "POST", new ArrayList<>(), isFileTypeFound ? null : teamRemoveMemberRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -851,36 +950,60 @@ public ApiResponse teamSubTeamsWithHttpInfo( * Update Team Updates the name of your Team. * * @param teamUpdateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return TeamGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public TeamGetResponse teamUpdate(TeamUpdateRequest teamUpdateRequest, String idempotencyKey) + throws ApiException { + return teamUpdateWithHttpInfo(teamUpdateRequest, idempotencyKey).getData(); + } + + /** + * @see TeamApi#teamUpdate(TeamUpdateRequest, String) + */ public TeamGetResponse teamUpdate(TeamUpdateRequest teamUpdateRequest) throws ApiException { - return teamUpdateWithHttpInfo(teamUpdateRequest).getData(); + String idempotencyKey = null; + + return teamUpdateWithHttpInfo(teamUpdateRequest, idempotencyKey).getData(); + } + + /** + * @see TeamApi#teamUpdateWithHttpInfo(TeamUpdateRequest, String) + */ + public ApiResponse teamUpdateWithHttpInfo(TeamUpdateRequest teamUpdateRequest) + throws ApiException { + String idempotencyKey = null; + + return teamUpdateWithHttpInfo(teamUpdateRequest, idempotencyKey); } /** * Update Team Updates the name of your Team. * * @param teamUpdateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<TeamGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse teamUpdateWithHttpInfo(TeamUpdateRequest teamUpdateRequest) - throws ApiException { + public ApiResponse teamUpdateWithHttpInfo( + TeamUpdateRequest teamUpdateRequest, String idempotencyKey) throws ApiException { // Check required parameters if (teamUpdateRequest == null) { @@ -889,6 +1012,13 @@ public ApiResponse teamUpdateWithHttpInfo(TeamUpdateRequest tea "Missing the required parameter 'teamUpdateRequest' when calling teamUpdate"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = teamUpdateRequest.createFormData(); @@ -905,7 +1035,7 @@ public ApiResponse teamUpdateWithHttpInfo(TeamUpdateRequest tea "PUT", new ArrayList<>(), isFileTypeFound ? null : teamUpdateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/TemplateApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/TemplateApi.java index f70c0134b..0720f2e1c 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/TemplateApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/TemplateApi.java @@ -63,19 +63,44 @@ public void setApiClient(ApiClient apiClient) { * * @param templateId The id of the Template to give the Account access to. (required) * @param templateAddUserRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return TemplateGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public TemplateGetResponse templateAddUser( + String templateId, TemplateAddUserRequest templateAddUserRequest, String idempotencyKey) + throws ApiException { + return templateAddUserWithHttpInfo(templateId, templateAddUserRequest, idempotencyKey) + .getData(); + } + + /** + * @see TemplateApi#templateAddUser(String, TemplateAddUserRequest, String) + */ public TemplateGetResponse templateAddUser( String templateId, TemplateAddUserRequest templateAddUserRequest) throws ApiException { - return templateAddUserWithHttpInfo(templateId, templateAddUserRequest).getData(); + String idempotencyKey = null; + + return templateAddUserWithHttpInfo(templateId, templateAddUserRequest, idempotencyKey) + .getData(); + } + + /** + * @see TemplateApi#templateAddUserWithHttpInfo(String, TemplateAddUserRequest, String) + */ + public ApiResponse templateAddUserWithHttpInfo( + String templateId, TemplateAddUserRequest templateAddUserRequest) throws ApiException { + String idempotencyKey = null; + + return templateAddUserWithHttpInfo(templateId, templateAddUserRequest, idempotencyKey); } /** @@ -84,18 +109,21 @@ public TemplateGetResponse templateAddUser( * * @param templateId The id of the Template to give the Account access to. (required) * @param templateAddUserRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<TemplateGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse templateAddUserWithHttpInfo( - String templateId, TemplateAddUserRequest templateAddUserRequest) throws ApiException { + String templateId, TemplateAddUserRequest templateAddUserRequest, String idempotencyKey) + throws ApiException { // Check required parameters if (templateId == null) { @@ -116,6 +144,13 @@ public ApiResponse templateAddUserWithHttpInfo( .replaceAll( "\\{template_id}", apiClient.escapeString(templateId.toString())); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = templateAddUserRequest.createFormData(); @@ -133,7 +168,7 @@ public ApiResponse templateAddUserWithHttpInfo( "POST", new ArrayList<>(), isFileTypeFound ? null : templateAddUserRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -158,19 +193,42 @@ public ApiResponse templateAddUserWithHttpInfo( * the request if necessary. * * @param templateCreateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return TemplateCreateResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public TemplateCreateResponse templateCreate( + TemplateCreateRequest templateCreateRequest, String idempotencyKey) + throws ApiException { + return templateCreateWithHttpInfo(templateCreateRequest, idempotencyKey).getData(); + } + + /** + * @see TemplateApi#templateCreate(TemplateCreateRequest, String) + */ public TemplateCreateResponse templateCreate(TemplateCreateRequest templateCreateRequest) throws ApiException { - return templateCreateWithHttpInfo(templateCreateRequest).getData(); + String idempotencyKey = null; + + return templateCreateWithHttpInfo(templateCreateRequest, idempotencyKey).getData(); + } + + /** + * @see TemplateApi#templateCreateWithHttpInfo(TemplateCreateRequest, String) + */ + public ApiResponse templateCreateWithHttpInfo( + TemplateCreateRequest templateCreateRequest) throws ApiException { + String idempotencyKey = null; + + return templateCreateWithHttpInfo(templateCreateRequest, idempotencyKey); } /** @@ -188,18 +246,21 @@ public TemplateCreateResponse templateCreate(TemplateCreateRequest templateCreat * the request if necessary. * * @param templateCreateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<TemplateCreateResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse templateCreateWithHttpInfo( - TemplateCreateRequest templateCreateRequest) throws ApiException { + TemplateCreateRequest templateCreateRequest, String idempotencyKey) + throws ApiException { // Check required parameters if (templateCreateRequest == null) { @@ -209,6 +270,13 @@ public ApiResponse templateCreateWithHttpInfo( + " templateCreate"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = templateCreateRequest.createFormData(); @@ -227,7 +295,7 @@ public ApiResponse templateCreateWithHttpInfo( "POST", new ArrayList<>(), isFileTypeFound ? null : templateCreateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -242,40 +310,73 @@ public ApiResponse templateCreateWithHttpInfo( * draft template that can then be further set up in the template 'edit' stage. * * @param templateCreateEmbeddedDraftRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return TemplateCreateEmbeddedDraftResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public TemplateCreateEmbeddedDraftResponse templateCreateEmbeddedDraft( + TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, + String idempotencyKey) + throws ApiException { + return templateCreateEmbeddedDraftWithHttpInfo( + templateCreateEmbeddedDraftRequest, idempotencyKey) + .getData(); + } + + /** + * @see TemplateApi#templateCreateEmbeddedDraft(TemplateCreateEmbeddedDraftRequest, String) + */ public TemplateCreateEmbeddedDraftResponse templateCreateEmbeddedDraft( TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest) throws ApiException { - return templateCreateEmbeddedDraftWithHttpInfo(templateCreateEmbeddedDraftRequest) + String idempotencyKey = null; + + return templateCreateEmbeddedDraftWithHttpInfo( + templateCreateEmbeddedDraftRequest, idempotencyKey) .getData(); } + /** + * @see TemplateApi#templateCreateEmbeddedDraftWithHttpInfo(TemplateCreateEmbeddedDraftRequest, + * String) + */ + public ApiResponse templateCreateEmbeddedDraftWithHttpInfo( + TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest) + throws ApiException { + String idempotencyKey = null; + + return templateCreateEmbeddedDraftWithHttpInfo( + templateCreateEmbeddedDraftRequest, idempotencyKey); + } + /** * Create Embedded Template Draft The first step in an embedded template workflow. Creates a * draft template that can then be further set up in the template 'edit' stage. * * @param templateCreateEmbeddedDraftRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<TemplateCreateEmbeddedDraftResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse templateCreateEmbeddedDraftWithHttpInfo( - TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest) + TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, + String idempotencyKey) throws ApiException { // Check required parameters @@ -286,6 +387,13 @@ public ApiResponse templateCreateEmbeddedDr + " calling templateCreateEmbeddedDraft"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = templateCreateEmbeddedDraftRequest.createFormData(); @@ -304,7 +412,7 @@ public ApiResponse templateCreateEmbeddedDr "POST", new ArrayList<>(), isFileTypeFound ? null : templateCreateEmbeddedDraftRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -318,34 +426,57 @@ public ApiResponse templateCreateEmbeddedDr * Delete Template Completely deletes the template specified from the account. * * @param templateId The id of the Template to delete. (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public void templateDelete(String templateId, String idempotencyKey) throws ApiException { + templateDeleteWithHttpInfo(templateId, idempotencyKey); + } + + /** + * @see TemplateApi#templateDelete(String, String) + */ public void templateDelete(String templateId) throws ApiException { - templateDeleteWithHttpInfo(templateId); + String idempotencyKey = null; + + templateDeleteWithHttpInfo(templateId, idempotencyKey); + } + + /** + * @see TemplateApi#templateDeleteWithHttpInfo(String, String) + */ + public ApiResponse templateDeleteWithHttpInfo(String templateId) throws ApiException { + String idempotencyKey = null; + + return templateDeleteWithHttpInfo(templateId, idempotencyKey); } /** * Delete Template Completely deletes the template specified from the account. * * @param templateId The id of the Template to delete. (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse templateDeleteWithHttpInfo(String templateId) throws ApiException { + public ApiResponse templateDeleteWithHttpInfo(String templateId, String idempotencyKey) + throws ApiException { // Check required parameters if (templateId == null) { @@ -359,6 +490,13 @@ public ApiResponse templateDeleteWithHttpInfo(String templateId) throws Ap .replaceAll( "\\{template_id}", apiClient.escapeString(templateId.toString())); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = new HashMap(); @@ -372,7 +510,7 @@ public ApiResponse templateDeleteWithHttpInfo(String templateId) throws Ap "POST", new ArrayList<>(), null, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -937,20 +1075,49 @@ public ApiResponse templateListWithHttpInfo( * * @param templateId The id of the Template to remove the Account's access to. (required) * @param templateRemoveUserRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return TemplateGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public TemplateGetResponse templateRemoveUser( + String templateId, + TemplateRemoveUserRequest templateRemoveUserRequest, + String idempotencyKey) + throws ApiException { + return templateRemoveUserWithHttpInfo(templateId, templateRemoveUserRequest, idempotencyKey) + .getData(); + } + + /** + * @see TemplateApi#templateRemoveUser(String, TemplateRemoveUserRequest, String) + */ + public TemplateGetResponse templateRemoveUser( + String templateId, TemplateRemoveUserRequest templateRemoveUserRequest) + throws ApiException { + String idempotencyKey = null; + + return templateRemoveUserWithHttpInfo(templateId, templateRemoveUserRequest, idempotencyKey) + .getData(); + } + + /** + * @see TemplateApi#templateRemoveUserWithHttpInfo(String, TemplateRemoveUserRequest, String) + */ + public ApiResponse templateRemoveUserWithHttpInfo( String templateId, TemplateRemoveUserRequest templateRemoveUserRequest) throws ApiException { - return templateRemoveUserWithHttpInfo(templateId, templateRemoveUserRequest).getData(); + String idempotencyKey = null; + + return templateRemoveUserWithHttpInfo( + templateId, templateRemoveUserRequest, idempotencyKey); } /** @@ -959,18 +1126,22 @@ public TemplateGetResponse templateRemoveUser( * * @param templateId The id of the Template to remove the Account's access to. (required) * @param templateRemoveUserRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<TemplateGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse templateRemoveUserWithHttpInfo( - String templateId, TemplateRemoveUserRequest templateRemoveUserRequest) + String templateId, + TemplateRemoveUserRequest templateRemoveUserRequest, + String idempotencyKey) throws ApiException { // Check required parameters @@ -992,6 +1163,13 @@ public ApiResponse templateRemoveUserWithHttpInfo( .replaceAll( "\\{template_id}", apiClient.escapeString(templateId.toString())); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = templateRemoveUserRequest.createFormData(); @@ -1009,7 +1187,7 @@ public ApiResponse templateRemoveUserWithHttpInfo( "POST", new ArrayList<>(), isFileTypeFound ? null : templateRemoveUserRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -1037,20 +1215,51 @@ public ApiResponse templateRemoveUserWithHttpInfo( * * @param templateId The ID of the template whose files to update. (required) * @param templateUpdateFilesRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return TemplateUpdateFilesResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public TemplateUpdateFilesResponse templateUpdateFiles( + String templateId, + TemplateUpdateFilesRequest templateUpdateFilesRequest, + String idempotencyKey) + throws ApiException { + return templateUpdateFilesWithHttpInfo( + templateId, templateUpdateFilesRequest, idempotencyKey) + .getData(); + } + + /** + * @see TemplateApi#templateUpdateFiles(String, TemplateUpdateFilesRequest, String) + */ + public TemplateUpdateFilesResponse templateUpdateFiles( + String templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest) + throws ApiException { + String idempotencyKey = null; + + return templateUpdateFilesWithHttpInfo( + templateId, templateUpdateFilesRequest, idempotencyKey) + .getData(); + } + + /** + * @see TemplateApi#templateUpdateFilesWithHttpInfo(String, TemplateUpdateFilesRequest, String) + */ + public ApiResponse templateUpdateFilesWithHttpInfo( String templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest) throws ApiException { - return templateUpdateFilesWithHttpInfo(templateId, templateUpdateFilesRequest).getData(); + String idempotencyKey = null; + + return templateUpdateFilesWithHttpInfo( + templateId, templateUpdateFilesRequest, idempotencyKey); } /** @@ -1071,18 +1280,22 @@ public TemplateUpdateFilesResponse templateUpdateFiles( * * @param templateId The ID of the template whose files to update. (required) * @param templateUpdateFilesRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<TemplateUpdateFilesResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse templateUpdateFilesWithHttpInfo( - String templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest) + String templateId, + TemplateUpdateFilesRequest templateUpdateFilesRequest, + String idempotencyKey) throws ApiException { // Check required parameters @@ -1104,6 +1317,13 @@ public ApiResponse templateUpdateFilesWithHttpInfo( .replaceAll( "\\{template_id}", apiClient.escapeString(templateId.toString())); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = templateUpdateFilesRequest.createFormData(); @@ -1122,7 +1342,7 @@ public ApiResponse templateUpdateFilesWithHttpInfo( "POST", new ArrayList<>(), isFileTypeFound ? null : templateUpdateFilesRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/UnclaimedDraftApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/UnclaimedDraftApi.java index 61289c29f..cc2954e5c 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/UnclaimedDraftApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/UnclaimedDraftApi.java @@ -53,19 +53,44 @@ public void setApiClient(ApiClient apiClient) { * loaded. Subsequent access to the claim URL will result in a 404. * * @param unclaimedDraftCreateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return UnclaimedDraftCreateResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public UnclaimedDraftCreateResponse unclaimedDraftCreate( + UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, String idempotencyKey) + throws ApiException { + return unclaimedDraftCreateWithHttpInfo(unclaimedDraftCreateRequest, idempotencyKey) + .getData(); + } + + /** + * @see UnclaimedDraftApi#unclaimedDraftCreate(UnclaimedDraftCreateRequest, String) + */ public UnclaimedDraftCreateResponse unclaimedDraftCreate( UnclaimedDraftCreateRequest unclaimedDraftCreateRequest) throws ApiException { - return unclaimedDraftCreateWithHttpInfo(unclaimedDraftCreateRequest).getData(); + String idempotencyKey = null; + + return unclaimedDraftCreateWithHttpInfo(unclaimedDraftCreateRequest, idempotencyKey) + .getData(); + } + + /** + * @see UnclaimedDraftApi#unclaimedDraftCreateWithHttpInfo(UnclaimedDraftCreateRequest, String) + */ + public ApiResponse unclaimedDraftCreateWithHttpInfo( + UnclaimedDraftCreateRequest unclaimedDraftCreateRequest) throws ApiException { + String idempotencyKey = null; + + return unclaimedDraftCreateWithHttpInfo(unclaimedDraftCreateRequest, idempotencyKey); } /** @@ -75,18 +100,21 @@ public UnclaimedDraftCreateResponse unclaimedDraftCreate( * loaded. Subsequent access to the claim URL will result in a 404. * * @param unclaimedDraftCreateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<UnclaimedDraftCreateResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse unclaimedDraftCreateWithHttpInfo( - UnclaimedDraftCreateRequest unclaimedDraftCreateRequest) throws ApiException { + UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, String idempotencyKey) + throws ApiException { // Check required parameters if (unclaimedDraftCreateRequest == null) { @@ -96,6 +124,13 @@ public ApiResponse unclaimedDraftCreateWithHttpInf + " unclaimedDraftCreate"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = unclaimedDraftCreateRequest.createFormData(); @@ -114,7 +149,7 @@ public ApiResponse unclaimedDraftCreateWithHttpInf "POST", new ArrayList<>(), isFileTypeFound ? null : unclaimedDraftCreateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -134,23 +169,55 @@ public ApiResponse unclaimedDraftCreateWithHttpInf * accessed on Dropbox Sign. * * @param unclaimedDraftCreateEmbeddedRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return UnclaimedDraftCreateResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbedded( + UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, + String idempotencyKey) + throws ApiException { + return unclaimedDraftCreateEmbeddedWithHttpInfo( + unclaimedDraftCreateEmbeddedRequest, idempotencyKey) + .getData(); + } + + /** + * @see UnclaimedDraftApi#unclaimedDraftCreateEmbedded(UnclaimedDraftCreateEmbeddedRequest, + * String) + */ public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbedded( UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest) throws ApiException { - return unclaimedDraftCreateEmbeddedWithHttpInfo(unclaimedDraftCreateEmbeddedRequest) + String idempotencyKey = null; + + return unclaimedDraftCreateEmbeddedWithHttpInfo( + unclaimedDraftCreateEmbeddedRequest, idempotencyKey) .getData(); } + /** + * @see + * UnclaimedDraftApi#unclaimedDraftCreateEmbeddedWithHttpInfo(UnclaimedDraftCreateEmbeddedRequest, + * String) + */ + public ApiResponse unclaimedDraftCreateEmbeddedWithHttpInfo( + UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest) + throws ApiException { + String idempotencyKey = null; + + return unclaimedDraftCreateEmbeddedWithHttpInfo( + unclaimedDraftCreateEmbeddedRequest, idempotencyKey); + } + /** * Create Embedded Unclaimed Draft Creates a new Draft that can be claimed and used in an * embedded iFrame. The first authenticated user to access the URL will claim the Draft and will @@ -161,18 +228,21 @@ public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbedded( * accessed on Dropbox Sign. * * @param unclaimedDraftCreateEmbeddedRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<UnclaimedDraftCreateResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse unclaimedDraftCreateEmbeddedWithHttpInfo( - UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest) + UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, + String idempotencyKey) throws ApiException { // Check required parameters @@ -183,6 +253,13 @@ public ApiResponse unclaimedDraftCreateEmbeddedWit + " calling unclaimedDraftCreateEmbedded"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = unclaimedDraftCreateEmbeddedRequest.createFormData(); @@ -201,7 +278,7 @@ public ApiResponse unclaimedDraftCreateEmbeddedWit "POST", new ArrayList<>(), isFileTypeFound ? null : unclaimedDraftCreateEmbeddedRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -221,25 +298,60 @@ public ApiResponse unclaimedDraftCreateEmbeddedWit * whereas normal drafts can be used and accessed on Dropbox Sign. * * @param unclaimedDraftCreateEmbeddedWithTemplateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return UnclaimedDraftCreateResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbeddedWithTemplate( + UnclaimedDraftCreateEmbeddedWithTemplateRequest + unclaimedDraftCreateEmbeddedWithTemplateRequest, + String idempotencyKey) + throws ApiException { + return unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo( + unclaimedDraftCreateEmbeddedWithTemplateRequest, idempotencyKey) + .getData(); + } + + /** + * @see + * UnclaimedDraftApi#unclaimedDraftCreateEmbeddedWithTemplate(UnclaimedDraftCreateEmbeddedWithTemplateRequest, + * String) + */ public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbeddedWithTemplate( UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest) throws ApiException { + String idempotencyKey = null; + return unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo( - unclaimedDraftCreateEmbeddedWithTemplateRequest) + unclaimedDraftCreateEmbeddedWithTemplateRequest, idempotencyKey) .getData(); } + /** + * @see + * UnclaimedDraftApi#unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(UnclaimedDraftCreateEmbeddedWithTemplateRequest, + * String) + */ + public ApiResponse + unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo( + UnclaimedDraftCreateEmbeddedWithTemplateRequest + unclaimedDraftCreateEmbeddedWithTemplateRequest) + throws ApiException { + String idempotencyKey = null; + + return unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo( + unclaimedDraftCreateEmbeddedWithTemplateRequest, idempotencyKey); + } + /** * Create Embedded Unclaimed Draft with Template Creates a new Draft with a previously saved * template(s) that can be claimed and used in an embedded iFrame. The first authenticated user @@ -250,20 +362,23 @@ public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbeddedWithTemplate( * whereas normal drafts can be used and accessed on Dropbox Sign. * * @param unclaimedDraftCreateEmbeddedWithTemplateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<UnclaimedDraftCreateResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo( UnclaimedDraftCreateEmbeddedWithTemplateRequest - unclaimedDraftCreateEmbeddedWithTemplateRequest) + unclaimedDraftCreateEmbeddedWithTemplateRequest, + String idempotencyKey) throws ApiException { // Check required parameters @@ -275,6 +390,13 @@ public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbeddedWithTemplate( + " unclaimedDraftCreateEmbeddedWithTemplate"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = unclaimedDraftCreateEmbeddedWithTemplateRequest.createFormData(); @@ -293,7 +415,7 @@ public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbeddedWithTemplate( "POST", new ArrayList<>(), isFileTypeFound ? null : unclaimedDraftCreateEmbeddedWithTemplateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -313,25 +435,57 @@ public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbeddedWithTemplate( * * @param signatureRequestId The ID of the signature request to edit and resend. (required) * @param unclaimedDraftEditAndResendRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return UnclaimedDraftCreateResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public UnclaimedDraftCreateResponse unclaimedDraftEditAndResend( + String signatureRequestId, + UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, + String idempotencyKey) + throws ApiException { + return unclaimedDraftEditAndResendWithHttpInfo( + signatureRequestId, unclaimedDraftEditAndResendRequest, idempotencyKey) + .getData(); + } + + /** + * @see UnclaimedDraftApi#unclaimedDraftEditAndResend(String, + * UnclaimedDraftEditAndResendRequest, String) + */ public UnclaimedDraftCreateResponse unclaimedDraftEditAndResend( String signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest) throws ApiException { + String idempotencyKey = null; + return unclaimedDraftEditAndResendWithHttpInfo( - signatureRequestId, unclaimedDraftEditAndResendRequest) + signatureRequestId, unclaimedDraftEditAndResendRequest, idempotencyKey) .getData(); } + /** + * @see UnclaimedDraftApi#unclaimedDraftEditAndResendWithHttpInfo(String, + * UnclaimedDraftEditAndResendRequest, String) + */ + public ApiResponse unclaimedDraftEditAndResendWithHttpInfo( + String signatureRequestId, + UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest) + throws ApiException { + String idempotencyKey = null; + + return unclaimedDraftEditAndResendWithHttpInfo( + signatureRequestId, unclaimedDraftEditAndResendRequest, idempotencyKey); + } + /** * Edit and Resend Unclaimed Draft Creates a new signature request from an embedded request that * can be edited prior to being sent to the recipients. Parameter `test_mode` can be @@ -342,19 +496,22 @@ public UnclaimedDraftCreateResponse unclaimedDraftEditAndResend( * * @param signatureRequestId The ID of the signature request to edit and resend. (required) * @param unclaimedDraftEditAndResendRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 + * characters. (optional) * @return ApiResponse<UnclaimedDraftCreateResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ public ApiResponse unclaimedDraftEditAndResendWithHttpInfo( String signatureRequestId, - UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest) + UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, + String idempotencyKey) throws ApiException { // Check required parameters @@ -378,6 +535,13 @@ public ApiResponse unclaimedDraftEditAndResendWith "\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put( + "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = unclaimedDraftEditAndResendRequest.createFormData(); @@ -395,7 +559,7 @@ public ApiResponse unclaimedDraftEditAndResendWith "POST", new ArrayList<>(), isFileTypeFound ? null : unclaimedDraftEditAndResendRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v2/bin/generate-overload-methods.php b/sdks/java-v2/bin/generate-overload-methods.php index e700bd265..7d9150696 100755 --- a/sdks/java-v2/bin/generate-overload-methods.php +++ b/sdks/java-v2/bin/generate-overload-methods.php @@ -178,20 +178,28 @@ private function template( $typeList = implode(', ', $typeList); $setters = implode("\n ", $setters); + // OpenAPI Generator emits an empty returnType for void operations. + $isVoid = $returnType === '' || $returnType === 'void'; + $methodReturnType = $isVoid ? 'void' : $returnType; + $httpReturnType = $isVoid ? 'Void' : $returnType; + $methodCall = $isVoid + ? "{$method}WithHttpInfo({$paramList});" + : "return {$method}WithHttpInfo({$paramList}).getData();"; + return << {$method}WithHttpInfo({$methodSignature}) throws ApiException { + public ApiResponse<{$httpReturnType}> {$method}WithHttpInfo({$methodSignature}) throws ApiException { {$setters} return {$method}WithHttpInfo({$paramList}); diff --git a/sdks/java-v2/docs/AccountApi.md b/sdks/java-v2/docs/AccountApi.md index e638f559d..e253448a3 100644 --- a/sdks/java-v2/docs/AccountApi.md +++ b/sdks/java-v2/docs/AccountApi.md @@ -13,7 +13,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## accountCreate -> AccountCreateResponse accountCreate(accountCreateRequest) +> AccountCreateResponse accountCreate(accountCreateRequest, idempotencyKey) Create Account @@ -75,6 +75,7 @@ public class AccountCreateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **accountCreateRequest** | [**AccountCreateRequest**](AccountCreateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -92,7 +93,7 @@ public class AccountCreateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | @@ -182,7 +183,7 @@ public class AccountGetExample ## accountUpdate -> AccountGetResponse accountUpdate(accountUpdateRequest) +> AccountGetResponse accountUpdate(accountUpdateRequest, idempotencyKey) Update Account @@ -245,6 +246,7 @@ public class AccountUpdateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **accountUpdateRequest** | [**AccountUpdateRequest**](AccountUpdateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -262,13 +264,13 @@ public class AccountUpdateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## accountVerify -> AccountVerifyResponse accountVerify(accountVerifyRequest) +> AccountVerifyResponse accountVerify(accountVerifyRequest, idempotencyKey) Verify Account @@ -330,6 +332,7 @@ public class AccountVerifyExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **accountVerifyRequest** | [**AccountVerifyRequest**](AccountVerifyRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -347,6 +350,6 @@ public class AccountVerifyExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v2/docs/ApiAppApi.md b/sdks/java-v2/docs/ApiAppApi.md index c9e5fd615..8b31761bf 100644 --- a/sdks/java-v2/docs/ApiAppApi.md +++ b/sdks/java-v2/docs/ApiAppApi.md @@ -14,7 +14,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## apiAppCreate -> ApiAppGetResponse apiAppCreate(apiAppCreateRequest) +> ApiAppGetResponse apiAppCreate(apiAppCreateRequest, idempotencyKey) Create API App @@ -93,6 +93,7 @@ public class ApiAppCreateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **apiAppCreateRequest** | [**ApiAppCreateRequest**](ApiAppCreateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -110,7 +111,7 @@ public class ApiAppCreateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **201** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **201** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | @@ -362,7 +363,7 @@ public class ApiAppListExample ## apiAppUpdate -> ApiAppGetResponse apiAppUpdate(clientId, apiAppUpdateRequest) +> ApiAppGetResponse apiAppUpdate(clientId, apiAppUpdateRequest, idempotencyKey) Update API App @@ -444,6 +445,7 @@ public class ApiAppUpdateExample |------------- | ------------- | ------------- | -------------| **clientId** | **String**| The client id of the API App to update. | **apiAppUpdateRequest** | [**ApiAppUpdateRequest**](ApiAppUpdateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -461,6 +463,6 @@ public class ApiAppUpdateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v2/docs/DocumentApi.md b/sdks/java-v2/docs/DocumentApi.md index c72d11a30..6500739bc 100644 --- a/sdks/java-v2/docs/DocumentApi.md +++ b/sdks/java-v2/docs/DocumentApi.md @@ -10,7 +10,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## documentDetectFields -> DocumentFieldDetectionResponse documentDetectFields(documentFieldDetectionRequest) +> DocumentFieldDetectionResponse documentDetectFields(documentFieldDetectionRequest, idempotencyKey) Detect Document Fields @@ -74,6 +74,7 @@ public class DocumentDetectFieldsExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **documentFieldDetectionRequest** | [**DocumentFieldDetectionRequest**](DocumentFieldDetectionRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -91,6 +92,6 @@ public class DocumentDetectFieldsExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v2/docs/EmbeddedApi.md b/sdks/java-v2/docs/EmbeddedApi.md index 416c319ee..d5dd0b75e 100644 --- a/sdks/java-v2/docs/EmbeddedApi.md +++ b/sdks/java-v2/docs/EmbeddedApi.md @@ -11,7 +11,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## embeddedEditUrl -> EmbeddedEditUrlResponse embeddedEditUrl(templateId, embeddedEditUrlRequest) +> EmbeddedEditUrlResponse embeddedEditUrl(templateId, embeddedEditUrlRequest, idempotencyKey) Get Embedded Template Edit URL @@ -80,6 +80,7 @@ public class EmbeddedEditUrlExample |------------- | ------------- | ------------- | -------------| **templateId** | **String**| The id of the template to edit. | **embeddedEditUrlRequest** | [**EmbeddedEditUrlRequest**](EmbeddedEditUrlRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -97,7 +98,7 @@ public class EmbeddedEditUrlExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v2/docs/FaxApi.md b/sdks/java-v2/docs/FaxApi.md index 7ee47ff0e..31a62d42a 100644 --- a/sdks/java-v2/docs/FaxApi.md +++ b/sdks/java-v2/docs/FaxApi.md @@ -337,7 +337,7 @@ public class FaxListExample ## faxSend -> FaxGetResponse faxSend(faxSendRequest) +> FaxGetResponse faxSend(faxSendRequest, idempotencyKey) Send Fax @@ -407,6 +407,7 @@ public class FaxSendExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **faxSendRequest** | [**FaxSendRequest**](FaxSendRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -424,6 +425,6 @@ public class FaxSendExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v2/docs/FaxLineApi.md b/sdks/java-v2/docs/FaxLineApi.md index 79ccf8b93..8e98aeae7 100644 --- a/sdks/java-v2/docs/FaxLineApi.md +++ b/sdks/java-v2/docs/FaxLineApi.md @@ -16,7 +16,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## faxLineAddUser -> FaxLineResponse faxLineAddUser(faxLineAddUserRequest) +> FaxLineResponse faxLineAddUser(faxLineAddUserRequest, idempotencyKey) Add Fax Line User @@ -78,6 +78,7 @@ public class FaxLineAddUserExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **faxLineAddUserRequest** | [**FaxLineAddUserRequest**](FaxLineAddUserRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -95,7 +96,7 @@ public class FaxLineAddUserExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | @@ -188,7 +189,7 @@ public class FaxLineAreaCodeGetExample ## faxLineCreate -> FaxLineResponse faxLineCreate(faxLineCreateRequest) +> FaxLineResponse faxLineCreate(faxLineCreateRequest, idempotencyKey) Purchase Fax Line @@ -250,6 +251,7 @@ public class FaxLineCreateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **faxLineCreateRequest** | [**FaxLineCreateRequest**](FaxLineCreateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -267,7 +269,7 @@ public class FaxLineCreateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | @@ -523,7 +525,7 @@ public class FaxLineListExample ## faxLineRemoveUser -> FaxLineResponse faxLineRemoveUser(faxLineRemoveUserRequest) +> FaxLineResponse faxLineRemoveUser(faxLineRemoveUserRequest, idempotencyKey) Remove Fax Line Access @@ -585,6 +587,7 @@ public class FaxLineRemoveUserExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **faxLineRemoveUserRequest** | [**FaxLineRemoveUserRequest**](FaxLineRemoveUserRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -602,6 +605,6 @@ public class FaxLineRemoveUserExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v2/docs/ReportApi.md b/sdks/java-v2/docs/ReportApi.md index cadac49ae..e0368b4c9 100644 --- a/sdks/java-v2/docs/ReportApi.md +++ b/sdks/java-v2/docs/ReportApi.md @@ -10,7 +10,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## reportCreate -> ReportCreateResponse reportCreate(reportCreateRequest) +> ReportCreateResponse reportCreate(reportCreateRequest, idempotencyKey) Create Report @@ -78,6 +78,7 @@ public class ReportCreateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **reportCreateRequest** | [**ReportCreateRequest**](ReportCreateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -95,6 +96,6 @@ public class ReportCreateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v2/docs/SignatureRequestApi.md b/sdks/java-v2/docs/SignatureRequestApi.md index bf16f02c0..e8665a90a 100644 --- a/sdks/java-v2/docs/SignatureRequestApi.md +++ b/sdks/java-v2/docs/SignatureRequestApi.md @@ -29,7 +29,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## signatureRequestBulkCreateEmbeddedWithTemplate -> BulkSendJobSendResponse signatureRequestBulkCreateEmbeddedWithTemplate(signatureRequestBulkCreateEmbeddedWithTemplateRequest) +> BulkSendJobSendResponse signatureRequestBulkCreateEmbeddedWithTemplate(signatureRequestBulkCreateEmbeddedWithTemplateRequest, idempotencyKey) Embedded Bulk Send with Template @@ -157,6 +157,7 @@ public class SignatureRequestBulkCreateEmbeddedWithTemplateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestBulkCreateEmbeddedWithTemplateRequest** | [**SignatureRequestBulkCreateEmbeddedWithTemplateRequest**](SignatureRequestBulkCreateEmbeddedWithTemplateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -174,13 +175,13 @@ public class SignatureRequestBulkCreateEmbeddedWithTemplateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## signatureRequestBulkSendWithTemplate -> BulkSendJobSendResponse signatureRequestBulkSendWithTemplate(signatureRequestBulkSendWithTemplateRequest) +> BulkSendJobSendResponse signatureRequestBulkSendWithTemplate(signatureRequestBulkSendWithTemplateRequest, idempotencyKey) Bulk Send with Template @@ -308,6 +309,7 @@ public class SignatureRequestBulkSendWithTemplateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestBulkSendWithTemplateRequest** | [**SignatureRequestBulkSendWithTemplateRequest**](SignatureRequestBulkSendWithTemplateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -325,13 +327,13 @@ public class SignatureRequestBulkSendWithTemplateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## signatureRequestCancel -> signatureRequestCancel(signatureRequestId) +> signatureRequestCancel(signatureRequestId, idempotencyKey) Cancel Incomplete Signature Request @@ -396,6 +398,7 @@ public class SignatureRequestCancelExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the incomplete SignatureRequest to cancel. | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -413,13 +416,13 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## signatureRequestCreateEmbedded -> SignatureRequestGetResponse signatureRequestCreateEmbedded(signatureRequestCreateEmbeddedRequest) +> SignatureRequestGetResponse signatureRequestCreateEmbedded(signatureRequestCreateEmbeddedRequest, idempotencyKey) Create Embedded Signature Request @@ -517,6 +520,7 @@ public class SignatureRequestCreateEmbeddedExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestCreateEmbeddedRequest** | [**SignatureRequestCreateEmbeddedRequest**](SignatureRequestCreateEmbeddedRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -534,13 +538,13 @@ public class SignatureRequestCreateEmbeddedExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## signatureRequestCreateEmbeddedWithTemplate -> SignatureRequestGetResponse signatureRequestCreateEmbeddedWithTemplate(signatureRequestCreateEmbeddedWithTemplateRequest) +> SignatureRequestGetResponse signatureRequestCreateEmbeddedWithTemplate(signatureRequestCreateEmbeddedWithTemplateRequest, idempotencyKey) Create Embedded Signature Request with Template @@ -627,6 +631,7 @@ public class SignatureRequestCreateEmbeddedWithTemplateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestCreateEmbeddedWithTemplateRequest** | [**SignatureRequestCreateEmbeddedWithTemplateRequest**](SignatureRequestCreateEmbeddedWithTemplateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -644,13 +649,13 @@ public class SignatureRequestCreateEmbeddedWithTemplateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## signatureRequestEdit -> SignatureRequestGetResponse signatureRequestEdit(signatureRequestId, signatureRequestEditRequest) +> SignatureRequestGetResponse signatureRequestEdit(signatureRequestId, signatureRequestEditRequest, idempotencyKey) Edit Signature Request @@ -760,6 +765,7 @@ public class SignatureRequestEditExample |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the SignatureRequest to edit. | **signatureRequestEditRequest** | [**SignatureRequestEditRequest**](SignatureRequestEditRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -777,13 +783,13 @@ public class SignatureRequestEditExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## signatureRequestEditEmbedded -> SignatureRequestGetResponse signatureRequestEditEmbedded(signatureRequestId, signatureRequestEditEmbeddedRequest) +> SignatureRequestGetResponse signatureRequestEditEmbedded(signatureRequestId, signatureRequestEditEmbeddedRequest, idempotencyKey) Edit Embedded Signature Request @@ -884,6 +890,7 @@ public class SignatureRequestEditEmbeddedExample |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the SignatureRequest to edit. | **signatureRequestEditEmbeddedRequest** | [**SignatureRequestEditEmbeddedRequest**](SignatureRequestEditEmbeddedRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -901,13 +908,13 @@ public class SignatureRequestEditEmbeddedExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## signatureRequestEditEmbeddedWithTemplate -> SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest) +> SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest, idempotencyKey) Edit Embedded Signature Request with Template @@ -997,6 +1004,7 @@ public class SignatureRequestEditEmbeddedWithTemplateExample |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the SignatureRequest to edit. | **signatureRequestEditEmbeddedWithTemplateRequest** | [**SignatureRequestEditEmbeddedWithTemplateRequest**](SignatureRequestEditEmbeddedWithTemplateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -1014,13 +1022,13 @@ public class SignatureRequestEditEmbeddedWithTemplateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## signatureRequestEditWithTemplate -> SignatureRequestGetResponse signatureRequestEditWithTemplate(signatureRequestId, signatureRequestEditWithTemplateRequest) +> SignatureRequestGetResponse signatureRequestEditWithTemplate(signatureRequestId, signatureRequestEditWithTemplateRequest, idempotencyKey) Edit Signature Request With Template @@ -1129,6 +1137,7 @@ public class SignatureRequestEditWithTemplateExample |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the SignatureRequest to edit. | **signatureRequestEditWithTemplateRequest** | [**SignatureRequestEditWithTemplateRequest**](SignatureRequestEditWithTemplateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -1146,7 +1155,7 @@ public class SignatureRequestEditWithTemplateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | @@ -1579,7 +1588,7 @@ public class SignatureRequestListExample ## signatureRequestReleaseHold -> SignatureRequestGetResponse signatureRequestReleaseHold(signatureRequestId) +> SignatureRequestGetResponse signatureRequestReleaseHold(signatureRequestId, idempotencyKey) Release On-Hold Signature Request @@ -1638,6 +1647,7 @@ public class SignatureRequestReleaseHoldExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the SignatureRequest to release. | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -1655,13 +1665,13 @@ public class SignatureRequestReleaseHoldExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## signatureRequestRemind -> SignatureRequestGetResponse signatureRequestRemind(signatureRequestId, signatureRequestRemindRequest) +> SignatureRequestGetResponse signatureRequestRemind(signatureRequestId, signatureRequestRemindRequest, idempotencyKey) Send Request Reminder @@ -1727,6 +1737,7 @@ public class SignatureRequestRemindExample |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the SignatureRequest to send a reminder for. | **signatureRequestRemindRequest** | [**SignatureRequestRemindRequest**](SignatureRequestRemindRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -1744,13 +1755,13 @@ public class SignatureRequestRemindExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## signatureRequestRemove -> signatureRequestRemove(signatureRequestId) +> signatureRequestRemove(signatureRequestId, idempotencyKey) Remove Signature Request Access @@ -1810,6 +1821,7 @@ public class SignatureRequestRemoveExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the SignatureRequest to remove. | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -1827,13 +1839,13 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## signatureRequestSend -> SignatureRequestGetResponse signatureRequestSend(signatureRequestSendRequest) +> SignatureRequestGetResponse signatureRequestSend(signatureRequestSendRequest, idempotencyKey) Send Signature Request @@ -1940,6 +1952,7 @@ public class SignatureRequestSendExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestSendRequest** | [**SignatureRequestSendRequest**](SignatureRequestSendRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -1957,13 +1970,13 @@ public class SignatureRequestSendExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## signatureRequestSendWithTemplate -> SignatureRequestGetResponse signatureRequestSendWithTemplate(signatureRequestSendWithTemplateRequest) +> SignatureRequestGetResponse signatureRequestSendWithTemplate(signatureRequestSendWithTemplateRequest, idempotencyKey) Send with Template @@ -2069,6 +2082,7 @@ public class SignatureRequestSendWithTemplateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestSendWithTemplateRequest** | [**SignatureRequestSendWithTemplateRequest**](SignatureRequestSendWithTemplateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -2086,13 +2100,13 @@ public class SignatureRequestSendWithTemplateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## signatureRequestUpdate -> SignatureRequestGetResponse signatureRequestUpdate(signatureRequestId, signatureRequestUpdateRequest) +> SignatureRequestGetResponse signatureRequestUpdate(signatureRequestId, signatureRequestUpdateRequest, idempotencyKey) Update Signature Request @@ -2161,6 +2175,7 @@ public class SignatureRequestUpdateExample |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the SignatureRequest to update. | **signatureRequestUpdateRequest** | [**SignatureRequestUpdateRequest**](SignatureRequestUpdateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -2178,6 +2193,6 @@ public class SignatureRequestUpdateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v2/docs/TeamApi.md b/sdks/java-v2/docs/TeamApi.md index abb3f1ee0..981b1f0ec 100644 --- a/sdks/java-v2/docs/TeamApi.md +++ b/sdks/java-v2/docs/TeamApi.md @@ -19,7 +19,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## teamAddMember -> TeamGetResponse teamAddMember(teamAddMemberRequest, teamId) +> TeamGetResponse teamAddMember(teamAddMemberRequest, teamId, idempotencyKey) Add User to Team @@ -83,6 +83,7 @@ public class TeamAddMemberExample |------------- | ------------- | ------------- | -------------| **teamAddMemberRequest** | [**TeamAddMemberRequest**](TeamAddMemberRequest.md)| | **teamId** | **String**| The id of the team. | [optional] + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -100,13 +101,13 @@ public class TeamAddMemberExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## teamCreate -> TeamGetResponse teamCreate(teamCreateRequest) +> TeamGetResponse teamCreate(teamCreateRequest, idempotencyKey) Create Team @@ -168,6 +169,7 @@ public class TeamCreateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **teamCreateRequest** | [**TeamCreateRequest**](TeamCreateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -185,7 +187,7 @@ public class TeamCreateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | @@ -593,7 +595,7 @@ public class TeamMembersExample ## teamRemoveMember -> TeamGetResponse teamRemoveMember(teamRemoveMemberRequest) +> TeamGetResponse teamRemoveMember(teamRemoveMemberRequest, idempotencyKey) Remove User from Team @@ -656,6 +658,7 @@ public class TeamRemoveMemberExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **teamRemoveMemberRequest** | [**TeamRemoveMemberRequest**](TeamRemoveMemberRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -673,7 +676,7 @@ public class TeamRemoveMemberExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **201** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **201** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | @@ -765,7 +768,7 @@ public class TeamSubTeamsExample ## teamUpdate -> TeamGetResponse teamUpdate(teamUpdateRequest) +> TeamGetResponse teamUpdate(teamUpdateRequest, idempotencyKey) Update Team @@ -827,6 +830,7 @@ public class TeamUpdateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **teamUpdateRequest** | [**TeamUpdateRequest**](TeamUpdateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -844,6 +848,6 @@ public class TeamUpdateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v2/docs/TemplateApi.md b/sdks/java-v2/docs/TemplateApi.md index e9233865f..56963b69b 100644 --- a/sdks/java-v2/docs/TemplateApi.md +++ b/sdks/java-v2/docs/TemplateApi.md @@ -20,7 +20,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## templateAddUser -> TemplateGetResponse templateAddUser(templateId, templateAddUserRequest) +> TemplateGetResponse templateAddUser(templateId, templateAddUserRequest, idempotencyKey) Add User to Template @@ -84,6 +84,7 @@ public class TemplateAddUserExample |------------- | ------------- | ------------- | -------------| **templateId** | **String**| The id of the Template to give the Account access to. | **templateAddUserRequest** | [**TemplateAddUserRequest**](TemplateAddUserRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -101,13 +102,13 @@ public class TemplateAddUserExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## templateCreate -> TemplateCreateResponse templateCreate(templateCreateRequest) +> TemplateCreateResponse templateCreate(templateCreateRequest, idempotencyKey) Create Template @@ -249,6 +250,7 @@ public class TemplateCreateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **templateCreateRequest** | [**TemplateCreateRequest**](TemplateCreateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -266,13 +268,13 @@ public class TemplateCreateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## templateCreateEmbeddedDraft -> TemplateCreateEmbeddedDraftResponse templateCreateEmbeddedDraft(templateCreateEmbeddedDraftRequest) +> TemplateCreateEmbeddedDraftResponse templateCreateEmbeddedDraft(templateCreateEmbeddedDraftRequest, idempotencyKey) Create Embedded Template Draft @@ -376,6 +378,7 @@ public class TemplateCreateEmbeddedDraftExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **templateCreateEmbeddedDraftRequest** | [**TemplateCreateEmbeddedDraftRequest**](TemplateCreateEmbeddedDraftRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -393,13 +396,13 @@ public class TemplateCreateEmbeddedDraftExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## templateDelete -> templateDelete(templateId) +> templateDelete(templateId, idempotencyKey) Delete Template @@ -456,6 +459,7 @@ public class TemplateDeleteExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **templateId** | **String**| The id of the Template to delete. | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -473,7 +477,7 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | @@ -906,7 +910,7 @@ public class TemplateListExample ## templateRemoveUser -> TemplateGetResponse templateRemoveUser(templateId, templateRemoveUserRequest) +> TemplateGetResponse templateRemoveUser(templateId, templateRemoveUserRequest, idempotencyKey) Remove User from Template @@ -970,6 +974,7 @@ public class TemplateRemoveUserExample |------------- | ------------- | ------------- | -------------| **templateId** | **String**| The id of the Template to remove the Account's access to. | **templateRemoveUserRequest** | [**TemplateRemoveUserRequest**](TemplateRemoveUserRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -987,13 +992,13 @@ public class TemplateRemoveUserExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## templateUpdateFiles -> TemplateUpdateFilesResponse templateUpdateFiles(templateId, templateUpdateFilesRequest) +> TemplateUpdateFilesResponse templateUpdateFiles(templateId, templateUpdateFilesRequest, idempotencyKey) Update Template Files @@ -1070,6 +1075,7 @@ public class TemplateUpdateFilesExample |------------- | ------------- | ------------- | -------------| **templateId** | **String**| The ID of the template whose files to update. | **templateUpdateFilesRequest** | [**TemplateUpdateFilesRequest**](TemplateUpdateFilesRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -1087,6 +1093,6 @@ public class TemplateUpdateFilesExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v2/docs/UnclaimedDraftApi.md b/sdks/java-v2/docs/UnclaimedDraftApi.md index 3f4dadabd..f7816f232 100644 --- a/sdks/java-v2/docs/UnclaimedDraftApi.md +++ b/sdks/java-v2/docs/UnclaimedDraftApi.md @@ -13,7 +13,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## unclaimedDraftCreate -> UnclaimedDraftCreateResponse unclaimedDraftCreate(unclaimedDraftCreateRequest) +> UnclaimedDraftCreateResponse unclaimedDraftCreate(unclaimedDraftCreateRequest, idempotencyKey) Create Unclaimed Draft @@ -89,6 +89,7 @@ public class UnclaimedDraftCreateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **unclaimedDraftCreateRequest** | [**UnclaimedDraftCreateRequest**](UnclaimedDraftCreateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -106,13 +107,13 @@ public class UnclaimedDraftCreateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## unclaimedDraftCreateEmbedded -> UnclaimedDraftCreateResponse unclaimedDraftCreateEmbedded(unclaimedDraftCreateEmbeddedRequest) +> UnclaimedDraftCreateResponse unclaimedDraftCreateEmbedded(unclaimedDraftCreateEmbeddedRequest, idempotencyKey) Create Embedded Unclaimed Draft @@ -181,6 +182,7 @@ public class UnclaimedDraftCreateEmbeddedExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **unclaimedDraftCreateEmbeddedRequest** | [**UnclaimedDraftCreateEmbeddedRequest**](UnclaimedDraftCreateEmbeddedRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -198,13 +200,13 @@ public class UnclaimedDraftCreateEmbeddedExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## unclaimedDraftCreateEmbeddedWithTemplate -> UnclaimedDraftCreateResponse unclaimedDraftCreateEmbeddedWithTemplate(unclaimedDraftCreateEmbeddedWithTemplateRequest) +> UnclaimedDraftCreateResponse unclaimedDraftCreateEmbeddedWithTemplate(unclaimedDraftCreateEmbeddedWithTemplateRequest, idempotencyKey) Create Embedded Unclaimed Draft with Template @@ -292,6 +294,7 @@ public class UnclaimedDraftCreateEmbeddedWithTemplateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **unclaimedDraftCreateEmbeddedWithTemplateRequest** | [**UnclaimedDraftCreateEmbeddedWithTemplateRequest**](UnclaimedDraftCreateEmbeddedWithTemplateRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -309,13 +312,13 @@ public class UnclaimedDraftCreateEmbeddedWithTemplateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | ## unclaimedDraftEditAndResend -> UnclaimedDraftCreateResponse unclaimedDraftEditAndResend(signatureRequestId, unclaimedDraftEditAndResendRequest) +> UnclaimedDraftCreateResponse unclaimedDraftEditAndResend(signatureRequestId, unclaimedDraftEditAndResendRequest, idempotencyKey) Edit and Resend Unclaimed Draft @@ -382,6 +385,7 @@ public class UnclaimedDraftEditAndResendExample |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The ID of the signature request to edit and resend. | **unclaimedDraftEditAndResendRequest** | [**UnclaimedDraftEditAndResendRequest**](UnclaimedDraftEditAndResendRequest.md)| | + **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -399,6 +403,6 @@ public class UnclaimedDraftEditAndResendExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/AccountApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/AccountApi.java index 95a905691..29b3455d5 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/AccountApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/AccountApi.java @@ -57,18 +57,38 @@ public void setApiClient(ApiClient apiClient) { * Creates a new Dropbox Sign Account that is associated with the specified `email_address`. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/AccountCreateExample.java * @param accountCreateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return AccountCreateResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public AccountCreateResponse accountCreate(AccountCreateRequest accountCreateRequest, String idempotencyKey) throws ApiException { + return accountCreateWithHttpInfo(accountCreateRequest, idempotencyKey).getData(); + } + + + /** + * @see AccountApi#accountCreate(AccountCreateRequest, String) + */ public AccountCreateResponse accountCreate(AccountCreateRequest accountCreateRequest) throws ApiException { - return accountCreateWithHttpInfo(accountCreateRequest).getData(); + String idempotencyKey = null; + + return accountCreateWithHttpInfo(accountCreateRequest, idempotencyKey).getData(); + } + + /** + * @see AccountApi#accountCreateWithHttpInfo(AccountCreateRequest, String) + */ + public ApiResponse accountCreateWithHttpInfo(AccountCreateRequest accountCreateRequest) throws ApiException { + String idempotencyKey = null; + + return accountCreateWithHttpInfo(accountCreateRequest, idempotencyKey); } @@ -77,23 +97,30 @@ public AccountCreateResponse accountCreate(AccountCreateRequest accountCreateReq * Creates a new Dropbox Sign Account that is associated with the specified `email_address`. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/AccountCreateExample.java * @param accountCreateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<AccountCreateResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse accountCreateWithHttpInfo(AccountCreateRequest accountCreateRequest) throws ApiException { + public ApiResponse accountCreateWithHttpInfo(AccountCreateRequest accountCreateRequest, String idempotencyKey) throws ApiException { // Check required parameters if (accountCreateRequest == null) { throw new ApiException(400, "Missing the required parameter 'accountCreateRequest' when calling accountCreate"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = accountCreateRequest.createFormData(); @@ -107,7 +134,7 @@ public ApiResponse accountCreateWithHttpInfo(AccountCreat "POST", new ArrayList<>(), isFileTypeFound ? null : accountCreateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -229,18 +256,38 @@ public ApiResponse accountGetWithHttpInfo(String accountId, * Updates the properties and settings of your Account. Currently only allows for updates to the [Callback URL](/api/reference/tag/Callbacks-and-Events) and locale. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/AccountUpdateExample.java * @param accountUpdateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return AccountGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public AccountGetResponse accountUpdate(AccountUpdateRequest accountUpdateRequest, String idempotencyKey) throws ApiException { + return accountUpdateWithHttpInfo(accountUpdateRequest, idempotencyKey).getData(); + } + + + /** + * @see AccountApi#accountUpdate(AccountUpdateRequest, String) + */ public AccountGetResponse accountUpdate(AccountUpdateRequest accountUpdateRequest) throws ApiException { - return accountUpdateWithHttpInfo(accountUpdateRequest).getData(); + String idempotencyKey = null; + + return accountUpdateWithHttpInfo(accountUpdateRequest, idempotencyKey).getData(); + } + + /** + * @see AccountApi#accountUpdateWithHttpInfo(AccountUpdateRequest, String) + */ + public ApiResponse accountUpdateWithHttpInfo(AccountUpdateRequest accountUpdateRequest) throws ApiException { + String idempotencyKey = null; + + return accountUpdateWithHttpInfo(accountUpdateRequest, idempotencyKey); } @@ -249,23 +296,30 @@ public AccountGetResponse accountUpdate(AccountUpdateRequest accountUpdateReques * Updates the properties and settings of your Account. Currently only allows for updates to the [Callback URL](/api/reference/tag/Callbacks-and-Events) and locale. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/AccountUpdateExample.java * @param accountUpdateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<AccountGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse accountUpdateWithHttpInfo(AccountUpdateRequest accountUpdateRequest) throws ApiException { + public ApiResponse accountUpdateWithHttpInfo(AccountUpdateRequest accountUpdateRequest, String idempotencyKey) throws ApiException { // Check required parameters if (accountUpdateRequest == null) { throw new ApiException(400, "Missing the required parameter 'accountUpdateRequest' when calling accountUpdate"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = accountUpdateRequest.createFormData(); @@ -279,7 +333,7 @@ public ApiResponse accountUpdateWithHttpInfo(AccountUpdateRe "PUT", new ArrayList<>(), isFileTypeFound ? null : accountUpdateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -294,18 +348,38 @@ public ApiResponse accountUpdateWithHttpInfo(AccountUpdateRe * Verifies whether an Dropbox Sign Account exists for the given email address. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/AccountVerifyExample.java * @param accountVerifyRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return AccountVerifyResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public AccountVerifyResponse accountVerify(AccountVerifyRequest accountVerifyRequest, String idempotencyKey) throws ApiException { + return accountVerifyWithHttpInfo(accountVerifyRequest, idempotencyKey).getData(); + } + + + /** + * @see AccountApi#accountVerify(AccountVerifyRequest, String) + */ public AccountVerifyResponse accountVerify(AccountVerifyRequest accountVerifyRequest) throws ApiException { - return accountVerifyWithHttpInfo(accountVerifyRequest).getData(); + String idempotencyKey = null; + + return accountVerifyWithHttpInfo(accountVerifyRequest, idempotencyKey).getData(); + } + + /** + * @see AccountApi#accountVerifyWithHttpInfo(AccountVerifyRequest, String) + */ + public ApiResponse accountVerifyWithHttpInfo(AccountVerifyRequest accountVerifyRequest) throws ApiException { + String idempotencyKey = null; + + return accountVerifyWithHttpInfo(accountVerifyRequest, idempotencyKey); } @@ -314,23 +388,30 @@ public AccountVerifyResponse accountVerify(AccountVerifyRequest accountVerifyReq * Verifies whether an Dropbox Sign Account exists for the given email address. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/AccountVerifyExample.java * @param accountVerifyRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<AccountVerifyResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse accountVerifyWithHttpInfo(AccountVerifyRequest accountVerifyRequest) throws ApiException { + public ApiResponse accountVerifyWithHttpInfo(AccountVerifyRequest accountVerifyRequest, String idempotencyKey) throws ApiException { // Check required parameters if (accountVerifyRequest == null) { throw new ApiException(400, "Missing the required parameter 'accountVerifyRequest' when calling accountVerify"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = accountVerifyRequest.createFormData(); @@ -344,7 +425,7 @@ public ApiResponse accountVerifyWithHttpInfo(AccountVerif "POST", new ArrayList<>(), isFileTypeFound ? null : accountVerifyRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/ApiAppApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/ApiAppApi.java index b30d6505b..8cf1ba5e0 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/ApiAppApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/ApiAppApi.java @@ -55,18 +55,38 @@ public void setApiClient(ApiClient apiClient) { * Creates a new API App. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/ApiAppCreateExample.java * @param apiAppCreateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiAppGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public ApiAppGetResponse apiAppCreate(ApiAppCreateRequest apiAppCreateRequest, String idempotencyKey) throws ApiException { + return apiAppCreateWithHttpInfo(apiAppCreateRequest, idempotencyKey).getData(); + } + + + /** + * @see ApiAppApi#apiAppCreate(ApiAppCreateRequest, String) + */ public ApiAppGetResponse apiAppCreate(ApiAppCreateRequest apiAppCreateRequest) throws ApiException { - return apiAppCreateWithHttpInfo(apiAppCreateRequest).getData(); + String idempotencyKey = null; + + return apiAppCreateWithHttpInfo(apiAppCreateRequest, idempotencyKey).getData(); + } + + /** + * @see ApiAppApi#apiAppCreateWithHttpInfo(ApiAppCreateRequest, String) + */ + public ApiResponse apiAppCreateWithHttpInfo(ApiAppCreateRequest apiAppCreateRequest) throws ApiException { + String idempotencyKey = null; + + return apiAppCreateWithHttpInfo(apiAppCreateRequest, idempotencyKey); } @@ -75,23 +95,30 @@ public ApiAppGetResponse apiAppCreate(ApiAppCreateRequest apiAppCreateRequest) t * Creates a new API App. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/ApiAppCreateExample.java * @param apiAppCreateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<ApiAppGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse apiAppCreateWithHttpInfo(ApiAppCreateRequest apiAppCreateRequest) throws ApiException { + public ApiResponse apiAppCreateWithHttpInfo(ApiAppCreateRequest apiAppCreateRequest, String idempotencyKey) throws ApiException { // Check required parameters if (apiAppCreateRequest == null) { throw new ApiException(400, "Missing the required parameter 'apiAppCreateRequest' when calling apiAppCreate"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = apiAppCreateRequest.createFormData(); @@ -105,7 +132,7 @@ public ApiResponse apiAppCreateWithHttpInfo(ApiAppCreateReque "POST", new ArrayList<>(), isFileTypeFound ? null : apiAppCreateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -370,18 +397,38 @@ public ApiResponse apiAppListWithHttpInfo(Integer page, Inte * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/ApiAppUpdateExample.java * @param clientId The client id of the API App to update. (required) * @param apiAppUpdateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiAppGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public ApiAppGetResponse apiAppUpdate(String clientId, ApiAppUpdateRequest apiAppUpdateRequest, String idempotencyKey) throws ApiException { + return apiAppUpdateWithHttpInfo(clientId, apiAppUpdateRequest, idempotencyKey).getData(); + } + + + /** + * @see ApiAppApi#apiAppUpdate(String, ApiAppUpdateRequest, String) + */ public ApiAppGetResponse apiAppUpdate(String clientId, ApiAppUpdateRequest apiAppUpdateRequest) throws ApiException { - return apiAppUpdateWithHttpInfo(clientId, apiAppUpdateRequest).getData(); + String idempotencyKey = null; + + return apiAppUpdateWithHttpInfo(clientId, apiAppUpdateRequest, idempotencyKey).getData(); + } + + /** + * @see ApiAppApi#apiAppUpdateWithHttpInfo(String, ApiAppUpdateRequest, String) + */ + public ApiResponse apiAppUpdateWithHttpInfo(String clientId, ApiAppUpdateRequest apiAppUpdateRequest) throws ApiException { + String idempotencyKey = null; + + return apiAppUpdateWithHttpInfo(clientId, apiAppUpdateRequest, idempotencyKey); } @@ -391,17 +438,18 @@ public ApiAppGetResponse apiAppUpdate(String clientId, ApiAppUpdateRequest apiAp * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/ApiAppUpdateExample.java * @param clientId The client id of the API App to update. (required) * @param apiAppUpdateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<ApiAppGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse apiAppUpdateWithHttpInfo(String clientId, ApiAppUpdateRequest apiAppUpdateRequest) throws ApiException { + public ApiResponse apiAppUpdateWithHttpInfo(String clientId, ApiAppUpdateRequest apiAppUpdateRequest, String idempotencyKey) throws ApiException { // Check required parameters if (clientId == null) { @@ -415,6 +463,12 @@ public ApiResponse apiAppUpdateWithHttpInfo(String clientId, String localVarPath = "/api_app/{client_id}" .replaceAll("\\{client_id}", apiClient.escapeString(clientId.toString())); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = apiAppUpdateRequest.createFormData(); @@ -428,7 +482,7 @@ public ApiResponse apiAppUpdateWithHttpInfo(String clientId, "PUT", new ArrayList<>(), isFileTypeFound ? null : apiAppUpdateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/DocumentApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/DocumentApi.java index 1bf68ca4c..d0ae9761b 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/DocumentApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/DocumentApi.java @@ -53,18 +53,38 @@ public void setApiClient(ApiClient apiClient) { * Detects form fields in a PDF document using either PDF form annotations or Dropbox Sign text tags. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/DocumentDetectFieldsExample.java * @param documentFieldDetectionRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return DocumentFieldDetectionResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public DocumentFieldDetectionResponse documentDetectFields(DocumentFieldDetectionRequest documentFieldDetectionRequest, String idempotencyKey) throws ApiException { + return documentDetectFieldsWithHttpInfo(documentFieldDetectionRequest, idempotencyKey).getData(); + } + + + /** + * @see DocumentApi#documentDetectFields(DocumentFieldDetectionRequest, String) + */ public DocumentFieldDetectionResponse documentDetectFields(DocumentFieldDetectionRequest documentFieldDetectionRequest) throws ApiException { - return documentDetectFieldsWithHttpInfo(documentFieldDetectionRequest).getData(); + String idempotencyKey = null; + + return documentDetectFieldsWithHttpInfo(documentFieldDetectionRequest, idempotencyKey).getData(); + } + + /** + * @see DocumentApi#documentDetectFieldsWithHttpInfo(DocumentFieldDetectionRequest, String) + */ + public ApiResponse documentDetectFieldsWithHttpInfo(DocumentFieldDetectionRequest documentFieldDetectionRequest) throws ApiException { + String idempotencyKey = null; + + return documentDetectFieldsWithHttpInfo(documentFieldDetectionRequest, idempotencyKey); } @@ -73,23 +93,30 @@ public DocumentFieldDetectionResponse documentDetectFields(DocumentFieldDetectio * Detects form fields in a PDF document using either PDF form annotations or Dropbox Sign text tags. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/DocumentDetectFieldsExample.java * @param documentFieldDetectionRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<DocumentFieldDetectionResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse documentDetectFieldsWithHttpInfo(DocumentFieldDetectionRequest documentFieldDetectionRequest) throws ApiException { + public ApiResponse documentDetectFieldsWithHttpInfo(DocumentFieldDetectionRequest documentFieldDetectionRequest, String idempotencyKey) throws ApiException { // Check required parameters if (documentFieldDetectionRequest == null) { throw new ApiException(400, "Missing the required parameter 'documentFieldDetectionRequest' when calling documentDetectFields"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = documentFieldDetectionRequest.createFormData(); @@ -103,7 +130,7 @@ public ApiResponse documentDetectFieldsWithHttpI "POST", new ArrayList<>(), isFileTypeFound ? null : documentFieldDetectionRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/EmbeddedApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/EmbeddedApi.java index 3cc198b87..9406a9542 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/EmbeddedApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/EmbeddedApi.java @@ -55,18 +55,38 @@ public void setApiClient(ApiClient apiClient) { * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/EmbeddedEditUrlExample.java * @param templateId The id of the template to edit. (required) * @param embeddedEditUrlRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return EmbeddedEditUrlResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public EmbeddedEditUrlResponse embeddedEditUrl(String templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, String idempotencyKey) throws ApiException { + return embeddedEditUrlWithHttpInfo(templateId, embeddedEditUrlRequest, idempotencyKey).getData(); + } + + + /** + * @see EmbeddedApi#embeddedEditUrl(String, EmbeddedEditUrlRequest, String) + */ public EmbeddedEditUrlResponse embeddedEditUrl(String templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest) throws ApiException { - return embeddedEditUrlWithHttpInfo(templateId, embeddedEditUrlRequest).getData(); + String idempotencyKey = null; + + return embeddedEditUrlWithHttpInfo(templateId, embeddedEditUrlRequest, idempotencyKey).getData(); + } + + /** + * @see EmbeddedApi#embeddedEditUrlWithHttpInfo(String, EmbeddedEditUrlRequest, String) + */ + public ApiResponse embeddedEditUrlWithHttpInfo(String templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest) throws ApiException { + String idempotencyKey = null; + + return embeddedEditUrlWithHttpInfo(templateId, embeddedEditUrlRequest, idempotencyKey); } @@ -76,17 +96,18 @@ public EmbeddedEditUrlResponse embeddedEditUrl(String templateId, EmbeddedEditUr * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/EmbeddedEditUrlExample.java * @param templateId The id of the template to edit. (required) * @param embeddedEditUrlRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<EmbeddedEditUrlResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse embeddedEditUrlWithHttpInfo(String templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest) throws ApiException { + public ApiResponse embeddedEditUrlWithHttpInfo(String templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, String idempotencyKey) throws ApiException { // Check required parameters if (templateId == null) { @@ -100,6 +121,12 @@ public ApiResponse embeddedEditUrlWithHttpInfo(String t String localVarPath = "/embedded/edit_url/{template_id}" .replaceAll("\\{template_id}", apiClient.escapeString(templateId.toString())); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = embeddedEditUrlRequest.createFormData(); @@ -113,7 +140,7 @@ public ApiResponse embeddedEditUrlWithHttpInfo(String t "POST", new ArrayList<>(), isFileTypeFound ? null : embeddedEditUrlRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/FaxApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/FaxApi.java index 07aa92b07..33ae742ef 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/FaxApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/FaxApi.java @@ -373,18 +373,38 @@ public ApiResponse faxListWithHttpInfo(Integer page, Integer pa * Creates and sends a new Fax with the submitted file(s) * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/FaxSendExample.java * @param faxSendRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return FaxGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public FaxGetResponse faxSend(FaxSendRequest faxSendRequest, String idempotencyKey) throws ApiException { + return faxSendWithHttpInfo(faxSendRequest, idempotencyKey).getData(); + } + + + /** + * @see FaxApi#faxSend(FaxSendRequest, String) + */ public FaxGetResponse faxSend(FaxSendRequest faxSendRequest) throws ApiException { - return faxSendWithHttpInfo(faxSendRequest).getData(); + String idempotencyKey = null; + + return faxSendWithHttpInfo(faxSendRequest, idempotencyKey).getData(); + } + + /** + * @see FaxApi#faxSendWithHttpInfo(FaxSendRequest, String) + */ + public ApiResponse faxSendWithHttpInfo(FaxSendRequest faxSendRequest) throws ApiException { + String idempotencyKey = null; + + return faxSendWithHttpInfo(faxSendRequest, idempotencyKey); } @@ -393,23 +413,30 @@ public FaxGetResponse faxSend(FaxSendRequest faxSendRequest) throws ApiException * Creates and sends a new Fax with the submitted file(s) * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/FaxSendExample.java * @param faxSendRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<FaxGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse faxSendWithHttpInfo(FaxSendRequest faxSendRequest) throws ApiException { + public ApiResponse faxSendWithHttpInfo(FaxSendRequest faxSendRequest, String idempotencyKey) throws ApiException { // Check required parameters if (faxSendRequest == null) { throw new ApiException(400, "Missing the required parameter 'faxSendRequest' when calling faxSend"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = faxSendRequest.createFormData(); @@ -423,7 +450,7 @@ public ApiResponse faxSendWithHttpInfo(FaxSendRequest faxSendReq "POST", new ArrayList<>(), isFileTypeFound ? null : faxSendRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/FaxLineApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/FaxLineApi.java index 4980f9f75..bc4dd865a 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/FaxLineApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/FaxLineApi.java @@ -58,18 +58,38 @@ public void setApiClient(ApiClient apiClient) { * Grants a user access to the specified Fax Line. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/FaxLineAddUserExample.java * @param faxLineAddUserRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return FaxLineResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public FaxLineResponse faxLineAddUser(FaxLineAddUserRequest faxLineAddUserRequest, String idempotencyKey) throws ApiException { + return faxLineAddUserWithHttpInfo(faxLineAddUserRequest, idempotencyKey).getData(); + } + + + /** + * @see FaxLineApi#faxLineAddUser(FaxLineAddUserRequest, String) + */ public FaxLineResponse faxLineAddUser(FaxLineAddUserRequest faxLineAddUserRequest) throws ApiException { - return faxLineAddUserWithHttpInfo(faxLineAddUserRequest).getData(); + String idempotencyKey = null; + + return faxLineAddUserWithHttpInfo(faxLineAddUserRequest, idempotencyKey).getData(); + } + + /** + * @see FaxLineApi#faxLineAddUserWithHttpInfo(FaxLineAddUserRequest, String) + */ + public ApiResponse faxLineAddUserWithHttpInfo(FaxLineAddUserRequest faxLineAddUserRequest) throws ApiException { + String idempotencyKey = null; + + return faxLineAddUserWithHttpInfo(faxLineAddUserRequest, idempotencyKey); } @@ -78,23 +98,30 @@ public FaxLineResponse faxLineAddUser(FaxLineAddUserRequest faxLineAddUserReques * Grants a user access to the specified Fax Line. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/FaxLineAddUserExample.java * @param faxLineAddUserRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<FaxLineResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse faxLineAddUserWithHttpInfo(FaxLineAddUserRequest faxLineAddUserRequest) throws ApiException { + public ApiResponse faxLineAddUserWithHttpInfo(FaxLineAddUserRequest faxLineAddUserRequest, String idempotencyKey) throws ApiException { // Check required parameters if (faxLineAddUserRequest == null) { throw new ApiException(400, "Missing the required parameter 'faxLineAddUserRequest' when calling faxLineAddUser"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = faxLineAddUserRequest.createFormData(); @@ -108,7 +135,7 @@ public ApiResponse faxLineAddUserWithHttpInfo(FaxLineAddUserReq "PUT", new ArrayList<>(), isFileTypeFound ? null : faxLineAddUserRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -263,18 +290,38 @@ public ApiResponse faxLineAreaCodeGetWithHttpInfo(St * Purchases a new Fax Line * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/FaxLineCreateExample.java * @param faxLineCreateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return FaxLineResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public FaxLineResponse faxLineCreate(FaxLineCreateRequest faxLineCreateRequest, String idempotencyKey) throws ApiException { + return faxLineCreateWithHttpInfo(faxLineCreateRequest, idempotencyKey).getData(); + } + + + /** + * @see FaxLineApi#faxLineCreate(FaxLineCreateRequest, String) + */ public FaxLineResponse faxLineCreate(FaxLineCreateRequest faxLineCreateRequest) throws ApiException { - return faxLineCreateWithHttpInfo(faxLineCreateRequest).getData(); + String idempotencyKey = null; + + return faxLineCreateWithHttpInfo(faxLineCreateRequest, idempotencyKey).getData(); + } + + /** + * @see FaxLineApi#faxLineCreateWithHttpInfo(FaxLineCreateRequest, String) + */ + public ApiResponse faxLineCreateWithHttpInfo(FaxLineCreateRequest faxLineCreateRequest) throws ApiException { + String idempotencyKey = null; + + return faxLineCreateWithHttpInfo(faxLineCreateRequest, idempotencyKey); } @@ -283,23 +330,30 @@ public FaxLineResponse faxLineCreate(FaxLineCreateRequest faxLineCreateRequest) * Purchases a new Fax Line * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/FaxLineCreateExample.java * @param faxLineCreateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<FaxLineResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse faxLineCreateWithHttpInfo(FaxLineCreateRequest faxLineCreateRequest) throws ApiException { + public ApiResponse faxLineCreateWithHttpInfo(FaxLineCreateRequest faxLineCreateRequest, String idempotencyKey) throws ApiException { // Check required parameters if (faxLineCreateRequest == null) { throw new ApiException(400, "Missing the required parameter 'faxLineCreateRequest' when calling faxLineCreate"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = faxLineCreateRequest.createFormData(); @@ -313,7 +367,7 @@ public ApiResponse faxLineCreateWithHttpInfo(FaxLineCreateReque "POST", new ArrayList<>(), isFileTypeFound ? null : faxLineCreateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -626,18 +680,38 @@ public ApiResponse faxLineListWithHttpInfo(String accountId * Removes a user's access to the specified Fax Line * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/FaxLineRemoveUserExample.java * @param faxLineRemoveUserRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return FaxLineResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public FaxLineResponse faxLineRemoveUser(FaxLineRemoveUserRequest faxLineRemoveUserRequest, String idempotencyKey) throws ApiException { + return faxLineRemoveUserWithHttpInfo(faxLineRemoveUserRequest, idempotencyKey).getData(); + } + + + /** + * @see FaxLineApi#faxLineRemoveUser(FaxLineRemoveUserRequest, String) + */ public FaxLineResponse faxLineRemoveUser(FaxLineRemoveUserRequest faxLineRemoveUserRequest) throws ApiException { - return faxLineRemoveUserWithHttpInfo(faxLineRemoveUserRequest).getData(); + String idempotencyKey = null; + + return faxLineRemoveUserWithHttpInfo(faxLineRemoveUserRequest, idempotencyKey).getData(); + } + + /** + * @see FaxLineApi#faxLineRemoveUserWithHttpInfo(FaxLineRemoveUserRequest, String) + */ + public ApiResponse faxLineRemoveUserWithHttpInfo(FaxLineRemoveUserRequest faxLineRemoveUserRequest) throws ApiException { + String idempotencyKey = null; + + return faxLineRemoveUserWithHttpInfo(faxLineRemoveUserRequest, idempotencyKey); } @@ -646,23 +720,30 @@ public FaxLineResponse faxLineRemoveUser(FaxLineRemoveUserRequest faxLineRemoveU * Removes a user's access to the specified Fax Line * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/FaxLineRemoveUserExample.java * @param faxLineRemoveUserRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<FaxLineResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse faxLineRemoveUserWithHttpInfo(FaxLineRemoveUserRequest faxLineRemoveUserRequest) throws ApiException { + public ApiResponse faxLineRemoveUserWithHttpInfo(FaxLineRemoveUserRequest faxLineRemoveUserRequest, String idempotencyKey) throws ApiException { // Check required parameters if (faxLineRemoveUserRequest == null) { throw new ApiException(400, "Missing the required parameter 'faxLineRemoveUserRequest' when calling faxLineRemoveUser"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = faxLineRemoveUserRequest.createFormData(); @@ -676,7 +757,7 @@ public ApiResponse faxLineRemoveUserWithHttpInfo(FaxLineRemoveU "PUT", new ArrayList<>(), isFileTypeFound ? null : faxLineRemoveUserRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/ReportApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/ReportApi.java index 472111d66..3ce505132 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/ReportApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/ReportApi.java @@ -53,18 +53,38 @@ public void setApiClient(ApiClient apiClient) { * Request the creation of one or more report(s). When the report(s) have been generated, you will receive an email (one per requested report type) containing a link to download the report as a CSV file. The requested date range may be up to 12 months in duration, and `start_date` must not be more than 10 years in the past. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/ReportCreateExample.java * @param reportCreateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ReportCreateResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public ReportCreateResponse reportCreate(ReportCreateRequest reportCreateRequest, String idempotencyKey) throws ApiException { + return reportCreateWithHttpInfo(reportCreateRequest, idempotencyKey).getData(); + } + + + /** + * @see ReportApi#reportCreate(ReportCreateRequest, String) + */ public ReportCreateResponse reportCreate(ReportCreateRequest reportCreateRequest) throws ApiException { - return reportCreateWithHttpInfo(reportCreateRequest).getData(); + String idempotencyKey = null; + + return reportCreateWithHttpInfo(reportCreateRequest, idempotencyKey).getData(); + } + + /** + * @see ReportApi#reportCreateWithHttpInfo(ReportCreateRequest, String) + */ + public ApiResponse reportCreateWithHttpInfo(ReportCreateRequest reportCreateRequest) throws ApiException { + String idempotencyKey = null; + + return reportCreateWithHttpInfo(reportCreateRequest, idempotencyKey); } @@ -73,23 +93,30 @@ public ReportCreateResponse reportCreate(ReportCreateRequest reportCreateRequest * Request the creation of one or more report(s). When the report(s) have been generated, you will receive an email (one per requested report type) containing a link to download the report as a CSV file. The requested date range may be up to 12 months in duration, and `start_date` must not be more than 10 years in the past. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/ReportCreateExample.java * @param reportCreateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<ReportCreateResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse reportCreateWithHttpInfo(ReportCreateRequest reportCreateRequest) throws ApiException { + public ApiResponse reportCreateWithHttpInfo(ReportCreateRequest reportCreateRequest, String idempotencyKey) throws ApiException { // Check required parameters if (reportCreateRequest == null) { throw new ApiException(400, "Missing the required parameter 'reportCreateRequest' when calling reportCreate"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = reportCreateRequest.createFormData(); @@ -103,7 +130,7 @@ public ApiResponse reportCreateWithHttpInfo(ReportCreateRe "POST", new ArrayList<>(), isFileTypeFound ? null : reportCreateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/SignatureRequestApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/SignatureRequestApi.java index 539a8720c..39c9bfc1f 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/SignatureRequestApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/SignatureRequestApi.java @@ -69,18 +69,38 @@ public void setApiClient(ApiClient apiClient) { * Creates BulkSendJob which sends up to 250 SignatureRequests in bulk based off of the provided Template(s) specified with the `template_ids` parameter to be signed in an embedded iFrame. These embedded signature requests can only be signed in embedded iFrames whereas normal signature requests can only be signed on Dropbox Sign. **NOTE:** Only available for Standard plan and higher. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.java * @param signatureRequestBulkCreateEmbeddedWithTemplateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return BulkSendJobSendResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public BulkSendJobSendResponse signatureRequestBulkCreateEmbeddedWithTemplate(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, String idempotencyKey) throws ApiException { + return signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestBulkCreateEmbeddedWithTemplateRequest, idempotencyKey).getData(); + } + + + /** + * @see SignatureRequestApi#signatureRequestBulkCreateEmbeddedWithTemplate(SignatureRequestBulkCreateEmbeddedWithTemplateRequest, String) + */ public BulkSendJobSendResponse signatureRequestBulkCreateEmbeddedWithTemplate(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest) throws ApiException { - return signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestBulkCreateEmbeddedWithTemplateRequest).getData(); + String idempotencyKey = null; + + return signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestBulkCreateEmbeddedWithTemplateRequest, idempotencyKey).getData(); + } + + /** + * @see SignatureRequestApi#signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestBulkCreateEmbeddedWithTemplateRequest, String) + */ + public ApiResponse signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest) throws ApiException { + String idempotencyKey = null; + + return signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestBulkCreateEmbeddedWithTemplateRequest, idempotencyKey); } @@ -89,23 +109,30 @@ public BulkSendJobSendResponse signatureRequestBulkCreateEmbeddedWithTemplate(Si * Creates BulkSendJob which sends up to 250 SignatureRequests in bulk based off of the provided Template(s) specified with the `template_ids` parameter to be signed in an embedded iFrame. These embedded signature requests can only be signed in embedded iFrames whereas normal signature requests can only be signed on Dropbox Sign. **NOTE:** Only available for Standard plan and higher. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.java * @param signatureRequestBulkCreateEmbeddedWithTemplateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<BulkSendJobSendResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest) throws ApiException { + public ApiResponse signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, String idempotencyKey) throws ApiException { // Check required parameters if (signatureRequestBulkCreateEmbeddedWithTemplateRequest == null) { throw new ApiException(400, "Missing the required parameter 'signatureRequestBulkCreateEmbeddedWithTemplateRequest' when calling signatureRequestBulkCreateEmbeddedWithTemplate"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestBulkCreateEmbeddedWithTemplateRequest.createFormData(); @@ -119,7 +146,7 @@ public ApiResponse signatureRequestBulkCreateEmbeddedWi "POST", new ArrayList<>(), isFileTypeFound ? null : signatureRequestBulkCreateEmbeddedWithTemplateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -134,18 +161,38 @@ public ApiResponse signatureRequestBulkCreateEmbeddedWi * Creates BulkSendJob which sends up to 250 SignatureRequests in bulk based off of the provided Template(s) specified with the `template_ids` parameter. **NOTE:** Only available for Standard plan and higher. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.java * @param signatureRequestBulkSendWithTemplateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return BulkSendJobSendResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public BulkSendJobSendResponse signatureRequestBulkSendWithTemplate(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, String idempotencyKey) throws ApiException { + return signatureRequestBulkSendWithTemplateWithHttpInfo(signatureRequestBulkSendWithTemplateRequest, idempotencyKey).getData(); + } + + + /** + * @see SignatureRequestApi#signatureRequestBulkSendWithTemplate(SignatureRequestBulkSendWithTemplateRequest, String) + */ public BulkSendJobSendResponse signatureRequestBulkSendWithTemplate(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest) throws ApiException { - return signatureRequestBulkSendWithTemplateWithHttpInfo(signatureRequestBulkSendWithTemplateRequest).getData(); + String idempotencyKey = null; + + return signatureRequestBulkSendWithTemplateWithHttpInfo(signatureRequestBulkSendWithTemplateRequest, idempotencyKey).getData(); + } + + /** + * @see SignatureRequestApi#signatureRequestBulkSendWithTemplateWithHttpInfo(SignatureRequestBulkSendWithTemplateRequest, String) + */ + public ApiResponse signatureRequestBulkSendWithTemplateWithHttpInfo(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest) throws ApiException { + String idempotencyKey = null; + + return signatureRequestBulkSendWithTemplateWithHttpInfo(signatureRequestBulkSendWithTemplateRequest, idempotencyKey); } @@ -154,23 +201,30 @@ public BulkSendJobSendResponse signatureRequestBulkSendWithTemplate(SignatureReq * Creates BulkSendJob which sends up to 250 SignatureRequests in bulk based off of the provided Template(s) specified with the `template_ids` parameter. **NOTE:** Only available for Standard plan and higher. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.java * @param signatureRequestBulkSendWithTemplateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<BulkSendJobSendResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse signatureRequestBulkSendWithTemplateWithHttpInfo(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest) throws ApiException { + public ApiResponse signatureRequestBulkSendWithTemplateWithHttpInfo(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, String idempotencyKey) throws ApiException { // Check required parameters if (signatureRequestBulkSendWithTemplateRequest == null) { throw new ApiException(400, "Missing the required parameter 'signatureRequestBulkSendWithTemplateRequest' when calling signatureRequestBulkSendWithTemplate"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestBulkSendWithTemplateRequest.createFormData(); @@ -184,7 +238,7 @@ public ApiResponse signatureRequestBulkSendWithTemplate "POST", new ArrayList<>(), isFileTypeFound ? null : signatureRequestBulkSendWithTemplateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -199,17 +253,37 @@ public ApiResponse signatureRequestBulkSendWithTemplate * Cancels an incomplete signature request. This action is **not reversible**. The request will be canceled and signers will no longer be able to sign. If they try to access the signature request they will receive a HTTP 410 status code indicating that the resource has been deleted. Cancelation is asynchronous and a successful call to this endpoint will return an empty 200 OK response if the signature request is eligible to be canceled and has been successfully queued. This 200 OK response does not indicate a successful cancelation of the signature request itself. The cancelation is confirmed via the `signature_request_canceled` event. It is recommended that a [callback handler](/api/reference/tag/Callbacks-and-Events) be implemented to listen for the `signature_request_canceled` event. This callback will be sent only when the cancelation has completed successfully. If a callback handler has been configured and the event has not been received within 60 minutes of making the call, check the status of the request in the [API Dashboard](https://app.hellosign.com/apidashboard) and retry the cancelation if necessary. To be eligible for cancelation, a signature request must have been sent successfully, must not yet have been signed by all signers, and you must either be the sender or own the API app under which it was sent. A partially signed signature request can be canceled. **NOTE:** To remove your access to a completed signature request, use the endpoint: `POST /signature_request/remove/[:signature_request_id]`. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestCancelExample.java * @param signatureRequestId The id of the incomplete SignatureRequest to cancel. (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public void signatureRequestCancel(String signatureRequestId, String idempotencyKey) throws ApiException { + signatureRequestCancelWithHttpInfo(signatureRequestId, idempotencyKey); + } + + + /** + * @see SignatureRequestApi#signatureRequestCancel(String, String) + */ public void signatureRequestCancel(String signatureRequestId) throws ApiException { - signatureRequestCancelWithHttpInfo(signatureRequestId); + String idempotencyKey = null; + + signatureRequestCancelWithHttpInfo(signatureRequestId, idempotencyKey); + } + + /** + * @see SignatureRequestApi#signatureRequestCancelWithHttpInfo(String, String) + */ + public ApiResponse signatureRequestCancelWithHttpInfo(String signatureRequestId) throws ApiException { + String idempotencyKey = null; + + return signatureRequestCancelWithHttpInfo(signatureRequestId, idempotencyKey); } @@ -218,17 +292,18 @@ public void signatureRequestCancel(String signatureRequestId) throws ApiExceptio * Cancels an incomplete signature request. This action is **not reversible**. The request will be canceled and signers will no longer be able to sign. If they try to access the signature request they will receive a HTTP 410 status code indicating that the resource has been deleted. Cancelation is asynchronous and a successful call to this endpoint will return an empty 200 OK response if the signature request is eligible to be canceled and has been successfully queued. This 200 OK response does not indicate a successful cancelation of the signature request itself. The cancelation is confirmed via the `signature_request_canceled` event. It is recommended that a [callback handler](/api/reference/tag/Callbacks-and-Events) be implemented to listen for the `signature_request_canceled` event. This callback will be sent only when the cancelation has completed successfully. If a callback handler has been configured and the event has not been received within 60 minutes of making the call, check the status of the request in the [API Dashboard](https://app.hellosign.com/apidashboard) and retry the cancelation if necessary. To be eligible for cancelation, a signature request must have been sent successfully, must not yet have been signed by all signers, and you must either be the sender or own the API app under which it was sent. A partially signed signature request can be canceled. **NOTE:** To remove your access to a completed signature request, use the endpoint: `POST /signature_request/remove/[:signature_request_id]`. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestCancelExample.java * @param signatureRequestId The id of the incomplete SignatureRequest to cancel. (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse signatureRequestCancelWithHttpInfo(String signatureRequestId) throws ApiException { + public ApiResponse signatureRequestCancelWithHttpInfo(String signatureRequestId, String idempotencyKey) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -239,6 +314,12 @@ public ApiResponse signatureRequestCancelWithHttpInfo(String signatureRequ String localVarPath = "/signature_request/cancel/{signature_request_id}" .replaceAll("\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = new HashMap(); @@ -251,7 +332,7 @@ public ApiResponse signatureRequestCancelWithHttpInfo(String signatureRequ "POST", new ArrayList<>(), null, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -266,18 +347,38 @@ public ApiResponse signatureRequestCancelWithHttpInfo(String signatureRequ * Creates a new SignatureRequest with the submitted documents to be signed in an embedded iFrame. If form_fields_per_document is not specified, a signature page will be affixed where all signers will be required to add their signature, signifying their agreement to all contained documents. Note that embedded signature requests can only be signed in embedded iFrames whereas normal signature requests can only be signed on Dropbox Sign. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestCreateEmbeddedExample.java * @param signatureRequestCreateEmbeddedRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public SignatureRequestGetResponse signatureRequestCreateEmbedded(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, String idempotencyKey) throws ApiException { + return signatureRequestCreateEmbeddedWithHttpInfo(signatureRequestCreateEmbeddedRequest, idempotencyKey).getData(); + } + + + /** + * @see SignatureRequestApi#signatureRequestCreateEmbedded(SignatureRequestCreateEmbeddedRequest, String) + */ public SignatureRequestGetResponse signatureRequestCreateEmbedded(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest) throws ApiException { - return signatureRequestCreateEmbeddedWithHttpInfo(signatureRequestCreateEmbeddedRequest).getData(); + String idempotencyKey = null; + + return signatureRequestCreateEmbeddedWithHttpInfo(signatureRequestCreateEmbeddedRequest, idempotencyKey).getData(); + } + + /** + * @see SignatureRequestApi#signatureRequestCreateEmbeddedWithHttpInfo(SignatureRequestCreateEmbeddedRequest, String) + */ + public ApiResponse signatureRequestCreateEmbeddedWithHttpInfo(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest) throws ApiException { + String idempotencyKey = null; + + return signatureRequestCreateEmbeddedWithHttpInfo(signatureRequestCreateEmbeddedRequest, idempotencyKey); } @@ -286,23 +387,30 @@ public SignatureRequestGetResponse signatureRequestCreateEmbedded(SignatureReque * Creates a new SignatureRequest with the submitted documents to be signed in an embedded iFrame. If form_fields_per_document is not specified, a signature page will be affixed where all signers will be required to add their signature, signifying their agreement to all contained documents. Note that embedded signature requests can only be signed in embedded iFrames whereas normal signature requests can only be signed on Dropbox Sign. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestCreateEmbeddedExample.java * @param signatureRequestCreateEmbeddedRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse signatureRequestCreateEmbeddedWithHttpInfo(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest) throws ApiException { + public ApiResponse signatureRequestCreateEmbeddedWithHttpInfo(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, String idempotencyKey) throws ApiException { // Check required parameters if (signatureRequestCreateEmbeddedRequest == null) { throw new ApiException(400, "Missing the required parameter 'signatureRequestCreateEmbeddedRequest' when calling signatureRequestCreateEmbedded"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestCreateEmbeddedRequest.createFormData(); @@ -316,7 +424,7 @@ public ApiResponse signatureRequestCreateEmbeddedWi "POST", new ArrayList<>(), isFileTypeFound ? null : signatureRequestCreateEmbeddedRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -331,18 +439,38 @@ public ApiResponse signatureRequestCreateEmbeddedWi * Creates a new SignatureRequest based on the given Template(s) to be signed in an embedded iFrame. Note that embedded signature requests can only be signed in embedded iFrames whereas normal signature requests can only be signed on Dropbox Sign. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.java * @param signatureRequestCreateEmbeddedWithTemplateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public SignatureRequestGetResponse signatureRequestCreateEmbeddedWithTemplate(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, String idempotencyKey) throws ApiException { + return signatureRequestCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestCreateEmbeddedWithTemplateRequest, idempotencyKey).getData(); + } + + + /** + * @see SignatureRequestApi#signatureRequestCreateEmbeddedWithTemplate(SignatureRequestCreateEmbeddedWithTemplateRequest, String) + */ public SignatureRequestGetResponse signatureRequestCreateEmbeddedWithTemplate(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest) throws ApiException { - return signatureRequestCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestCreateEmbeddedWithTemplateRequest).getData(); + String idempotencyKey = null; + + return signatureRequestCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestCreateEmbeddedWithTemplateRequest, idempotencyKey).getData(); + } + + /** + * @see SignatureRequestApi#signatureRequestCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestCreateEmbeddedWithTemplateRequest, String) + */ + public ApiResponse signatureRequestCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest) throws ApiException { + String idempotencyKey = null; + + return signatureRequestCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestCreateEmbeddedWithTemplateRequest, idempotencyKey); } @@ -351,23 +479,30 @@ public SignatureRequestGetResponse signatureRequestCreateEmbeddedWithTemplate(Si * Creates a new SignatureRequest based on the given Template(s) to be signed in an embedded iFrame. Note that embedded signature requests can only be signed in embedded iFrames whereas normal signature requests can only be signed on Dropbox Sign. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.java * @param signatureRequestCreateEmbeddedWithTemplateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse signatureRequestCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest) throws ApiException { + public ApiResponse signatureRequestCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, String idempotencyKey) throws ApiException { // Check required parameters if (signatureRequestCreateEmbeddedWithTemplateRequest == null) { throw new ApiException(400, "Missing the required parameter 'signatureRequestCreateEmbeddedWithTemplateRequest' when calling signatureRequestCreateEmbeddedWithTemplate"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestCreateEmbeddedWithTemplateRequest.createFormData(); @@ -381,7 +516,7 @@ public ApiResponse signatureRequestCreateEmbeddedWi "POST", new ArrayList<>(), isFileTypeFound ? null : signatureRequestCreateEmbeddedWithTemplateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -397,18 +532,38 @@ public ApiResponse signatureRequestCreateEmbeddedWi * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestEditExample.java * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public SignatureRequestGetResponse signatureRequestEdit(String signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, String idempotencyKey) throws ApiException { + return signatureRequestEditWithHttpInfo(signatureRequestId, signatureRequestEditRequest, idempotencyKey).getData(); + } + + + /** + * @see SignatureRequestApi#signatureRequestEdit(String, SignatureRequestEditRequest, String) + */ public SignatureRequestGetResponse signatureRequestEdit(String signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest) throws ApiException { - return signatureRequestEditWithHttpInfo(signatureRequestId, signatureRequestEditRequest).getData(); + String idempotencyKey = null; + + return signatureRequestEditWithHttpInfo(signatureRequestId, signatureRequestEditRequest, idempotencyKey).getData(); + } + + /** + * @see SignatureRequestApi#signatureRequestEditWithHttpInfo(String, SignatureRequestEditRequest, String) + */ + public ApiResponse signatureRequestEditWithHttpInfo(String signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest) throws ApiException { + String idempotencyKey = null; + + return signatureRequestEditWithHttpInfo(signatureRequestId, signatureRequestEditRequest, idempotencyKey); } @@ -418,17 +573,18 @@ public SignatureRequestGetResponse signatureRequestEdit(String signatureRequestI * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestEditExample.java * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse signatureRequestEditWithHttpInfo(String signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest) throws ApiException { + public ApiResponse signatureRequestEditWithHttpInfo(String signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, String idempotencyKey) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -442,6 +598,12 @@ public ApiResponse signatureRequestEditWithHttpInfo String localVarPath = "/signature_request/edit/{signature_request_id}" .replaceAll("\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestEditRequest.createFormData(); @@ -455,7 +617,7 @@ public ApiResponse signatureRequestEditWithHttpInfo "PUT", new ArrayList<>(), isFileTypeFound ? null : signatureRequestEditRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -471,18 +633,38 @@ public ApiResponse signatureRequestEditWithHttpInfo * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestEditEmbeddedExample.java * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditEmbeddedRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public SignatureRequestGetResponse signatureRequestEditEmbedded(String signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, String idempotencyKey) throws ApiException { + return signatureRequestEditEmbeddedWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedRequest, idempotencyKey).getData(); + } + + + /** + * @see SignatureRequestApi#signatureRequestEditEmbedded(String, SignatureRequestEditEmbeddedRequest, String) + */ public SignatureRequestGetResponse signatureRequestEditEmbedded(String signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest) throws ApiException { - return signatureRequestEditEmbeddedWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedRequest).getData(); + String idempotencyKey = null; + + return signatureRequestEditEmbeddedWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedRequest, idempotencyKey).getData(); + } + + /** + * @see SignatureRequestApi#signatureRequestEditEmbeddedWithHttpInfo(String, SignatureRequestEditEmbeddedRequest, String) + */ + public ApiResponse signatureRequestEditEmbeddedWithHttpInfo(String signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest) throws ApiException { + String idempotencyKey = null; + + return signatureRequestEditEmbeddedWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedRequest, idempotencyKey); } @@ -492,17 +674,18 @@ public SignatureRequestGetResponse signatureRequestEditEmbedded(String signature * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestEditEmbeddedExample.java * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditEmbeddedRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse signatureRequestEditEmbeddedWithHttpInfo(String signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest) throws ApiException { + public ApiResponse signatureRequestEditEmbeddedWithHttpInfo(String signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, String idempotencyKey) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -516,6 +699,12 @@ public ApiResponse signatureRequestEditEmbeddedWith String localVarPath = "/signature_request/edit_embedded/{signature_request_id}" .replaceAll("\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestEditEmbeddedRequest.createFormData(); @@ -529,7 +718,7 @@ public ApiResponse signatureRequestEditEmbeddedWith "PUT", new ArrayList<>(), isFileTypeFound ? null : signatureRequestEditEmbeddedRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -545,18 +734,38 @@ public ApiResponse signatureRequestEditEmbeddedWith * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestEditEmbeddedWithTemplateExample.java * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditEmbeddedWithTemplateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate(String signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, String idempotencyKey) throws ApiException { + return signatureRequestEditEmbeddedWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest, idempotencyKey).getData(); + } + + + /** + * @see SignatureRequestApi#signatureRequestEditEmbeddedWithTemplate(String, SignatureRequestEditEmbeddedWithTemplateRequest, String) + */ public SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate(String signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest) throws ApiException { - return signatureRequestEditEmbeddedWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest).getData(); + String idempotencyKey = null; + + return signatureRequestEditEmbeddedWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest, idempotencyKey).getData(); + } + + /** + * @see SignatureRequestApi#signatureRequestEditEmbeddedWithTemplateWithHttpInfo(String, SignatureRequestEditEmbeddedWithTemplateRequest, String) + */ + public ApiResponse signatureRequestEditEmbeddedWithTemplateWithHttpInfo(String signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest) throws ApiException { + String idempotencyKey = null; + + return signatureRequestEditEmbeddedWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest, idempotencyKey); } @@ -566,17 +775,18 @@ public SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate(Stri * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestEditEmbeddedWithTemplateExample.java * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditEmbeddedWithTemplateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse signatureRequestEditEmbeddedWithTemplateWithHttpInfo(String signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest) throws ApiException { + public ApiResponse signatureRequestEditEmbeddedWithTemplateWithHttpInfo(String signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, String idempotencyKey) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -590,6 +800,12 @@ public ApiResponse signatureRequestEditEmbeddedWith String localVarPath = "/signature_request/edit_embedded_with_template/{signature_request_id}" .replaceAll("\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestEditEmbeddedWithTemplateRequest.createFormData(); @@ -603,7 +819,7 @@ public ApiResponse signatureRequestEditEmbeddedWith "PUT", new ArrayList<>(), isFileTypeFound ? null : signatureRequestEditEmbeddedWithTemplateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -619,18 +835,38 @@ public ApiResponse signatureRequestEditEmbeddedWith * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestEditWithTemplateExample.java * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditWithTemplateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public SignatureRequestGetResponse signatureRequestEditWithTemplate(String signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, String idempotencyKey) throws ApiException { + return signatureRequestEditWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditWithTemplateRequest, idempotencyKey).getData(); + } + + + /** + * @see SignatureRequestApi#signatureRequestEditWithTemplate(String, SignatureRequestEditWithTemplateRequest, String) + */ public SignatureRequestGetResponse signatureRequestEditWithTemplate(String signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest) throws ApiException { - return signatureRequestEditWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditWithTemplateRequest).getData(); + String idempotencyKey = null; + + return signatureRequestEditWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditWithTemplateRequest, idempotencyKey).getData(); + } + + /** + * @see SignatureRequestApi#signatureRequestEditWithTemplateWithHttpInfo(String, SignatureRequestEditWithTemplateRequest, String) + */ + public ApiResponse signatureRequestEditWithTemplateWithHttpInfo(String signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest) throws ApiException { + String idempotencyKey = null; + + return signatureRequestEditWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditWithTemplateRequest, idempotencyKey); } @@ -640,17 +876,18 @@ public SignatureRequestGetResponse signatureRequestEditWithTemplate(String signa * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestEditWithTemplateExample.java * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditWithTemplateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse signatureRequestEditWithTemplateWithHttpInfo(String signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest) throws ApiException { + public ApiResponse signatureRequestEditWithTemplateWithHttpInfo(String signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, String idempotencyKey) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -664,6 +901,12 @@ public ApiResponse signatureRequestEditWithTemplate String localVarPath = "/signature_request/edit_with_template/{signature_request_id}" .replaceAll("\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestEditWithTemplateRequest.createFormData(); @@ -677,7 +920,7 @@ public ApiResponse signatureRequestEditWithTemplate "PUT", new ArrayList<>(), isFileTypeFound ? null : signatureRequestEditWithTemplateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -1191,18 +1434,38 @@ public ApiResponse signatureRequestListWithHttpInf * Releases a held SignatureRequest that was claimed and prepared from an [UnclaimedDraft](/api/reference/tag/Unclaimed-Draft). The owner of the Draft must indicate at Draft creation that the SignatureRequest created from the Draft should be held. Releasing the SignatureRequest will send requests to all signers. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestReleaseHoldExample.java * @param signatureRequestId The id of the SignatureRequest to release. (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public SignatureRequestGetResponse signatureRequestReleaseHold(String signatureRequestId, String idempotencyKey) throws ApiException { + return signatureRequestReleaseHoldWithHttpInfo(signatureRequestId, idempotencyKey).getData(); + } + + + /** + * @see SignatureRequestApi#signatureRequestReleaseHold(String, String) + */ public SignatureRequestGetResponse signatureRequestReleaseHold(String signatureRequestId) throws ApiException { - return signatureRequestReleaseHoldWithHttpInfo(signatureRequestId).getData(); + String idempotencyKey = null; + + return signatureRequestReleaseHoldWithHttpInfo(signatureRequestId, idempotencyKey).getData(); + } + + /** + * @see SignatureRequestApi#signatureRequestReleaseHoldWithHttpInfo(String, String) + */ + public ApiResponse signatureRequestReleaseHoldWithHttpInfo(String signatureRequestId) throws ApiException { + String idempotencyKey = null; + + return signatureRequestReleaseHoldWithHttpInfo(signatureRequestId, idempotencyKey); } @@ -1211,17 +1474,18 @@ public SignatureRequestGetResponse signatureRequestReleaseHold(String signatureR * Releases a held SignatureRequest that was claimed and prepared from an [UnclaimedDraft](/api/reference/tag/Unclaimed-Draft). The owner of the Draft must indicate at Draft creation that the SignatureRequest created from the Draft should be held. Releasing the SignatureRequest will send requests to all signers. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestReleaseHoldExample.java * @param signatureRequestId The id of the SignatureRequest to release. (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse signatureRequestReleaseHoldWithHttpInfo(String signatureRequestId) throws ApiException { + public ApiResponse signatureRequestReleaseHoldWithHttpInfo(String signatureRequestId, String idempotencyKey) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -1232,6 +1496,12 @@ public ApiResponse signatureRequestReleaseHoldWithH String localVarPath = "/signature_request/release_hold/{signature_request_id}" .replaceAll("\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = new HashMap(); @@ -1245,7 +1515,7 @@ public ApiResponse signatureRequestReleaseHoldWithH "POST", new ArrayList<>(), null, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -1261,18 +1531,38 @@ public ApiResponse signatureRequestReleaseHoldWithH * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestRemindExample.java * @param signatureRequestId The id of the SignatureRequest to send a reminder for. (required) * @param signatureRequestRemindRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public SignatureRequestGetResponse signatureRequestRemind(String signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, String idempotencyKey) throws ApiException { + return signatureRequestRemindWithHttpInfo(signatureRequestId, signatureRequestRemindRequest, idempotencyKey).getData(); + } + + + /** + * @see SignatureRequestApi#signatureRequestRemind(String, SignatureRequestRemindRequest, String) + */ public SignatureRequestGetResponse signatureRequestRemind(String signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest) throws ApiException { - return signatureRequestRemindWithHttpInfo(signatureRequestId, signatureRequestRemindRequest).getData(); + String idempotencyKey = null; + + return signatureRequestRemindWithHttpInfo(signatureRequestId, signatureRequestRemindRequest, idempotencyKey).getData(); + } + + /** + * @see SignatureRequestApi#signatureRequestRemindWithHttpInfo(String, SignatureRequestRemindRequest, String) + */ + public ApiResponse signatureRequestRemindWithHttpInfo(String signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest) throws ApiException { + String idempotencyKey = null; + + return signatureRequestRemindWithHttpInfo(signatureRequestId, signatureRequestRemindRequest, idempotencyKey); } @@ -1282,17 +1572,18 @@ public SignatureRequestGetResponse signatureRequestRemind(String signatureReques * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestRemindExample.java * @param signatureRequestId The id of the SignatureRequest to send a reminder for. (required) * @param signatureRequestRemindRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse signatureRequestRemindWithHttpInfo(String signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest) throws ApiException { + public ApiResponse signatureRequestRemindWithHttpInfo(String signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, String idempotencyKey) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -1306,6 +1597,12 @@ public ApiResponse signatureRequestRemindWithHttpIn String localVarPath = "/signature_request/remind/{signature_request_id}" .replaceAll("\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestRemindRequest.createFormData(); @@ -1319,7 +1616,7 @@ public ApiResponse signatureRequestRemindWithHttpIn "POST", new ArrayList<>(), isFileTypeFound ? null : signatureRequestRemindRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -1334,17 +1631,37 @@ public ApiResponse signatureRequestRemindWithHttpIn * Removes your access to a completed signature request. This action is **not reversible**. The signature request must be fully executed by all parties (signed or declined to sign). Other parties will continue to maintain access to the completed signature request document(s). Unlike /signature_request/cancel, this endpoint is synchronous and your access will be immediately removed. Upon successful removal, this endpoint will return a 200 OK response. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestRemoveExample.java * @param signatureRequestId The id of the SignatureRequest to remove. (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public void signatureRequestRemove(String signatureRequestId, String idempotencyKey) throws ApiException { + signatureRequestRemoveWithHttpInfo(signatureRequestId, idempotencyKey); + } + + + /** + * @see SignatureRequestApi#signatureRequestRemove(String, String) + */ public void signatureRequestRemove(String signatureRequestId) throws ApiException { - signatureRequestRemoveWithHttpInfo(signatureRequestId); + String idempotencyKey = null; + + signatureRequestRemoveWithHttpInfo(signatureRequestId, idempotencyKey); + } + + /** + * @see SignatureRequestApi#signatureRequestRemoveWithHttpInfo(String, String) + */ + public ApiResponse signatureRequestRemoveWithHttpInfo(String signatureRequestId) throws ApiException { + String idempotencyKey = null; + + return signatureRequestRemoveWithHttpInfo(signatureRequestId, idempotencyKey); } @@ -1353,17 +1670,18 @@ public void signatureRequestRemove(String signatureRequestId) throws ApiExceptio * Removes your access to a completed signature request. This action is **not reversible**. The signature request must be fully executed by all parties (signed or declined to sign). Other parties will continue to maintain access to the completed signature request document(s). Unlike /signature_request/cancel, this endpoint is synchronous and your access will be immediately removed. Upon successful removal, this endpoint will return a 200 OK response. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestRemoveExample.java * @param signatureRequestId The id of the SignatureRequest to remove. (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse signatureRequestRemoveWithHttpInfo(String signatureRequestId) throws ApiException { + public ApiResponse signatureRequestRemoveWithHttpInfo(String signatureRequestId, String idempotencyKey) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -1374,6 +1692,12 @@ public ApiResponse signatureRequestRemoveWithHttpInfo(String signatureRequ String localVarPath = "/signature_request/remove/{signature_request_id}" .replaceAll("\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = new HashMap(); @@ -1386,7 +1710,7 @@ public ApiResponse signatureRequestRemoveWithHttpInfo(String signatureRequ "POST", new ArrayList<>(), null, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -1401,18 +1725,38 @@ public ApiResponse signatureRequestRemoveWithHttpInfo(String signatureRequ * Creates and sends a new SignatureRequest with the submitted documents. If `form_fields_per_document` is not specified, a signature page will be affixed where all signers will be required to add their signature, signifying their agreement to all contained documents. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestSendExample.java * @param signatureRequestSendRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public SignatureRequestGetResponse signatureRequestSend(SignatureRequestSendRequest signatureRequestSendRequest, String idempotencyKey) throws ApiException { + return signatureRequestSendWithHttpInfo(signatureRequestSendRequest, idempotencyKey).getData(); + } + + + /** + * @see SignatureRequestApi#signatureRequestSend(SignatureRequestSendRequest, String) + */ public SignatureRequestGetResponse signatureRequestSend(SignatureRequestSendRequest signatureRequestSendRequest) throws ApiException { - return signatureRequestSendWithHttpInfo(signatureRequestSendRequest).getData(); + String idempotencyKey = null; + + return signatureRequestSendWithHttpInfo(signatureRequestSendRequest, idempotencyKey).getData(); + } + + /** + * @see SignatureRequestApi#signatureRequestSendWithHttpInfo(SignatureRequestSendRequest, String) + */ + public ApiResponse signatureRequestSendWithHttpInfo(SignatureRequestSendRequest signatureRequestSendRequest) throws ApiException { + String idempotencyKey = null; + + return signatureRequestSendWithHttpInfo(signatureRequestSendRequest, idempotencyKey); } @@ -1421,23 +1765,30 @@ public SignatureRequestGetResponse signatureRequestSend(SignatureRequestSendRequ * Creates and sends a new SignatureRequest with the submitted documents. If `form_fields_per_document` is not specified, a signature page will be affixed where all signers will be required to add their signature, signifying their agreement to all contained documents. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestSendExample.java * @param signatureRequestSendRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse signatureRequestSendWithHttpInfo(SignatureRequestSendRequest signatureRequestSendRequest) throws ApiException { + public ApiResponse signatureRequestSendWithHttpInfo(SignatureRequestSendRequest signatureRequestSendRequest, String idempotencyKey) throws ApiException { // Check required parameters if (signatureRequestSendRequest == null) { throw new ApiException(400, "Missing the required parameter 'signatureRequestSendRequest' when calling signatureRequestSend"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestSendRequest.createFormData(); @@ -1451,7 +1802,7 @@ public ApiResponse signatureRequestSendWithHttpInfo "POST", new ArrayList<>(), isFileTypeFound ? null : signatureRequestSendRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -1466,18 +1817,38 @@ public ApiResponse signatureRequestSendWithHttpInfo * Creates and sends a new SignatureRequest based off of the Template(s) specified with the `template_ids` parameter. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestSendWithTemplateExample.java * @param signatureRequestSendWithTemplateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public SignatureRequestGetResponse signatureRequestSendWithTemplate(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, String idempotencyKey) throws ApiException { + return signatureRequestSendWithTemplateWithHttpInfo(signatureRequestSendWithTemplateRequest, idempotencyKey).getData(); + } + + + /** + * @see SignatureRequestApi#signatureRequestSendWithTemplate(SignatureRequestSendWithTemplateRequest, String) + */ public SignatureRequestGetResponse signatureRequestSendWithTemplate(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest) throws ApiException { - return signatureRequestSendWithTemplateWithHttpInfo(signatureRequestSendWithTemplateRequest).getData(); + String idempotencyKey = null; + + return signatureRequestSendWithTemplateWithHttpInfo(signatureRequestSendWithTemplateRequest, idempotencyKey).getData(); + } + + /** + * @see SignatureRequestApi#signatureRequestSendWithTemplateWithHttpInfo(SignatureRequestSendWithTemplateRequest, String) + */ + public ApiResponse signatureRequestSendWithTemplateWithHttpInfo(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest) throws ApiException { + String idempotencyKey = null; + + return signatureRequestSendWithTemplateWithHttpInfo(signatureRequestSendWithTemplateRequest, idempotencyKey); } @@ -1486,23 +1857,30 @@ public SignatureRequestGetResponse signatureRequestSendWithTemplate(SignatureReq * Creates and sends a new SignatureRequest based off of the Template(s) specified with the `template_ids` parameter. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestSendWithTemplateExample.java * @param signatureRequestSendWithTemplateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse signatureRequestSendWithTemplateWithHttpInfo(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest) throws ApiException { + public ApiResponse signatureRequestSendWithTemplateWithHttpInfo(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, String idempotencyKey) throws ApiException { // Check required parameters if (signatureRequestSendWithTemplateRequest == null) { throw new ApiException(400, "Missing the required parameter 'signatureRequestSendWithTemplateRequest' when calling signatureRequestSendWithTemplate"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestSendWithTemplateRequest.createFormData(); @@ -1516,7 +1894,7 @@ public ApiResponse signatureRequestSendWithTemplate "POST", new ArrayList<>(), isFileTypeFound ? null : signatureRequestSendWithTemplateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -1532,18 +1910,38 @@ public ApiResponse signatureRequestSendWithTemplate * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestUpdateExample.java * @param signatureRequestId The id of the SignatureRequest to update. (required) * @param signatureRequestUpdateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public SignatureRequestGetResponse signatureRequestUpdate(String signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, String idempotencyKey) throws ApiException { + return signatureRequestUpdateWithHttpInfo(signatureRequestId, signatureRequestUpdateRequest, idempotencyKey).getData(); + } + + + /** + * @see SignatureRequestApi#signatureRequestUpdate(String, SignatureRequestUpdateRequest, String) + */ public SignatureRequestGetResponse signatureRequestUpdate(String signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest) throws ApiException { - return signatureRequestUpdateWithHttpInfo(signatureRequestId, signatureRequestUpdateRequest).getData(); + String idempotencyKey = null; + + return signatureRequestUpdateWithHttpInfo(signatureRequestId, signatureRequestUpdateRequest, idempotencyKey).getData(); + } + + /** + * @see SignatureRequestApi#signatureRequestUpdateWithHttpInfo(String, SignatureRequestUpdateRequest, String) + */ + public ApiResponse signatureRequestUpdateWithHttpInfo(String signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest) throws ApiException { + String idempotencyKey = null; + + return signatureRequestUpdateWithHttpInfo(signatureRequestId, signatureRequestUpdateRequest, idempotencyKey); } @@ -1553,17 +1951,18 @@ public SignatureRequestGetResponse signatureRequestUpdate(String signatureReques * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestUpdateExample.java * @param signatureRequestId The id of the SignatureRequest to update. (required) * @param signatureRequestUpdateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse signatureRequestUpdateWithHttpInfo(String signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest) throws ApiException { + public ApiResponse signatureRequestUpdateWithHttpInfo(String signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, String idempotencyKey) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -1577,6 +1976,12 @@ public ApiResponse signatureRequestUpdateWithHttpIn String localVarPath = "/signature_request/update/{signature_request_id}" .replaceAll("\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestUpdateRequest.createFormData(); @@ -1590,7 +1995,7 @@ public ApiResponse signatureRequestUpdateWithHttpIn "POST", new ArrayList<>(), isFileTypeFound ? null : signatureRequestUpdateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/TeamApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/TeamApi.java index a2d67bc45..db93089b8 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/TeamApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/TeamApi.java @@ -61,37 +61,58 @@ public void setApiClient(ApiClient apiClient) { * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TeamAddMemberExample.java * @param teamAddMemberRequest (required) * @param teamId The id of the team. (optional) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return TeamGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public TeamGetResponse teamAddMember(TeamAddMemberRequest teamAddMemberRequest, String teamId) throws ApiException { - return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId).getData(); + public TeamGetResponse teamAddMember(TeamAddMemberRequest teamAddMemberRequest, String teamId, String idempotencyKey) throws ApiException { + return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId, idempotencyKey).getData(); } /** - * @see TeamApi#teamAddMember(TeamAddMemberRequest, String) + * @see TeamApi#teamAddMember(TeamAddMemberRequest, String, String) */ public TeamGetResponse teamAddMember(TeamAddMemberRequest teamAddMemberRequest) throws ApiException { String teamId = null; + String idempotencyKey = null; - return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId).getData(); + return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId, idempotencyKey).getData(); } /** - * @see TeamApi#teamAddMemberWithHttpInfo(TeamAddMemberRequest, String) + * @see TeamApi#teamAddMemberWithHttpInfo(TeamAddMemberRequest, String, String) */ public ApiResponse teamAddMemberWithHttpInfo(TeamAddMemberRequest teamAddMemberRequest) throws ApiException { String teamId = null; + String idempotencyKey = null; + + return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId, idempotencyKey); + } + + /** + * @see TeamApi#teamAddMember(TeamAddMemberRequest, String, String) + */ + public TeamGetResponse teamAddMember(TeamAddMemberRequest teamAddMemberRequest, String teamId) throws ApiException { + String idempotencyKey = null; + + return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId, idempotencyKey).getData(); + } + + /** + * @see TeamApi#teamAddMemberWithHttpInfo(TeamAddMemberRequest, String, String) + */ + public ApiResponse teamAddMemberWithHttpInfo(TeamAddMemberRequest teamAddMemberRequest, String teamId) throws ApiException { + String idempotencyKey = null; - return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId); + return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId, idempotencyKey); } @@ -101,17 +122,18 @@ public ApiResponse teamAddMemberWithHttpInfo(TeamAddMemberReque * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TeamAddMemberExample.java * @param teamAddMemberRequest (required) * @param teamId The id of the team. (optional) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<TeamGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse teamAddMemberWithHttpInfo(TeamAddMemberRequest teamAddMemberRequest, String teamId) throws ApiException { + public ApiResponse teamAddMemberWithHttpInfo(TeamAddMemberRequest teamAddMemberRequest, String teamId, String idempotencyKey) throws ApiException { // Check required parameters if (teamAddMemberRequest == null) { @@ -123,6 +145,12 @@ public ApiResponse teamAddMemberWithHttpInfo(TeamAddMemberReque apiClient.parameterToPairs("", "team_id", teamId) ); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = teamAddMemberRequest.createFormData(); @@ -136,7 +164,7 @@ public ApiResponse teamAddMemberWithHttpInfo(TeamAddMemberReque "PUT", localVarQueryParams, isFileTypeFound ? null : teamAddMemberRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -151,18 +179,38 @@ public ApiResponse teamAddMemberWithHttpInfo(TeamAddMemberReque * Creates a new Team and makes you a member. You must not currently belong to a Team to invoke. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TeamCreateExample.java * @param teamCreateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return TeamGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public TeamGetResponse teamCreate(TeamCreateRequest teamCreateRequest, String idempotencyKey) throws ApiException { + return teamCreateWithHttpInfo(teamCreateRequest, idempotencyKey).getData(); + } + + + /** + * @see TeamApi#teamCreate(TeamCreateRequest, String) + */ public TeamGetResponse teamCreate(TeamCreateRequest teamCreateRequest) throws ApiException { - return teamCreateWithHttpInfo(teamCreateRequest).getData(); + String idempotencyKey = null; + + return teamCreateWithHttpInfo(teamCreateRequest, idempotencyKey).getData(); + } + + /** + * @see TeamApi#teamCreateWithHttpInfo(TeamCreateRequest, String) + */ + public ApiResponse teamCreateWithHttpInfo(TeamCreateRequest teamCreateRequest) throws ApiException { + String idempotencyKey = null; + + return teamCreateWithHttpInfo(teamCreateRequest, idempotencyKey); } @@ -171,23 +219,30 @@ public TeamGetResponse teamCreate(TeamCreateRequest teamCreateRequest) throws Ap * Creates a new Team and makes you a member. You must not currently belong to a Team to invoke. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TeamCreateExample.java * @param teamCreateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<TeamGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse teamCreateWithHttpInfo(TeamCreateRequest teamCreateRequest) throws ApiException { + public ApiResponse teamCreateWithHttpInfo(TeamCreateRequest teamCreateRequest, String idempotencyKey) throws ApiException { // Check required parameters if (teamCreateRequest == null) { throw new ApiException(400, "Missing the required parameter 'teamCreateRequest' when calling teamCreate"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = teamCreateRequest.createFormData(); @@ -201,7 +256,7 @@ public ApiResponse teamCreateWithHttpInfo(TeamCreateRequest tea "POST", new ArrayList<>(), isFileTypeFound ? null : teamCreateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -622,18 +677,38 @@ public ApiResponse teamMembersWithHttpInfo(String teamId, I * Removes the provided user Account from your Team. If the Account had an outstanding invitation to your Team, the invitation will be expired. If you choose to transfer documents from the removed Account to an Account provided in the `new_owner_email_address` parameter (available only for Enterprise plans), the response status code will be 201, which indicates that your request has been queued but not fully executed. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TeamRemoveMemberExample.java * @param teamRemoveMemberRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return TeamGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public TeamGetResponse teamRemoveMember(TeamRemoveMemberRequest teamRemoveMemberRequest, String idempotencyKey) throws ApiException { + return teamRemoveMemberWithHttpInfo(teamRemoveMemberRequest, idempotencyKey).getData(); + } + + + /** + * @see TeamApi#teamRemoveMember(TeamRemoveMemberRequest, String) + */ public TeamGetResponse teamRemoveMember(TeamRemoveMemberRequest teamRemoveMemberRequest) throws ApiException { - return teamRemoveMemberWithHttpInfo(teamRemoveMemberRequest).getData(); + String idempotencyKey = null; + + return teamRemoveMemberWithHttpInfo(teamRemoveMemberRequest, idempotencyKey).getData(); + } + + /** + * @see TeamApi#teamRemoveMemberWithHttpInfo(TeamRemoveMemberRequest, String) + */ + public ApiResponse teamRemoveMemberWithHttpInfo(TeamRemoveMemberRequest teamRemoveMemberRequest) throws ApiException { + String idempotencyKey = null; + + return teamRemoveMemberWithHttpInfo(teamRemoveMemberRequest, idempotencyKey); } @@ -642,23 +717,30 @@ public TeamGetResponse teamRemoveMember(TeamRemoveMemberRequest teamRemoveMember * Removes the provided user Account from your Team. If the Account had an outstanding invitation to your Team, the invitation will be expired. If you choose to transfer documents from the removed Account to an Account provided in the `new_owner_email_address` parameter (available only for Enterprise plans), the response status code will be 201, which indicates that your request has been queued but not fully executed. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TeamRemoveMemberExample.java * @param teamRemoveMemberRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<TeamGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse teamRemoveMemberWithHttpInfo(TeamRemoveMemberRequest teamRemoveMemberRequest) throws ApiException { + public ApiResponse teamRemoveMemberWithHttpInfo(TeamRemoveMemberRequest teamRemoveMemberRequest, String idempotencyKey) throws ApiException { // Check required parameters if (teamRemoveMemberRequest == null) { throw new ApiException(400, "Missing the required parameter 'teamRemoveMemberRequest' when calling teamRemoveMember"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = teamRemoveMemberRequest.createFormData(); @@ -672,7 +754,7 @@ public ApiResponse teamRemoveMemberWithHttpInfo(TeamRemoveMembe "POST", new ArrayList<>(), isFileTypeFound ? null : teamRemoveMemberRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -811,18 +893,38 @@ public ApiResponse teamSubTeamsWithHttpInfo(String teamId, * Updates the name of your Team. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TeamUpdateExample.java * @param teamUpdateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return TeamGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public TeamGetResponse teamUpdate(TeamUpdateRequest teamUpdateRequest, String idempotencyKey) throws ApiException { + return teamUpdateWithHttpInfo(teamUpdateRequest, idempotencyKey).getData(); + } + + + /** + * @see TeamApi#teamUpdate(TeamUpdateRequest, String) + */ public TeamGetResponse teamUpdate(TeamUpdateRequest teamUpdateRequest) throws ApiException { - return teamUpdateWithHttpInfo(teamUpdateRequest).getData(); + String idempotencyKey = null; + + return teamUpdateWithHttpInfo(teamUpdateRequest, idempotencyKey).getData(); + } + + /** + * @see TeamApi#teamUpdateWithHttpInfo(TeamUpdateRequest, String) + */ + public ApiResponse teamUpdateWithHttpInfo(TeamUpdateRequest teamUpdateRequest) throws ApiException { + String idempotencyKey = null; + + return teamUpdateWithHttpInfo(teamUpdateRequest, idempotencyKey); } @@ -831,23 +933,30 @@ public TeamGetResponse teamUpdate(TeamUpdateRequest teamUpdateRequest) throws Ap * Updates the name of your Team. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TeamUpdateExample.java * @param teamUpdateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<TeamGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse teamUpdateWithHttpInfo(TeamUpdateRequest teamUpdateRequest) throws ApiException { + public ApiResponse teamUpdateWithHttpInfo(TeamUpdateRequest teamUpdateRequest, String idempotencyKey) throws ApiException { // Check required parameters if (teamUpdateRequest == null) { throw new ApiException(400, "Missing the required parameter 'teamUpdateRequest' when calling teamUpdate"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = teamUpdateRequest.createFormData(); @@ -861,7 +970,7 @@ public ApiResponse teamUpdateWithHttpInfo(TeamUpdateRequest tea "PUT", new ArrayList<>(), isFileTypeFound ? null : teamUpdateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/TemplateApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/TemplateApi.java index b26de1c3a..ca5a56865 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/TemplateApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/TemplateApi.java @@ -65,18 +65,38 @@ public void setApiClient(ApiClient apiClient) { * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TemplateAddUserExample.java * @param templateId The id of the Template to give the Account access to. (required) * @param templateAddUserRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return TemplateGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public TemplateGetResponse templateAddUser(String templateId, TemplateAddUserRequest templateAddUserRequest, String idempotencyKey) throws ApiException { + return templateAddUserWithHttpInfo(templateId, templateAddUserRequest, idempotencyKey).getData(); + } + + + /** + * @see TemplateApi#templateAddUser(String, TemplateAddUserRequest, String) + */ public TemplateGetResponse templateAddUser(String templateId, TemplateAddUserRequest templateAddUserRequest) throws ApiException { - return templateAddUserWithHttpInfo(templateId, templateAddUserRequest).getData(); + String idempotencyKey = null; + + return templateAddUserWithHttpInfo(templateId, templateAddUserRequest, idempotencyKey).getData(); + } + + /** + * @see TemplateApi#templateAddUserWithHttpInfo(String, TemplateAddUserRequest, String) + */ + public ApiResponse templateAddUserWithHttpInfo(String templateId, TemplateAddUserRequest templateAddUserRequest) throws ApiException { + String idempotencyKey = null; + + return templateAddUserWithHttpInfo(templateId, templateAddUserRequest, idempotencyKey); } @@ -86,17 +106,18 @@ public TemplateGetResponse templateAddUser(String templateId, TemplateAddUserReq * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TemplateAddUserExample.java * @param templateId The id of the Template to give the Account access to. (required) * @param templateAddUserRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<TemplateGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse templateAddUserWithHttpInfo(String templateId, TemplateAddUserRequest templateAddUserRequest) throws ApiException { + public ApiResponse templateAddUserWithHttpInfo(String templateId, TemplateAddUserRequest templateAddUserRequest, String idempotencyKey) throws ApiException { // Check required parameters if (templateId == null) { @@ -110,6 +131,12 @@ public ApiResponse templateAddUserWithHttpInfo(String templ String localVarPath = "/template/add_user/{template_id}" .replaceAll("\\{template_id}", apiClient.escapeString(templateId.toString())); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = templateAddUserRequest.createFormData(); @@ -123,7 +150,7 @@ public ApiResponse templateAddUserWithHttpInfo(String templ "POST", new ArrayList<>(), isFileTypeFound ? null : templateAddUserRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -138,18 +165,38 @@ public ApiResponse templateAddUserWithHttpInfo(String templ * Creates a template that can be used in future signature requests. If `client_id` is provided, the template will be created as an embedded template. Embedded templates can be used for embedded signature requests and can be edited later by generating a new `edit_url` with [/embedded/edit_url/{template_id}](/api/reference/operation/embeddedEditUrl/). Template creation may complete asynchronously after the initial request is accepted. It is recommended that a callback be implemented to listen for the callback event. A `template_created` event indicates the template is ready to use, while a `template_error` event indicates there was a problem while creating the template. If a callback handler has been configured and the event has not been received within 60 minutes of making the call, check the status of the request in the API dashboard and retry the request if necessary. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TemplateCreateExample.java * @param templateCreateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return TemplateCreateResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public TemplateCreateResponse templateCreate(TemplateCreateRequest templateCreateRequest, String idempotencyKey) throws ApiException { + return templateCreateWithHttpInfo(templateCreateRequest, idempotencyKey).getData(); + } + + + /** + * @see TemplateApi#templateCreate(TemplateCreateRequest, String) + */ public TemplateCreateResponse templateCreate(TemplateCreateRequest templateCreateRequest) throws ApiException { - return templateCreateWithHttpInfo(templateCreateRequest).getData(); + String idempotencyKey = null; + + return templateCreateWithHttpInfo(templateCreateRequest, idempotencyKey).getData(); + } + + /** + * @see TemplateApi#templateCreateWithHttpInfo(TemplateCreateRequest, String) + */ + public ApiResponse templateCreateWithHttpInfo(TemplateCreateRequest templateCreateRequest) throws ApiException { + String idempotencyKey = null; + + return templateCreateWithHttpInfo(templateCreateRequest, idempotencyKey); } @@ -158,23 +205,30 @@ public TemplateCreateResponse templateCreate(TemplateCreateRequest templateCreat * Creates a template that can be used in future signature requests. If `client_id` is provided, the template will be created as an embedded template. Embedded templates can be used for embedded signature requests and can be edited later by generating a new `edit_url` with [/embedded/edit_url/{template_id}](/api/reference/operation/embeddedEditUrl/). Template creation may complete asynchronously after the initial request is accepted. It is recommended that a callback be implemented to listen for the callback event. A `template_created` event indicates the template is ready to use, while a `template_error` event indicates there was a problem while creating the template. If a callback handler has been configured and the event has not been received within 60 minutes of making the call, check the status of the request in the API dashboard and retry the request if necessary. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TemplateCreateExample.java * @param templateCreateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<TemplateCreateResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse templateCreateWithHttpInfo(TemplateCreateRequest templateCreateRequest) throws ApiException { + public ApiResponse templateCreateWithHttpInfo(TemplateCreateRequest templateCreateRequest, String idempotencyKey) throws ApiException { // Check required parameters if (templateCreateRequest == null) { throw new ApiException(400, "Missing the required parameter 'templateCreateRequest' when calling templateCreate"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = templateCreateRequest.createFormData(); @@ -188,7 +242,7 @@ public ApiResponse templateCreateWithHttpInfo(TemplateCr "POST", new ArrayList<>(), isFileTypeFound ? null : templateCreateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -203,18 +257,38 @@ public ApiResponse templateCreateWithHttpInfo(TemplateCr * The first step in an embedded template workflow. Creates a draft template that can then be further set up in the template 'edit' stage. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TemplateCreateEmbeddedDraftExample.java * @param templateCreateEmbeddedDraftRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return TemplateCreateEmbeddedDraftResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public TemplateCreateEmbeddedDraftResponse templateCreateEmbeddedDraft(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, String idempotencyKey) throws ApiException { + return templateCreateEmbeddedDraftWithHttpInfo(templateCreateEmbeddedDraftRequest, idempotencyKey).getData(); + } + + + /** + * @see TemplateApi#templateCreateEmbeddedDraft(TemplateCreateEmbeddedDraftRequest, String) + */ public TemplateCreateEmbeddedDraftResponse templateCreateEmbeddedDraft(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest) throws ApiException { - return templateCreateEmbeddedDraftWithHttpInfo(templateCreateEmbeddedDraftRequest).getData(); + String idempotencyKey = null; + + return templateCreateEmbeddedDraftWithHttpInfo(templateCreateEmbeddedDraftRequest, idempotencyKey).getData(); + } + + /** + * @see TemplateApi#templateCreateEmbeddedDraftWithHttpInfo(TemplateCreateEmbeddedDraftRequest, String) + */ + public ApiResponse templateCreateEmbeddedDraftWithHttpInfo(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest) throws ApiException { + String idempotencyKey = null; + + return templateCreateEmbeddedDraftWithHttpInfo(templateCreateEmbeddedDraftRequest, idempotencyKey); } @@ -223,23 +297,30 @@ public TemplateCreateEmbeddedDraftResponse templateCreateEmbeddedDraft(TemplateC * The first step in an embedded template workflow. Creates a draft template that can then be further set up in the template 'edit' stage. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TemplateCreateEmbeddedDraftExample.java * @param templateCreateEmbeddedDraftRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<TemplateCreateEmbeddedDraftResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse templateCreateEmbeddedDraftWithHttpInfo(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest) throws ApiException { + public ApiResponse templateCreateEmbeddedDraftWithHttpInfo(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, String idempotencyKey) throws ApiException { // Check required parameters if (templateCreateEmbeddedDraftRequest == null) { throw new ApiException(400, "Missing the required parameter 'templateCreateEmbeddedDraftRequest' when calling templateCreateEmbeddedDraft"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = templateCreateEmbeddedDraftRequest.createFormData(); @@ -253,7 +334,7 @@ public ApiResponse templateCreateEmbeddedDr "POST", new ArrayList<>(), isFileTypeFound ? null : templateCreateEmbeddedDraftRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -268,17 +349,37 @@ public ApiResponse templateCreateEmbeddedDr * Completely deletes the template specified from the account. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TemplateDeleteExample.java * @param templateId The id of the Template to delete. (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public void templateDelete(String templateId, String idempotencyKey) throws ApiException { + templateDeleteWithHttpInfo(templateId, idempotencyKey); + } + + + /** + * @see TemplateApi#templateDelete(String, String) + */ public void templateDelete(String templateId) throws ApiException { - templateDeleteWithHttpInfo(templateId); + String idempotencyKey = null; + + templateDeleteWithHttpInfo(templateId, idempotencyKey); + } + + /** + * @see TemplateApi#templateDeleteWithHttpInfo(String, String) + */ + public ApiResponse templateDeleteWithHttpInfo(String templateId) throws ApiException { + String idempotencyKey = null; + + return templateDeleteWithHttpInfo(templateId, idempotencyKey); } @@ -287,17 +388,18 @@ public void templateDelete(String templateId) throws ApiException { * Completely deletes the template specified from the account. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TemplateDeleteExample.java * @param templateId The id of the Template to delete. (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse templateDeleteWithHttpInfo(String templateId) throws ApiException { + public ApiResponse templateDeleteWithHttpInfo(String templateId, String idempotencyKey) throws ApiException { // Check required parameters if (templateId == null) { @@ -308,6 +410,12 @@ public ApiResponse templateDeleteWithHttpInfo(String templateId) throws Ap String localVarPath = "/template/delete/{template_id}" .replaceAll("\\{template_id}", apiClient.escapeString(templateId.toString())); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = new HashMap(); @@ -320,7 +428,7 @@ public ApiResponse templateDeleteWithHttpInfo(String templateId) throws Ap "POST", new ArrayList<>(), null, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -832,18 +940,38 @@ public ApiResponse templateListWithHttpInfo(String account * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TemplateRemoveUserExample.java * @param templateId The id of the Template to remove the Account's access to. (required) * @param templateRemoveUserRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return TemplateGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public TemplateGetResponse templateRemoveUser(String templateId, TemplateRemoveUserRequest templateRemoveUserRequest, String idempotencyKey) throws ApiException { + return templateRemoveUserWithHttpInfo(templateId, templateRemoveUserRequest, idempotencyKey).getData(); + } + + + /** + * @see TemplateApi#templateRemoveUser(String, TemplateRemoveUserRequest, String) + */ public TemplateGetResponse templateRemoveUser(String templateId, TemplateRemoveUserRequest templateRemoveUserRequest) throws ApiException { - return templateRemoveUserWithHttpInfo(templateId, templateRemoveUserRequest).getData(); + String idempotencyKey = null; + + return templateRemoveUserWithHttpInfo(templateId, templateRemoveUserRequest, idempotencyKey).getData(); + } + + /** + * @see TemplateApi#templateRemoveUserWithHttpInfo(String, TemplateRemoveUserRequest, String) + */ + public ApiResponse templateRemoveUserWithHttpInfo(String templateId, TemplateRemoveUserRequest templateRemoveUserRequest) throws ApiException { + String idempotencyKey = null; + + return templateRemoveUserWithHttpInfo(templateId, templateRemoveUserRequest, idempotencyKey); } @@ -853,17 +981,18 @@ public TemplateGetResponse templateRemoveUser(String templateId, TemplateRemoveU * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TemplateRemoveUserExample.java * @param templateId The id of the Template to remove the Account's access to. (required) * @param templateRemoveUserRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<TemplateGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse templateRemoveUserWithHttpInfo(String templateId, TemplateRemoveUserRequest templateRemoveUserRequest) throws ApiException { + public ApiResponse templateRemoveUserWithHttpInfo(String templateId, TemplateRemoveUserRequest templateRemoveUserRequest, String idempotencyKey) throws ApiException { // Check required parameters if (templateId == null) { @@ -877,6 +1006,12 @@ public ApiResponse templateRemoveUserWithHttpInfo(String te String localVarPath = "/template/remove_user/{template_id}" .replaceAll("\\{template_id}", apiClient.escapeString(templateId.toString())); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = templateRemoveUserRequest.createFormData(); @@ -890,7 +1025,7 @@ public ApiResponse templateRemoveUserWithHttpInfo(String te "POST", new ArrayList<>(), isFileTypeFound ? null : templateRemoveUserRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -906,18 +1041,38 @@ public ApiResponse templateRemoveUserWithHttpInfo(String te * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TemplateUpdateFilesExample.java * @param templateId The ID of the template whose files to update. (required) * @param templateUpdateFilesRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return TemplateUpdateFilesResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public TemplateUpdateFilesResponse templateUpdateFiles(String templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, String idempotencyKey) throws ApiException { + return templateUpdateFilesWithHttpInfo(templateId, templateUpdateFilesRequest, idempotencyKey).getData(); + } + + + /** + * @see TemplateApi#templateUpdateFiles(String, TemplateUpdateFilesRequest, String) + */ public TemplateUpdateFilesResponse templateUpdateFiles(String templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest) throws ApiException { - return templateUpdateFilesWithHttpInfo(templateId, templateUpdateFilesRequest).getData(); + String idempotencyKey = null; + + return templateUpdateFilesWithHttpInfo(templateId, templateUpdateFilesRequest, idempotencyKey).getData(); + } + + /** + * @see TemplateApi#templateUpdateFilesWithHttpInfo(String, TemplateUpdateFilesRequest, String) + */ + public ApiResponse templateUpdateFilesWithHttpInfo(String templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest) throws ApiException { + String idempotencyKey = null; + + return templateUpdateFilesWithHttpInfo(templateId, templateUpdateFilesRequest, idempotencyKey); } @@ -927,17 +1082,18 @@ public TemplateUpdateFilesResponse templateUpdateFiles(String templateId, Templa * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TemplateUpdateFilesExample.java * @param templateId The ID of the template whose files to update. (required) * @param templateUpdateFilesRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<TemplateUpdateFilesResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse templateUpdateFilesWithHttpInfo(String templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest) throws ApiException { + public ApiResponse templateUpdateFilesWithHttpInfo(String templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, String idempotencyKey) throws ApiException { // Check required parameters if (templateId == null) { @@ -951,6 +1107,12 @@ public ApiResponse templateUpdateFilesWithHttpInfo( String localVarPath = "/template/update_files/{template_id}" .replaceAll("\\{template_id}", apiClient.escapeString(templateId.toString())); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = templateUpdateFilesRequest.createFormData(); @@ -964,7 +1126,7 @@ public ApiResponse templateUpdateFilesWithHttpInfo( "POST", new ArrayList<>(), isFileTypeFound ? null : templateUpdateFilesRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/UnclaimedDraftApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/UnclaimedDraftApi.java index f2ce33706..08d595c23 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/UnclaimedDraftApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/UnclaimedDraftApi.java @@ -56,18 +56,38 @@ public void setApiClient(ApiClient apiClient) { * Creates a new Draft that can be claimed using the claim URL. The first authenticated user to access the URL will claim the Draft and will be shown either the \"Sign and send\" or the \"Request signature\" page with the Draft loaded. Subsequent access to the claim URL will result in a 404. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/UnclaimedDraftCreateExample.java * @param unclaimedDraftCreateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return UnclaimedDraftCreateResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public UnclaimedDraftCreateResponse unclaimedDraftCreate(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, String idempotencyKey) throws ApiException { + return unclaimedDraftCreateWithHttpInfo(unclaimedDraftCreateRequest, idempotencyKey).getData(); + } + + + /** + * @see UnclaimedDraftApi#unclaimedDraftCreate(UnclaimedDraftCreateRequest, String) + */ public UnclaimedDraftCreateResponse unclaimedDraftCreate(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest) throws ApiException { - return unclaimedDraftCreateWithHttpInfo(unclaimedDraftCreateRequest).getData(); + String idempotencyKey = null; + + return unclaimedDraftCreateWithHttpInfo(unclaimedDraftCreateRequest, idempotencyKey).getData(); + } + + /** + * @see UnclaimedDraftApi#unclaimedDraftCreateWithHttpInfo(UnclaimedDraftCreateRequest, String) + */ + public ApiResponse unclaimedDraftCreateWithHttpInfo(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest) throws ApiException { + String idempotencyKey = null; + + return unclaimedDraftCreateWithHttpInfo(unclaimedDraftCreateRequest, idempotencyKey); } @@ -76,23 +96,30 @@ public UnclaimedDraftCreateResponse unclaimedDraftCreate(UnclaimedDraftCreateReq * Creates a new Draft that can be claimed using the claim URL. The first authenticated user to access the URL will claim the Draft and will be shown either the \"Sign and send\" or the \"Request signature\" page with the Draft loaded. Subsequent access to the claim URL will result in a 404. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/UnclaimedDraftCreateExample.java * @param unclaimedDraftCreateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<UnclaimedDraftCreateResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse unclaimedDraftCreateWithHttpInfo(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest) throws ApiException { + public ApiResponse unclaimedDraftCreateWithHttpInfo(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, String idempotencyKey) throws ApiException { // Check required parameters if (unclaimedDraftCreateRequest == null) { throw new ApiException(400, "Missing the required parameter 'unclaimedDraftCreateRequest' when calling unclaimedDraftCreate"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = unclaimedDraftCreateRequest.createFormData(); @@ -106,7 +133,7 @@ public ApiResponse unclaimedDraftCreateWithHttpInf "POST", new ArrayList<>(), isFileTypeFound ? null : unclaimedDraftCreateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -121,18 +148,38 @@ public ApiResponse unclaimedDraftCreateWithHttpInf * Creates a new Draft that can be claimed and used in an embedded iFrame. The first authenticated user to access the URL will claim the Draft and will be shown the \"Request signature\" page with the Draft loaded. Subsequent access to the claim URL will result in a `404`. For this embedded endpoint the `requester_email_address` parameter is required. **NOTE:** Embedded unclaimed drafts can only be accessed in embedded iFrames whereas normal drafts can be used and accessed on Dropbox Sign. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.java * @param unclaimedDraftCreateEmbeddedRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return UnclaimedDraftCreateResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbedded(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, String idempotencyKey) throws ApiException { + return unclaimedDraftCreateEmbeddedWithHttpInfo(unclaimedDraftCreateEmbeddedRequest, idempotencyKey).getData(); + } + + + /** + * @see UnclaimedDraftApi#unclaimedDraftCreateEmbedded(UnclaimedDraftCreateEmbeddedRequest, String) + */ public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbedded(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest) throws ApiException { - return unclaimedDraftCreateEmbeddedWithHttpInfo(unclaimedDraftCreateEmbeddedRequest).getData(); + String idempotencyKey = null; + + return unclaimedDraftCreateEmbeddedWithHttpInfo(unclaimedDraftCreateEmbeddedRequest, idempotencyKey).getData(); + } + + /** + * @see UnclaimedDraftApi#unclaimedDraftCreateEmbeddedWithHttpInfo(UnclaimedDraftCreateEmbeddedRequest, String) + */ + public ApiResponse unclaimedDraftCreateEmbeddedWithHttpInfo(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest) throws ApiException { + String idempotencyKey = null; + + return unclaimedDraftCreateEmbeddedWithHttpInfo(unclaimedDraftCreateEmbeddedRequest, idempotencyKey); } @@ -141,23 +188,30 @@ public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbedded(UnclaimedDraftC * Creates a new Draft that can be claimed and used in an embedded iFrame. The first authenticated user to access the URL will claim the Draft and will be shown the \"Request signature\" page with the Draft loaded. Subsequent access to the claim URL will result in a `404`. For this embedded endpoint the `requester_email_address` parameter is required. **NOTE:** Embedded unclaimed drafts can only be accessed in embedded iFrames whereas normal drafts can be used and accessed on Dropbox Sign. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.java * @param unclaimedDraftCreateEmbeddedRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<UnclaimedDraftCreateResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse unclaimedDraftCreateEmbeddedWithHttpInfo(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest) throws ApiException { + public ApiResponse unclaimedDraftCreateEmbeddedWithHttpInfo(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, String idempotencyKey) throws ApiException { // Check required parameters if (unclaimedDraftCreateEmbeddedRequest == null) { throw new ApiException(400, "Missing the required parameter 'unclaimedDraftCreateEmbeddedRequest' when calling unclaimedDraftCreateEmbedded"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = unclaimedDraftCreateEmbeddedRequest.createFormData(); @@ -171,7 +225,7 @@ public ApiResponse unclaimedDraftCreateEmbeddedWit "POST", new ArrayList<>(), isFileTypeFound ? null : unclaimedDraftCreateEmbeddedRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -186,18 +240,38 @@ public ApiResponse unclaimedDraftCreateEmbeddedWit * Creates a new Draft with a previously saved template(s) that can be claimed and used in an embedded iFrame. The first authenticated user to access the URL will claim the Draft and will be shown the \"Request signature\" page with the Draft loaded. Subsequent access to the claim URL will result in a `404`. For this embedded endpoint the `requester_email_address` parameter is required. **NOTE:** Embedded unclaimed drafts can only be accessed in embedded iFrames whereas normal drafts can be used and accessed on Dropbox Sign. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.java * @param unclaimedDraftCreateEmbeddedWithTemplateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return UnclaimedDraftCreateResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbeddedWithTemplate(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, String idempotencyKey) throws ApiException { + return unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(unclaimedDraftCreateEmbeddedWithTemplateRequest, idempotencyKey).getData(); + } + + + /** + * @see UnclaimedDraftApi#unclaimedDraftCreateEmbeddedWithTemplate(UnclaimedDraftCreateEmbeddedWithTemplateRequest, String) + */ public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbeddedWithTemplate(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest) throws ApiException { - return unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(unclaimedDraftCreateEmbeddedWithTemplateRequest).getData(); + String idempotencyKey = null; + + return unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(unclaimedDraftCreateEmbeddedWithTemplateRequest, idempotencyKey).getData(); + } + + /** + * @see UnclaimedDraftApi#unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(UnclaimedDraftCreateEmbeddedWithTemplateRequest, String) + */ + public ApiResponse unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest) throws ApiException { + String idempotencyKey = null; + + return unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(unclaimedDraftCreateEmbeddedWithTemplateRequest, idempotencyKey); } @@ -206,23 +280,30 @@ public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbeddedWithTemplate(Unc * Creates a new Draft with a previously saved template(s) that can be claimed and used in an embedded iFrame. The first authenticated user to access the URL will claim the Draft and will be shown the \"Request signature\" page with the Draft loaded. Subsequent access to the claim URL will result in a `404`. For this embedded endpoint the `requester_email_address` parameter is required. **NOTE:** Embedded unclaimed drafts can only be accessed in embedded iFrames whereas normal drafts can be used and accessed on Dropbox Sign. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.java * @param unclaimedDraftCreateEmbeddedWithTemplateRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<UnclaimedDraftCreateResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest) throws ApiException { + public ApiResponse unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, String idempotencyKey) throws ApiException { // Check required parameters if (unclaimedDraftCreateEmbeddedWithTemplateRequest == null) { throw new ApiException(400, "Missing the required parameter 'unclaimedDraftCreateEmbeddedWithTemplateRequest' when calling unclaimedDraftCreateEmbeddedWithTemplate"); } + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = unclaimedDraftCreateEmbeddedWithTemplateRequest.createFormData(); @@ -236,7 +317,7 @@ public ApiResponse unclaimedDraftCreateEmbeddedWit "POST", new ArrayList<>(), isFileTypeFound ? null : unclaimedDraftCreateEmbeddedWithTemplateRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -252,18 +333,38 @@ public ApiResponse unclaimedDraftCreateEmbeddedWit * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/UnclaimedDraftEditAndResendExample.java * @param signatureRequestId The ID of the signature request to edit and resend. (required) * @param unclaimedDraftEditAndResendRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return UnclaimedDraftCreateResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ + public UnclaimedDraftCreateResponse unclaimedDraftEditAndResend(String signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, String idempotencyKey) throws ApiException { + return unclaimedDraftEditAndResendWithHttpInfo(signatureRequestId, unclaimedDraftEditAndResendRequest, idempotencyKey).getData(); + } + + + /** + * @see UnclaimedDraftApi#unclaimedDraftEditAndResend(String, UnclaimedDraftEditAndResendRequest, String) + */ public UnclaimedDraftCreateResponse unclaimedDraftEditAndResend(String signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest) throws ApiException { - return unclaimedDraftEditAndResendWithHttpInfo(signatureRequestId, unclaimedDraftEditAndResendRequest).getData(); + String idempotencyKey = null; + + return unclaimedDraftEditAndResendWithHttpInfo(signatureRequestId, unclaimedDraftEditAndResendRequest, idempotencyKey).getData(); + } + + /** + * @see UnclaimedDraftApi#unclaimedDraftEditAndResendWithHttpInfo(String, UnclaimedDraftEditAndResendRequest, String) + */ + public ApiResponse unclaimedDraftEditAndResendWithHttpInfo(String signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest) throws ApiException { + String idempotencyKey = null; + + return unclaimedDraftEditAndResendWithHttpInfo(signatureRequestId, unclaimedDraftEditAndResendRequest, idempotencyKey); } @@ -273,17 +374,18 @@ public UnclaimedDraftCreateResponse unclaimedDraftEditAndResend(String signature * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/UnclaimedDraftEditAndResendExample.java * @param signatureRequestId The ID of the signature request to edit and resend. (required) * @param unclaimedDraftEditAndResendRequest (required) + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<UnclaimedDraftCreateResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
4XX failed_operation -
*/ - public ApiResponse unclaimedDraftEditAndResendWithHttpInfo(String signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest) throws ApiException { + public ApiResponse unclaimedDraftEditAndResendWithHttpInfo(String signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, String idempotencyKey) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -297,6 +399,12 @@ public ApiResponse unclaimedDraftEditAndResendWith String localVarPath = "/unclaimed_draft/edit_and_resend/{signature_request_id}" .replaceAll("\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } + String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = unclaimedDraftEditAndResendRequest.createFormData(); @@ -310,7 +418,7 @@ public ApiResponse unclaimedDraftEditAndResendWith "POST", new ArrayList<>(), isFileTypeFound ? null : unclaimedDraftEditAndResendRequest, - new LinkedHashMap<>(), + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/node/api/accountApi.ts b/sdks/node/api/accountApi.ts index 829eba59d..05b08e685 100644 --- a/sdks/node/api/accountApi.ts +++ b/sdks/node/api/accountApi.ts @@ -125,10 +125,12 @@ export class AccountApi { * @summary Create Account * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/AccountCreateExample.ts * @param accountCreateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async accountCreate( accountCreateRequest: AccountCreateRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { accountCreateRequest = deserializeIfNeeded( @@ -158,6 +160,10 @@ export class AccountApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -398,10 +404,12 @@ export class AccountApi { * @summary Update Account * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/AccountUpdateExample.ts * @param accountUpdateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async accountUpdate( accountUpdateRequest: AccountUpdateRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { accountUpdateRequest = deserializeIfNeeded( @@ -431,6 +439,10 @@ export class AccountApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -542,10 +554,12 @@ export class AccountApi { * @summary Verify Account * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/AccountVerifyExample.ts * @param accountVerifyRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async accountVerify( accountVerifyRequest: AccountVerifyRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { accountVerifyRequest = deserializeIfNeeded( @@ -575,6 +589,10 @@ export class AccountApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; diff --git a/sdks/node/api/apiAppApi.ts b/sdks/node/api/apiAppApi.ts index de0d7346b..2e1b86430 100644 --- a/sdks/node/api/apiAppApi.ts +++ b/sdks/node/api/apiAppApi.ts @@ -124,10 +124,12 @@ export class ApiAppApi { * @summary Create API App * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/ApiAppCreateExample.ts * @param apiAppCreateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async apiAppCreate( apiAppCreateRequest: ApiAppCreateRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { apiAppCreateRequest = deserializeIfNeeded( @@ -157,6 +159,10 @@ export class ApiAppApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -626,11 +632,13 @@ export class ApiAppApi { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/ApiAppUpdateExample.ts * @param clientId The client id of the API App to update. * @param apiAppUpdateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async apiAppUpdate( clientId: string, apiAppUpdateRequest: ApiAppUpdateRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { apiAppUpdateRequest = deserializeIfNeeded( @@ -672,6 +680,10 @@ export class ApiAppApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; diff --git a/sdks/node/api/documentApi.ts b/sdks/node/api/documentApi.ts index 84e6a4ece..1a4db87b3 100644 --- a/sdks/node/api/documentApi.ts +++ b/sdks/node/api/documentApi.ts @@ -121,10 +121,12 @@ export class DocumentApi { * @summary Detect Document Fields * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/DocumentDetectFieldsExample.ts * @param documentFieldDetectionRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async documentDetectFields( documentFieldDetectionRequest: DocumentFieldDetectionRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { documentFieldDetectionRequest = deserializeIfNeeded( @@ -157,6 +159,10 @@ export class DocumentApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; diff --git a/sdks/node/api/embeddedApi.ts b/sdks/node/api/embeddedApi.ts index 7fd0e08f3..6601e22a9 100644 --- a/sdks/node/api/embeddedApi.ts +++ b/sdks/node/api/embeddedApi.ts @@ -123,11 +123,13 @@ export class EmbeddedApi { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/EmbeddedEditUrlExample.ts * @param templateId The id of the template to edit. * @param embeddedEditUrlRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async embeddedEditUrl( templateId: string, embeddedEditUrlRequest: EmbeddedEditUrlRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { embeddedEditUrlRequest = deserializeIfNeeded( @@ -172,6 +174,10 @@ export class EmbeddedApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; diff --git a/sdks/node/api/faxApi.ts b/sdks/node/api/faxApi.ts index 464d37537..5bc983dd9 100644 --- a/sdks/node/api/faxApi.ts +++ b/sdks/node/api/faxApi.ts @@ -583,10 +583,12 @@ export class FaxApi { * @summary Send Fax * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/FaxSendExample.ts * @param faxSendRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async faxSend( faxSendRequest: FaxSendRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { faxSendRequest = deserializeIfNeeded(faxSendRequest, "FaxSendRequest"); @@ -613,6 +615,10 @@ export class FaxApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; diff --git a/sdks/node/api/faxLineApi.ts b/sdks/node/api/faxLineApi.ts index 8a662d0fa..b88b99252 100644 --- a/sdks/node/api/faxLineApi.ts +++ b/sdks/node/api/faxLineApi.ts @@ -127,10 +127,12 @@ export class FaxLineApi { * @summary Add Fax Line User * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/FaxLineAddUserExample.ts * @param faxLineAddUserRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async faxLineAddUser( faxLineAddUserRequest: FaxLineAddUserRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { faxLineAddUserRequest = deserializeIfNeeded( @@ -160,6 +162,10 @@ export class FaxLineApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -479,10 +485,12 @@ export class FaxLineApi { * @summary Purchase Fax Line * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/FaxLineCreateExample.ts * @param faxLineCreateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async faxLineCreate( faxLineCreateRequest: FaxLineCreateRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { faxLineCreateRequest = deserializeIfNeeded( @@ -512,6 +520,10 @@ export class FaxLineApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -1003,10 +1015,12 @@ export class FaxLineApi { * @summary Remove Fax Line Access * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/FaxLineRemoveUserExample.ts * @param faxLineRemoveUserRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async faxLineRemoveUser( faxLineRemoveUserRequest: FaxLineRemoveUserRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { faxLineRemoveUserRequest = deserializeIfNeeded( @@ -1039,6 +1053,10 @@ export class FaxLineApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; diff --git a/sdks/node/api/reportApi.ts b/sdks/node/api/reportApi.ts index dc0ab70c1..4acac6fc7 100644 --- a/sdks/node/api/reportApi.ts +++ b/sdks/node/api/reportApi.ts @@ -121,10 +121,12 @@ export class ReportApi { * @summary Create Report * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/ReportCreateExample.ts * @param reportCreateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async reportCreate( reportCreateRequest: ReportCreateRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { reportCreateRequest = deserializeIfNeeded( @@ -154,6 +156,10 @@ export class ReportApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; diff --git a/sdks/node/api/signatureRequestApi.ts b/sdks/node/api/signatureRequestApi.ts index 1358d7d92..227e5655f 100644 --- a/sdks/node/api/signatureRequestApi.ts +++ b/sdks/node/api/signatureRequestApi.ts @@ -137,10 +137,12 @@ export class SignatureRequestApi { * @summary Embedded Bulk Send with Template * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.ts * @param signatureRequestBulkCreateEmbeddedWithTemplateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async signatureRequestBulkCreateEmbeddedWithTemplate( signatureRequestBulkCreateEmbeddedWithTemplateRequest: SignatureRequestBulkCreateEmbeddedWithTemplateRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { signatureRequestBulkCreateEmbeddedWithTemplateRequest = deserializeIfNeeded( @@ -174,6 +176,10 @@ export class SignatureRequestApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -282,10 +288,12 @@ export class SignatureRequestApi { * @summary Bulk Send with Template * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.ts * @param signatureRequestBulkSendWithTemplateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async signatureRequestBulkSendWithTemplate( signatureRequestBulkSendWithTemplateRequest: SignatureRequestBulkSendWithTemplateRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { signatureRequestBulkSendWithTemplateRequest = deserializeIfNeeded( @@ -319,6 +327,10 @@ export class SignatureRequestApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -432,10 +444,12 @@ export class SignatureRequestApi { * @summary Cancel Incomplete Signature Request * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestCancelExample.ts * @param signatureRequestId The id of the incomplete SignatureRequest to cancel. + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async signatureRequestCancel( signatureRequestId: string, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise { const localVarPath = @@ -466,6 +480,10 @@ export class SignatureRequestApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -539,10 +557,12 @@ export class SignatureRequestApi { * @summary Create Embedded Signature Request * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestCreateEmbeddedExample.ts * @param signatureRequestCreateEmbeddedRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async signatureRequestCreateEmbedded( signatureRequestCreateEmbeddedRequest: SignatureRequestCreateEmbeddedRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { signatureRequestCreateEmbeddedRequest = deserializeIfNeeded( @@ -575,6 +595,10 @@ export class SignatureRequestApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -688,10 +712,12 @@ export class SignatureRequestApi { * @summary Create Embedded Signature Request with Template * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.ts * @param signatureRequestCreateEmbeddedWithTemplateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async signatureRequestCreateEmbeddedWithTemplate( signatureRequestCreateEmbeddedWithTemplateRequest: SignatureRequestCreateEmbeddedWithTemplateRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { signatureRequestCreateEmbeddedWithTemplateRequest = deserializeIfNeeded( @@ -725,6 +751,10 @@ export class SignatureRequestApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -839,11 +869,13 @@ export class SignatureRequestApi { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestEditExample.ts * @param signatureRequestId The id of the SignatureRequest to edit. * @param signatureRequestEditRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async signatureRequestEdit( signatureRequestId: string, signatureRequestEditRequest: SignatureRequestEditRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { signatureRequestEditRequest = deserializeIfNeeded( @@ -888,6 +920,10 @@ export class SignatureRequestApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -1002,11 +1038,13 @@ export class SignatureRequestApi { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestEditEmbeddedExample.ts * @param signatureRequestId The id of the SignatureRequest to edit. * @param signatureRequestEditEmbeddedRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async signatureRequestEditEmbedded( signatureRequestId: string, signatureRequestEditEmbeddedRequest: SignatureRequestEditEmbeddedRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { signatureRequestEditEmbeddedRequest = deserializeIfNeeded( @@ -1051,6 +1089,10 @@ export class SignatureRequestApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -1165,11 +1207,13 @@ export class SignatureRequestApi { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestEditEmbeddedWithTemplateExample.ts * @param signatureRequestId The id of the SignatureRequest to edit. * @param signatureRequestEditEmbeddedWithTemplateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async signatureRequestEditEmbeddedWithTemplate( signatureRequestId: string, signatureRequestEditEmbeddedWithTemplateRequest: SignatureRequestEditEmbeddedWithTemplateRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { signatureRequestEditEmbeddedWithTemplateRequest = deserializeIfNeeded( @@ -1214,6 +1258,10 @@ export class SignatureRequestApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -1328,11 +1376,13 @@ export class SignatureRequestApi { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestEditWithTemplateExample.ts * @param signatureRequestId The id of the SignatureRequest to edit. * @param signatureRequestEditWithTemplateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async signatureRequestEditWithTemplate( signatureRequestId: string, signatureRequestEditWithTemplateRequest: SignatureRequestEditWithTemplateRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { signatureRequestEditWithTemplateRequest = deserializeIfNeeded( @@ -1377,6 +1427,10 @@ export class SignatureRequestApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -2151,10 +2205,12 @@ export class SignatureRequestApi { * @summary Release On-Hold Signature Request * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestReleaseHoldExample.ts * @param signatureRequestId The id of the SignatureRequest to release. + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async signatureRequestReleaseHold( signatureRequestId: string, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { const localVarPath = @@ -2185,6 +2241,10 @@ export class SignatureRequestApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -2277,11 +2337,13 @@ export class SignatureRequestApi { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestRemindExample.ts * @param signatureRequestId The id of the SignatureRequest to send a reminder for. * @param signatureRequestRemindRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async signatureRequestRemind( signatureRequestId: string, signatureRequestRemindRequest: SignatureRequestRemindRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { signatureRequestRemindRequest = deserializeIfNeeded( @@ -2326,6 +2388,10 @@ export class SignatureRequestApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -2439,10 +2505,12 @@ export class SignatureRequestApi { * @summary Remove Signature Request Access * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestRemoveExample.ts * @param signatureRequestId The id of the SignatureRequest to remove. + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async signatureRequestRemove( signatureRequestId: string, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise { const localVarPath = @@ -2473,6 +2541,10 @@ export class SignatureRequestApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -2541,10 +2613,12 @@ export class SignatureRequestApi { * @summary Send Signature Request * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestSendExample.ts * @param signatureRequestSendRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async signatureRequestSend( signatureRequestSendRequest: SignatureRequestSendRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { signatureRequestSendRequest = deserializeIfNeeded( @@ -2577,6 +2651,10 @@ export class SignatureRequestApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -2690,10 +2768,12 @@ export class SignatureRequestApi { * @summary Send with Template * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestSendWithTemplateExample.ts * @param signatureRequestSendWithTemplateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async signatureRequestSendWithTemplate( signatureRequestSendWithTemplateRequest: SignatureRequestSendWithTemplateRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { signatureRequestSendWithTemplateRequest = deserializeIfNeeded( @@ -2727,6 +2807,10 @@ export class SignatureRequestApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -2841,11 +2925,13 @@ export class SignatureRequestApi { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestUpdateExample.ts * @param signatureRequestId The id of the SignatureRequest to update. * @param signatureRequestUpdateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async signatureRequestUpdate( signatureRequestId: string, signatureRequestUpdateRequest: SignatureRequestUpdateRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { signatureRequestUpdateRequest = deserializeIfNeeded( @@ -2890,6 +2976,10 @@ export class SignatureRequestApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; diff --git a/sdks/node/api/teamApi.ts b/sdks/node/api/teamApi.ts index 455a54c17..4b9f427a6 100644 --- a/sdks/node/api/teamApi.ts +++ b/sdks/node/api/teamApi.ts @@ -130,11 +130,13 @@ export class TeamApi { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TeamAddMemberExample.ts * @param teamAddMemberRequest * @param teamId The id of the team. + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async teamAddMember( teamAddMemberRequest: TeamAddMemberRequest, teamId?: string, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { teamAddMemberRequest = deserializeIfNeeded( @@ -171,6 +173,10 @@ export class TeamApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -282,10 +288,12 @@ export class TeamApi { * @summary Create Team * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TeamCreateExample.ts * @param teamCreateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async teamCreate( teamCreateRequest: TeamCreateRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { teamCreateRequest = deserializeIfNeeded( @@ -315,6 +323,10 @@ export class TeamApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -1008,10 +1020,12 @@ export class TeamApi { * @summary Remove User from Team * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TeamRemoveMemberExample.ts * @param teamRemoveMemberRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async teamRemoveMember( teamRemoveMemberRequest: TeamRemoveMemberRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { teamRemoveMemberRequest = deserializeIfNeeded( @@ -1044,6 +1058,10 @@ export class TeamApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -1298,10 +1316,12 @@ export class TeamApi { * @summary Update Team * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TeamUpdateExample.ts * @param teamUpdateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async teamUpdate( teamUpdateRequest: TeamUpdateRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { teamUpdateRequest = deserializeIfNeeded( @@ -1331,6 +1351,10 @@ export class TeamApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; diff --git a/sdks/node/api/templateApi.ts b/sdks/node/api/templateApi.ts index a869a9b6f..72ca04896 100644 --- a/sdks/node/api/templateApi.ts +++ b/sdks/node/api/templateApi.ts @@ -133,11 +133,13 @@ export class TemplateApi { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TemplateAddUserExample.ts * @param templateId The id of the Template to give the Account access to. * @param templateAddUserRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async templateAddUser( templateId: string, templateAddUserRequest: TemplateAddUserRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { templateAddUserRequest = deserializeIfNeeded( @@ -182,6 +184,10 @@ export class TemplateApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -295,10 +301,12 @@ export class TemplateApi { * @summary Create Template * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TemplateCreateExample.ts * @param templateCreateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async templateCreate( templateCreateRequest: TemplateCreateRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { templateCreateRequest = deserializeIfNeeded( @@ -328,6 +336,10 @@ export class TemplateApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -441,10 +453,12 @@ export class TemplateApi { * @summary Create Embedded Template Draft * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TemplateCreateEmbeddedDraftExample.ts * @param templateCreateEmbeddedDraftRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async templateCreateEmbeddedDraft( templateCreateEmbeddedDraftRequest: TemplateCreateEmbeddedDraftRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { templateCreateEmbeddedDraftRequest = deserializeIfNeeded( @@ -477,6 +491,10 @@ export class TemplateApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -590,10 +608,12 @@ export class TemplateApi { * @summary Delete Template * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TemplateDeleteExample.ts * @param templateId The id of the Template to delete. + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async templateDelete( templateId: string, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise { const localVarPath = @@ -624,6 +644,10 @@ export class TemplateApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -1359,11 +1383,13 @@ export class TemplateApi { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TemplateRemoveUserExample.ts * @param templateId The id of the Template to remove the Account\'s access to. * @param templateRemoveUserRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async templateRemoveUser( templateId: string, templateRemoveUserRequest: TemplateRemoveUserRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { templateRemoveUserRequest = deserializeIfNeeded( @@ -1408,6 +1434,10 @@ export class TemplateApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -1522,11 +1552,13 @@ export class TemplateApi { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TemplateUpdateFilesExample.ts * @param templateId The ID of the template whose files to update. * @param templateUpdateFilesRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async templateUpdateFiles( templateId: string, templateUpdateFilesRequest: TemplateUpdateFilesRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { templateUpdateFilesRequest = deserializeIfNeeded( @@ -1571,6 +1603,10 @@ export class TemplateApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; diff --git a/sdks/node/api/unclaimedDraftApi.ts b/sdks/node/api/unclaimedDraftApi.ts index 6fac772c1..ec85370a9 100644 --- a/sdks/node/api/unclaimedDraftApi.ts +++ b/sdks/node/api/unclaimedDraftApi.ts @@ -124,10 +124,12 @@ export class UnclaimedDraftApi { * @summary Create Unclaimed Draft * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/UnclaimedDraftCreateExample.ts * @param unclaimedDraftCreateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async unclaimedDraftCreate( unclaimedDraftCreateRequest: UnclaimedDraftCreateRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { unclaimedDraftCreateRequest = deserializeIfNeeded( @@ -160,6 +162,10 @@ export class UnclaimedDraftApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -273,10 +279,12 @@ export class UnclaimedDraftApi { * @summary Create Embedded Unclaimed Draft * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.ts * @param unclaimedDraftCreateEmbeddedRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async unclaimedDraftCreateEmbedded( unclaimedDraftCreateEmbeddedRequest: UnclaimedDraftCreateEmbeddedRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { unclaimedDraftCreateEmbeddedRequest = deserializeIfNeeded( @@ -309,6 +317,10 @@ export class UnclaimedDraftApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -422,10 +434,12 @@ export class UnclaimedDraftApi { * @summary Create Embedded Unclaimed Draft with Template * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.ts * @param unclaimedDraftCreateEmbeddedWithTemplateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async unclaimedDraftCreateEmbeddedWithTemplate( unclaimedDraftCreateEmbeddedWithTemplateRequest: UnclaimedDraftCreateEmbeddedWithTemplateRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { unclaimedDraftCreateEmbeddedWithTemplateRequest = deserializeIfNeeded( @@ -459,6 +473,10 @@ export class UnclaimedDraftApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -573,11 +591,13 @@ export class UnclaimedDraftApi { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/UnclaimedDraftEditAndResendExample.ts * @param signatureRequestId The ID of the signature request to edit and resend. * @param unclaimedDraftEditAndResendRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async unclaimedDraftEditAndResend( signatureRequestId: string, unclaimedDraftEditAndResendRequest: UnclaimedDraftEditAndResendRequest, + idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { unclaimedDraftEditAndResendRequest = deserializeIfNeeded( @@ -622,6 +642,10 @@ export class UnclaimedDraftApi { ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; diff --git a/sdks/node/dist/api.js b/sdks/node/dist/api.js index 2acb8bb12..8ce003856 100644 --- a/sdks/node/dist/api.js +++ b/sdks/node/dist/api.js @@ -30342,9 +30342,10 @@ var AccountApi = class { * @summary Create Account * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/AccountCreateExample.ts * @param accountCreateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async accountCreate(accountCreateRequest, options = { headers: {} }) { + async accountCreate(accountCreateRequest, idempotencyKey, options = { headers: {} }) { accountCreateRequest = deserializeIfNeeded( accountCreateRequest, "AccountCreateRequest" @@ -30368,6 +30369,10 @@ var AccountApi = class { "Required parameter accountCreateRequest was null or undefined when calling accountCreate." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -30570,9 +30575,10 @@ var AccountApi = class { * @summary Update Account * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/AccountUpdateExample.ts * @param accountUpdateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async accountUpdate(accountUpdateRequest, options = { headers: {} }) { + async accountUpdate(accountUpdateRequest, idempotencyKey, options = { headers: {} }) { accountUpdateRequest = deserializeIfNeeded( accountUpdateRequest, "AccountUpdateRequest" @@ -30596,6 +30602,10 @@ var AccountApi = class { "Required parameter accountUpdateRequest was null or undefined when calling accountUpdate." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -30691,9 +30701,10 @@ var AccountApi = class { * @summary Verify Account * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/AccountVerifyExample.ts * @param accountVerifyRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async accountVerify(accountVerifyRequest, options = { headers: {} }) { + async accountVerify(accountVerifyRequest, idempotencyKey, options = { headers: {} }) { accountVerifyRequest = deserializeIfNeeded( accountVerifyRequest, "AccountVerifyRequest" @@ -30717,6 +30728,10 @@ var AccountApi = class { "Required parameter accountVerifyRequest was null or undefined when calling accountVerify." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -30901,9 +30916,10 @@ var ApiAppApi = class { * @summary Create API App * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/ApiAppCreateExample.ts * @param apiAppCreateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async apiAppCreate(apiAppCreateRequest, options = { headers: {} }) { + async apiAppCreate(apiAppCreateRequest, idempotencyKey, options = { headers: {} }) { apiAppCreateRequest = deserializeIfNeeded2( apiAppCreateRequest, "ApiAppCreateRequest" @@ -30927,6 +30943,10 @@ var ApiAppApi = class { "Required parameter apiAppCreateRequest was null or undefined when calling apiAppCreate." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -31315,9 +31335,10 @@ var ApiAppApi = class { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/ApiAppUpdateExample.ts * @param clientId The client id of the API App to update. * @param apiAppUpdateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async apiAppUpdate(clientId, apiAppUpdateRequest, options = { headers: {} }) { + async apiAppUpdate(clientId, apiAppUpdateRequest, idempotencyKey, options = { headers: {} }) { apiAppUpdateRequest = deserializeIfNeeded2( apiAppUpdateRequest, "ApiAppUpdateRequest" @@ -31349,6 +31370,10 @@ var ApiAppApi = class { "Required parameter apiAppUpdateRequest was null or undefined when calling apiAppUpdate." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -31835,9 +31860,10 @@ var DocumentApi = class { * @summary Detect Document Fields * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/DocumentDetectFieldsExample.ts * @param documentFieldDetectionRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async documentDetectFields(documentFieldDetectionRequest, options = { headers: {} }) { + async documentDetectFields(documentFieldDetectionRequest, idempotencyKey, options = { headers: {} }) { documentFieldDetectionRequest = deserializeIfNeeded3( documentFieldDetectionRequest, "DocumentFieldDetectionRequest" @@ -31861,6 +31887,10 @@ var DocumentApi = class { "Required parameter documentFieldDetectionRequest was null or undefined when calling documentDetectFields." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -32046,9 +32076,10 @@ var EmbeddedApi = class { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/EmbeddedEditUrlExample.ts * @param templateId The id of the template to edit. * @param embeddedEditUrlRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async embeddedEditUrl(templateId, embeddedEditUrlRequest, options = { headers: {} }) { + async embeddedEditUrl(templateId, embeddedEditUrlRequest, idempotencyKey, options = { headers: {} }) { embeddedEditUrlRequest = deserializeIfNeeded4( embeddedEditUrlRequest, "EmbeddedEditUrlRequest" @@ -32080,6 +32111,10 @@ var EmbeddedApi = class { "Required parameter embeddedEditUrlRequest was null or undefined when calling embeddedEditUrl." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -32738,9 +32773,10 @@ var FaxApi = class { * @summary Send Fax * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/FaxSendExample.ts * @param faxSendRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async faxSend(faxSendRequest, options = { headers: {} }) { + async faxSend(faxSendRequest, idempotencyKey, options = { headers: {} }) { faxSendRequest = deserializeIfNeeded5(faxSendRequest, "FaxSendRequest"); const localVarPath = this.basePath + "/fax/send"; let localVarQueryParameters = {}; @@ -32761,6 +32797,10 @@ var FaxApi = class { "Required parameter faxSendRequest was null or undefined when calling faxSend." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -32935,9 +32975,10 @@ var FaxLineApi = class { * @summary Add Fax Line User * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/FaxLineAddUserExample.ts * @param faxLineAddUserRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async faxLineAddUser(faxLineAddUserRequest, options = { headers: {} }) { + async faxLineAddUser(faxLineAddUserRequest, idempotencyKey, options = { headers: {} }) { faxLineAddUserRequest = deserializeIfNeeded6( faxLineAddUserRequest, "FaxLineAddUserRequest" @@ -32961,6 +33002,10 @@ var FaxLineApi = class { "Required parameter faxLineAddUserRequest was null or undefined when calling faxLineAddUser." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -33172,9 +33217,10 @@ var FaxLineApi = class { * @summary Purchase Fax Line * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/FaxLineCreateExample.ts * @param faxLineCreateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async faxLineCreate(faxLineCreateRequest, options = { headers: {} }) { + async faxLineCreate(faxLineCreateRequest, idempotencyKey, options = { headers: {} }) { faxLineCreateRequest = deserializeIfNeeded6( faxLineCreateRequest, "FaxLineCreateRequest" @@ -33198,6 +33244,10 @@ var FaxLineApi = class { "Required parameter faxLineCreateRequest was null or undefined when calling faxLineCreate." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -33605,9 +33655,10 @@ var FaxLineApi = class { * @summary Remove Fax Line Access * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/FaxLineRemoveUserExample.ts * @param faxLineRemoveUserRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async faxLineRemoveUser(faxLineRemoveUserRequest, options = { headers: {} }) { + async faxLineRemoveUser(faxLineRemoveUserRequest, idempotencyKey, options = { headers: {} }) { faxLineRemoveUserRequest = deserializeIfNeeded6( faxLineRemoveUserRequest, "FaxLineRemoveUserRequest" @@ -33631,6 +33682,10 @@ var FaxLineApi = class { "Required parameter faxLineRemoveUserRequest was null or undefined when calling faxLineRemoveUser." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -34117,9 +34172,10 @@ var ReportApi = class { * @summary Create Report * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/ReportCreateExample.ts * @param reportCreateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async reportCreate(reportCreateRequest, options = { headers: {} }) { + async reportCreate(reportCreateRequest, idempotencyKey, options = { headers: {} }) { reportCreateRequest = deserializeIfNeeded8( reportCreateRequest, "ReportCreateRequest" @@ -34143,6 +34199,10 @@ var ReportApi = class { "Required parameter reportCreateRequest was null or undefined when calling reportCreate." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -34322,9 +34382,10 @@ var SignatureRequestApi = class { * @summary Embedded Bulk Send with Template * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.ts * @param signatureRequestBulkCreateEmbeddedWithTemplateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async signatureRequestBulkCreateEmbeddedWithTemplate(signatureRequestBulkCreateEmbeddedWithTemplateRequest, options = { headers: {} }) { + async signatureRequestBulkCreateEmbeddedWithTemplate(signatureRequestBulkCreateEmbeddedWithTemplateRequest, idempotencyKey, options = { headers: {} }) { signatureRequestBulkCreateEmbeddedWithTemplateRequest = deserializeIfNeeded9( signatureRequestBulkCreateEmbeddedWithTemplateRequest, "SignatureRequestBulkCreateEmbeddedWithTemplateRequest" @@ -34348,6 +34409,10 @@ var SignatureRequestApi = class { "Required parameter signatureRequestBulkCreateEmbeddedWithTemplateRequest was null or undefined when calling signatureRequestBulkCreateEmbeddedWithTemplate." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -34440,9 +34505,10 @@ var SignatureRequestApi = class { * @summary Bulk Send with Template * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.ts * @param signatureRequestBulkSendWithTemplateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async signatureRequestBulkSendWithTemplate(signatureRequestBulkSendWithTemplateRequest, options = { headers: {} }) { + async signatureRequestBulkSendWithTemplate(signatureRequestBulkSendWithTemplateRequest, idempotencyKey, options = { headers: {} }) { signatureRequestBulkSendWithTemplateRequest = deserializeIfNeeded9( signatureRequestBulkSendWithTemplateRequest, "SignatureRequestBulkSendWithTemplateRequest" @@ -34466,6 +34532,10 @@ var SignatureRequestApi = class { "Required parameter signatureRequestBulkSendWithTemplateRequest was null or undefined when calling signatureRequestBulkSendWithTemplate." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -34563,9 +34633,10 @@ var SignatureRequestApi = class { * @summary Cancel Incomplete Signature Request * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestCancelExample.ts * @param signatureRequestId The id of the incomplete SignatureRequest to cancel. + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async signatureRequestCancel(signatureRequestId, options = { headers: {} }) { + async signatureRequestCancel(signatureRequestId, idempotencyKey, options = { headers: {} }) { const localVarPath = this.basePath + "/signature_request/cancel/{signature_request_id}".replace( "{signature_request_id}", encodeURIComponent(String(signatureRequestId)) @@ -34588,6 +34659,10 @@ var SignatureRequestApi = class { "Required parameter signatureRequestId was null or undefined when calling signatureRequestCancel." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; let localVarRequestOptions = { @@ -34650,9 +34725,10 @@ var SignatureRequestApi = class { * @summary Create Embedded Signature Request * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestCreateEmbeddedExample.ts * @param signatureRequestCreateEmbeddedRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async signatureRequestCreateEmbedded(signatureRequestCreateEmbeddedRequest, options = { headers: {} }) { + async signatureRequestCreateEmbedded(signatureRequestCreateEmbeddedRequest, idempotencyKey, options = { headers: {} }) { signatureRequestCreateEmbeddedRequest = deserializeIfNeeded9( signatureRequestCreateEmbeddedRequest, "SignatureRequestCreateEmbeddedRequest" @@ -34676,6 +34752,10 @@ var SignatureRequestApi = class { "Required parameter signatureRequestCreateEmbeddedRequest was null or undefined when calling signatureRequestCreateEmbedded." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -34773,9 +34853,10 @@ var SignatureRequestApi = class { * @summary Create Embedded Signature Request with Template * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.ts * @param signatureRequestCreateEmbeddedWithTemplateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async signatureRequestCreateEmbeddedWithTemplate(signatureRequestCreateEmbeddedWithTemplateRequest, options = { headers: {} }) { + async signatureRequestCreateEmbeddedWithTemplate(signatureRequestCreateEmbeddedWithTemplateRequest, idempotencyKey, options = { headers: {} }) { signatureRequestCreateEmbeddedWithTemplateRequest = deserializeIfNeeded9( signatureRequestCreateEmbeddedWithTemplateRequest, "SignatureRequestCreateEmbeddedWithTemplateRequest" @@ -34799,6 +34880,10 @@ var SignatureRequestApi = class { "Required parameter signatureRequestCreateEmbeddedWithTemplateRequest was null or undefined when calling signatureRequestCreateEmbeddedWithTemplate." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -34897,9 +34982,10 @@ var SignatureRequestApi = class { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestEditExample.ts * @param signatureRequestId The id of the SignatureRequest to edit. * @param signatureRequestEditRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async signatureRequestEdit(signatureRequestId, signatureRequestEditRequest, options = { headers: {} }) { + async signatureRequestEdit(signatureRequestId, signatureRequestEditRequest, idempotencyKey, options = { headers: {} }) { signatureRequestEditRequest = deserializeIfNeeded9( signatureRequestEditRequest, "SignatureRequestEditRequest" @@ -34931,6 +35017,10 @@ var SignatureRequestApi = class { "Required parameter signatureRequestEditRequest was null or undefined when calling signatureRequestEdit." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -35029,9 +35119,10 @@ var SignatureRequestApi = class { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestEditEmbeddedExample.ts * @param signatureRequestId The id of the SignatureRequest to edit. * @param signatureRequestEditEmbeddedRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async signatureRequestEditEmbedded(signatureRequestId, signatureRequestEditEmbeddedRequest, options = { headers: {} }) { + async signatureRequestEditEmbedded(signatureRequestId, signatureRequestEditEmbeddedRequest, idempotencyKey, options = { headers: {} }) { signatureRequestEditEmbeddedRequest = deserializeIfNeeded9( signatureRequestEditEmbeddedRequest, "SignatureRequestEditEmbeddedRequest" @@ -35063,6 +35154,10 @@ var SignatureRequestApi = class { "Required parameter signatureRequestEditEmbeddedRequest was null or undefined when calling signatureRequestEditEmbedded." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -35161,9 +35256,10 @@ var SignatureRequestApi = class { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestEditEmbeddedWithTemplateExample.ts * @param signatureRequestId The id of the SignatureRequest to edit. * @param signatureRequestEditEmbeddedWithTemplateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async signatureRequestEditEmbeddedWithTemplate(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest, options = { headers: {} }) { + async signatureRequestEditEmbeddedWithTemplate(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest, idempotencyKey, options = { headers: {} }) { signatureRequestEditEmbeddedWithTemplateRequest = deserializeIfNeeded9( signatureRequestEditEmbeddedWithTemplateRequest, "SignatureRequestEditEmbeddedWithTemplateRequest" @@ -35195,6 +35291,10 @@ var SignatureRequestApi = class { "Required parameter signatureRequestEditEmbeddedWithTemplateRequest was null or undefined when calling signatureRequestEditEmbeddedWithTemplate." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -35293,9 +35393,10 @@ var SignatureRequestApi = class { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestEditWithTemplateExample.ts * @param signatureRequestId The id of the SignatureRequest to edit. * @param signatureRequestEditWithTemplateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async signatureRequestEditWithTemplate(signatureRequestId, signatureRequestEditWithTemplateRequest, options = { headers: {} }) { + async signatureRequestEditWithTemplate(signatureRequestId, signatureRequestEditWithTemplateRequest, idempotencyKey, options = { headers: {} }) { signatureRequestEditWithTemplateRequest = deserializeIfNeeded9( signatureRequestEditWithTemplateRequest, "SignatureRequestEditWithTemplateRequest" @@ -35327,6 +35428,10 @@ var SignatureRequestApi = class { "Required parameter signatureRequestEditWithTemplateRequest was null or undefined when calling signatureRequestEditWithTemplate." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -35963,9 +36068,10 @@ var SignatureRequestApi = class { * @summary Release On-Hold Signature Request * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestReleaseHoldExample.ts * @param signatureRequestId The id of the SignatureRequest to release. + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async signatureRequestReleaseHold(signatureRequestId, options = { headers: {} }) { + async signatureRequestReleaseHold(signatureRequestId, idempotencyKey, options = { headers: {} }) { const localVarPath = this.basePath + "/signature_request/release_hold/{signature_request_id}".replace( "{signature_request_id}", encodeURIComponent(String(signatureRequestId)) @@ -35988,6 +36094,10 @@ var SignatureRequestApi = class { "Required parameter signatureRequestId was null or undefined when calling signatureRequestReleaseHold." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; let localVarRequestOptions = { @@ -36066,9 +36176,10 @@ var SignatureRequestApi = class { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestRemindExample.ts * @param signatureRequestId The id of the SignatureRequest to send a reminder for. * @param signatureRequestRemindRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async signatureRequestRemind(signatureRequestId, signatureRequestRemindRequest, options = { headers: {} }) { + async signatureRequestRemind(signatureRequestId, signatureRequestRemindRequest, idempotencyKey, options = { headers: {} }) { signatureRequestRemindRequest = deserializeIfNeeded9( signatureRequestRemindRequest, "SignatureRequestRemindRequest" @@ -36100,6 +36211,10 @@ var SignatureRequestApi = class { "Required parameter signatureRequestRemindRequest was null or undefined when calling signatureRequestRemind." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -36197,9 +36312,10 @@ var SignatureRequestApi = class { * @summary Remove Signature Request Access * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestRemoveExample.ts * @param signatureRequestId The id of the SignatureRequest to remove. + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async signatureRequestRemove(signatureRequestId, options = { headers: {} }) { + async signatureRequestRemove(signatureRequestId, idempotencyKey, options = { headers: {} }) { const localVarPath = this.basePath + "/signature_request/remove/{signature_request_id}".replace( "{signature_request_id}", encodeURIComponent(String(signatureRequestId)) @@ -36222,6 +36338,10 @@ var SignatureRequestApi = class { "Required parameter signatureRequestId was null or undefined when calling signatureRequestRemove." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; let localVarRequestOptions = { @@ -36279,9 +36399,10 @@ var SignatureRequestApi = class { * @summary Send Signature Request * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestSendExample.ts * @param signatureRequestSendRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async signatureRequestSend(signatureRequestSendRequest, options = { headers: {} }) { + async signatureRequestSend(signatureRequestSendRequest, idempotencyKey, options = { headers: {} }) { signatureRequestSendRequest = deserializeIfNeeded9( signatureRequestSendRequest, "SignatureRequestSendRequest" @@ -36305,6 +36426,10 @@ var SignatureRequestApi = class { "Required parameter signatureRequestSendRequest was null or undefined when calling signatureRequestSend." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -36402,9 +36527,10 @@ var SignatureRequestApi = class { * @summary Send with Template * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestSendWithTemplateExample.ts * @param signatureRequestSendWithTemplateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async signatureRequestSendWithTemplate(signatureRequestSendWithTemplateRequest, options = { headers: {} }) { + async signatureRequestSendWithTemplate(signatureRequestSendWithTemplateRequest, idempotencyKey, options = { headers: {} }) { signatureRequestSendWithTemplateRequest = deserializeIfNeeded9( signatureRequestSendWithTemplateRequest, "SignatureRequestSendWithTemplateRequest" @@ -36428,6 +36554,10 @@ var SignatureRequestApi = class { "Required parameter signatureRequestSendWithTemplateRequest was null or undefined when calling signatureRequestSendWithTemplate." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -36526,9 +36656,10 @@ var SignatureRequestApi = class { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestUpdateExample.ts * @param signatureRequestId The id of the SignatureRequest to update. * @param signatureRequestUpdateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async signatureRequestUpdate(signatureRequestId, signatureRequestUpdateRequest, options = { headers: {} }) { + async signatureRequestUpdate(signatureRequestId, signatureRequestUpdateRequest, idempotencyKey, options = { headers: {} }) { signatureRequestUpdateRequest = deserializeIfNeeded9( signatureRequestUpdateRequest, "SignatureRequestUpdateRequest" @@ -36560,6 +36691,10 @@ var SignatureRequestApi = class { "Required parameter signatureRequestUpdateRequest was null or undefined when calling signatureRequestUpdate." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -36745,9 +36880,10 @@ var TeamApi = class { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TeamAddMemberExample.ts * @param teamAddMemberRequest * @param teamId The id of the team. + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async teamAddMember(teamAddMemberRequest, teamId, options = { headers: {} }) { + async teamAddMember(teamAddMemberRequest, teamId, idempotencyKey, options = { headers: {} }) { teamAddMemberRequest = deserializeIfNeeded10( teamAddMemberRequest, "TeamAddMemberRequest" @@ -36777,6 +36913,10 @@ var TeamApi = class { "string" ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -36872,9 +37012,10 @@ var TeamApi = class { * @summary Create Team * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TeamCreateExample.ts * @param teamCreateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async teamCreate(teamCreateRequest, options = { headers: {} }) { + async teamCreate(teamCreateRequest, idempotencyKey, options = { headers: {} }) { teamCreateRequest = deserializeIfNeeded10( teamCreateRequest, "TeamCreateRequest" @@ -36898,6 +37039,10 @@ var TeamApi = class { "Required parameter teamCreateRequest was null or undefined when calling teamCreate." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -37475,9 +37620,10 @@ var TeamApi = class { * @summary Remove User from Team * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TeamRemoveMemberExample.ts * @param teamRemoveMemberRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async teamRemoveMember(teamRemoveMemberRequest, options = { headers: {} }) { + async teamRemoveMember(teamRemoveMemberRequest, idempotencyKey, options = { headers: {} }) { teamRemoveMemberRequest = deserializeIfNeeded10( teamRemoveMemberRequest, "TeamRemoveMemberRequest" @@ -37501,6 +37647,10 @@ var TeamApi = class { "Required parameter teamRemoveMemberRequest was null or undefined when calling teamRemoveMember." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -37712,9 +37862,10 @@ var TeamApi = class { * @summary Update Team * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TeamUpdateExample.ts * @param teamUpdateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async teamUpdate(teamUpdateRequest, options = { headers: {} }) { + async teamUpdate(teamUpdateRequest, idempotencyKey, options = { headers: {} }) { teamUpdateRequest = deserializeIfNeeded10( teamUpdateRequest, "TeamUpdateRequest" @@ -37738,6 +37889,10 @@ var TeamApi = class { "Required parameter teamUpdateRequest was null or undefined when calling teamUpdate." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -37918,9 +38073,10 @@ var TemplateApi = class { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TemplateAddUserExample.ts * @param templateId The id of the Template to give the Account access to. * @param templateAddUserRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async templateAddUser(templateId, templateAddUserRequest, options = { headers: {} }) { + async templateAddUser(templateId, templateAddUserRequest, idempotencyKey, options = { headers: {} }) { templateAddUserRequest = deserializeIfNeeded11( templateAddUserRequest, "TemplateAddUserRequest" @@ -37952,6 +38108,10 @@ var TemplateApi = class { "Required parameter templateAddUserRequest was null or undefined when calling templateAddUser." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -38049,9 +38209,10 @@ var TemplateApi = class { * @summary Create Template * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TemplateCreateExample.ts * @param templateCreateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async templateCreate(templateCreateRequest, options = { headers: {} }) { + async templateCreate(templateCreateRequest, idempotencyKey, options = { headers: {} }) { templateCreateRequest = deserializeIfNeeded11( templateCreateRequest, "TemplateCreateRequest" @@ -38075,6 +38236,10 @@ var TemplateApi = class { "Required parameter templateCreateRequest was null or undefined when calling templateCreate." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -38172,9 +38337,10 @@ var TemplateApi = class { * @summary Create Embedded Template Draft * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TemplateCreateEmbeddedDraftExample.ts * @param templateCreateEmbeddedDraftRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async templateCreateEmbeddedDraft(templateCreateEmbeddedDraftRequest, options = { headers: {} }) { + async templateCreateEmbeddedDraft(templateCreateEmbeddedDraftRequest, idempotencyKey, options = { headers: {} }) { templateCreateEmbeddedDraftRequest = deserializeIfNeeded11( templateCreateEmbeddedDraftRequest, "TemplateCreateEmbeddedDraftRequest" @@ -38198,6 +38364,10 @@ var TemplateApi = class { "Required parameter templateCreateEmbeddedDraftRequest was null or undefined when calling templateCreateEmbeddedDraft." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -38295,9 +38465,10 @@ var TemplateApi = class { * @summary Delete Template * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TemplateDeleteExample.ts * @param templateId The id of the Template to delete. + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async templateDelete(templateId, options = { headers: {} }) { + async templateDelete(templateId, idempotencyKey, options = { headers: {} }) { const localVarPath = this.basePath + "/template/delete/{template_id}".replace( "{template_id}", encodeURIComponent(String(templateId)) @@ -38320,6 +38491,10 @@ var TemplateApi = class { "Required parameter templateId was null or undefined when calling templateDelete." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; let localVarRequestOptions = { @@ -38922,9 +39097,10 @@ var TemplateApi = class { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TemplateRemoveUserExample.ts * @param templateId The id of the Template to remove the Account\'s access to. * @param templateRemoveUserRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async templateRemoveUser(templateId, templateRemoveUserRequest, options = { headers: {} }) { + async templateRemoveUser(templateId, templateRemoveUserRequest, idempotencyKey, options = { headers: {} }) { templateRemoveUserRequest = deserializeIfNeeded11( templateRemoveUserRequest, "TemplateRemoveUserRequest" @@ -38956,6 +39132,10 @@ var TemplateApi = class { "Required parameter templateRemoveUserRequest was null or undefined when calling templateRemoveUser." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -39054,9 +39234,10 @@ var TemplateApi = class { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TemplateUpdateFilesExample.ts * @param templateId The ID of the template whose files to update. * @param templateUpdateFilesRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async templateUpdateFiles(templateId, templateUpdateFilesRequest, options = { headers: {} }) { + async templateUpdateFiles(templateId, templateUpdateFilesRequest, idempotencyKey, options = { headers: {} }) { templateUpdateFilesRequest = deserializeIfNeeded11( templateUpdateFilesRequest, "TemplateUpdateFilesRequest" @@ -39088,6 +39269,10 @@ var TemplateApi = class { "Required parameter templateUpdateFilesRequest was null or undefined when calling templateUpdateFiles." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -39272,9 +39457,10 @@ var UnclaimedDraftApi = class { * @summary Create Unclaimed Draft * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/UnclaimedDraftCreateExample.ts * @param unclaimedDraftCreateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async unclaimedDraftCreate(unclaimedDraftCreateRequest, options = { headers: {} }) { + async unclaimedDraftCreate(unclaimedDraftCreateRequest, idempotencyKey, options = { headers: {} }) { unclaimedDraftCreateRequest = deserializeIfNeeded12( unclaimedDraftCreateRequest, "UnclaimedDraftCreateRequest" @@ -39298,6 +39484,10 @@ var UnclaimedDraftApi = class { "Required parameter unclaimedDraftCreateRequest was null or undefined when calling unclaimedDraftCreate." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -39395,9 +39585,10 @@ var UnclaimedDraftApi = class { * @summary Create Embedded Unclaimed Draft * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.ts * @param unclaimedDraftCreateEmbeddedRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async unclaimedDraftCreateEmbedded(unclaimedDraftCreateEmbeddedRequest, options = { headers: {} }) { + async unclaimedDraftCreateEmbedded(unclaimedDraftCreateEmbeddedRequest, idempotencyKey, options = { headers: {} }) { unclaimedDraftCreateEmbeddedRequest = deserializeIfNeeded12( unclaimedDraftCreateEmbeddedRequest, "UnclaimedDraftCreateEmbeddedRequest" @@ -39421,6 +39612,10 @@ var UnclaimedDraftApi = class { "Required parameter unclaimedDraftCreateEmbeddedRequest was null or undefined when calling unclaimedDraftCreateEmbedded." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -39518,9 +39713,10 @@ var UnclaimedDraftApi = class { * @summary Create Embedded Unclaimed Draft with Template * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.ts * @param unclaimedDraftCreateEmbeddedWithTemplateRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async unclaimedDraftCreateEmbeddedWithTemplate(unclaimedDraftCreateEmbeddedWithTemplateRequest, options = { headers: {} }) { + async unclaimedDraftCreateEmbeddedWithTemplate(unclaimedDraftCreateEmbeddedWithTemplateRequest, idempotencyKey, options = { headers: {} }) { unclaimedDraftCreateEmbeddedWithTemplateRequest = deserializeIfNeeded12( unclaimedDraftCreateEmbeddedWithTemplateRequest, "UnclaimedDraftCreateEmbeddedWithTemplateRequest" @@ -39544,6 +39740,10 @@ var UnclaimedDraftApi = class { "Required parameter unclaimedDraftCreateEmbeddedWithTemplateRequest was null or undefined when calling unclaimedDraftCreateEmbeddedWithTemplate." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -39642,9 +39842,10 @@ var UnclaimedDraftApi = class { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/UnclaimedDraftEditAndResendExample.ts * @param signatureRequestId The ID of the signature request to edit and resend. * @param unclaimedDraftEditAndResendRequest + * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async unclaimedDraftEditAndResend(signatureRequestId, unclaimedDraftEditAndResendRequest, options = { headers: {} }) { + async unclaimedDraftEditAndResend(signatureRequestId, unclaimedDraftEditAndResendRequest, idempotencyKey, options = { headers: {} }) { unclaimedDraftEditAndResendRequest = deserializeIfNeeded12( unclaimedDraftEditAndResendRequest, "UnclaimedDraftEditAndResendRequest" @@ -39676,6 +39877,10 @@ var UnclaimedDraftApi = class { "Required parameter unclaimedDraftEditAndResendRequest was null or undefined when calling unclaimedDraftEditAndResend." ); } + localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( + idempotencyKey, + "string" + ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( diff --git a/sdks/node/docs/api/AccountApi.md b/sdks/node/docs/api/AccountApi.md index cb57cf6ee..c8d2c4f58 100644 --- a/sdks/node/docs/api/AccountApi.md +++ b/sdks/node/docs/api/AccountApi.md @@ -13,7 +13,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `accountCreate()` ```typescript -accountCreate(accountCreateRequest: AccountCreateRequest): AccountCreateResponse +accountCreate(accountCreateRequest: AccountCreateRequest, idempotencyKey: string): AccountCreateResponse ``` Create Account @@ -51,6 +51,7 @@ apiCaller.accountCreate( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **accountCreateRequest** | [**AccountCreateRequest**](../model/AccountCreateRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -126,7 +127,7 @@ apiCaller.accountGet().then(response => { ## `accountUpdate()` ```typescript -accountUpdate(accountUpdateRequest: AccountUpdateRequest): AccountGetResponse +accountUpdate(accountUpdateRequest: AccountUpdateRequest, idempotencyKey: string): AccountGetResponse ``` Update Account @@ -165,6 +166,7 @@ apiCaller.accountUpdate( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **accountUpdateRequest** | [**AccountUpdateRequest**](../model/AccountUpdateRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -186,7 +188,7 @@ apiCaller.accountUpdate( ## `accountVerify()` ```typescript -accountVerify(accountVerifyRequest: AccountVerifyRequest): AccountVerifyResponse +accountVerify(accountVerifyRequest: AccountVerifyRequest, idempotencyKey: string): AccountVerifyResponse ``` Verify Account @@ -224,6 +226,7 @@ apiCaller.accountVerify( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **accountVerifyRequest** | [**AccountVerifyRequest**](../model/AccountVerifyRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/node/docs/api/ApiAppApi.md b/sdks/node/docs/api/ApiAppApi.md index 8494edaf2..d25de8eb2 100644 --- a/sdks/node/docs/api/ApiAppApi.md +++ b/sdks/node/docs/api/ApiAppApi.md @@ -14,7 +14,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `apiAppCreate()` ```typescript -apiAppCreate(apiAppCreateRequest: ApiAppCreateRequest): ApiAppGetResponse +apiAppCreate(apiAppCreateRequest: ApiAppCreateRequest, idempotencyKey: string): ApiAppGetResponse ``` Create API App @@ -71,6 +71,7 @@ apiCaller.apiAppCreate( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **apiAppCreateRequest** | [**ApiAppCreateRequest**](../model/ApiAppCreateRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -257,7 +258,7 @@ apiCaller.apiAppList( ## `apiAppUpdate()` ```typescript -apiAppUpdate(clientId: string, apiAppUpdateRequest: ApiAppUpdateRequest): ApiAppGetResponse +apiAppUpdate(clientId: string, apiAppUpdateRequest: ApiAppUpdateRequest, idempotencyKey: string): ApiAppGetResponse ``` Update API App @@ -317,6 +318,7 @@ apiCaller.apiAppUpdate( | ------------- | ------------- | ------------- | ------------- | | **clientId** | **string**| The client id of the API App to update. | | | **apiAppUpdateRequest** | [**ApiAppUpdateRequest**](../model/ApiAppUpdateRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/node/docs/api/DocumentApi.md b/sdks/node/docs/api/DocumentApi.md index 75152c6a3..41c015fde 100644 --- a/sdks/node/docs/api/DocumentApi.md +++ b/sdks/node/docs/api/DocumentApi.md @@ -10,7 +10,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `documentDetectFields()` ```typescript -documentDetectFields(documentFieldDetectionRequest: DocumentFieldDetectionRequest): DocumentFieldDetectionResponse +documentDetectFields(documentFieldDetectionRequest: DocumentFieldDetectionRequest, idempotencyKey: string): DocumentFieldDetectionResponse ``` Detect Document Fields @@ -50,6 +50,7 @@ apiCaller.documentDetectFields( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **documentFieldDetectionRequest** | [**DocumentFieldDetectionRequest**](../model/DocumentFieldDetectionRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/node/docs/api/EmbeddedApi.md b/sdks/node/docs/api/EmbeddedApi.md index 2937ac3ef..3cebb1241 100644 --- a/sdks/node/docs/api/EmbeddedApi.md +++ b/sdks/node/docs/api/EmbeddedApi.md @@ -11,7 +11,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `embeddedEditUrl()` ```typescript -embeddedEditUrl(templateId: string, embeddedEditUrlRequest: EmbeddedEditUrlRequest): EmbeddedEditUrlResponse +embeddedEditUrl(templateId: string, embeddedEditUrlRequest: EmbeddedEditUrlRequest, idempotencyKey: string): EmbeddedEditUrlResponse ``` Get Embedded Template Edit URL @@ -57,6 +57,7 @@ apiCaller.embeddedEditUrl( | ------------- | ------------- | ------------- | ------------- | | **templateId** | **string**| The id of the template to edit. | | | **embeddedEditUrlRequest** | [**EmbeddedEditUrlRequest**](../model/EmbeddedEditUrlRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/node/docs/api/FaxApi.md b/sdks/node/docs/api/FaxApi.md index efc84eea6..92f4b82b3 100644 --- a/sdks/node/docs/api/FaxApi.md +++ b/sdks/node/docs/api/FaxApi.md @@ -230,7 +230,7 @@ apiCaller.faxList( ## `faxSend()` ```typescript -faxSend(faxSendRequest: FaxSendRequest): FaxGetResponse +faxSend(faxSendRequest: FaxSendRequest, idempotencyKey: string): FaxGetResponse ``` Send Fax @@ -276,6 +276,7 @@ apiCaller.faxSend( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **faxSendRequest** | [**FaxSendRequest**](../model/FaxSendRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/node/docs/api/FaxLineApi.md b/sdks/node/docs/api/FaxLineApi.md index 5c00c74cf..aab79538f 100644 --- a/sdks/node/docs/api/FaxLineApi.md +++ b/sdks/node/docs/api/FaxLineApi.md @@ -16,7 +16,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `faxLineAddUser()` ```typescript -faxLineAddUser(faxLineAddUserRequest: FaxLineAddUserRequest): FaxLineResponse +faxLineAddUser(faxLineAddUserRequest: FaxLineAddUserRequest, idempotencyKey: string): FaxLineResponse ``` Add Fax Line User @@ -54,6 +54,7 @@ apiCaller.faxLineAddUser( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **faxLineAddUserRequest** | [**FaxLineAddUserRequest**](../model/FaxLineAddUserRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -135,7 +136,7 @@ apiCaller.faxLineAreaCodeGet( ## `faxLineCreate()` ```typescript -faxLineCreate(faxLineCreateRequest: FaxLineCreateRequest): FaxLineResponse +faxLineCreate(faxLineCreateRequest: FaxLineCreateRequest, idempotencyKey: string): FaxLineResponse ``` Purchase Fax Line @@ -173,6 +174,7 @@ apiCaller.faxLineCreate( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **faxLineCreateRequest** | [**FaxLineCreateRequest**](../model/FaxLineCreateRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -364,7 +366,7 @@ apiCaller.faxLineList( ## `faxLineRemoveUser()` ```typescript -faxLineRemoveUser(faxLineRemoveUserRequest: FaxLineRemoveUserRequest): FaxLineResponse +faxLineRemoveUser(faxLineRemoveUserRequest: FaxLineRemoveUserRequest, idempotencyKey: string): FaxLineResponse ``` Remove Fax Line Access @@ -402,6 +404,7 @@ apiCaller.faxLineRemoveUser( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **faxLineRemoveUserRequest** | [**FaxLineRemoveUserRequest**](../model/FaxLineRemoveUserRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/node/docs/api/ReportApi.md b/sdks/node/docs/api/ReportApi.md index 005e83c85..2e124d26b 100644 --- a/sdks/node/docs/api/ReportApi.md +++ b/sdks/node/docs/api/ReportApi.md @@ -10,7 +10,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `reportCreate()` ```typescript -reportCreate(reportCreateRequest: ReportCreateRequest): ReportCreateResponse +reportCreate(reportCreateRequest: ReportCreateRequest, idempotencyKey: string): ReportCreateResponse ``` Create Report @@ -52,6 +52,7 @@ apiCaller.reportCreate( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **reportCreateRequest** | [**ReportCreateRequest**](../model/ReportCreateRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/node/docs/api/SignatureRequestApi.md b/sdks/node/docs/api/SignatureRequestApi.md index 47e5e9b86..954e2adcc 100644 --- a/sdks/node/docs/api/SignatureRequestApi.md +++ b/sdks/node/docs/api/SignatureRequestApi.md @@ -29,7 +29,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `signatureRequestBulkCreateEmbeddedWithTemplate()` ```typescript -signatureRequestBulkCreateEmbeddedWithTemplate(signatureRequestBulkCreateEmbeddedWithTemplateRequest: SignatureRequestBulkCreateEmbeddedWithTemplateRequest): BulkSendJobSendResponse +signatureRequestBulkCreateEmbeddedWithTemplate(signatureRequestBulkCreateEmbeddedWithTemplateRequest: SignatureRequestBulkCreateEmbeddedWithTemplateRequest, idempotencyKey: string): BulkSendJobSendResponse ``` Embedded Bulk Send with Template @@ -138,6 +138,7 @@ apiCaller.signatureRequestBulkCreateEmbeddedWithTemplate( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signatureRequestBulkCreateEmbeddedWithTemplateRequest** | [**SignatureRequestBulkCreateEmbeddedWithTemplateRequest**](../model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -159,7 +160,7 @@ apiCaller.signatureRequestBulkCreateEmbeddedWithTemplate( ## `signatureRequestBulkSendWithTemplate()` ```typescript -signatureRequestBulkSendWithTemplate(signatureRequestBulkSendWithTemplateRequest: SignatureRequestBulkSendWithTemplateRequest): BulkSendJobSendResponse +signatureRequestBulkSendWithTemplate(signatureRequestBulkSendWithTemplateRequest: SignatureRequestBulkSendWithTemplateRequest, idempotencyKey: string): BulkSendJobSendResponse ``` Bulk Send with Template @@ -268,6 +269,7 @@ apiCaller.signatureRequestBulkSendWithTemplate( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signatureRequestBulkSendWithTemplateRequest** | [**SignatureRequestBulkSendWithTemplateRequest**](../model/SignatureRequestBulkSendWithTemplateRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -289,7 +291,7 @@ apiCaller.signatureRequestBulkSendWithTemplate( ## `signatureRequestCancel()` ```typescript -signatureRequestCancel(signatureRequestId: string) +signatureRequestCancel(signatureRequestId: string, idempotencyKey: string) ``` Cancel Incomplete Signature Request @@ -321,6 +323,7 @@ apiCaller.signatureRequestCancel( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signatureRequestId** | **string**| The id of the incomplete SignatureRequest to cancel. | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -342,7 +345,7 @@ void (empty response body) ## `signatureRequestCreateEmbedded()` ```typescript -signatureRequestCreateEmbedded(signatureRequestCreateEmbeddedRequest: SignatureRequestCreateEmbeddedRequest): SignatureRequestGetResponse +signatureRequestCreateEmbedded(signatureRequestCreateEmbeddedRequest: SignatureRequestCreateEmbeddedRequest, idempotencyKey: string): SignatureRequestGetResponse ``` Create Embedded Signature Request @@ -419,6 +422,7 @@ apiCaller.signatureRequestCreateEmbedded( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signatureRequestCreateEmbeddedRequest** | [**SignatureRequestCreateEmbeddedRequest**](../model/SignatureRequestCreateEmbeddedRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -440,7 +444,7 @@ apiCaller.signatureRequestCreateEmbedded( ## `signatureRequestCreateEmbeddedWithTemplate()` ```typescript -signatureRequestCreateEmbeddedWithTemplate(signatureRequestCreateEmbeddedWithTemplateRequest: SignatureRequestCreateEmbeddedWithTemplateRequest): SignatureRequestGetResponse +signatureRequestCreateEmbeddedWithTemplate(signatureRequestCreateEmbeddedWithTemplateRequest: SignatureRequestCreateEmbeddedWithTemplateRequest, idempotencyKey: string): SignatureRequestGetResponse ``` Create Embedded Signature Request with Template @@ -505,6 +509,7 @@ apiCaller.signatureRequestCreateEmbeddedWithTemplate( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signatureRequestCreateEmbeddedWithTemplateRequest** | [**SignatureRequestCreateEmbeddedWithTemplateRequest**](../model/SignatureRequestCreateEmbeddedWithTemplateRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -526,7 +531,7 @@ apiCaller.signatureRequestCreateEmbeddedWithTemplate( ## `signatureRequestEdit()` ```typescript -signatureRequestEdit(signatureRequestId: string, signatureRequestEditRequest: SignatureRequestEditRequest): SignatureRequestGetResponse +signatureRequestEdit(signatureRequestId: string, signatureRequestEditRequest: SignatureRequestEditRequest, idempotencyKey: string): SignatureRequestGetResponse ``` Edit Signature Request @@ -612,6 +617,7 @@ apiCaller.signatureRequestEdit( | ------------- | ------------- | ------------- | ------------- | | **signatureRequestId** | **string**| The id of the SignatureRequest to edit. | | | **signatureRequestEditRequest** | [**SignatureRequestEditRequest**](../model/SignatureRequestEditRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -633,7 +639,7 @@ apiCaller.signatureRequestEdit( ## `signatureRequestEditEmbedded()` ```typescript -signatureRequestEditEmbedded(signatureRequestId: string, signatureRequestEditEmbeddedRequest: SignatureRequestEditEmbeddedRequest): SignatureRequestGetResponse +signatureRequestEditEmbedded(signatureRequestId: string, signatureRequestEditEmbeddedRequest: SignatureRequestEditEmbeddedRequest, idempotencyKey: string): SignatureRequestGetResponse ``` Edit Embedded Signature Request @@ -711,6 +717,7 @@ apiCaller.signatureRequestEditEmbedded( | ------------- | ------------- | ------------- | ------------- | | **signatureRequestId** | **string**| The id of the SignatureRequest to edit. | | | **signatureRequestEditEmbeddedRequest** | [**SignatureRequestEditEmbeddedRequest**](../model/SignatureRequestEditEmbeddedRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -732,7 +739,7 @@ apiCaller.signatureRequestEditEmbedded( ## `signatureRequestEditEmbeddedWithTemplate()` ```typescript -signatureRequestEditEmbeddedWithTemplate(signatureRequestId: string, signatureRequestEditEmbeddedWithTemplateRequest: SignatureRequestEditEmbeddedWithTemplateRequest): SignatureRequestGetResponse +signatureRequestEditEmbeddedWithTemplate(signatureRequestId: string, signatureRequestEditEmbeddedWithTemplateRequest: SignatureRequestEditEmbeddedWithTemplateRequest, idempotencyKey: string): SignatureRequestGetResponse ``` Edit Embedded Signature Request with Template @@ -798,6 +805,7 @@ apiCaller.signatureRequestEditEmbeddedWithTemplate( | ------------- | ------------- | ------------- | ------------- | | **signatureRequestId** | **string**| The id of the SignatureRequest to edit. | | | **signatureRequestEditEmbeddedWithTemplateRequest** | [**SignatureRequestEditEmbeddedWithTemplateRequest**](../model/SignatureRequestEditEmbeddedWithTemplateRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -819,7 +827,7 @@ apiCaller.signatureRequestEditEmbeddedWithTemplate( ## `signatureRequestEditWithTemplate()` ```typescript -signatureRequestEditWithTemplate(signatureRequestId: string, signatureRequestEditWithTemplateRequest: SignatureRequestEditWithTemplateRequest): SignatureRequestGetResponse +signatureRequestEditWithTemplate(signatureRequestId: string, signatureRequestEditWithTemplateRequest: SignatureRequestEditWithTemplateRequest, idempotencyKey: string): SignatureRequestGetResponse ``` Edit Signature Request With Template @@ -906,6 +914,7 @@ apiCaller.signatureRequestEditWithTemplate( | ------------- | ------------- | ------------- | ------------- | | **signatureRequestId** | **string**| The id of the SignatureRequest to edit. | | | **signatureRequestEditWithTemplateRequest** | [**SignatureRequestEditWithTemplateRequest**](../model/SignatureRequestEditWithTemplateRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1212,7 +1221,7 @@ apiCaller.signatureRequestList( ## `signatureRequestReleaseHold()` ```typescript -signatureRequestReleaseHold(signatureRequestId: string): SignatureRequestGetResponse +signatureRequestReleaseHold(signatureRequestId: string, idempotencyKey: string): SignatureRequestGetResponse ``` Release On-Hold Signature Request @@ -1246,6 +1255,7 @@ apiCaller.signatureRequestReleaseHold( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signatureRequestId** | **string**| The id of the SignatureRequest to release. | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1267,7 +1277,7 @@ apiCaller.signatureRequestReleaseHold( ## `signatureRequestRemind()` ```typescript -signatureRequestRemind(signatureRequestId: string, signatureRequestRemindRequest: SignatureRequestRemindRequest): SignatureRequestGetResponse +signatureRequestRemind(signatureRequestId: string, signatureRequestRemindRequest: SignatureRequestRemindRequest, idempotencyKey: string): SignatureRequestGetResponse ``` Send Request Reminder @@ -1307,6 +1317,7 @@ apiCaller.signatureRequestRemind( | ------------- | ------------- | ------------- | ------------- | | **signatureRequestId** | **string**| The id of the SignatureRequest to send a reminder for. | | | **signatureRequestRemindRequest** | [**SignatureRequestRemindRequest**](../model/SignatureRequestRemindRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1328,7 +1339,7 @@ apiCaller.signatureRequestRemind( ## `signatureRequestRemove()` ```typescript -signatureRequestRemove(signatureRequestId: string) +signatureRequestRemove(signatureRequestId: string, idempotencyKey: string) ``` Remove Signature Request Access @@ -1359,6 +1370,7 @@ apiCaller.signatureRequestRemove( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signatureRequestId** | **string**| The id of the SignatureRequest to remove. | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1380,7 +1392,7 @@ void (empty response body) ## `signatureRequestSend()` ```typescript -signatureRequestSend(signatureRequestSendRequest: SignatureRequestSendRequest): SignatureRequestGetResponse +signatureRequestSend(signatureRequestSendRequest: SignatureRequestSendRequest, idempotencyKey: string): SignatureRequestGetResponse ``` Send Signature Request @@ -1465,6 +1477,7 @@ apiCaller.signatureRequestSend( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signatureRequestSendRequest** | [**SignatureRequestSendRequest**](../model/SignatureRequestSendRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1486,7 +1499,7 @@ apiCaller.signatureRequestSend( ## `signatureRequestSendWithTemplate()` ```typescript -signatureRequestSendWithTemplate(signatureRequestSendWithTemplateRequest: SignatureRequestSendWithTemplateRequest): SignatureRequestGetResponse +signatureRequestSendWithTemplate(signatureRequestSendWithTemplateRequest: SignatureRequestSendWithTemplateRequest, idempotencyKey: string): SignatureRequestGetResponse ``` Send with Template @@ -1572,6 +1585,7 @@ apiCaller.signatureRequestSendWithTemplate( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signatureRequestSendWithTemplateRequest** | [**SignatureRequestSendWithTemplateRequest**](../model/SignatureRequestSendWithTemplateRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1593,7 +1607,7 @@ apiCaller.signatureRequestSendWithTemplate( ## `signatureRequestUpdate()` ```typescript -signatureRequestUpdate(signatureRequestId: string, signatureRequestUpdateRequest: SignatureRequestUpdateRequest): SignatureRequestGetResponse +signatureRequestUpdate(signatureRequestId: string, signatureRequestUpdateRequest: SignatureRequestUpdateRequest, idempotencyKey: string): SignatureRequestGetResponse ``` Update Signature Request @@ -1634,6 +1648,7 @@ apiCaller.signatureRequestUpdate( | ------------- | ------------- | ------------- | ------------- | | **signatureRequestId** | **string**| The id of the SignatureRequest to update. | | | **signatureRequestUpdateRequest** | [**SignatureRequestUpdateRequest**](../model/SignatureRequestUpdateRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/node/docs/api/TeamApi.md b/sdks/node/docs/api/TeamApi.md index 959d4cc46..e13d9fe46 100644 --- a/sdks/node/docs/api/TeamApi.md +++ b/sdks/node/docs/api/TeamApi.md @@ -19,7 +19,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `teamAddMember()` ```typescript -teamAddMember(teamAddMemberRequest: TeamAddMemberRequest, teamId: string): TeamGetResponse +teamAddMember(teamAddMemberRequest: TeamAddMemberRequest, teamId: string, idempotencyKey: string): TeamGetResponse ``` Add User to Team @@ -59,6 +59,7 @@ apiCaller.teamAddMember( | ------------- | ------------- | ------------- | ------------- | | **teamAddMemberRequest** | [**TeamAddMemberRequest**](../model/TeamAddMemberRequest.md)| | | | **teamId** | **string**| The id of the team. | [optional] | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -80,7 +81,7 @@ apiCaller.teamAddMember( ## `teamCreate()` ```typescript -teamCreate(teamCreateRequest: TeamCreateRequest): TeamGetResponse +teamCreate(teamCreateRequest: TeamCreateRequest, idempotencyKey: string): TeamGetResponse ``` Create Team @@ -118,6 +119,7 @@ apiCaller.teamCreate( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **teamCreateRequest** | [**TeamCreateRequest**](../model/TeamCreateRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -406,7 +408,7 @@ apiCaller.teamMembers( ## `teamRemoveMember()` ```typescript -teamRemoveMember(teamRemoveMemberRequest: TeamRemoveMemberRequest): TeamGetResponse +teamRemoveMember(teamRemoveMemberRequest: TeamRemoveMemberRequest, idempotencyKey: string): TeamGetResponse ``` Remove User from Team @@ -445,6 +447,7 @@ apiCaller.teamRemoveMember( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **teamRemoveMemberRequest** | [**TeamRemoveMemberRequest**](../model/TeamRemoveMemberRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -525,7 +528,7 @@ apiCaller.teamSubTeams( ## `teamUpdate()` ```typescript -teamUpdate(teamUpdateRequest: TeamUpdateRequest): TeamGetResponse +teamUpdate(teamUpdateRequest: TeamUpdateRequest, idempotencyKey: string): TeamGetResponse ``` Update Team @@ -563,6 +566,7 @@ apiCaller.teamUpdate( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **teamUpdateRequest** | [**TeamUpdateRequest**](../model/TeamUpdateRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/node/docs/api/TemplateApi.md b/sdks/node/docs/api/TemplateApi.md index a9ce2013a..63e05c070 100644 --- a/sdks/node/docs/api/TemplateApi.md +++ b/sdks/node/docs/api/TemplateApi.md @@ -20,7 +20,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `templateAddUser()` ```typescript -templateAddUser(templateId: string, templateAddUserRequest: TemplateAddUserRequest): TemplateGetResponse +templateAddUser(templateId: string, templateAddUserRequest: TemplateAddUserRequest, idempotencyKey: string): TemplateGetResponse ``` Add User to Template @@ -60,6 +60,7 @@ apiCaller.templateAddUser( | ------------- | ------------- | ------------- | ------------- | | **templateId** | **string**| The id of the Template to give the Account access to. | | | **templateAddUserRequest** | [**TemplateAddUserRequest**](../model/TemplateAddUserRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -81,7 +82,7 @@ apiCaller.templateAddUser( ## `templateCreate()` ```typescript -templateCreate(templateCreateRequest: TemplateCreateRequest): TemplateCreateResponse +templateCreate(templateCreateRequest: TemplateCreateRequest, idempotencyKey: string): TemplateCreateResponse ``` Create Template @@ -202,6 +203,7 @@ apiCaller.templateCreate( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **templateCreateRequest** | [**TemplateCreateRequest**](../model/TemplateCreateRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -223,7 +225,7 @@ apiCaller.templateCreate( ## `templateCreateEmbeddedDraft()` ```typescript -templateCreateEmbeddedDraft(templateCreateEmbeddedDraftRequest: TemplateCreateEmbeddedDraftRequest): TemplateCreateEmbeddedDraftResponse +templateCreateEmbeddedDraft(templateCreateEmbeddedDraftRequest: TemplateCreateEmbeddedDraftRequest, idempotencyKey: string): TemplateCreateEmbeddedDraftResponse ``` Create Embedded Template Draft @@ -308,6 +310,7 @@ apiCaller.templateCreateEmbeddedDraft( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **templateCreateEmbeddedDraftRequest** | [**TemplateCreateEmbeddedDraftRequest**](../model/TemplateCreateEmbeddedDraftRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -329,7 +332,7 @@ apiCaller.templateCreateEmbeddedDraft( ## `templateDelete()` ```typescript -templateDelete(templateId: string) +templateDelete(templateId: string, idempotencyKey: string) ``` Delete Template @@ -361,6 +364,7 @@ apiCaller.templateDelete( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **templateId** | **string**| The id of the Template to delete. | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -667,7 +671,7 @@ apiCaller.templateList( ## `templateRemoveUser()` ```typescript -templateRemoveUser(templateId: string, templateRemoveUserRequest: TemplateRemoveUserRequest): TemplateGetResponse +templateRemoveUser(templateId: string, templateRemoveUserRequest: TemplateRemoveUserRequest, idempotencyKey: string): TemplateGetResponse ``` Remove User from Template @@ -707,6 +711,7 @@ apiCaller.templateRemoveUser( | ------------- | ------------- | ------------- | ------------- | | **templateId** | **string**| The id of the Template to remove the Account\'s access to. | | | **templateRemoveUserRequest** | [**TemplateRemoveUserRequest**](../model/TemplateRemoveUserRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -728,7 +733,7 @@ apiCaller.templateRemoveUser( ## `templateUpdateFiles()` ```typescript -templateUpdateFiles(templateId: string, templateUpdateFilesRequest: TemplateUpdateFilesRequest): TemplateUpdateFilesResponse +templateUpdateFiles(templateId: string, templateUpdateFilesRequest: TemplateUpdateFilesRequest, idempotencyKey: string): TemplateUpdateFilesResponse ``` Update Template Files @@ -770,6 +775,7 @@ apiCaller.templateUpdateFiles( | ------------- | ------------- | ------------- | ------------- | | **templateId** | **string**| The ID of the template whose files to update. | | | **templateUpdateFilesRequest** | [**TemplateUpdateFilesRequest**](../model/TemplateUpdateFilesRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/node/docs/api/UnclaimedDraftApi.md b/sdks/node/docs/api/UnclaimedDraftApi.md index ef4bb1104..a02d71f96 100644 --- a/sdks/node/docs/api/UnclaimedDraftApi.md +++ b/sdks/node/docs/api/UnclaimedDraftApi.md @@ -13,7 +13,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `unclaimedDraftCreate()` ```typescript -unclaimedDraftCreate(unclaimedDraftCreateRequest: UnclaimedDraftCreateRequest): UnclaimedDraftCreateResponse +unclaimedDraftCreate(unclaimedDraftCreateRequest: UnclaimedDraftCreateRequest, idempotencyKey: string): UnclaimedDraftCreateResponse ``` Create Unclaimed Draft @@ -66,6 +66,7 @@ apiCaller.unclaimedDraftCreate( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **unclaimedDraftCreateRequest** | [**UnclaimedDraftCreateRequest**](../model/UnclaimedDraftCreateRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -87,7 +88,7 @@ apiCaller.unclaimedDraftCreate( ## `unclaimedDraftCreateEmbedded()` ```typescript -unclaimedDraftCreateEmbedded(unclaimedDraftCreateEmbeddedRequest: UnclaimedDraftCreateEmbeddedRequest): UnclaimedDraftCreateResponse +unclaimedDraftCreateEmbedded(unclaimedDraftCreateEmbeddedRequest: UnclaimedDraftCreateEmbeddedRequest, idempotencyKey: string): UnclaimedDraftCreateResponse ``` Create Embedded Unclaimed Draft @@ -130,6 +131,7 @@ apiCaller.unclaimedDraftCreateEmbedded( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **unclaimedDraftCreateEmbeddedRequest** | [**UnclaimedDraftCreateEmbeddedRequest**](../model/UnclaimedDraftCreateEmbeddedRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -151,7 +153,7 @@ apiCaller.unclaimedDraftCreateEmbedded( ## `unclaimedDraftCreateEmbeddedWithTemplate()` ```typescript -unclaimedDraftCreateEmbeddedWithTemplate(unclaimedDraftCreateEmbeddedWithTemplateRequest: UnclaimedDraftCreateEmbeddedWithTemplateRequest): UnclaimedDraftCreateResponse +unclaimedDraftCreateEmbeddedWithTemplate(unclaimedDraftCreateEmbeddedWithTemplateRequest: UnclaimedDraftCreateEmbeddedWithTemplateRequest, idempotencyKey: string): UnclaimedDraftCreateResponse ``` Create Embedded Unclaimed Draft with Template @@ -215,6 +217,7 @@ apiCaller.unclaimedDraftCreateEmbeddedWithTemplate( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **unclaimedDraftCreateEmbeddedWithTemplateRequest** | [**UnclaimedDraftCreateEmbeddedWithTemplateRequest**](../model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -236,7 +239,7 @@ apiCaller.unclaimedDraftCreateEmbeddedWithTemplate( ## `unclaimedDraftEditAndResend()` ```typescript -unclaimedDraftEditAndResend(signatureRequestId: string, unclaimedDraftEditAndResendRequest: UnclaimedDraftEditAndResendRequest): UnclaimedDraftCreateResponse +unclaimedDraftEditAndResend(signatureRequestId: string, unclaimedDraftEditAndResendRequest: UnclaimedDraftEditAndResendRequest, idempotencyKey: string): UnclaimedDraftCreateResponse ``` Edit and Resend Unclaimed Draft @@ -277,6 +280,7 @@ apiCaller.unclaimedDraftEditAndResend( | ------------- | ------------- | ------------- | ------------- | | **signatureRequestId** | **string**| The ID of the signature request to edit and resend. | | | **unclaimedDraftEditAndResendRequest** | [**UnclaimedDraftEditAndResendRequest**](../model/UnclaimedDraftEditAndResendRequest.md)| | | +| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/node/types/api/accountApi.d.ts b/sdks/node/types/api/accountApi.d.ts index 21a0bc1c4..b44e635af 100644 --- a/sdks/node/types/api/accountApi.d.ts +++ b/sdks/node/types/api/accountApi.d.ts @@ -24,8 +24,8 @@ export declare class AccountApi { set password(password: string); set accessToken(accessToken: string | (() => string)); addInterceptor(interceptor: Interceptor): void; - accountCreate(accountCreateRequest: AccountCreateRequest, options?: optionsI): Promise>; + accountCreate(accountCreateRequest: AccountCreateRequest, idempotencyKey?: string, options?: optionsI): Promise>; accountGet(accountId?: string, emailAddress?: string, options?: optionsI): Promise>; - accountUpdate(accountUpdateRequest: AccountUpdateRequest, options?: optionsI): Promise>; - accountVerify(accountVerifyRequest: AccountVerifyRequest, options?: optionsI): Promise>; + accountUpdate(accountUpdateRequest: AccountUpdateRequest, idempotencyKey?: string, options?: optionsI): Promise>; + accountVerify(accountVerifyRequest: AccountVerifyRequest, idempotencyKey?: string, options?: optionsI): Promise>; } diff --git a/sdks/node/types/api/apiAppApi.d.ts b/sdks/node/types/api/apiAppApi.d.ts index c07f8bea3..850ab7772 100644 --- a/sdks/node/types/api/apiAppApi.d.ts +++ b/sdks/node/types/api/apiAppApi.d.ts @@ -24,9 +24,9 @@ export declare class ApiAppApi { set password(password: string); set accessToken(accessToken: string | (() => string)); addInterceptor(interceptor: Interceptor): void; - apiAppCreate(apiAppCreateRequest: ApiAppCreateRequest, options?: optionsI): Promise>; + apiAppCreate(apiAppCreateRequest: ApiAppCreateRequest, idempotencyKey?: string, options?: optionsI): Promise>; apiAppDelete(clientId: string, options?: optionsI): Promise; apiAppGet(clientId: string, options?: optionsI): Promise>; apiAppList(page?: number, pageSize?: number, options?: optionsI): Promise>; - apiAppUpdate(clientId: string, apiAppUpdateRequest: ApiAppUpdateRequest, options?: optionsI): Promise>; + apiAppUpdate(clientId: string, apiAppUpdateRequest: ApiAppUpdateRequest, idempotencyKey?: string, options?: optionsI): Promise>; } diff --git a/sdks/node/types/api/documentApi.d.ts b/sdks/node/types/api/documentApi.d.ts index 0a815230a..5d56b5a8b 100644 --- a/sdks/node/types/api/documentApi.d.ts +++ b/sdks/node/types/api/documentApi.d.ts @@ -24,5 +24,5 @@ export declare class DocumentApi { set password(password: string); set accessToken(accessToken: string | (() => string)); addInterceptor(interceptor: Interceptor): void; - documentDetectFields(documentFieldDetectionRequest: DocumentFieldDetectionRequest, options?: optionsI): Promise>; + documentDetectFields(documentFieldDetectionRequest: DocumentFieldDetectionRequest, idempotencyKey?: string, options?: optionsI): Promise>; } diff --git a/sdks/node/types/api/embeddedApi.d.ts b/sdks/node/types/api/embeddedApi.d.ts index f66b6d702..0bf84bb85 100644 --- a/sdks/node/types/api/embeddedApi.d.ts +++ b/sdks/node/types/api/embeddedApi.d.ts @@ -24,6 +24,6 @@ export declare class EmbeddedApi { set password(password: string); set accessToken(accessToken: string | (() => string)); addInterceptor(interceptor: Interceptor): void; - embeddedEditUrl(templateId: string, embeddedEditUrlRequest: EmbeddedEditUrlRequest, options?: optionsI): Promise>; + embeddedEditUrl(templateId: string, embeddedEditUrlRequest: EmbeddedEditUrlRequest, idempotencyKey?: string, options?: optionsI): Promise>; embeddedSignUrl(signatureId: string, options?: optionsI): Promise>; } diff --git a/sdks/node/types/api/faxApi.d.ts b/sdks/node/types/api/faxApi.d.ts index f18e42259..e0d9f8398 100644 --- a/sdks/node/types/api/faxApi.d.ts +++ b/sdks/node/types/api/faxApi.d.ts @@ -28,5 +28,5 @@ export declare class FaxApi { faxFiles(faxId: string, options?: optionsI): Promise>; faxGet(faxId: string, options?: optionsI): Promise>; faxList(page?: number, pageSize?: number, options?: optionsI): Promise>; - faxSend(faxSendRequest: FaxSendRequest, options?: optionsI): Promise>; + faxSend(faxSendRequest: FaxSendRequest, idempotencyKey?: string, options?: optionsI): Promise>; } diff --git a/sdks/node/types/api/faxLineApi.d.ts b/sdks/node/types/api/faxLineApi.d.ts index 64b2a45a0..01e239972 100644 --- a/sdks/node/types/api/faxLineApi.d.ts +++ b/sdks/node/types/api/faxLineApi.d.ts @@ -24,11 +24,11 @@ export declare class FaxLineApi { set password(password: string); set accessToken(accessToken: string | (() => string)); addInterceptor(interceptor: Interceptor): void; - faxLineAddUser(faxLineAddUserRequest: FaxLineAddUserRequest, options?: optionsI): Promise>; + faxLineAddUser(faxLineAddUserRequest: FaxLineAddUserRequest, idempotencyKey?: string, options?: optionsI): Promise>; faxLineAreaCodeGet(country: "CA" | "US" | "UK", state?: "AK" | "AL" | "AR" | "AZ" | "CA" | "CO" | "CT" | "DC" | "DE" | "FL" | "GA" | "HI" | "IA" | "ID" | "IL" | "IN" | "KS" | "KY" | "LA" | "MA" | "MD" | "ME" | "MI" | "MN" | "MO" | "MS" | "MT" | "NC" | "ND" | "NE" | "NH" | "NJ" | "NM" | "NV" | "NY" | "OH" | "OK" | "OR" | "PA" | "RI" | "SC" | "SD" | "TN" | "TX" | "UT" | "VA" | "VT" | "WA" | "WI" | "WV" | "WY", province?: "AB" | "BC" | "MB" | "NB" | "NL" | "NT" | "NS" | "NU" | "ON" | "PE" | "QC" | "SK" | "YT", city?: string, options?: optionsI): Promise>; - faxLineCreate(faxLineCreateRequest: FaxLineCreateRequest, options?: optionsI): Promise>; + faxLineCreate(faxLineCreateRequest: FaxLineCreateRequest, idempotencyKey?: string, options?: optionsI): Promise>; faxLineDelete(faxLineDeleteRequest: FaxLineDeleteRequest, options?: optionsI): Promise; faxLineGet(number: string, options?: optionsI): Promise>; faxLineList(accountId?: string, page?: number, pageSize?: number, showTeamLines?: boolean, options?: optionsI): Promise>; - faxLineRemoveUser(faxLineRemoveUserRequest: FaxLineRemoveUserRequest, options?: optionsI): Promise>; + faxLineRemoveUser(faxLineRemoveUserRequest: FaxLineRemoveUserRequest, idempotencyKey?: string, options?: optionsI): Promise>; } diff --git a/sdks/node/types/api/reportApi.d.ts b/sdks/node/types/api/reportApi.d.ts index c32ef2358..2b74b0f34 100644 --- a/sdks/node/types/api/reportApi.d.ts +++ b/sdks/node/types/api/reportApi.d.ts @@ -24,5 +24,5 @@ export declare class ReportApi { set password(password: string); set accessToken(accessToken: string | (() => string)); addInterceptor(interceptor: Interceptor): void; - reportCreate(reportCreateRequest: ReportCreateRequest, options?: optionsI): Promise>; + reportCreate(reportCreateRequest: ReportCreateRequest, idempotencyKey?: string, options?: optionsI): Promise>; } diff --git a/sdks/node/types/api/signatureRequestApi.d.ts b/sdks/node/types/api/signatureRequestApi.d.ts index 54c21ae91..fd780acdb 100644 --- a/sdks/node/types/api/signatureRequestApi.d.ts +++ b/sdks/node/types/api/signatureRequestApi.d.ts @@ -24,24 +24,24 @@ export declare class SignatureRequestApi { set password(password: string); set accessToken(accessToken: string | (() => string)); addInterceptor(interceptor: Interceptor): void; - signatureRequestBulkCreateEmbeddedWithTemplate(signatureRequestBulkCreateEmbeddedWithTemplateRequest: SignatureRequestBulkCreateEmbeddedWithTemplateRequest, options?: optionsI): Promise>; - signatureRequestBulkSendWithTemplate(signatureRequestBulkSendWithTemplateRequest: SignatureRequestBulkSendWithTemplateRequest, options?: optionsI): Promise>; - signatureRequestCancel(signatureRequestId: string, options?: optionsI): Promise; - signatureRequestCreateEmbedded(signatureRequestCreateEmbeddedRequest: SignatureRequestCreateEmbeddedRequest, options?: optionsI): Promise>; - signatureRequestCreateEmbeddedWithTemplate(signatureRequestCreateEmbeddedWithTemplateRequest: SignatureRequestCreateEmbeddedWithTemplateRequest, options?: optionsI): Promise>; - signatureRequestEdit(signatureRequestId: string, signatureRequestEditRequest: SignatureRequestEditRequest, options?: optionsI): Promise>; - signatureRequestEditEmbedded(signatureRequestId: string, signatureRequestEditEmbeddedRequest: SignatureRequestEditEmbeddedRequest, options?: optionsI): Promise>; - signatureRequestEditEmbeddedWithTemplate(signatureRequestId: string, signatureRequestEditEmbeddedWithTemplateRequest: SignatureRequestEditEmbeddedWithTemplateRequest, options?: optionsI): Promise>; - signatureRequestEditWithTemplate(signatureRequestId: string, signatureRequestEditWithTemplateRequest: SignatureRequestEditWithTemplateRequest, options?: optionsI): Promise>; + signatureRequestBulkCreateEmbeddedWithTemplate(signatureRequestBulkCreateEmbeddedWithTemplateRequest: SignatureRequestBulkCreateEmbeddedWithTemplateRequest, idempotencyKey?: string, options?: optionsI): Promise>; + signatureRequestBulkSendWithTemplate(signatureRequestBulkSendWithTemplateRequest: SignatureRequestBulkSendWithTemplateRequest, idempotencyKey?: string, options?: optionsI): Promise>; + signatureRequestCancel(signatureRequestId: string, idempotencyKey?: string, options?: optionsI): Promise; + signatureRequestCreateEmbedded(signatureRequestCreateEmbeddedRequest: SignatureRequestCreateEmbeddedRequest, idempotencyKey?: string, options?: optionsI): Promise>; + signatureRequestCreateEmbeddedWithTemplate(signatureRequestCreateEmbeddedWithTemplateRequest: SignatureRequestCreateEmbeddedWithTemplateRequest, idempotencyKey?: string, options?: optionsI): Promise>; + signatureRequestEdit(signatureRequestId: string, signatureRequestEditRequest: SignatureRequestEditRequest, idempotencyKey?: string, options?: optionsI): Promise>; + signatureRequestEditEmbedded(signatureRequestId: string, signatureRequestEditEmbeddedRequest: SignatureRequestEditEmbeddedRequest, idempotencyKey?: string, options?: optionsI): Promise>; + signatureRequestEditEmbeddedWithTemplate(signatureRequestId: string, signatureRequestEditEmbeddedWithTemplateRequest: SignatureRequestEditEmbeddedWithTemplateRequest, idempotencyKey?: string, options?: optionsI): Promise>; + signatureRequestEditWithTemplate(signatureRequestId: string, signatureRequestEditWithTemplateRequest: SignatureRequestEditWithTemplateRequest, idempotencyKey?: string, options?: optionsI): Promise>; signatureRequestFiles(signatureRequestId: string, fileType?: "pdf" | "zip", options?: optionsI): Promise>; signatureRequestFilesAsDataUri(signatureRequestId: string, options?: optionsI): Promise>; signatureRequestFilesAsFileUrl(signatureRequestId: string, forceDownload?: number, options?: optionsI): Promise>; signatureRequestGet(signatureRequestId: string, options?: optionsI): Promise>; signatureRequestList(accountId?: string, page?: number, pageSize?: number, query?: string, options?: optionsI): Promise>; - signatureRequestReleaseHold(signatureRequestId: string, options?: optionsI): Promise>; - signatureRequestRemind(signatureRequestId: string, signatureRequestRemindRequest: SignatureRequestRemindRequest, options?: optionsI): Promise>; - signatureRequestRemove(signatureRequestId: string, options?: optionsI): Promise; - signatureRequestSend(signatureRequestSendRequest: SignatureRequestSendRequest, options?: optionsI): Promise>; - signatureRequestSendWithTemplate(signatureRequestSendWithTemplateRequest: SignatureRequestSendWithTemplateRequest, options?: optionsI): Promise>; - signatureRequestUpdate(signatureRequestId: string, signatureRequestUpdateRequest: SignatureRequestUpdateRequest, options?: optionsI): Promise>; + signatureRequestReleaseHold(signatureRequestId: string, idempotencyKey?: string, options?: optionsI): Promise>; + signatureRequestRemind(signatureRequestId: string, signatureRequestRemindRequest: SignatureRequestRemindRequest, idempotencyKey?: string, options?: optionsI): Promise>; + signatureRequestRemove(signatureRequestId: string, idempotencyKey?: string, options?: optionsI): Promise; + signatureRequestSend(signatureRequestSendRequest: SignatureRequestSendRequest, idempotencyKey?: string, options?: optionsI): Promise>; + signatureRequestSendWithTemplate(signatureRequestSendWithTemplateRequest: SignatureRequestSendWithTemplateRequest, idempotencyKey?: string, options?: optionsI): Promise>; + signatureRequestUpdate(signatureRequestId: string, signatureRequestUpdateRequest: SignatureRequestUpdateRequest, idempotencyKey?: string, options?: optionsI): Promise>; } diff --git a/sdks/node/types/api/teamApi.d.ts b/sdks/node/types/api/teamApi.d.ts index 31b05a503..90696d379 100644 --- a/sdks/node/types/api/teamApi.d.ts +++ b/sdks/node/types/api/teamApi.d.ts @@ -24,14 +24,14 @@ export declare class TeamApi { set password(password: string); set accessToken(accessToken: string | (() => string)); addInterceptor(interceptor: Interceptor): void; - teamAddMember(teamAddMemberRequest: TeamAddMemberRequest, teamId?: string, options?: optionsI): Promise>; - teamCreate(teamCreateRequest: TeamCreateRequest, options?: optionsI): Promise>; + teamAddMember(teamAddMemberRequest: TeamAddMemberRequest, teamId?: string, idempotencyKey?: string, options?: optionsI): Promise>; + teamCreate(teamCreateRequest: TeamCreateRequest, idempotencyKey?: string, options?: optionsI): Promise>; teamDelete(options?: optionsI): Promise; teamGet(options?: optionsI): Promise>; teamInfo(teamId?: string, options?: optionsI): Promise>; teamInvites(emailAddress?: string, options?: optionsI): Promise>; teamMembers(teamId: string, page?: number, pageSize?: number, options?: optionsI): Promise>; - teamRemoveMember(teamRemoveMemberRequest: TeamRemoveMemberRequest, options?: optionsI): Promise>; + teamRemoveMember(teamRemoveMemberRequest: TeamRemoveMemberRequest, idempotencyKey?: string, options?: optionsI): Promise>; teamSubTeams(teamId: string, page?: number, pageSize?: number, options?: optionsI): Promise>; - teamUpdate(teamUpdateRequest: TeamUpdateRequest, options?: optionsI): Promise>; + teamUpdate(teamUpdateRequest: TeamUpdateRequest, idempotencyKey?: string, options?: optionsI): Promise>; } diff --git a/sdks/node/types/api/templateApi.d.ts b/sdks/node/types/api/templateApi.d.ts index aeaa69a46..02d7f3dd8 100644 --- a/sdks/node/types/api/templateApi.d.ts +++ b/sdks/node/types/api/templateApi.d.ts @@ -24,15 +24,15 @@ export declare class TemplateApi { set password(password: string); set accessToken(accessToken: string | (() => string)); addInterceptor(interceptor: Interceptor): void; - templateAddUser(templateId: string, templateAddUserRequest: TemplateAddUserRequest, options?: optionsI): Promise>; - templateCreate(templateCreateRequest: TemplateCreateRequest, options?: optionsI): Promise>; - templateCreateEmbeddedDraft(templateCreateEmbeddedDraftRequest: TemplateCreateEmbeddedDraftRequest, options?: optionsI): Promise>; - templateDelete(templateId: string, options?: optionsI): Promise; + templateAddUser(templateId: string, templateAddUserRequest: TemplateAddUserRequest, idempotencyKey?: string, options?: optionsI): Promise>; + templateCreate(templateCreateRequest: TemplateCreateRequest, idempotencyKey?: string, options?: optionsI): Promise>; + templateCreateEmbeddedDraft(templateCreateEmbeddedDraftRequest: TemplateCreateEmbeddedDraftRequest, idempotencyKey?: string, options?: optionsI): Promise>; + templateDelete(templateId: string, idempotencyKey?: string, options?: optionsI): Promise; templateFiles(templateId: string, fileType?: "pdf" | "zip", options?: optionsI): Promise>; templateFilesAsDataUri(templateId: string, options?: optionsI): Promise>; templateFilesAsFileUrl(templateId: string, forceDownload?: number, options?: optionsI): Promise>; templateGet(templateId: string, options?: optionsI): Promise>; templateList(accountId?: string, page?: number, pageSize?: number, query?: string, options?: optionsI): Promise>; - templateRemoveUser(templateId: string, templateRemoveUserRequest: TemplateRemoveUserRequest, options?: optionsI): Promise>; - templateUpdateFiles(templateId: string, templateUpdateFilesRequest: TemplateUpdateFilesRequest, options?: optionsI): Promise>; + templateRemoveUser(templateId: string, templateRemoveUserRequest: TemplateRemoveUserRequest, idempotencyKey?: string, options?: optionsI): Promise>; + templateUpdateFiles(templateId: string, templateUpdateFilesRequest: TemplateUpdateFilesRequest, idempotencyKey?: string, options?: optionsI): Promise>; } diff --git a/sdks/node/types/api/unclaimedDraftApi.d.ts b/sdks/node/types/api/unclaimedDraftApi.d.ts index df8e1699c..3a8f93584 100644 --- a/sdks/node/types/api/unclaimedDraftApi.d.ts +++ b/sdks/node/types/api/unclaimedDraftApi.d.ts @@ -24,8 +24,8 @@ export declare class UnclaimedDraftApi { set password(password: string); set accessToken(accessToken: string | (() => string)); addInterceptor(interceptor: Interceptor): void; - unclaimedDraftCreate(unclaimedDraftCreateRequest: UnclaimedDraftCreateRequest, options?: optionsI): Promise>; - unclaimedDraftCreateEmbedded(unclaimedDraftCreateEmbeddedRequest: UnclaimedDraftCreateEmbeddedRequest, options?: optionsI): Promise>; - unclaimedDraftCreateEmbeddedWithTemplate(unclaimedDraftCreateEmbeddedWithTemplateRequest: UnclaimedDraftCreateEmbeddedWithTemplateRequest, options?: optionsI): Promise>; - unclaimedDraftEditAndResend(signatureRequestId: string, unclaimedDraftEditAndResendRequest: UnclaimedDraftEditAndResendRequest, options?: optionsI): Promise>; + unclaimedDraftCreate(unclaimedDraftCreateRequest: UnclaimedDraftCreateRequest, idempotencyKey?: string, options?: optionsI): Promise>; + unclaimedDraftCreateEmbedded(unclaimedDraftCreateEmbeddedRequest: UnclaimedDraftCreateEmbeddedRequest, idempotencyKey?: string, options?: optionsI): Promise>; + unclaimedDraftCreateEmbeddedWithTemplate(unclaimedDraftCreateEmbeddedWithTemplateRequest: UnclaimedDraftCreateEmbeddedWithTemplateRequest, idempotencyKey?: string, options?: optionsI): Promise>; + unclaimedDraftEditAndResend(signatureRequestId: string, unclaimedDraftEditAndResendRequest: UnclaimedDraftEditAndResendRequest, idempotencyKey?: string, options?: optionsI): Promise>; } diff --git a/sdks/php/docs/Api/AccountApi.md b/sdks/php/docs/Api/AccountApi.md index 6d0f700ef..fe3609b59 100644 --- a/sdks/php/docs/Api/AccountApi.md +++ b/sdks/php/docs/Api/AccountApi.md @@ -13,7 +13,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `accountCreate()` ```php -accountCreate($account_create_request): \Dropbox\Sign\Model\AccountCreateResponse +accountCreate($account_create_request, $idempotency_key): \Dropbox\Sign\Model\AccountCreateResponse ``` Create Account @@ -55,6 +55,7 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **account_create_request** | [**\Dropbox\Sign\Model\AccountCreateRequest**](../Model/AccountCreateRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -135,7 +136,7 @@ try { ## `accountUpdate()` ```php -accountUpdate($account_update_request): \Dropbox\Sign\Model\AccountGetResponse +accountUpdate($account_update_request, $idempotency_key): \Dropbox\Sign\Model\AccountGetResponse ``` Update Account @@ -178,6 +179,7 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **account_update_request** | [**\Dropbox\Sign\Model\AccountUpdateRequest**](../Model/AccountUpdateRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -199,7 +201,7 @@ try { ## `accountVerify()` ```php -accountVerify($account_verify_request): \Dropbox\Sign\Model\AccountVerifyResponse +accountVerify($account_verify_request, $idempotency_key): \Dropbox\Sign\Model\AccountVerifyResponse ``` Verify Account @@ -241,6 +243,7 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **account_verify_request** | [**\Dropbox\Sign\Model\AccountVerifyRequest**](../Model/AccountVerifyRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/php/docs/Api/ApiAppApi.md b/sdks/php/docs/Api/ApiAppApi.md index eb5e933ca..081c24fa3 100644 --- a/sdks/php/docs/Api/ApiAppApi.md +++ b/sdks/php/docs/Api/ApiAppApi.md @@ -14,7 +14,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `apiAppCreate()` ```php -apiAppCreate($api_app_create_request): \Dropbox\Sign\Model\ApiAppGetResponse +apiAppCreate($api_app_create_request, $idempotency_key): \Dropbox\Sign\Model\ApiAppGetResponse ``` Create API App @@ -73,6 +73,7 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **api_app_create_request** | [**\Dropbox\Sign\Model\ApiAppCreateRequest**](../Model/ApiAppCreateRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -274,7 +275,7 @@ try { ## `apiAppUpdate()` ```php -apiAppUpdate($client_id, $api_app_update_request): \Dropbox\Sign\Model\ApiAppGetResponse +apiAppUpdate($client_id, $api_app_update_request, $idempotency_key): \Dropbox\Sign\Model\ApiAppGetResponse ``` Update API App @@ -336,6 +337,7 @@ try { | ------------- | ------------- | ------------- | ------------- | | **client_id** | **string**| The client id of the API App to update. | | | **api_app_update_request** | [**\Dropbox\Sign\Model\ApiAppUpdateRequest**](../Model/ApiAppUpdateRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/php/docs/Api/DocumentApi.md b/sdks/php/docs/Api/DocumentApi.md index 668f2d3f8..47b48846b 100644 --- a/sdks/php/docs/Api/DocumentApi.md +++ b/sdks/php/docs/Api/DocumentApi.md @@ -10,7 +10,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `documentDetectFields()` ```php -documentDetectFields($document_field_detection_request): \Dropbox\Sign\Model\DocumentFieldDetectionResponse +documentDetectFields($document_field_detection_request, $idempotency_key): \Dropbox\Sign\Model\DocumentFieldDetectionResponse ``` Detect Document Fields @@ -54,6 +54,7 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **document_field_detection_request** | [**\Dropbox\Sign\Model\DocumentFieldDetectionRequest**](../Model/DocumentFieldDetectionRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/php/docs/Api/EmbeddedApi.md b/sdks/php/docs/Api/EmbeddedApi.md index c186d9420..89b7b07da 100644 --- a/sdks/php/docs/Api/EmbeddedApi.md +++ b/sdks/php/docs/Api/EmbeddedApi.md @@ -11,7 +11,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `embeddedEditUrl()` ```php -embeddedEditUrl($template_id, $embedded_edit_url_request): \Dropbox\Sign\Model\EmbeddedEditUrlResponse +embeddedEditUrl($template_id, $embedded_edit_url_request, $idempotency_key): \Dropbox\Sign\Model\EmbeddedEditUrlResponse ``` Get Embedded Template Edit URL @@ -61,6 +61,7 @@ try { | ------------- | ------------- | ------------- | ------------- | | **template_id** | **string**| The id of the template to edit. | | | **embedded_edit_url_request** | [**\Dropbox\Sign\Model\EmbeddedEditUrlRequest**](../Model/EmbeddedEditUrlRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/php/docs/Api/FaxApi.md b/sdks/php/docs/Api/FaxApi.md index aeb7a3949..b76a2ff5f 100644 --- a/sdks/php/docs/Api/FaxApi.md +++ b/sdks/php/docs/Api/FaxApi.md @@ -250,7 +250,7 @@ try { ## `faxSend()` ```php -faxSend($fax_send_request): \Dropbox\Sign\Model\FaxGetResponse +faxSend($fax_send_request, $idempotency_key): \Dropbox\Sign\Model\FaxGetResponse ``` Send Fax @@ -299,6 +299,7 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **fax_send_request** | [**\Dropbox\Sign\Model\FaxSendRequest**](../Model/FaxSendRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/php/docs/Api/FaxLineApi.md b/sdks/php/docs/Api/FaxLineApi.md index 123fd3c96..3209af065 100644 --- a/sdks/php/docs/Api/FaxLineApi.md +++ b/sdks/php/docs/Api/FaxLineApi.md @@ -16,7 +16,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `faxLineAddUser()` ```php -faxLineAddUser($fax_line_add_user_request): \Dropbox\Sign\Model\FaxLineResponse +faxLineAddUser($fax_line_add_user_request, $idempotency_key): \Dropbox\Sign\Model\FaxLineResponse ``` Add Fax Line User @@ -58,6 +58,7 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **fax_line_add_user_request** | [**\Dropbox\Sign\Model\FaxLineAddUserRequest**](../Model/FaxLineAddUserRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -141,7 +142,7 @@ try { ## `faxLineCreate()` ```php -faxLineCreate($fax_line_create_request): \Dropbox\Sign\Model\FaxLineResponse +faxLineCreate($fax_line_create_request, $idempotency_key): \Dropbox\Sign\Model\FaxLineResponse ``` Purchase Fax Line @@ -183,6 +184,7 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **fax_line_create_request** | [**\Dropbox\Sign\Model\FaxLineCreateRequest**](../Model/FaxLineCreateRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -387,7 +389,7 @@ try { ## `faxLineRemoveUser()` ```php -faxLineRemoveUser($fax_line_remove_user_request): \Dropbox\Sign\Model\FaxLineResponse +faxLineRemoveUser($fax_line_remove_user_request, $idempotency_key): \Dropbox\Sign\Model\FaxLineResponse ``` Remove Fax Line Access @@ -429,6 +431,7 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **fax_line_remove_user_request** | [**\Dropbox\Sign\Model\FaxLineRemoveUserRequest**](../Model/FaxLineRemoveUserRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/php/docs/Api/ReportApi.md b/sdks/php/docs/Api/ReportApi.md index 2609a12d9..36964b702 100644 --- a/sdks/php/docs/Api/ReportApi.md +++ b/sdks/php/docs/Api/ReportApi.md @@ -10,7 +10,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `reportCreate()` ```php -reportCreate($report_create_request): \Dropbox\Sign\Model\ReportCreateResponse +reportCreate($report_create_request, $idempotency_key): \Dropbox\Sign\Model\ReportCreateResponse ``` Create Report @@ -56,6 +56,7 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **report_create_request** | [**\Dropbox\Sign\Model\ReportCreateRequest**](../Model/ReportCreateRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/php/docs/Api/SignatureRequestApi.md b/sdks/php/docs/Api/SignatureRequestApi.md index 5e395b147..ddb48535b 100644 --- a/sdks/php/docs/Api/SignatureRequestApi.md +++ b/sdks/php/docs/Api/SignatureRequestApi.md @@ -29,7 +29,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `signatureRequestBulkCreateEmbeddedWithTemplate()` ```php -signatureRequestBulkCreateEmbeddedWithTemplate($signature_request_bulk_create_embedded_with_template_request): \Dropbox\Sign\Model\BulkSendJobSendResponse +signatureRequestBulkCreateEmbeddedWithTemplate($signature_request_bulk_create_embedded_with_template_request, $idempotency_key): \Dropbox\Sign\Model\BulkSendJobSendResponse ``` Embedded Bulk Send with Template @@ -135,6 +135,7 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signature_request_bulk_create_embedded_with_template_request** | [**\Dropbox\Sign\Model\SignatureRequestBulkCreateEmbeddedWithTemplateRequest**](../Model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -156,7 +157,7 @@ try { ## `signatureRequestBulkSendWithTemplate()` ```php -signatureRequestBulkSendWithTemplate($signature_request_bulk_send_with_template_request): \Dropbox\Sign\Model\BulkSendJobSendResponse +signatureRequestBulkSendWithTemplate($signature_request_bulk_send_with_template_request, $idempotency_key): \Dropbox\Sign\Model\BulkSendJobSendResponse ``` Bulk Send with Template @@ -262,6 +263,7 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signature_request_bulk_send_with_template_request** | [**\Dropbox\Sign\Model\SignatureRequestBulkSendWithTemplateRequest**](../Model/SignatureRequestBulkSendWithTemplateRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -283,7 +285,7 @@ try { ## `signatureRequestCancel()` ```php -signatureRequestCancel($signature_request_id) +signatureRequestCancel($signature_request_id, $idempotency_key) ``` Cancel Incomplete Signature Request @@ -320,6 +322,7 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signature_request_id** | **string**| The id of the incomplete SignatureRequest to cancel. | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -341,7 +344,7 @@ void (empty response body) ## `signatureRequestCreateEmbedded()` ```php -signatureRequestCreateEmbedded($signature_request_create_embedded_request): \Dropbox\Sign\Model\SignatureRequestGetResponse +signatureRequestCreateEmbedded($signature_request_create_embedded_request, $idempotency_key): \Dropbox\Sign\Model\SignatureRequestGetResponse ``` Create Embedded Signature Request @@ -418,6 +421,7 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signature_request_create_embedded_request** | [**\Dropbox\Sign\Model\SignatureRequestCreateEmbeddedRequest**](../Model/SignatureRequestCreateEmbeddedRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -439,7 +443,7 @@ try { ## `signatureRequestCreateEmbeddedWithTemplate()` ```php -signatureRequestCreateEmbeddedWithTemplate($signature_request_create_embedded_with_template_request): \Dropbox\Sign\Model\SignatureRequestGetResponse +signatureRequestCreateEmbeddedWithTemplate($signature_request_create_embedded_with_template_request, $idempotency_key): \Dropbox\Sign\Model\SignatureRequestGetResponse ``` Create Embedded Signature Request with Template @@ -506,6 +510,7 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signature_request_create_embedded_with_template_request** | [**\Dropbox\Sign\Model\SignatureRequestCreateEmbeddedWithTemplateRequest**](../Model/SignatureRequestCreateEmbeddedWithTemplateRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -527,7 +532,7 @@ try { ## `signatureRequestEdit()` ```php -signatureRequestEdit($signature_request_id, $signature_request_edit_request): \Dropbox\Sign\Model\SignatureRequestGetResponse +signatureRequestEdit($signature_request_id, $signature_request_edit_request, $idempotency_key): \Dropbox\Sign\Model\SignatureRequestGetResponse ``` Edit Signature Request @@ -614,6 +619,7 @@ try { | ------------- | ------------- | ------------- | ------------- | | **signature_request_id** | **string**| The id of the SignatureRequest to edit. | | | **signature_request_edit_request** | [**\Dropbox\Sign\Model\SignatureRequestEditRequest**](../Model/SignatureRequestEditRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -635,7 +641,7 @@ try { ## `signatureRequestEditEmbedded()` ```php -signatureRequestEditEmbedded($signature_request_id, $signature_request_edit_embedded_request): \Dropbox\Sign\Model\SignatureRequestGetResponse +signatureRequestEditEmbedded($signature_request_id, $signature_request_edit_embedded_request, $idempotency_key): \Dropbox\Sign\Model\SignatureRequestGetResponse ``` Edit Embedded Signature Request @@ -713,6 +719,7 @@ try { | ------------- | ------------- | ------------- | ------------- | | **signature_request_id** | **string**| The id of the SignatureRequest to edit. | | | **signature_request_edit_embedded_request** | [**\Dropbox\Sign\Model\SignatureRequestEditEmbeddedRequest**](../Model/SignatureRequestEditEmbeddedRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -734,7 +741,7 @@ try { ## `signatureRequestEditEmbeddedWithTemplate()` ```php -signatureRequestEditEmbeddedWithTemplate($signature_request_id, $signature_request_edit_embedded_with_template_request): \Dropbox\Sign\Model\SignatureRequestGetResponse +signatureRequestEditEmbeddedWithTemplate($signature_request_id, $signature_request_edit_embedded_with_template_request, $idempotency_key): \Dropbox\Sign\Model\SignatureRequestGetResponse ``` Edit Embedded Signature Request with Template @@ -802,6 +809,7 @@ try { | ------------- | ------------- | ------------- | ------------- | | **signature_request_id** | **string**| The id of the SignatureRequest to edit. | | | **signature_request_edit_embedded_with_template_request** | [**\Dropbox\Sign\Model\SignatureRequestEditEmbeddedWithTemplateRequest**](../Model/SignatureRequestEditEmbeddedWithTemplateRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -823,7 +831,7 @@ try { ## `signatureRequestEditWithTemplate()` ```php -signatureRequestEditWithTemplate($signature_request_id, $signature_request_edit_with_template_request): \Dropbox\Sign\Model\SignatureRequestGetResponse +signatureRequestEditWithTemplate($signature_request_id, $signature_request_edit_with_template_request, $idempotency_key): \Dropbox\Sign\Model\SignatureRequestGetResponse ``` Edit Signature Request With Template @@ -910,6 +918,7 @@ try { | ------------- | ------------- | ------------- | ------------- | | **signature_request_id** | **string**| The id of the SignatureRequest to edit. | | | **signature_request_edit_with_template_request** | [**\Dropbox\Sign\Model\SignatureRequestEditWithTemplateRequest**](../Model/SignatureRequestEditWithTemplateRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1239,7 +1248,7 @@ try { ## `signatureRequestReleaseHold()` ```php -signatureRequestReleaseHold($signature_request_id): \Dropbox\Sign\Model\SignatureRequestGetResponse +signatureRequestReleaseHold($signature_request_id, $idempotency_key): \Dropbox\Sign\Model\SignatureRequestGetResponse ``` Release On-Hold Signature Request @@ -1278,6 +1287,7 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signature_request_id** | **string**| The id of the SignatureRequest to release. | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1299,7 +1309,7 @@ try { ## `signatureRequestRemind()` ```php -signatureRequestRemind($signature_request_id, $signature_request_remind_request): \Dropbox\Sign\Model\SignatureRequestGetResponse +signatureRequestRemind($signature_request_id, $signature_request_remind_request, $idempotency_key): \Dropbox\Sign\Model\SignatureRequestGetResponse ``` Send Request Reminder @@ -1343,6 +1353,7 @@ try { | ------------- | ------------- | ------------- | ------------- | | **signature_request_id** | **string**| The id of the SignatureRequest to send a reminder for. | | | **signature_request_remind_request** | [**\Dropbox\Sign\Model\SignatureRequestRemindRequest**](../Model/SignatureRequestRemindRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1364,7 +1375,7 @@ try { ## `signatureRequestRemove()` ```php -signatureRequestRemove($signature_request_id) +signatureRequestRemove($signature_request_id, $idempotency_key) ``` Remove Signature Request Access @@ -1400,6 +1411,7 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signature_request_id** | **string**| The id of the SignatureRequest to remove. | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1421,7 +1433,7 @@ void (empty response body) ## `signatureRequestSend()` ```php -signatureRequestSend($signature_request_send_request): \Dropbox\Sign\Model\SignatureRequestGetResponse +signatureRequestSend($signature_request_send_request, $idempotency_key): \Dropbox\Sign\Model\SignatureRequestGetResponse ``` Send Signature Request @@ -1507,6 +1519,7 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signature_request_send_request** | [**\Dropbox\Sign\Model\SignatureRequestSendRequest**](../Model/SignatureRequestSendRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1528,7 +1541,7 @@ try { ## `signatureRequestSendWithTemplate()` ```php -signatureRequestSendWithTemplate($signature_request_send_with_template_request): \Dropbox\Sign\Model\SignatureRequestGetResponse +signatureRequestSendWithTemplate($signature_request_send_with_template_request, $idempotency_key): \Dropbox\Sign\Model\SignatureRequestGetResponse ``` Send with Template @@ -1614,6 +1627,7 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signature_request_send_with_template_request** | [**\Dropbox\Sign\Model\SignatureRequestSendWithTemplateRequest**](../Model/SignatureRequestSendWithTemplateRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1635,7 +1649,7 @@ try { ## `signatureRequestUpdate()` ```php -signatureRequestUpdate($signature_request_id, $signature_request_update_request): \Dropbox\Sign\Model\SignatureRequestGetResponse +signatureRequestUpdate($signature_request_id, $signature_request_update_request, $idempotency_key): \Dropbox\Sign\Model\SignatureRequestGetResponse ``` Update Signature Request @@ -1680,6 +1694,7 @@ try { | ------------- | ------------- | ------------- | ------------- | | **signature_request_id** | **string**| The id of the SignatureRequest to update. | | | **signature_request_update_request** | [**\Dropbox\Sign\Model\SignatureRequestUpdateRequest**](../Model/SignatureRequestUpdateRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/php/docs/Api/TeamApi.md b/sdks/php/docs/Api/TeamApi.md index 059036e13..7ac5d960c 100644 --- a/sdks/php/docs/Api/TeamApi.md +++ b/sdks/php/docs/Api/TeamApi.md @@ -19,7 +19,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `teamAddMember()` ```php -teamAddMember($team_add_member_request, $team_id): \Dropbox\Sign\Model\TeamGetResponse +teamAddMember($team_add_member_request, $team_id, $idempotency_key): \Dropbox\Sign\Model\TeamGetResponse ``` Add User to Team @@ -63,6 +63,7 @@ try { | ------------- | ------------- | ------------- | ------------- | | **team_add_member_request** | [**\Dropbox\Sign\Model\TeamAddMemberRequest**](../Model/TeamAddMemberRequest.md)| | | | **team_id** | **string**| The id of the team. | [optional] | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -84,7 +85,7 @@ try { ## `teamCreate()` ```php -teamCreate($team_create_request): \Dropbox\Sign\Model\TeamGetResponse +teamCreate($team_create_request, $idempotency_key): \Dropbox\Sign\Model\TeamGetResponse ``` Create Team @@ -126,6 +127,7 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **team_create_request** | [**\Dropbox\Sign\Model\TeamCreateRequest**](../Model/TeamCreateRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -439,7 +441,7 @@ try { ## `teamRemoveMember()` ```php -teamRemoveMember($team_remove_member_request): \Dropbox\Sign\Model\TeamGetResponse +teamRemoveMember($team_remove_member_request, $idempotency_key): \Dropbox\Sign\Model\TeamGetResponse ``` Remove User from Team @@ -482,6 +484,7 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **team_remove_member_request** | [**\Dropbox\Sign\Model\TeamRemoveMemberRequest**](../Model/TeamRemoveMemberRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -567,7 +570,7 @@ try { ## `teamUpdate()` ```php -teamUpdate($team_update_request): \Dropbox\Sign\Model\TeamGetResponse +teamUpdate($team_update_request, $idempotency_key): \Dropbox\Sign\Model\TeamGetResponse ``` Update Team @@ -609,6 +612,7 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **team_update_request** | [**\Dropbox\Sign\Model\TeamUpdateRequest**](../Model/TeamUpdateRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/php/docs/Api/TemplateApi.md b/sdks/php/docs/Api/TemplateApi.md index 2215c078c..84cdb8fcf 100644 --- a/sdks/php/docs/Api/TemplateApi.md +++ b/sdks/php/docs/Api/TemplateApi.md @@ -20,7 +20,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `templateAddUser()` ```php -templateAddUser($template_id, $template_add_user_request): \Dropbox\Sign\Model\TemplateGetResponse +templateAddUser($template_id, $template_add_user_request, $idempotency_key): \Dropbox\Sign\Model\TemplateGetResponse ``` Add User to Template @@ -64,6 +64,7 @@ try { | ------------- | ------------- | ------------- | ------------- | | **template_id** | **string**| The id of the Template to give the Account access to. | | | **template_add_user_request** | [**\Dropbox\Sign\Model\TemplateAddUserRequest**](../Model/TemplateAddUserRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -85,7 +86,7 @@ try { ## `templateCreate()` ```php -templateCreate($template_create_request): \Dropbox\Sign\Model\TemplateCreateResponse +templateCreate($template_create_request, $idempotency_key): \Dropbox\Sign\Model\TemplateCreateResponse ``` Create Template @@ -202,6 +203,7 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **template_create_request** | [**\Dropbox\Sign\Model\TemplateCreateRequest**](../Model/TemplateCreateRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -223,7 +225,7 @@ try { ## `templateCreateEmbeddedDraft()` ```php -templateCreateEmbeddedDraft($template_create_embedded_draft_request): \Dropbox\Sign\Model\TemplateCreateEmbeddedDraftResponse +templateCreateEmbeddedDraft($template_create_embedded_draft_request, $idempotency_key): \Dropbox\Sign\Model\TemplateCreateEmbeddedDraftResponse ``` Create Embedded Template Draft @@ -306,6 +308,7 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **template_create_embedded_draft_request** | [**\Dropbox\Sign\Model\TemplateCreateEmbeddedDraftRequest**](../Model/TemplateCreateEmbeddedDraftRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -327,7 +330,7 @@ try { ## `templateDelete()` ```php -templateDelete($template_id) +templateDelete($template_id, $idempotency_key) ``` Delete Template @@ -364,6 +367,7 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **template_id** | **string**| The id of the Template to delete. | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -692,7 +696,7 @@ try { ## `templateRemoveUser()` ```php -templateRemoveUser($template_id, $template_remove_user_request): \Dropbox\Sign\Model\TemplateGetResponse +templateRemoveUser($template_id, $template_remove_user_request, $idempotency_key): \Dropbox\Sign\Model\TemplateGetResponse ``` Remove User from Template @@ -736,6 +740,7 @@ try { | ------------- | ------------- | ------------- | ------------- | | **template_id** | **string**| The id of the Template to remove the Account's access to. | | | **template_remove_user_request** | [**\Dropbox\Sign\Model\TemplateRemoveUserRequest**](../Model/TemplateRemoveUserRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -757,7 +762,7 @@ try { ## `templateUpdateFiles()` ```php -templateUpdateFiles($template_id, $template_update_files_request): \Dropbox\Sign\Model\TemplateUpdateFilesResponse +templateUpdateFiles($template_id, $template_update_files_request, $idempotency_key): \Dropbox\Sign\Model\TemplateUpdateFilesResponse ``` Update Template Files @@ -802,6 +807,7 @@ try { | ------------- | ------------- | ------------- | ------------- | | **template_id** | **string**| The ID of the template whose files to update. | | | **template_update_files_request** | [**\Dropbox\Sign\Model\TemplateUpdateFilesRequest**](../Model/TemplateUpdateFilesRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/php/docs/Api/UnclaimedDraftApi.md b/sdks/php/docs/Api/UnclaimedDraftApi.md index caf17af70..b0eb083a7 100644 --- a/sdks/php/docs/Api/UnclaimedDraftApi.md +++ b/sdks/php/docs/Api/UnclaimedDraftApi.md @@ -13,7 +13,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `unclaimedDraftCreate()` ```php -unclaimedDraftCreate($unclaimed_draft_create_request): \Dropbox\Sign\Model\UnclaimedDraftCreateResponse +unclaimedDraftCreate($unclaimed_draft_create_request, $idempotency_key): \Dropbox\Sign\Model\UnclaimedDraftCreateResponse ``` Create Unclaimed Draft @@ -68,6 +68,7 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **unclaimed_draft_create_request** | [**\Dropbox\Sign\Model\UnclaimedDraftCreateRequest**](../Model/UnclaimedDraftCreateRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -89,7 +90,7 @@ try { ## `unclaimedDraftCreateEmbedded()` ```php -unclaimedDraftCreateEmbedded($unclaimed_draft_create_embedded_request): \Dropbox\Sign\Model\UnclaimedDraftCreateResponse +unclaimedDraftCreateEmbedded($unclaimed_draft_create_embedded_request, $idempotency_key): \Dropbox\Sign\Model\UnclaimedDraftCreateResponse ``` Create Embedded Unclaimed Draft @@ -135,6 +136,7 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **unclaimed_draft_create_embedded_request** | [**\Dropbox\Sign\Model\UnclaimedDraftCreateEmbeddedRequest**](../Model/UnclaimedDraftCreateEmbeddedRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -156,7 +158,7 @@ try { ## `unclaimedDraftCreateEmbeddedWithTemplate()` ```php -unclaimedDraftCreateEmbeddedWithTemplate($unclaimed_draft_create_embedded_with_template_request): \Dropbox\Sign\Model\UnclaimedDraftCreateResponse +unclaimedDraftCreateEmbeddedWithTemplate($unclaimed_draft_create_embedded_with_template_request, $idempotency_key): \Dropbox\Sign\Model\UnclaimedDraftCreateResponse ``` Create Embedded Unclaimed Draft with Template @@ -222,6 +224,7 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **unclaimed_draft_create_embedded_with_template_request** | [**\Dropbox\Sign\Model\UnclaimedDraftCreateEmbeddedWithTemplateRequest**](../Model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -243,7 +246,7 @@ try { ## `unclaimedDraftEditAndResend()` ```php -unclaimedDraftEditAndResend($signature_request_id, $unclaimed_draft_edit_and_resend_request): \Dropbox\Sign\Model\UnclaimedDraftCreateResponse +unclaimedDraftEditAndResend($signature_request_id, $unclaimed_draft_edit_and_resend_request, $idempotency_key): \Dropbox\Sign\Model\UnclaimedDraftCreateResponse ``` Edit and Resend Unclaimed Draft @@ -288,6 +291,7 @@ try { | ------------- | ------------- | ------------- | ------------- | | **signature_request_id** | **string**| The ID of the signature request to edit and resend. | | | **unclaimed_draft_edit_and_resend_request** | [**\Dropbox\Sign\Model\UnclaimedDraftEditAndResendRequest**](../Model/UnclaimedDraftEditAndResendRequest.md)| | | +| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/php/src/Api/AccountApi.php b/sdks/php/src/Api/AccountApi.php index 81a201bd4..2ff1da14e 100644 --- a/sdks/php/src/Api/AccountApi.php +++ b/sdks/php/src/Api/AccountApi.php @@ -145,14 +145,15 @@ public function getResponse() * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/AccountCreateExample.php * * @param Model\AccountCreateRequest $account_create_request account_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\AccountCreateResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function accountCreate(Model\AccountCreateRequest $account_create_request) + public function accountCreate(Model\AccountCreateRequest $account_create_request, ?string $idempotency_key = null) { - list($response) = $this->accountCreateWithHttpInfo($account_create_request); + list($response) = $this->accountCreateWithHttpInfo($account_create_request, $idempotency_key); return $response; } @@ -164,6 +165,7 @@ public function accountCreate(Model\AccountCreateRequest $account_create_request * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/AccountCreateExample.php * * @param Model\AccountCreateRequest $account_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['accountCreate'] to see the possible values for this operation * * @return array of Model\AccountCreateResponse, HTTP status code, HTTP response headers (array of strings) @@ -171,9 +173,9 @@ public function accountCreate(Model\AccountCreateRequest $account_create_request * @throws InvalidArgumentException * @deprecated Prefer to use ::accountCreate. This method will eventually become unavailable */ - public function accountCreateWithHttpInfo(Model\AccountCreateRequest $account_create_request, string $contentType = self::contentTypes['accountCreate'][0]) + public function accountCreateWithHttpInfo(Model\AccountCreateRequest $account_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['accountCreate'][0]) { - $request = $this->accountCreateRequest($account_create_request, $contentType); + $request = $this->accountCreateRequest($account_create_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -303,15 +305,16 @@ public function accountCreateWithHttpInfo(Model\AccountCreateRequest $account_cr * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/AccountCreateExample.php * * @param Model\AccountCreateRequest $account_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['accountCreate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::accountCreate. This method will eventually become unavailable */ - public function accountCreateAsync(Model\AccountCreateRequest $account_create_request, string $contentType = self::contentTypes['accountCreate'][0]) + public function accountCreateAsync(Model\AccountCreateRequest $account_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['accountCreate'][0]) { - return $this->accountCreateAsyncWithHttpInfo($account_create_request, $contentType) + return $this->accountCreateAsyncWithHttpInfo($account_create_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -327,16 +330,17 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/AccountCreateExample.php * * @param Model\AccountCreateRequest $account_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['accountCreate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::accountCreate. This method will eventually become unavailable */ - public function accountCreateAsyncWithHttpInfo(Model\AccountCreateRequest $account_create_request, string $contentType = self::contentTypes['accountCreate'][0]) + public function accountCreateAsyncWithHttpInfo(Model\AccountCreateRequest $account_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['accountCreate'][0]) { $returnType = '\Dropbox\Sign\Model\AccountCreateResponse'; - $request = $this->accountCreateRequest($account_create_request, $contentType); + $request = $this->accountCreateRequest($account_create_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -378,13 +382,14 @@ function ($exception) { * Create request for operation 'accountCreate' * * @param Model\AccountCreateRequest $account_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['accountCreate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::accountCreate. This method will eventually become unavailable */ - public function accountCreateRequest(Model\AccountCreateRequest $account_create_request, string $contentType = self::contentTypes['accountCreate'][0]) + public function accountCreateRequest(Model\AccountCreateRequest $account_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['accountCreate'][0]) { // verify the required parameter 'account_create_request' is set if ($account_create_request === null || (is_array($account_create_request) && count($account_create_request) === 0)) { @@ -393,6 +398,13 @@ public function accountCreateRequest(Model\AccountCreateRequest $account_create_ ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling AccountApi.accountCreate, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling AccountApi.accountCreate, must be bigger than or equal to 1.'); + } + $resourcePath = '/account/create'; $formParams = []; $queryParams = []; @@ -406,6 +418,11 @@ public function accountCreateRequest(Model\AccountCreateRequest $account_create_ $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -840,14 +857,15 @@ public function accountGetRequest(?string $account_id = null, ?string $email_add * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/AccountUpdateExample.php * * @param Model\AccountUpdateRequest $account_update_request account_update_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\AccountGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function accountUpdate(Model\AccountUpdateRequest $account_update_request) + public function accountUpdate(Model\AccountUpdateRequest $account_update_request, ?string $idempotency_key = null) { - list($response) = $this->accountUpdateWithHttpInfo($account_update_request); + list($response) = $this->accountUpdateWithHttpInfo($account_update_request, $idempotency_key); return $response; } @@ -859,6 +877,7 @@ public function accountUpdate(Model\AccountUpdateRequest $account_update_request * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/AccountUpdateExample.php * * @param Model\AccountUpdateRequest $account_update_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['accountUpdate'] to see the possible values for this operation * * @return array of Model\AccountGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -866,9 +885,9 @@ public function accountUpdate(Model\AccountUpdateRequest $account_update_request * @throws InvalidArgumentException * @deprecated Prefer to use ::accountUpdate. This method will eventually become unavailable */ - public function accountUpdateWithHttpInfo(Model\AccountUpdateRequest $account_update_request, string $contentType = self::contentTypes['accountUpdate'][0]) + public function accountUpdateWithHttpInfo(Model\AccountUpdateRequest $account_update_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['accountUpdate'][0]) { - $request = $this->accountUpdateRequest($account_update_request, $contentType); + $request = $this->accountUpdateRequest($account_update_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -998,15 +1017,16 @@ public function accountUpdateWithHttpInfo(Model\AccountUpdateRequest $account_up * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/AccountUpdateExample.php * * @param Model\AccountUpdateRequest $account_update_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['accountUpdate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::accountUpdate. This method will eventually become unavailable */ - public function accountUpdateAsync(Model\AccountUpdateRequest $account_update_request, string $contentType = self::contentTypes['accountUpdate'][0]) + public function accountUpdateAsync(Model\AccountUpdateRequest $account_update_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['accountUpdate'][0]) { - return $this->accountUpdateAsyncWithHttpInfo($account_update_request, $contentType) + return $this->accountUpdateAsyncWithHttpInfo($account_update_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -1022,16 +1042,17 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/AccountUpdateExample.php * * @param Model\AccountUpdateRequest $account_update_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['accountUpdate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::accountUpdate. This method will eventually become unavailable */ - public function accountUpdateAsyncWithHttpInfo(Model\AccountUpdateRequest $account_update_request, string $contentType = self::contentTypes['accountUpdate'][0]) + public function accountUpdateAsyncWithHttpInfo(Model\AccountUpdateRequest $account_update_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['accountUpdate'][0]) { $returnType = '\Dropbox\Sign\Model\AccountGetResponse'; - $request = $this->accountUpdateRequest($account_update_request, $contentType); + $request = $this->accountUpdateRequest($account_update_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1073,13 +1094,14 @@ function ($exception) { * Create request for operation 'accountUpdate' * * @param Model\AccountUpdateRequest $account_update_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['accountUpdate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::accountUpdate. This method will eventually become unavailable */ - public function accountUpdateRequest(Model\AccountUpdateRequest $account_update_request, string $contentType = self::contentTypes['accountUpdate'][0]) + public function accountUpdateRequest(Model\AccountUpdateRequest $account_update_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['accountUpdate'][0]) { // verify the required parameter 'account_update_request' is set if ($account_update_request === null || (is_array($account_update_request) && count($account_update_request) === 0)) { @@ -1088,6 +1110,13 @@ public function accountUpdateRequest(Model\AccountUpdateRequest $account_update_ ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling AccountApi.accountUpdate, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling AccountApi.accountUpdate, must be bigger than or equal to 1.'); + } + $resourcePath = '/account'; $formParams = []; $queryParams = []; @@ -1101,6 +1130,11 @@ public function accountUpdateRequest(Model\AccountUpdateRequest $account_update_ $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -1187,14 +1221,15 @@ public function accountUpdateRequest(Model\AccountUpdateRequest $account_update_ * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/AccountVerifyExample.php * * @param Model\AccountVerifyRequest $account_verify_request account_verify_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\AccountVerifyResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function accountVerify(Model\AccountVerifyRequest $account_verify_request) + public function accountVerify(Model\AccountVerifyRequest $account_verify_request, ?string $idempotency_key = null) { - list($response) = $this->accountVerifyWithHttpInfo($account_verify_request); + list($response) = $this->accountVerifyWithHttpInfo($account_verify_request, $idempotency_key); return $response; } @@ -1206,6 +1241,7 @@ public function accountVerify(Model\AccountVerifyRequest $account_verify_request * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/AccountVerifyExample.php * * @param Model\AccountVerifyRequest $account_verify_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['accountVerify'] to see the possible values for this operation * * @return array of Model\AccountVerifyResponse, HTTP status code, HTTP response headers (array of strings) @@ -1213,9 +1249,9 @@ public function accountVerify(Model\AccountVerifyRequest $account_verify_request * @throws InvalidArgumentException * @deprecated Prefer to use ::accountVerify. This method will eventually become unavailable */ - public function accountVerifyWithHttpInfo(Model\AccountVerifyRequest $account_verify_request, string $contentType = self::contentTypes['accountVerify'][0]) + public function accountVerifyWithHttpInfo(Model\AccountVerifyRequest $account_verify_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['accountVerify'][0]) { - $request = $this->accountVerifyRequest($account_verify_request, $contentType); + $request = $this->accountVerifyRequest($account_verify_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -1345,15 +1381,16 @@ public function accountVerifyWithHttpInfo(Model\AccountVerifyRequest $account_ve * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/AccountVerifyExample.php * * @param Model\AccountVerifyRequest $account_verify_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['accountVerify'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::accountVerify. This method will eventually become unavailable */ - public function accountVerifyAsync(Model\AccountVerifyRequest $account_verify_request, string $contentType = self::contentTypes['accountVerify'][0]) + public function accountVerifyAsync(Model\AccountVerifyRequest $account_verify_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['accountVerify'][0]) { - return $this->accountVerifyAsyncWithHttpInfo($account_verify_request, $contentType) + return $this->accountVerifyAsyncWithHttpInfo($account_verify_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -1369,16 +1406,17 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/AccountVerifyExample.php * * @param Model\AccountVerifyRequest $account_verify_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['accountVerify'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::accountVerify. This method will eventually become unavailable */ - public function accountVerifyAsyncWithHttpInfo(Model\AccountVerifyRequest $account_verify_request, string $contentType = self::contentTypes['accountVerify'][0]) + public function accountVerifyAsyncWithHttpInfo(Model\AccountVerifyRequest $account_verify_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['accountVerify'][0]) { $returnType = '\Dropbox\Sign\Model\AccountVerifyResponse'; - $request = $this->accountVerifyRequest($account_verify_request, $contentType); + $request = $this->accountVerifyRequest($account_verify_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1420,13 +1458,14 @@ function ($exception) { * Create request for operation 'accountVerify' * * @param Model\AccountVerifyRequest $account_verify_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['accountVerify'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::accountVerify. This method will eventually become unavailable */ - public function accountVerifyRequest(Model\AccountVerifyRequest $account_verify_request, string $contentType = self::contentTypes['accountVerify'][0]) + public function accountVerifyRequest(Model\AccountVerifyRequest $account_verify_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['accountVerify'][0]) { // verify the required parameter 'account_verify_request' is set if ($account_verify_request === null || (is_array($account_verify_request) && count($account_verify_request) === 0)) { @@ -1435,6 +1474,13 @@ public function accountVerifyRequest(Model\AccountVerifyRequest $account_verify_ ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling AccountApi.accountVerify, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling AccountApi.accountVerify, must be bigger than or equal to 1.'); + } + $resourcePath = '/account/verify'; $formParams = []; $queryParams = []; @@ -1448,6 +1494,11 @@ public function accountVerifyRequest(Model\AccountVerifyRequest $account_verify_ $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, diff --git a/sdks/php/src/Api/ApiAppApi.php b/sdks/php/src/Api/ApiAppApi.php index 16c1a3617..a57623014 100644 --- a/sdks/php/src/Api/ApiAppApi.php +++ b/sdks/php/src/Api/ApiAppApi.php @@ -150,14 +150,15 @@ public function getResponse() * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/ApiAppCreateExample.php * * @param Model\ApiAppCreateRequest $api_app_create_request api_app_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\ApiAppGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function apiAppCreate(Model\ApiAppCreateRequest $api_app_create_request) + public function apiAppCreate(Model\ApiAppCreateRequest $api_app_create_request, ?string $idempotency_key = null) { - list($response) = $this->apiAppCreateWithHttpInfo($api_app_create_request); + list($response) = $this->apiAppCreateWithHttpInfo($api_app_create_request, $idempotency_key); return $response; } @@ -169,6 +170,7 @@ public function apiAppCreate(Model\ApiAppCreateRequest $api_app_create_request) * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/ApiAppCreateExample.php * * @param Model\ApiAppCreateRequest $api_app_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['apiAppCreate'] to see the possible values for this operation * * @return array of Model\ApiAppGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -176,9 +178,9 @@ public function apiAppCreate(Model\ApiAppCreateRequest $api_app_create_request) * @throws InvalidArgumentException * @deprecated Prefer to use ::apiAppCreate. This method will eventually become unavailable */ - public function apiAppCreateWithHttpInfo(Model\ApiAppCreateRequest $api_app_create_request, string $contentType = self::contentTypes['apiAppCreate'][0]) + public function apiAppCreateWithHttpInfo(Model\ApiAppCreateRequest $api_app_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['apiAppCreate'][0]) { - $request = $this->apiAppCreateRequest($api_app_create_request, $contentType); + $request = $this->apiAppCreateRequest($api_app_create_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -308,15 +310,16 @@ public function apiAppCreateWithHttpInfo(Model\ApiAppCreateRequest $api_app_crea * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/ApiAppCreateExample.php * * @param Model\ApiAppCreateRequest $api_app_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['apiAppCreate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::apiAppCreate. This method will eventually become unavailable */ - public function apiAppCreateAsync(Model\ApiAppCreateRequest $api_app_create_request, string $contentType = self::contentTypes['apiAppCreate'][0]) + public function apiAppCreateAsync(Model\ApiAppCreateRequest $api_app_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['apiAppCreate'][0]) { - return $this->apiAppCreateAsyncWithHttpInfo($api_app_create_request, $contentType) + return $this->apiAppCreateAsyncWithHttpInfo($api_app_create_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -332,16 +335,17 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/ApiAppCreateExample.php * * @param Model\ApiAppCreateRequest $api_app_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['apiAppCreate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::apiAppCreate. This method will eventually become unavailable */ - public function apiAppCreateAsyncWithHttpInfo(Model\ApiAppCreateRequest $api_app_create_request, string $contentType = self::contentTypes['apiAppCreate'][0]) + public function apiAppCreateAsyncWithHttpInfo(Model\ApiAppCreateRequest $api_app_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['apiAppCreate'][0]) { $returnType = '\Dropbox\Sign\Model\ApiAppGetResponse'; - $request = $this->apiAppCreateRequest($api_app_create_request, $contentType); + $request = $this->apiAppCreateRequest($api_app_create_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -383,13 +387,14 @@ function ($exception) { * Create request for operation 'apiAppCreate' * * @param Model\ApiAppCreateRequest $api_app_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['apiAppCreate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::apiAppCreate. This method will eventually become unavailable */ - public function apiAppCreateRequest(Model\ApiAppCreateRequest $api_app_create_request, string $contentType = self::contentTypes['apiAppCreate'][0]) + public function apiAppCreateRequest(Model\ApiAppCreateRequest $api_app_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['apiAppCreate'][0]) { // verify the required parameter 'api_app_create_request' is set if ($api_app_create_request === null || (is_array($api_app_create_request) && count($api_app_create_request) === 0)) { @@ -398,6 +403,13 @@ public function apiAppCreateRequest(Model\ApiAppCreateRequest $api_app_create_re ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling ApiAppApi.apiAppCreate, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling ApiAppApi.apiAppCreate, must be bigger than or equal to 1.'); + } + $resourcePath = '/api_app'; $formParams = []; $queryParams = []; @@ -411,6 +423,11 @@ public function apiAppCreateRequest(Model\ApiAppCreateRequest $api_app_create_re $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -1425,14 +1442,15 @@ public function apiAppListRequest(?int $page = 1, ?int $page_size = 20, string $ * * @param string $client_id The client id of the API App to update. (required) * @param Model\ApiAppUpdateRequest $api_app_update_request api_app_update_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\ApiAppGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function apiAppUpdate(string $client_id, Model\ApiAppUpdateRequest $api_app_update_request) + public function apiAppUpdate(string $client_id, Model\ApiAppUpdateRequest $api_app_update_request, ?string $idempotency_key = null) { - list($response) = $this->apiAppUpdateWithHttpInfo($client_id, $api_app_update_request); + list($response) = $this->apiAppUpdateWithHttpInfo($client_id, $api_app_update_request, $idempotency_key); return $response; } @@ -1445,6 +1463,7 @@ public function apiAppUpdate(string $client_id, Model\ApiAppUpdateRequest $api_a * * @param string $client_id The client id of the API App to update. (required) * @param Model\ApiAppUpdateRequest $api_app_update_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['apiAppUpdate'] to see the possible values for this operation * * @return array of Model\ApiAppGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -1452,9 +1471,9 @@ public function apiAppUpdate(string $client_id, Model\ApiAppUpdateRequest $api_a * @throws InvalidArgumentException * @deprecated Prefer to use ::apiAppUpdate. This method will eventually become unavailable */ - public function apiAppUpdateWithHttpInfo(string $client_id, Model\ApiAppUpdateRequest $api_app_update_request, string $contentType = self::contentTypes['apiAppUpdate'][0]) + public function apiAppUpdateWithHttpInfo(string $client_id, Model\ApiAppUpdateRequest $api_app_update_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['apiAppUpdate'][0]) { - $request = $this->apiAppUpdateRequest($client_id, $api_app_update_request, $contentType); + $request = $this->apiAppUpdateRequest($client_id, $api_app_update_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -1585,15 +1604,16 @@ public function apiAppUpdateWithHttpInfo(string $client_id, Model\ApiAppUpdateRe * * @param string $client_id The client id of the API App to update. (required) * @param Model\ApiAppUpdateRequest $api_app_update_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['apiAppUpdate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::apiAppUpdate. This method will eventually become unavailable */ - public function apiAppUpdateAsync(string $client_id, Model\ApiAppUpdateRequest $api_app_update_request, string $contentType = self::contentTypes['apiAppUpdate'][0]) + public function apiAppUpdateAsync(string $client_id, Model\ApiAppUpdateRequest $api_app_update_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['apiAppUpdate'][0]) { - return $this->apiAppUpdateAsyncWithHttpInfo($client_id, $api_app_update_request, $contentType) + return $this->apiAppUpdateAsyncWithHttpInfo($client_id, $api_app_update_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -1610,16 +1630,17 @@ function ($response) { * * @param string $client_id The client id of the API App to update. (required) * @param Model\ApiAppUpdateRequest $api_app_update_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['apiAppUpdate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::apiAppUpdate. This method will eventually become unavailable */ - public function apiAppUpdateAsyncWithHttpInfo(string $client_id, Model\ApiAppUpdateRequest $api_app_update_request, string $contentType = self::contentTypes['apiAppUpdate'][0]) + public function apiAppUpdateAsyncWithHttpInfo(string $client_id, Model\ApiAppUpdateRequest $api_app_update_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['apiAppUpdate'][0]) { $returnType = '\Dropbox\Sign\Model\ApiAppGetResponse'; - $request = $this->apiAppUpdateRequest($client_id, $api_app_update_request, $contentType); + $request = $this->apiAppUpdateRequest($client_id, $api_app_update_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1662,13 +1683,14 @@ function ($exception) { * * @param string $client_id The client id of the API App to update. (required) * @param Model\ApiAppUpdateRequest $api_app_update_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['apiAppUpdate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::apiAppUpdate. This method will eventually become unavailable */ - public function apiAppUpdateRequest(string $client_id, Model\ApiAppUpdateRequest $api_app_update_request, string $contentType = self::contentTypes['apiAppUpdate'][0]) + public function apiAppUpdateRequest(string $client_id, Model\ApiAppUpdateRequest $api_app_update_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['apiAppUpdate'][0]) { // verify the required parameter 'client_id' is set if ($client_id === null || (is_array($client_id) && count($client_id) === 0)) { @@ -1684,6 +1706,13 @@ public function apiAppUpdateRequest(string $client_id, Model\ApiAppUpdateRequest ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling ApiAppApi.apiAppUpdate, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling ApiAppApi.apiAppUpdate, must be bigger than or equal to 1.'); + } + $resourcePath = '/api_app/{client_id}'; $formParams = []; $queryParams = []; @@ -1697,6 +1726,11 @@ public function apiAppUpdateRequest(string $client_id, Model\ApiAppUpdateRequest $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + // path params if ($client_id !== null) { $resourcePath = str_replace( diff --git a/sdks/php/src/Api/DocumentApi.php b/sdks/php/src/Api/DocumentApi.php index ca075b351..3788f4a6d 100644 --- a/sdks/php/src/Api/DocumentApi.php +++ b/sdks/php/src/Api/DocumentApi.php @@ -137,14 +137,15 @@ public function getResponse() * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/DocumentDetectFieldsExample.php * * @param Model\DocumentFieldDetectionRequest $document_field_detection_request document_field_detection_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\DocumentFieldDetectionResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function documentDetectFields(Model\DocumentFieldDetectionRequest $document_field_detection_request) + public function documentDetectFields(Model\DocumentFieldDetectionRequest $document_field_detection_request, ?string $idempotency_key = null) { - list($response) = $this->documentDetectFieldsWithHttpInfo($document_field_detection_request); + list($response) = $this->documentDetectFieldsWithHttpInfo($document_field_detection_request, $idempotency_key); return $response; } @@ -156,6 +157,7 @@ public function documentDetectFields(Model\DocumentFieldDetectionRequest $docume * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/DocumentDetectFieldsExample.php * * @param Model\DocumentFieldDetectionRequest $document_field_detection_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['documentDetectFields'] to see the possible values for this operation * * @return array of Model\DocumentFieldDetectionResponse, HTTP status code, HTTP response headers (array of strings) @@ -163,9 +165,9 @@ public function documentDetectFields(Model\DocumentFieldDetectionRequest $docume * @throws InvalidArgumentException * @deprecated Prefer to use ::documentDetectFields. This method will eventually become unavailable */ - public function documentDetectFieldsWithHttpInfo(Model\DocumentFieldDetectionRequest $document_field_detection_request, string $contentType = self::contentTypes['documentDetectFields'][0]) + public function documentDetectFieldsWithHttpInfo(Model\DocumentFieldDetectionRequest $document_field_detection_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['documentDetectFields'][0]) { - $request = $this->documentDetectFieldsRequest($document_field_detection_request, $contentType); + $request = $this->documentDetectFieldsRequest($document_field_detection_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -295,15 +297,16 @@ public function documentDetectFieldsWithHttpInfo(Model\DocumentFieldDetectionReq * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/DocumentDetectFieldsExample.php * * @param Model\DocumentFieldDetectionRequest $document_field_detection_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['documentDetectFields'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::documentDetectFields. This method will eventually become unavailable */ - public function documentDetectFieldsAsync(Model\DocumentFieldDetectionRequest $document_field_detection_request, string $contentType = self::contentTypes['documentDetectFields'][0]) + public function documentDetectFieldsAsync(Model\DocumentFieldDetectionRequest $document_field_detection_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['documentDetectFields'][0]) { - return $this->documentDetectFieldsAsyncWithHttpInfo($document_field_detection_request, $contentType) + return $this->documentDetectFieldsAsyncWithHttpInfo($document_field_detection_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -319,16 +322,17 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/DocumentDetectFieldsExample.php * * @param Model\DocumentFieldDetectionRequest $document_field_detection_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['documentDetectFields'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::documentDetectFields. This method will eventually become unavailable */ - public function documentDetectFieldsAsyncWithHttpInfo(Model\DocumentFieldDetectionRequest $document_field_detection_request, string $contentType = self::contentTypes['documentDetectFields'][0]) + public function documentDetectFieldsAsyncWithHttpInfo(Model\DocumentFieldDetectionRequest $document_field_detection_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['documentDetectFields'][0]) { $returnType = '\Dropbox\Sign\Model\DocumentFieldDetectionResponse'; - $request = $this->documentDetectFieldsRequest($document_field_detection_request, $contentType); + $request = $this->documentDetectFieldsRequest($document_field_detection_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -370,13 +374,14 @@ function ($exception) { * Create request for operation 'documentDetectFields' * * @param Model\DocumentFieldDetectionRequest $document_field_detection_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['documentDetectFields'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::documentDetectFields. This method will eventually become unavailable */ - public function documentDetectFieldsRequest(Model\DocumentFieldDetectionRequest $document_field_detection_request, string $contentType = self::contentTypes['documentDetectFields'][0]) + public function documentDetectFieldsRequest(Model\DocumentFieldDetectionRequest $document_field_detection_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['documentDetectFields'][0]) { // verify the required parameter 'document_field_detection_request' is set if ($document_field_detection_request === null || (is_array($document_field_detection_request) && count($document_field_detection_request) === 0)) { @@ -385,6 +390,13 @@ public function documentDetectFieldsRequest(Model\DocumentFieldDetectionRequest ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling DocumentApi.documentDetectFields, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling DocumentApi.documentDetectFields, must be bigger than or equal to 1.'); + } + $resourcePath = '/document/detect_fields'; $formParams = []; $queryParams = []; @@ -398,6 +410,11 @@ public function documentDetectFieldsRequest(Model\DocumentFieldDetectionRequest $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, diff --git a/sdks/php/src/Api/EmbeddedApi.php b/sdks/php/src/Api/EmbeddedApi.php index 1aef64edb..946497227 100644 --- a/sdks/php/src/Api/EmbeddedApi.php +++ b/sdks/php/src/Api/EmbeddedApi.php @@ -140,14 +140,15 @@ public function getResponse() * * @param string $template_id The id of the template to edit. (required) * @param Model\EmbeddedEditUrlRequest $embedded_edit_url_request embedded_edit_url_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\EmbeddedEditUrlResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function embeddedEditUrl(string $template_id, Model\EmbeddedEditUrlRequest $embedded_edit_url_request) + public function embeddedEditUrl(string $template_id, Model\EmbeddedEditUrlRequest $embedded_edit_url_request, ?string $idempotency_key = null) { - list($response) = $this->embeddedEditUrlWithHttpInfo($template_id, $embedded_edit_url_request); + list($response) = $this->embeddedEditUrlWithHttpInfo($template_id, $embedded_edit_url_request, $idempotency_key); return $response; } @@ -160,6 +161,7 @@ public function embeddedEditUrl(string $template_id, Model\EmbeddedEditUrlReques * * @param string $template_id The id of the template to edit. (required) * @param Model\EmbeddedEditUrlRequest $embedded_edit_url_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['embeddedEditUrl'] to see the possible values for this operation * * @return array of Model\EmbeddedEditUrlResponse, HTTP status code, HTTP response headers (array of strings) @@ -167,9 +169,9 @@ public function embeddedEditUrl(string $template_id, Model\EmbeddedEditUrlReques * @throws InvalidArgumentException * @deprecated Prefer to use ::embeddedEditUrl. This method will eventually become unavailable */ - public function embeddedEditUrlWithHttpInfo(string $template_id, Model\EmbeddedEditUrlRequest $embedded_edit_url_request, string $contentType = self::contentTypes['embeddedEditUrl'][0]) + public function embeddedEditUrlWithHttpInfo(string $template_id, Model\EmbeddedEditUrlRequest $embedded_edit_url_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['embeddedEditUrl'][0]) { - $request = $this->embeddedEditUrlRequest($template_id, $embedded_edit_url_request, $contentType); + $request = $this->embeddedEditUrlRequest($template_id, $embedded_edit_url_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -300,15 +302,16 @@ public function embeddedEditUrlWithHttpInfo(string $template_id, Model\EmbeddedE * * @param string $template_id The id of the template to edit. (required) * @param Model\EmbeddedEditUrlRequest $embedded_edit_url_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['embeddedEditUrl'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::embeddedEditUrl. This method will eventually become unavailable */ - public function embeddedEditUrlAsync(string $template_id, Model\EmbeddedEditUrlRequest $embedded_edit_url_request, string $contentType = self::contentTypes['embeddedEditUrl'][0]) + public function embeddedEditUrlAsync(string $template_id, Model\EmbeddedEditUrlRequest $embedded_edit_url_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['embeddedEditUrl'][0]) { - return $this->embeddedEditUrlAsyncWithHttpInfo($template_id, $embedded_edit_url_request, $contentType) + return $this->embeddedEditUrlAsyncWithHttpInfo($template_id, $embedded_edit_url_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -325,16 +328,17 @@ function ($response) { * * @param string $template_id The id of the template to edit. (required) * @param Model\EmbeddedEditUrlRequest $embedded_edit_url_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['embeddedEditUrl'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::embeddedEditUrl. This method will eventually become unavailable */ - public function embeddedEditUrlAsyncWithHttpInfo(string $template_id, Model\EmbeddedEditUrlRequest $embedded_edit_url_request, string $contentType = self::contentTypes['embeddedEditUrl'][0]) + public function embeddedEditUrlAsyncWithHttpInfo(string $template_id, Model\EmbeddedEditUrlRequest $embedded_edit_url_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['embeddedEditUrl'][0]) { $returnType = '\Dropbox\Sign\Model\EmbeddedEditUrlResponse'; - $request = $this->embeddedEditUrlRequest($template_id, $embedded_edit_url_request, $contentType); + $request = $this->embeddedEditUrlRequest($template_id, $embedded_edit_url_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -377,13 +381,14 @@ function ($exception) { * * @param string $template_id The id of the template to edit. (required) * @param Model\EmbeddedEditUrlRequest $embedded_edit_url_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['embeddedEditUrl'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::embeddedEditUrl. This method will eventually become unavailable */ - public function embeddedEditUrlRequest(string $template_id, Model\EmbeddedEditUrlRequest $embedded_edit_url_request, string $contentType = self::contentTypes['embeddedEditUrl'][0]) + public function embeddedEditUrlRequest(string $template_id, Model\EmbeddedEditUrlRequest $embedded_edit_url_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['embeddedEditUrl'][0]) { // verify the required parameter 'template_id' is set if ($template_id === null || (is_array($template_id) && count($template_id) === 0)) { @@ -399,6 +404,13 @@ public function embeddedEditUrlRequest(string $template_id, Model\EmbeddedEditUr ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling EmbeddedApi.embeddedEditUrl, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling EmbeddedApi.embeddedEditUrl, must be bigger than or equal to 1.'); + } + $resourcePath = '/embedded/edit_url/{template_id}'; $formParams = []; $queryParams = []; @@ -412,6 +424,11 @@ public function embeddedEditUrlRequest(string $template_id, Model\EmbeddedEditUr $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + // path params if ($template_id !== null) { $resourcePath = str_replace( diff --git a/sdks/php/src/Api/FaxApi.php b/sdks/php/src/Api/FaxApi.php index e41132916..56bd4a913 100644 --- a/sdks/php/src/Api/FaxApi.php +++ b/sdks/php/src/Api/FaxApi.php @@ -1412,14 +1412,15 @@ public function faxListRequest(?int $page = 1, ?int $page_size = 20, string $con * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/FaxSendExample.php * * @param Model\FaxSendRequest $fax_send_request fax_send_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\FaxGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function faxSend(Model\FaxSendRequest $fax_send_request) + public function faxSend(Model\FaxSendRequest $fax_send_request, ?string $idempotency_key = null) { - list($response) = $this->faxSendWithHttpInfo($fax_send_request); + list($response) = $this->faxSendWithHttpInfo($fax_send_request, $idempotency_key); return $response; } @@ -1431,6 +1432,7 @@ public function faxSend(Model\FaxSendRequest $fax_send_request) * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/FaxSendExample.php * * @param Model\FaxSendRequest $fax_send_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['faxSend'] to see the possible values for this operation * * @return array of Model\FaxGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -1438,9 +1440,9 @@ public function faxSend(Model\FaxSendRequest $fax_send_request) * @throws InvalidArgumentException * @deprecated Prefer to use ::faxSend. This method will eventually become unavailable */ - public function faxSendWithHttpInfo(Model\FaxSendRequest $fax_send_request, string $contentType = self::contentTypes['faxSend'][0]) + public function faxSendWithHttpInfo(Model\FaxSendRequest $fax_send_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['faxSend'][0]) { - $request = $this->faxSendRequest($fax_send_request, $contentType); + $request = $this->faxSendRequest($fax_send_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -1570,15 +1572,16 @@ public function faxSendWithHttpInfo(Model\FaxSendRequest $fax_send_request, stri * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/FaxSendExample.php * * @param Model\FaxSendRequest $fax_send_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['faxSend'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::faxSend. This method will eventually become unavailable */ - public function faxSendAsync(Model\FaxSendRequest $fax_send_request, string $contentType = self::contentTypes['faxSend'][0]) + public function faxSendAsync(Model\FaxSendRequest $fax_send_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['faxSend'][0]) { - return $this->faxSendAsyncWithHttpInfo($fax_send_request, $contentType) + return $this->faxSendAsyncWithHttpInfo($fax_send_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -1594,16 +1597,17 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/FaxSendExample.php * * @param Model\FaxSendRequest $fax_send_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['faxSend'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::faxSend. This method will eventually become unavailable */ - public function faxSendAsyncWithHttpInfo(Model\FaxSendRequest $fax_send_request, string $contentType = self::contentTypes['faxSend'][0]) + public function faxSendAsyncWithHttpInfo(Model\FaxSendRequest $fax_send_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['faxSend'][0]) { $returnType = '\Dropbox\Sign\Model\FaxGetResponse'; - $request = $this->faxSendRequest($fax_send_request, $contentType); + $request = $this->faxSendRequest($fax_send_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1645,13 +1649,14 @@ function ($exception) { * Create request for operation 'faxSend' * * @param Model\FaxSendRequest $fax_send_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['faxSend'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::faxSend. This method will eventually become unavailable */ - public function faxSendRequest(Model\FaxSendRequest $fax_send_request, string $contentType = self::contentTypes['faxSend'][0]) + public function faxSendRequest(Model\FaxSendRequest $fax_send_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['faxSend'][0]) { // verify the required parameter 'fax_send_request' is set if ($fax_send_request === null || (is_array($fax_send_request) && count($fax_send_request) === 0)) { @@ -1660,6 +1665,13 @@ public function faxSendRequest(Model\FaxSendRequest $fax_send_request, string $c ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling FaxApi.faxSend, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling FaxApi.faxSend, must be bigger than or equal to 1.'); + } + $resourcePath = '/fax/send'; $formParams = []; $queryParams = []; @@ -1673,6 +1685,11 @@ public function faxSendRequest(Model\FaxSendRequest $fax_send_request, string $c $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, diff --git a/sdks/php/src/Api/FaxLineApi.php b/sdks/php/src/Api/FaxLineApi.php index 2882dc492..bd1a06922 100644 --- a/sdks/php/src/Api/FaxLineApi.php +++ b/sdks/php/src/Api/FaxLineApi.php @@ -154,14 +154,15 @@ public function getResponse() * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/FaxLineAddUserExample.php * * @param Model\FaxLineAddUserRequest $fax_line_add_user_request fax_line_add_user_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\FaxLineResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function faxLineAddUser(Model\FaxLineAddUserRequest $fax_line_add_user_request) + public function faxLineAddUser(Model\FaxLineAddUserRequest $fax_line_add_user_request, ?string $idempotency_key = null) { - list($response) = $this->faxLineAddUserWithHttpInfo($fax_line_add_user_request); + list($response) = $this->faxLineAddUserWithHttpInfo($fax_line_add_user_request, $idempotency_key); return $response; } @@ -173,6 +174,7 @@ public function faxLineAddUser(Model\FaxLineAddUserRequest $fax_line_add_user_re * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/FaxLineAddUserExample.php * * @param Model\FaxLineAddUserRequest $fax_line_add_user_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['faxLineAddUser'] to see the possible values for this operation * * @return array of Model\FaxLineResponse, HTTP status code, HTTP response headers (array of strings) @@ -180,9 +182,9 @@ public function faxLineAddUser(Model\FaxLineAddUserRequest $fax_line_add_user_re * @throws InvalidArgumentException * @deprecated Prefer to use ::faxLineAddUser. This method will eventually become unavailable */ - public function faxLineAddUserWithHttpInfo(Model\FaxLineAddUserRequest $fax_line_add_user_request, string $contentType = self::contentTypes['faxLineAddUser'][0]) + public function faxLineAddUserWithHttpInfo(Model\FaxLineAddUserRequest $fax_line_add_user_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['faxLineAddUser'][0]) { - $request = $this->faxLineAddUserRequest($fax_line_add_user_request, $contentType); + $request = $this->faxLineAddUserRequest($fax_line_add_user_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -312,15 +314,16 @@ public function faxLineAddUserWithHttpInfo(Model\FaxLineAddUserRequest $fax_line * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/FaxLineAddUserExample.php * * @param Model\FaxLineAddUserRequest $fax_line_add_user_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['faxLineAddUser'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::faxLineAddUser. This method will eventually become unavailable */ - public function faxLineAddUserAsync(Model\FaxLineAddUserRequest $fax_line_add_user_request, string $contentType = self::contentTypes['faxLineAddUser'][0]) + public function faxLineAddUserAsync(Model\FaxLineAddUserRequest $fax_line_add_user_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['faxLineAddUser'][0]) { - return $this->faxLineAddUserAsyncWithHttpInfo($fax_line_add_user_request, $contentType) + return $this->faxLineAddUserAsyncWithHttpInfo($fax_line_add_user_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -336,16 +339,17 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/FaxLineAddUserExample.php * * @param Model\FaxLineAddUserRequest $fax_line_add_user_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['faxLineAddUser'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::faxLineAddUser. This method will eventually become unavailable */ - public function faxLineAddUserAsyncWithHttpInfo(Model\FaxLineAddUserRequest $fax_line_add_user_request, string $contentType = self::contentTypes['faxLineAddUser'][0]) + public function faxLineAddUserAsyncWithHttpInfo(Model\FaxLineAddUserRequest $fax_line_add_user_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['faxLineAddUser'][0]) { $returnType = '\Dropbox\Sign\Model\FaxLineResponse'; - $request = $this->faxLineAddUserRequest($fax_line_add_user_request, $contentType); + $request = $this->faxLineAddUserRequest($fax_line_add_user_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -387,13 +391,14 @@ function ($exception) { * Create request for operation 'faxLineAddUser' * * @param Model\FaxLineAddUserRequest $fax_line_add_user_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['faxLineAddUser'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::faxLineAddUser. This method will eventually become unavailable */ - public function faxLineAddUserRequest(Model\FaxLineAddUserRequest $fax_line_add_user_request, string $contentType = self::contentTypes['faxLineAddUser'][0]) + public function faxLineAddUserRequest(Model\FaxLineAddUserRequest $fax_line_add_user_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['faxLineAddUser'][0]) { // verify the required parameter 'fax_line_add_user_request' is set if ($fax_line_add_user_request === null || (is_array($fax_line_add_user_request) && count($fax_line_add_user_request) === 0)) { @@ -402,6 +407,13 @@ public function faxLineAddUserRequest(Model\FaxLineAddUserRequest $fax_line_add_ ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling FaxLineApi.faxLineAddUser, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling FaxLineApi.faxLineAddUser, must be bigger than or equal to 1.'); + } + $resourcePath = '/fax_line/add_user'; $formParams = []; $queryParams = []; @@ -415,6 +427,11 @@ public function faxLineAddUserRequest(Model\FaxLineAddUserRequest $fax_line_add_ $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -876,14 +893,15 @@ public function faxLineAreaCodeGetRequest(string $country, ?string $state = null * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/FaxLineCreateExample.php * * @param Model\FaxLineCreateRequest $fax_line_create_request fax_line_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\FaxLineResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function faxLineCreate(Model\FaxLineCreateRequest $fax_line_create_request) + public function faxLineCreate(Model\FaxLineCreateRequest $fax_line_create_request, ?string $idempotency_key = null) { - list($response) = $this->faxLineCreateWithHttpInfo($fax_line_create_request); + list($response) = $this->faxLineCreateWithHttpInfo($fax_line_create_request, $idempotency_key); return $response; } @@ -895,6 +913,7 @@ public function faxLineCreate(Model\FaxLineCreateRequest $fax_line_create_reques * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/FaxLineCreateExample.php * * @param Model\FaxLineCreateRequest $fax_line_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['faxLineCreate'] to see the possible values for this operation * * @return array of Model\FaxLineResponse, HTTP status code, HTTP response headers (array of strings) @@ -902,9 +921,9 @@ public function faxLineCreate(Model\FaxLineCreateRequest $fax_line_create_reques * @throws InvalidArgumentException * @deprecated Prefer to use ::faxLineCreate. This method will eventually become unavailable */ - public function faxLineCreateWithHttpInfo(Model\FaxLineCreateRequest $fax_line_create_request, string $contentType = self::contentTypes['faxLineCreate'][0]) + public function faxLineCreateWithHttpInfo(Model\FaxLineCreateRequest $fax_line_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['faxLineCreate'][0]) { - $request = $this->faxLineCreateRequest($fax_line_create_request, $contentType); + $request = $this->faxLineCreateRequest($fax_line_create_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -1034,15 +1053,16 @@ public function faxLineCreateWithHttpInfo(Model\FaxLineCreateRequest $fax_line_c * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/FaxLineCreateExample.php * * @param Model\FaxLineCreateRequest $fax_line_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['faxLineCreate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::faxLineCreate. This method will eventually become unavailable */ - public function faxLineCreateAsync(Model\FaxLineCreateRequest $fax_line_create_request, string $contentType = self::contentTypes['faxLineCreate'][0]) + public function faxLineCreateAsync(Model\FaxLineCreateRequest $fax_line_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['faxLineCreate'][0]) { - return $this->faxLineCreateAsyncWithHttpInfo($fax_line_create_request, $contentType) + return $this->faxLineCreateAsyncWithHttpInfo($fax_line_create_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -1058,16 +1078,17 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/FaxLineCreateExample.php * * @param Model\FaxLineCreateRequest $fax_line_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['faxLineCreate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::faxLineCreate. This method will eventually become unavailable */ - public function faxLineCreateAsyncWithHttpInfo(Model\FaxLineCreateRequest $fax_line_create_request, string $contentType = self::contentTypes['faxLineCreate'][0]) + public function faxLineCreateAsyncWithHttpInfo(Model\FaxLineCreateRequest $fax_line_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['faxLineCreate'][0]) { $returnType = '\Dropbox\Sign\Model\FaxLineResponse'; - $request = $this->faxLineCreateRequest($fax_line_create_request, $contentType); + $request = $this->faxLineCreateRequest($fax_line_create_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1109,13 +1130,14 @@ function ($exception) { * Create request for operation 'faxLineCreate' * * @param Model\FaxLineCreateRequest $fax_line_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['faxLineCreate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::faxLineCreate. This method will eventually become unavailable */ - public function faxLineCreateRequest(Model\FaxLineCreateRequest $fax_line_create_request, string $contentType = self::contentTypes['faxLineCreate'][0]) + public function faxLineCreateRequest(Model\FaxLineCreateRequest $fax_line_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['faxLineCreate'][0]) { // verify the required parameter 'fax_line_create_request' is set if ($fax_line_create_request === null || (is_array($fax_line_create_request) && count($fax_line_create_request) === 0)) { @@ -1124,6 +1146,13 @@ public function faxLineCreateRequest(Model\FaxLineCreateRequest $fax_line_create ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling FaxLineApi.faxLineCreate, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling FaxLineApi.faxLineCreate, must be bigger than or equal to 1.'); + } + $resourcePath = '/fax_line/create'; $formParams = []; $queryParams = []; @@ -1137,6 +1166,11 @@ public function faxLineCreateRequest(Model\FaxLineCreateRequest $fax_line_create $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -2170,14 +2204,15 @@ public function faxLineListRequest(?string $account_id = null, ?int $page = 1, ? * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/FaxLineRemoveUserExample.php * * @param Model\FaxLineRemoveUserRequest $fax_line_remove_user_request fax_line_remove_user_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\FaxLineResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function faxLineRemoveUser(Model\FaxLineRemoveUserRequest $fax_line_remove_user_request) + public function faxLineRemoveUser(Model\FaxLineRemoveUserRequest $fax_line_remove_user_request, ?string $idempotency_key = null) { - list($response) = $this->faxLineRemoveUserWithHttpInfo($fax_line_remove_user_request); + list($response) = $this->faxLineRemoveUserWithHttpInfo($fax_line_remove_user_request, $idempotency_key); return $response; } @@ -2189,6 +2224,7 @@ public function faxLineRemoveUser(Model\FaxLineRemoveUserRequest $fax_line_remov * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/FaxLineRemoveUserExample.php * * @param Model\FaxLineRemoveUserRequest $fax_line_remove_user_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['faxLineRemoveUser'] to see the possible values for this operation * * @return array of Model\FaxLineResponse, HTTP status code, HTTP response headers (array of strings) @@ -2196,9 +2232,9 @@ public function faxLineRemoveUser(Model\FaxLineRemoveUserRequest $fax_line_remov * @throws InvalidArgumentException * @deprecated Prefer to use ::faxLineRemoveUser. This method will eventually become unavailable */ - public function faxLineRemoveUserWithHttpInfo(Model\FaxLineRemoveUserRequest $fax_line_remove_user_request, string $contentType = self::contentTypes['faxLineRemoveUser'][0]) + public function faxLineRemoveUserWithHttpInfo(Model\FaxLineRemoveUserRequest $fax_line_remove_user_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['faxLineRemoveUser'][0]) { - $request = $this->faxLineRemoveUserRequest($fax_line_remove_user_request, $contentType); + $request = $this->faxLineRemoveUserRequest($fax_line_remove_user_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -2328,15 +2364,16 @@ public function faxLineRemoveUserWithHttpInfo(Model\FaxLineRemoveUserRequest $fa * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/FaxLineRemoveUserExample.php * * @param Model\FaxLineRemoveUserRequest $fax_line_remove_user_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['faxLineRemoveUser'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::faxLineRemoveUser. This method will eventually become unavailable */ - public function faxLineRemoveUserAsync(Model\FaxLineRemoveUserRequest $fax_line_remove_user_request, string $contentType = self::contentTypes['faxLineRemoveUser'][0]) + public function faxLineRemoveUserAsync(Model\FaxLineRemoveUserRequest $fax_line_remove_user_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['faxLineRemoveUser'][0]) { - return $this->faxLineRemoveUserAsyncWithHttpInfo($fax_line_remove_user_request, $contentType) + return $this->faxLineRemoveUserAsyncWithHttpInfo($fax_line_remove_user_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -2352,16 +2389,17 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/FaxLineRemoveUserExample.php * * @param Model\FaxLineRemoveUserRequest $fax_line_remove_user_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['faxLineRemoveUser'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::faxLineRemoveUser. This method will eventually become unavailable */ - public function faxLineRemoveUserAsyncWithHttpInfo(Model\FaxLineRemoveUserRequest $fax_line_remove_user_request, string $contentType = self::contentTypes['faxLineRemoveUser'][0]) + public function faxLineRemoveUserAsyncWithHttpInfo(Model\FaxLineRemoveUserRequest $fax_line_remove_user_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['faxLineRemoveUser'][0]) { $returnType = '\Dropbox\Sign\Model\FaxLineResponse'; - $request = $this->faxLineRemoveUserRequest($fax_line_remove_user_request, $contentType); + $request = $this->faxLineRemoveUserRequest($fax_line_remove_user_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2403,13 +2441,14 @@ function ($exception) { * Create request for operation 'faxLineRemoveUser' * * @param Model\FaxLineRemoveUserRequest $fax_line_remove_user_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['faxLineRemoveUser'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::faxLineRemoveUser. This method will eventually become unavailable */ - public function faxLineRemoveUserRequest(Model\FaxLineRemoveUserRequest $fax_line_remove_user_request, string $contentType = self::contentTypes['faxLineRemoveUser'][0]) + public function faxLineRemoveUserRequest(Model\FaxLineRemoveUserRequest $fax_line_remove_user_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['faxLineRemoveUser'][0]) { // verify the required parameter 'fax_line_remove_user_request' is set if ($fax_line_remove_user_request === null || (is_array($fax_line_remove_user_request) && count($fax_line_remove_user_request) === 0)) { @@ -2418,6 +2457,13 @@ public function faxLineRemoveUserRequest(Model\FaxLineRemoveUserRequest $fax_lin ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling FaxLineApi.faxLineRemoveUser, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling FaxLineApi.faxLineRemoveUser, must be bigger than or equal to 1.'); + } + $resourcePath = '/fax_line/remove_user'; $formParams = []; $queryParams = []; @@ -2431,6 +2477,11 @@ public function faxLineRemoveUserRequest(Model\FaxLineRemoveUserRequest $fax_lin $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, diff --git a/sdks/php/src/Api/ReportApi.php b/sdks/php/src/Api/ReportApi.php index 942e18e3b..ca8dad161 100644 --- a/sdks/php/src/Api/ReportApi.php +++ b/sdks/php/src/Api/ReportApi.php @@ -136,14 +136,15 @@ public function getResponse() * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/ReportCreateExample.php * * @param Model\ReportCreateRequest $report_create_request report_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\ReportCreateResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function reportCreate(Model\ReportCreateRequest $report_create_request) + public function reportCreate(Model\ReportCreateRequest $report_create_request, ?string $idempotency_key = null) { - list($response) = $this->reportCreateWithHttpInfo($report_create_request); + list($response) = $this->reportCreateWithHttpInfo($report_create_request, $idempotency_key); return $response; } @@ -155,6 +156,7 @@ public function reportCreate(Model\ReportCreateRequest $report_create_request) * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/ReportCreateExample.php * * @param Model\ReportCreateRequest $report_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['reportCreate'] to see the possible values for this operation * * @return array of Model\ReportCreateResponse, HTTP status code, HTTP response headers (array of strings) @@ -162,9 +164,9 @@ public function reportCreate(Model\ReportCreateRequest $report_create_request) * @throws InvalidArgumentException * @deprecated Prefer to use ::reportCreate. This method will eventually become unavailable */ - public function reportCreateWithHttpInfo(Model\ReportCreateRequest $report_create_request, string $contentType = self::contentTypes['reportCreate'][0]) + public function reportCreateWithHttpInfo(Model\ReportCreateRequest $report_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['reportCreate'][0]) { - $request = $this->reportCreateRequest($report_create_request, $contentType); + $request = $this->reportCreateRequest($report_create_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -294,15 +296,16 @@ public function reportCreateWithHttpInfo(Model\ReportCreateRequest $report_creat * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/ReportCreateExample.php * * @param Model\ReportCreateRequest $report_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['reportCreate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::reportCreate. This method will eventually become unavailable */ - public function reportCreateAsync(Model\ReportCreateRequest $report_create_request, string $contentType = self::contentTypes['reportCreate'][0]) + public function reportCreateAsync(Model\ReportCreateRequest $report_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['reportCreate'][0]) { - return $this->reportCreateAsyncWithHttpInfo($report_create_request, $contentType) + return $this->reportCreateAsyncWithHttpInfo($report_create_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -318,16 +321,17 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/ReportCreateExample.php * * @param Model\ReportCreateRequest $report_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['reportCreate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::reportCreate. This method will eventually become unavailable */ - public function reportCreateAsyncWithHttpInfo(Model\ReportCreateRequest $report_create_request, string $contentType = self::contentTypes['reportCreate'][0]) + public function reportCreateAsyncWithHttpInfo(Model\ReportCreateRequest $report_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['reportCreate'][0]) { $returnType = '\Dropbox\Sign\Model\ReportCreateResponse'; - $request = $this->reportCreateRequest($report_create_request, $contentType); + $request = $this->reportCreateRequest($report_create_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -369,13 +373,14 @@ function ($exception) { * Create request for operation 'reportCreate' * * @param Model\ReportCreateRequest $report_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['reportCreate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::reportCreate. This method will eventually become unavailable */ - public function reportCreateRequest(Model\ReportCreateRequest $report_create_request, string $contentType = self::contentTypes['reportCreate'][0]) + public function reportCreateRequest(Model\ReportCreateRequest $report_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['reportCreate'][0]) { // verify the required parameter 'report_create_request' is set if ($report_create_request === null || (is_array($report_create_request) && count($report_create_request) === 0)) { @@ -384,6 +389,13 @@ public function reportCreateRequest(Model\ReportCreateRequest $report_create_req ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling ReportApi.reportCreate, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling ReportApi.reportCreate, must be bigger than or equal to 1.'); + } + $resourcePath = '/report/create'; $formParams = []; $queryParams = []; @@ -397,6 +409,11 @@ public function reportCreateRequest(Model\ReportCreateRequest $report_create_req $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, diff --git a/sdks/php/src/Api/SignatureRequestApi.php b/sdks/php/src/Api/SignatureRequestApi.php index 0abcb76c2..e0837df37 100644 --- a/sdks/php/src/Api/SignatureRequestApi.php +++ b/sdks/php/src/Api/SignatureRequestApi.php @@ -204,14 +204,15 @@ public function getResponse() * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.php * * @param Model\SignatureRequestBulkCreateEmbeddedWithTemplateRequest $signature_request_bulk_create_embedded_with_template_request signature_request_bulk_create_embedded_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\BulkSendJobSendResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function signatureRequestBulkCreateEmbeddedWithTemplate(Model\SignatureRequestBulkCreateEmbeddedWithTemplateRequest $signature_request_bulk_create_embedded_with_template_request) + public function signatureRequestBulkCreateEmbeddedWithTemplate(Model\SignatureRequestBulkCreateEmbeddedWithTemplateRequest $signature_request_bulk_create_embedded_with_template_request, ?string $idempotency_key = null) { - list($response) = $this->signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo($signature_request_bulk_create_embedded_with_template_request); + list($response) = $this->signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo($signature_request_bulk_create_embedded_with_template_request, $idempotency_key); return $response; } @@ -223,6 +224,7 @@ public function signatureRequestBulkCreateEmbeddedWithTemplate(Model\SignatureRe * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.php * * @param Model\SignatureRequestBulkCreateEmbeddedWithTemplateRequest $signature_request_bulk_create_embedded_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestBulkCreateEmbeddedWithTemplate'] to see the possible values for this operation * * @return array of Model\BulkSendJobSendResponse, HTTP status code, HTTP response headers (array of strings) @@ -230,9 +232,9 @@ public function signatureRequestBulkCreateEmbeddedWithTemplate(Model\SignatureRe * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestBulkCreateEmbeddedWithTemplate. This method will eventually become unavailable */ - public function signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(Model\SignatureRequestBulkCreateEmbeddedWithTemplateRequest $signature_request_bulk_create_embedded_with_template_request, string $contentType = self::contentTypes['signatureRequestBulkCreateEmbeddedWithTemplate'][0]) + public function signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(Model\SignatureRequestBulkCreateEmbeddedWithTemplateRequest $signature_request_bulk_create_embedded_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestBulkCreateEmbeddedWithTemplate'][0]) { - $request = $this->signatureRequestBulkCreateEmbeddedWithTemplateRequest($signature_request_bulk_create_embedded_with_template_request, $contentType); + $request = $this->signatureRequestBulkCreateEmbeddedWithTemplateRequest($signature_request_bulk_create_embedded_with_template_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -362,15 +364,16 @@ public function signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(Model * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.php * * @param Model\SignatureRequestBulkCreateEmbeddedWithTemplateRequest $signature_request_bulk_create_embedded_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestBulkCreateEmbeddedWithTemplate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestBulkCreateEmbeddedWithTemplate. This method will eventually become unavailable */ - public function signatureRequestBulkCreateEmbeddedWithTemplateAsync(Model\SignatureRequestBulkCreateEmbeddedWithTemplateRequest $signature_request_bulk_create_embedded_with_template_request, string $contentType = self::contentTypes['signatureRequestBulkCreateEmbeddedWithTemplate'][0]) + public function signatureRequestBulkCreateEmbeddedWithTemplateAsync(Model\SignatureRequestBulkCreateEmbeddedWithTemplateRequest $signature_request_bulk_create_embedded_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestBulkCreateEmbeddedWithTemplate'][0]) { - return $this->signatureRequestBulkCreateEmbeddedWithTemplateAsyncWithHttpInfo($signature_request_bulk_create_embedded_with_template_request, $contentType) + return $this->signatureRequestBulkCreateEmbeddedWithTemplateAsyncWithHttpInfo($signature_request_bulk_create_embedded_with_template_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -386,16 +389,17 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.php * * @param Model\SignatureRequestBulkCreateEmbeddedWithTemplateRequest $signature_request_bulk_create_embedded_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestBulkCreateEmbeddedWithTemplate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestBulkCreateEmbeddedWithTemplate. This method will eventually become unavailable */ - public function signatureRequestBulkCreateEmbeddedWithTemplateAsyncWithHttpInfo(Model\SignatureRequestBulkCreateEmbeddedWithTemplateRequest $signature_request_bulk_create_embedded_with_template_request, string $contentType = self::contentTypes['signatureRequestBulkCreateEmbeddedWithTemplate'][0]) + public function signatureRequestBulkCreateEmbeddedWithTemplateAsyncWithHttpInfo(Model\SignatureRequestBulkCreateEmbeddedWithTemplateRequest $signature_request_bulk_create_embedded_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestBulkCreateEmbeddedWithTemplate'][0]) { $returnType = '\Dropbox\Sign\Model\BulkSendJobSendResponse'; - $request = $this->signatureRequestBulkCreateEmbeddedWithTemplateRequest($signature_request_bulk_create_embedded_with_template_request, $contentType); + $request = $this->signatureRequestBulkCreateEmbeddedWithTemplateRequest($signature_request_bulk_create_embedded_with_template_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -437,13 +441,14 @@ function ($exception) { * Create request for operation 'signatureRequestBulkCreateEmbeddedWithTemplate' * * @param Model\SignatureRequestBulkCreateEmbeddedWithTemplateRequest $signature_request_bulk_create_embedded_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestBulkCreateEmbeddedWithTemplate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestBulkCreateEmbeddedWithTemplate. This method will eventually become unavailable */ - public function signatureRequestBulkCreateEmbeddedWithTemplateRequest(Model\SignatureRequestBulkCreateEmbeddedWithTemplateRequest $signature_request_bulk_create_embedded_with_template_request, string $contentType = self::contentTypes['signatureRequestBulkCreateEmbeddedWithTemplate'][0]) + public function signatureRequestBulkCreateEmbeddedWithTemplateRequest(Model\SignatureRequestBulkCreateEmbeddedWithTemplateRequest $signature_request_bulk_create_embedded_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestBulkCreateEmbeddedWithTemplate'][0]) { // verify the required parameter 'signature_request_bulk_create_embedded_with_template_request' is set if ($signature_request_bulk_create_embedded_with_template_request === null || (is_array($signature_request_bulk_create_embedded_with_template_request) && count($signature_request_bulk_create_embedded_with_template_request) === 0)) { @@ -452,6 +457,13 @@ public function signatureRequestBulkCreateEmbeddedWithTemplateRequest(Model\Sign ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestBulkCreateEmbeddedWithTemplate, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestBulkCreateEmbeddedWithTemplate, must be bigger than or equal to 1.'); + } + $resourcePath = '/signature_request/bulk_create_embedded_with_template'; $formParams = []; $queryParams = []; @@ -465,6 +477,11 @@ public function signatureRequestBulkCreateEmbeddedWithTemplateRequest(Model\Sign $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -547,14 +564,15 @@ public function signatureRequestBulkCreateEmbeddedWithTemplateRequest(Model\Sign * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.php * * @param Model\SignatureRequestBulkSendWithTemplateRequest $signature_request_bulk_send_with_template_request signature_request_bulk_send_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\BulkSendJobSendResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function signatureRequestBulkSendWithTemplate(Model\SignatureRequestBulkSendWithTemplateRequest $signature_request_bulk_send_with_template_request) + public function signatureRequestBulkSendWithTemplate(Model\SignatureRequestBulkSendWithTemplateRequest $signature_request_bulk_send_with_template_request, ?string $idempotency_key = null) { - list($response) = $this->signatureRequestBulkSendWithTemplateWithHttpInfo($signature_request_bulk_send_with_template_request); + list($response) = $this->signatureRequestBulkSendWithTemplateWithHttpInfo($signature_request_bulk_send_with_template_request, $idempotency_key); return $response; } @@ -566,6 +584,7 @@ public function signatureRequestBulkSendWithTemplate(Model\SignatureRequestBulkS * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.php * * @param Model\SignatureRequestBulkSendWithTemplateRequest $signature_request_bulk_send_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestBulkSendWithTemplate'] to see the possible values for this operation * * @return array of Model\BulkSendJobSendResponse, HTTP status code, HTTP response headers (array of strings) @@ -573,9 +592,9 @@ public function signatureRequestBulkSendWithTemplate(Model\SignatureRequestBulkS * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestBulkSendWithTemplate. This method will eventually become unavailable */ - public function signatureRequestBulkSendWithTemplateWithHttpInfo(Model\SignatureRequestBulkSendWithTemplateRequest $signature_request_bulk_send_with_template_request, string $contentType = self::contentTypes['signatureRequestBulkSendWithTemplate'][0]) + public function signatureRequestBulkSendWithTemplateWithHttpInfo(Model\SignatureRequestBulkSendWithTemplateRequest $signature_request_bulk_send_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestBulkSendWithTemplate'][0]) { - $request = $this->signatureRequestBulkSendWithTemplateRequest($signature_request_bulk_send_with_template_request, $contentType); + $request = $this->signatureRequestBulkSendWithTemplateRequest($signature_request_bulk_send_with_template_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -705,15 +724,16 @@ public function signatureRequestBulkSendWithTemplateWithHttpInfo(Model\Signature * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.php * * @param Model\SignatureRequestBulkSendWithTemplateRequest $signature_request_bulk_send_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestBulkSendWithTemplate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestBulkSendWithTemplate. This method will eventually become unavailable */ - public function signatureRequestBulkSendWithTemplateAsync(Model\SignatureRequestBulkSendWithTemplateRequest $signature_request_bulk_send_with_template_request, string $contentType = self::contentTypes['signatureRequestBulkSendWithTemplate'][0]) + public function signatureRequestBulkSendWithTemplateAsync(Model\SignatureRequestBulkSendWithTemplateRequest $signature_request_bulk_send_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestBulkSendWithTemplate'][0]) { - return $this->signatureRequestBulkSendWithTemplateAsyncWithHttpInfo($signature_request_bulk_send_with_template_request, $contentType) + return $this->signatureRequestBulkSendWithTemplateAsyncWithHttpInfo($signature_request_bulk_send_with_template_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -729,16 +749,17 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.php * * @param Model\SignatureRequestBulkSendWithTemplateRequest $signature_request_bulk_send_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestBulkSendWithTemplate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestBulkSendWithTemplate. This method will eventually become unavailable */ - public function signatureRequestBulkSendWithTemplateAsyncWithHttpInfo(Model\SignatureRequestBulkSendWithTemplateRequest $signature_request_bulk_send_with_template_request, string $contentType = self::contentTypes['signatureRequestBulkSendWithTemplate'][0]) + public function signatureRequestBulkSendWithTemplateAsyncWithHttpInfo(Model\SignatureRequestBulkSendWithTemplateRequest $signature_request_bulk_send_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestBulkSendWithTemplate'][0]) { $returnType = '\Dropbox\Sign\Model\BulkSendJobSendResponse'; - $request = $this->signatureRequestBulkSendWithTemplateRequest($signature_request_bulk_send_with_template_request, $contentType); + $request = $this->signatureRequestBulkSendWithTemplateRequest($signature_request_bulk_send_with_template_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -780,13 +801,14 @@ function ($exception) { * Create request for operation 'signatureRequestBulkSendWithTemplate' * * @param Model\SignatureRequestBulkSendWithTemplateRequest $signature_request_bulk_send_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestBulkSendWithTemplate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestBulkSendWithTemplate. This method will eventually become unavailable */ - public function signatureRequestBulkSendWithTemplateRequest(Model\SignatureRequestBulkSendWithTemplateRequest $signature_request_bulk_send_with_template_request, string $contentType = self::contentTypes['signatureRequestBulkSendWithTemplate'][0]) + public function signatureRequestBulkSendWithTemplateRequest(Model\SignatureRequestBulkSendWithTemplateRequest $signature_request_bulk_send_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestBulkSendWithTemplate'][0]) { // verify the required parameter 'signature_request_bulk_send_with_template_request' is set if ($signature_request_bulk_send_with_template_request === null || (is_array($signature_request_bulk_send_with_template_request) && count($signature_request_bulk_send_with_template_request) === 0)) { @@ -795,6 +817,13 @@ public function signatureRequestBulkSendWithTemplateRequest(Model\SignatureReque ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestBulkSendWithTemplate, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestBulkSendWithTemplate, must be bigger than or equal to 1.'); + } + $resourcePath = '/signature_request/bulk_send_with_template'; $formParams = []; $queryParams = []; @@ -808,6 +837,11 @@ public function signatureRequestBulkSendWithTemplateRequest(Model\SignatureReque $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -893,14 +927,15 @@ public function signatureRequestBulkSendWithTemplateRequest(Model\SignatureReque * * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestCancelExample.php * - * @param string $signature_request_id The id of the incomplete SignatureRequest to cancel. (required) + * @param string $signature_request_id The id of the incomplete SignatureRequest to cancel. (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function signatureRequestCancel(string $signature_request_id) + public function signatureRequestCancel(string $signature_request_id, ?string $idempotency_key = null) { - $this->signatureRequestCancelWithHttpInfo($signature_request_id); + $this->signatureRequestCancelWithHttpInfo($signature_request_id, $idempotency_key); } /** @@ -910,17 +945,18 @@ public function signatureRequestCancel(string $signature_request_id) * * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestCancelExample.php * - * @param string $signature_request_id The id of the incomplete SignatureRequest to cancel. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestCancel'] to see the possible values for this operation + * @param string $signature_request_id The id of the incomplete SignatureRequest to cancel. (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestCancel'] to see the possible values for this operation * * @return array of null, HTTP status code, HTTP response headers (array of strings) * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestCancel. This method will eventually become unavailable */ - public function signatureRequestCancelWithHttpInfo(string $signature_request_id, string $contentType = self::contentTypes['signatureRequestCancel'][0]) + public function signatureRequestCancelWithHttpInfo(string $signature_request_id, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestCancel'][0]) { - $request = $this->signatureRequestCancelRequest($signature_request_id, $contentType); + $request = $this->signatureRequestCancelRequest($signature_request_id, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -963,16 +999,17 @@ public function signatureRequestCancelWithHttpInfo(string $signature_request_id, * * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestCancelExample.php * - * @param string $signature_request_id The id of the incomplete SignatureRequest to cancel. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestCancel'] to see the possible values for this operation + * @param string $signature_request_id The id of the incomplete SignatureRequest to cancel. (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestCancel'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestCancel. This method will eventually become unavailable */ - public function signatureRequestCancelAsync(string $signature_request_id, string $contentType = self::contentTypes['signatureRequestCancel'][0]) + public function signatureRequestCancelAsync(string $signature_request_id, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestCancel'][0]) { - return $this->signatureRequestCancelAsyncWithHttpInfo($signature_request_id, $contentType) + return $this->signatureRequestCancelAsyncWithHttpInfo($signature_request_id, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -987,17 +1024,18 @@ function ($response) { * * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestCancelExample.php * - * @param string $signature_request_id The id of the incomplete SignatureRequest to cancel. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestCancel'] to see the possible values for this operation + * @param string $signature_request_id The id of the incomplete SignatureRequest to cancel. (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestCancel'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestCancel. This method will eventually become unavailable */ - public function signatureRequestCancelAsyncWithHttpInfo(string $signature_request_id, string $contentType = self::contentTypes['signatureRequestCancel'][0]) + public function signatureRequestCancelAsyncWithHttpInfo(string $signature_request_id, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestCancel'][0]) { $returnType = ''; - $request = $this->signatureRequestCancelRequest($signature_request_id, $contentType); + $request = $this->signatureRequestCancelRequest($signature_request_id, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1025,14 +1063,15 @@ function ($exception) { /** * Create request for operation 'signatureRequestCancel' * - * @param string $signature_request_id The id of the incomplete SignatureRequest to cancel. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestCancel'] to see the possible values for this operation + * @param string $signature_request_id The id of the incomplete SignatureRequest to cancel. (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestCancel'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestCancel. This method will eventually become unavailable */ - public function signatureRequestCancelRequest(string $signature_request_id, string $contentType = self::contentTypes['signatureRequestCancel'][0]) + public function signatureRequestCancelRequest(string $signature_request_id, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestCancel'][0]) { // verify the required parameter 'signature_request_id' is set if ($signature_request_id === null || (is_array($signature_request_id) && count($signature_request_id) === 0)) { @@ -1041,6 +1080,13 @@ public function signatureRequestCancelRequest(string $signature_request_id, stri ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestCancel, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestCancel, must be bigger than or equal to 1.'); + } + $resourcePath = '/signature_request/cancel/{signature_request_id}'; $formParams = []; $queryParams = []; @@ -1048,6 +1094,11 @@ public function signatureRequestCancelRequest(string $signature_request_id, stri $httpBody = ''; $multipart = false; + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + // path params if ($signature_request_id !== null) { $resourcePath = str_replace( @@ -1133,14 +1184,15 @@ public function signatureRequestCancelRequest(string $signature_request_id, stri * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestCreateEmbeddedExample.php * * @param Model\SignatureRequestCreateEmbeddedRequest $signature_request_create_embedded_request signature_request_create_embedded_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\SignatureRequestGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function signatureRequestCreateEmbedded(Model\SignatureRequestCreateEmbeddedRequest $signature_request_create_embedded_request) + public function signatureRequestCreateEmbedded(Model\SignatureRequestCreateEmbeddedRequest $signature_request_create_embedded_request, ?string $idempotency_key = null) { - list($response) = $this->signatureRequestCreateEmbeddedWithHttpInfo($signature_request_create_embedded_request); + list($response) = $this->signatureRequestCreateEmbeddedWithHttpInfo($signature_request_create_embedded_request, $idempotency_key); return $response; } @@ -1152,6 +1204,7 @@ public function signatureRequestCreateEmbedded(Model\SignatureRequestCreateEmbed * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestCreateEmbeddedExample.php * * @param Model\SignatureRequestCreateEmbeddedRequest $signature_request_create_embedded_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestCreateEmbedded'] to see the possible values for this operation * * @return array of Model\SignatureRequestGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -1159,9 +1212,9 @@ public function signatureRequestCreateEmbedded(Model\SignatureRequestCreateEmbed * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestCreateEmbedded. This method will eventually become unavailable */ - public function signatureRequestCreateEmbeddedWithHttpInfo(Model\SignatureRequestCreateEmbeddedRequest $signature_request_create_embedded_request, string $contentType = self::contentTypes['signatureRequestCreateEmbedded'][0]) + public function signatureRequestCreateEmbeddedWithHttpInfo(Model\SignatureRequestCreateEmbeddedRequest $signature_request_create_embedded_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestCreateEmbedded'][0]) { - $request = $this->signatureRequestCreateEmbeddedRequest($signature_request_create_embedded_request, $contentType); + $request = $this->signatureRequestCreateEmbeddedRequest($signature_request_create_embedded_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -1291,15 +1344,16 @@ public function signatureRequestCreateEmbeddedWithHttpInfo(Model\SignatureReques * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestCreateEmbeddedExample.php * * @param Model\SignatureRequestCreateEmbeddedRequest $signature_request_create_embedded_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestCreateEmbedded'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestCreateEmbedded. This method will eventually become unavailable */ - public function signatureRequestCreateEmbeddedAsync(Model\SignatureRequestCreateEmbeddedRequest $signature_request_create_embedded_request, string $contentType = self::contentTypes['signatureRequestCreateEmbedded'][0]) + public function signatureRequestCreateEmbeddedAsync(Model\SignatureRequestCreateEmbeddedRequest $signature_request_create_embedded_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestCreateEmbedded'][0]) { - return $this->signatureRequestCreateEmbeddedAsyncWithHttpInfo($signature_request_create_embedded_request, $contentType) + return $this->signatureRequestCreateEmbeddedAsyncWithHttpInfo($signature_request_create_embedded_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -1315,16 +1369,17 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestCreateEmbeddedExample.php * * @param Model\SignatureRequestCreateEmbeddedRequest $signature_request_create_embedded_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestCreateEmbedded'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestCreateEmbedded. This method will eventually become unavailable */ - public function signatureRequestCreateEmbeddedAsyncWithHttpInfo(Model\SignatureRequestCreateEmbeddedRequest $signature_request_create_embedded_request, string $contentType = self::contentTypes['signatureRequestCreateEmbedded'][0]) + public function signatureRequestCreateEmbeddedAsyncWithHttpInfo(Model\SignatureRequestCreateEmbeddedRequest $signature_request_create_embedded_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestCreateEmbedded'][0]) { $returnType = '\Dropbox\Sign\Model\SignatureRequestGetResponse'; - $request = $this->signatureRequestCreateEmbeddedRequest($signature_request_create_embedded_request, $contentType); + $request = $this->signatureRequestCreateEmbeddedRequest($signature_request_create_embedded_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1366,13 +1421,14 @@ function ($exception) { * Create request for operation 'signatureRequestCreateEmbedded' * * @param Model\SignatureRequestCreateEmbeddedRequest $signature_request_create_embedded_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestCreateEmbedded'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestCreateEmbedded. This method will eventually become unavailable */ - public function signatureRequestCreateEmbeddedRequest(Model\SignatureRequestCreateEmbeddedRequest $signature_request_create_embedded_request, string $contentType = self::contentTypes['signatureRequestCreateEmbedded'][0]) + public function signatureRequestCreateEmbeddedRequest(Model\SignatureRequestCreateEmbeddedRequest $signature_request_create_embedded_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestCreateEmbedded'][0]) { // verify the required parameter 'signature_request_create_embedded_request' is set if ($signature_request_create_embedded_request === null || (is_array($signature_request_create_embedded_request) && count($signature_request_create_embedded_request) === 0)) { @@ -1381,6 +1437,13 @@ public function signatureRequestCreateEmbeddedRequest(Model\SignatureRequestCrea ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestCreateEmbedded, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestCreateEmbedded, must be bigger than or equal to 1.'); + } + $resourcePath = '/signature_request/create_embedded'; $formParams = []; $queryParams = []; @@ -1394,6 +1457,11 @@ public function signatureRequestCreateEmbeddedRequest(Model\SignatureRequestCrea $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -1480,14 +1548,15 @@ public function signatureRequestCreateEmbeddedRequest(Model\SignatureRequestCrea * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.php * * @param Model\SignatureRequestCreateEmbeddedWithTemplateRequest $signature_request_create_embedded_with_template_request signature_request_create_embedded_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\SignatureRequestGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function signatureRequestCreateEmbeddedWithTemplate(Model\SignatureRequestCreateEmbeddedWithTemplateRequest $signature_request_create_embedded_with_template_request) + public function signatureRequestCreateEmbeddedWithTemplate(Model\SignatureRequestCreateEmbeddedWithTemplateRequest $signature_request_create_embedded_with_template_request, ?string $idempotency_key = null) { - list($response) = $this->signatureRequestCreateEmbeddedWithTemplateWithHttpInfo($signature_request_create_embedded_with_template_request); + list($response) = $this->signatureRequestCreateEmbeddedWithTemplateWithHttpInfo($signature_request_create_embedded_with_template_request, $idempotency_key); return $response; } @@ -1499,6 +1568,7 @@ public function signatureRequestCreateEmbeddedWithTemplate(Model\SignatureReques * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.php * * @param Model\SignatureRequestCreateEmbeddedWithTemplateRequest $signature_request_create_embedded_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestCreateEmbeddedWithTemplate'] to see the possible values for this operation * * @return array of Model\SignatureRequestGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -1506,9 +1576,9 @@ public function signatureRequestCreateEmbeddedWithTemplate(Model\SignatureReques * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestCreateEmbeddedWithTemplate. This method will eventually become unavailable */ - public function signatureRequestCreateEmbeddedWithTemplateWithHttpInfo(Model\SignatureRequestCreateEmbeddedWithTemplateRequest $signature_request_create_embedded_with_template_request, string $contentType = self::contentTypes['signatureRequestCreateEmbeddedWithTemplate'][0]) + public function signatureRequestCreateEmbeddedWithTemplateWithHttpInfo(Model\SignatureRequestCreateEmbeddedWithTemplateRequest $signature_request_create_embedded_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestCreateEmbeddedWithTemplate'][0]) { - $request = $this->signatureRequestCreateEmbeddedWithTemplateRequest($signature_request_create_embedded_with_template_request, $contentType); + $request = $this->signatureRequestCreateEmbeddedWithTemplateRequest($signature_request_create_embedded_with_template_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -1638,15 +1708,16 @@ public function signatureRequestCreateEmbeddedWithTemplateWithHttpInfo(Model\Sig * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.php * * @param Model\SignatureRequestCreateEmbeddedWithTemplateRequest $signature_request_create_embedded_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestCreateEmbeddedWithTemplate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestCreateEmbeddedWithTemplate. This method will eventually become unavailable */ - public function signatureRequestCreateEmbeddedWithTemplateAsync(Model\SignatureRequestCreateEmbeddedWithTemplateRequest $signature_request_create_embedded_with_template_request, string $contentType = self::contentTypes['signatureRequestCreateEmbeddedWithTemplate'][0]) + public function signatureRequestCreateEmbeddedWithTemplateAsync(Model\SignatureRequestCreateEmbeddedWithTemplateRequest $signature_request_create_embedded_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestCreateEmbeddedWithTemplate'][0]) { - return $this->signatureRequestCreateEmbeddedWithTemplateAsyncWithHttpInfo($signature_request_create_embedded_with_template_request, $contentType) + return $this->signatureRequestCreateEmbeddedWithTemplateAsyncWithHttpInfo($signature_request_create_embedded_with_template_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -1662,16 +1733,17 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.php * * @param Model\SignatureRequestCreateEmbeddedWithTemplateRequest $signature_request_create_embedded_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestCreateEmbeddedWithTemplate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestCreateEmbeddedWithTemplate. This method will eventually become unavailable */ - public function signatureRequestCreateEmbeddedWithTemplateAsyncWithHttpInfo(Model\SignatureRequestCreateEmbeddedWithTemplateRequest $signature_request_create_embedded_with_template_request, string $contentType = self::contentTypes['signatureRequestCreateEmbeddedWithTemplate'][0]) + public function signatureRequestCreateEmbeddedWithTemplateAsyncWithHttpInfo(Model\SignatureRequestCreateEmbeddedWithTemplateRequest $signature_request_create_embedded_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestCreateEmbeddedWithTemplate'][0]) { $returnType = '\Dropbox\Sign\Model\SignatureRequestGetResponse'; - $request = $this->signatureRequestCreateEmbeddedWithTemplateRequest($signature_request_create_embedded_with_template_request, $contentType); + $request = $this->signatureRequestCreateEmbeddedWithTemplateRequest($signature_request_create_embedded_with_template_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1713,13 +1785,14 @@ function ($exception) { * Create request for operation 'signatureRequestCreateEmbeddedWithTemplate' * * @param Model\SignatureRequestCreateEmbeddedWithTemplateRequest $signature_request_create_embedded_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestCreateEmbeddedWithTemplate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestCreateEmbeddedWithTemplate. This method will eventually become unavailable */ - public function signatureRequestCreateEmbeddedWithTemplateRequest(Model\SignatureRequestCreateEmbeddedWithTemplateRequest $signature_request_create_embedded_with_template_request, string $contentType = self::contentTypes['signatureRequestCreateEmbeddedWithTemplate'][0]) + public function signatureRequestCreateEmbeddedWithTemplateRequest(Model\SignatureRequestCreateEmbeddedWithTemplateRequest $signature_request_create_embedded_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestCreateEmbeddedWithTemplate'][0]) { // verify the required parameter 'signature_request_create_embedded_with_template_request' is set if ($signature_request_create_embedded_with_template_request === null || (is_array($signature_request_create_embedded_with_template_request) && count($signature_request_create_embedded_with_template_request) === 0)) { @@ -1728,6 +1801,13 @@ public function signatureRequestCreateEmbeddedWithTemplateRequest(Model\Signatur ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestCreateEmbeddedWithTemplate, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestCreateEmbeddedWithTemplate, must be bigger than or equal to 1.'); + } + $resourcePath = '/signature_request/create_embedded_with_template'; $formParams = []; $queryParams = []; @@ -1741,6 +1821,11 @@ public function signatureRequestCreateEmbeddedWithTemplateRequest(Model\Signatur $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -1828,14 +1913,15 @@ public function signatureRequestCreateEmbeddedWithTemplateRequest(Model\Signatur * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditRequest $signature_request_edit_request signature_request_edit_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\SignatureRequestGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function signatureRequestEdit(string $signature_request_id, Model\SignatureRequestEditRequest $signature_request_edit_request) + public function signatureRequestEdit(string $signature_request_id, Model\SignatureRequestEditRequest $signature_request_edit_request, ?string $idempotency_key = null) { - list($response) = $this->signatureRequestEditWithHttpInfo($signature_request_id, $signature_request_edit_request); + list($response) = $this->signatureRequestEditWithHttpInfo($signature_request_id, $signature_request_edit_request, $idempotency_key); return $response; } @@ -1848,6 +1934,7 @@ public function signatureRequestEdit(string $signature_request_id, Model\Signatu * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditRequest $signature_request_edit_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestEdit'] to see the possible values for this operation * * @return array of Model\SignatureRequestGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -1855,9 +1942,9 @@ public function signatureRequestEdit(string $signature_request_id, Model\Signatu * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestEdit. This method will eventually become unavailable */ - public function signatureRequestEditWithHttpInfo(string $signature_request_id, Model\SignatureRequestEditRequest $signature_request_edit_request, string $contentType = self::contentTypes['signatureRequestEdit'][0]) + public function signatureRequestEditWithHttpInfo(string $signature_request_id, Model\SignatureRequestEditRequest $signature_request_edit_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestEdit'][0]) { - $request = $this->signatureRequestEditRequest($signature_request_id, $signature_request_edit_request, $contentType); + $request = $this->signatureRequestEditRequest($signature_request_id, $signature_request_edit_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -1988,15 +2075,16 @@ public function signatureRequestEditWithHttpInfo(string $signature_request_id, M * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditRequest $signature_request_edit_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestEdit'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestEdit. This method will eventually become unavailable */ - public function signatureRequestEditAsync(string $signature_request_id, Model\SignatureRequestEditRequest $signature_request_edit_request, string $contentType = self::contentTypes['signatureRequestEdit'][0]) + public function signatureRequestEditAsync(string $signature_request_id, Model\SignatureRequestEditRequest $signature_request_edit_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestEdit'][0]) { - return $this->signatureRequestEditAsyncWithHttpInfo($signature_request_id, $signature_request_edit_request, $contentType) + return $this->signatureRequestEditAsyncWithHttpInfo($signature_request_id, $signature_request_edit_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -2013,16 +2101,17 @@ function ($response) { * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditRequest $signature_request_edit_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestEdit'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestEdit. This method will eventually become unavailable */ - public function signatureRequestEditAsyncWithHttpInfo(string $signature_request_id, Model\SignatureRequestEditRequest $signature_request_edit_request, string $contentType = self::contentTypes['signatureRequestEdit'][0]) + public function signatureRequestEditAsyncWithHttpInfo(string $signature_request_id, Model\SignatureRequestEditRequest $signature_request_edit_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestEdit'][0]) { $returnType = '\Dropbox\Sign\Model\SignatureRequestGetResponse'; - $request = $this->signatureRequestEditRequest($signature_request_id, $signature_request_edit_request, $contentType); + $request = $this->signatureRequestEditRequest($signature_request_id, $signature_request_edit_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2065,13 +2154,14 @@ function ($exception) { * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditRequest $signature_request_edit_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestEdit'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestEdit. This method will eventually become unavailable */ - public function signatureRequestEditRequest(string $signature_request_id, Model\SignatureRequestEditRequest $signature_request_edit_request, string $contentType = self::contentTypes['signatureRequestEdit'][0]) + public function signatureRequestEditRequest(string $signature_request_id, Model\SignatureRequestEditRequest $signature_request_edit_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestEdit'][0]) { // verify the required parameter 'signature_request_id' is set if ($signature_request_id === null || (is_array($signature_request_id) && count($signature_request_id) === 0)) { @@ -2087,6 +2177,13 @@ public function signatureRequestEditRequest(string $signature_request_id, Model\ ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestEdit, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestEdit, must be bigger than or equal to 1.'); + } + $resourcePath = '/signature_request/edit/{signature_request_id}'; $formParams = []; $queryParams = []; @@ -2100,6 +2197,11 @@ public function signatureRequestEditRequest(string $signature_request_id, Model\ $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + // path params if ($signature_request_id !== null) { $resourcePath = str_replace( @@ -2196,14 +2298,15 @@ public function signatureRequestEditRequest(string $signature_request_id, Model\ * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditEmbeddedRequest $signature_request_edit_embedded_request signature_request_edit_embedded_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\SignatureRequestGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function signatureRequestEditEmbedded(string $signature_request_id, Model\SignatureRequestEditEmbeddedRequest $signature_request_edit_embedded_request) + public function signatureRequestEditEmbedded(string $signature_request_id, Model\SignatureRequestEditEmbeddedRequest $signature_request_edit_embedded_request, ?string $idempotency_key = null) { - list($response) = $this->signatureRequestEditEmbeddedWithHttpInfo($signature_request_id, $signature_request_edit_embedded_request); + list($response) = $this->signatureRequestEditEmbeddedWithHttpInfo($signature_request_id, $signature_request_edit_embedded_request, $idempotency_key); return $response; } @@ -2216,6 +2319,7 @@ public function signatureRequestEditEmbedded(string $signature_request_id, Model * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditEmbeddedRequest $signature_request_edit_embedded_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestEditEmbedded'] to see the possible values for this operation * * @return array of Model\SignatureRequestGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -2223,9 +2327,9 @@ public function signatureRequestEditEmbedded(string $signature_request_id, Model * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestEditEmbedded. This method will eventually become unavailable */ - public function signatureRequestEditEmbeddedWithHttpInfo(string $signature_request_id, Model\SignatureRequestEditEmbeddedRequest $signature_request_edit_embedded_request, string $contentType = self::contentTypes['signatureRequestEditEmbedded'][0]) + public function signatureRequestEditEmbeddedWithHttpInfo(string $signature_request_id, Model\SignatureRequestEditEmbeddedRequest $signature_request_edit_embedded_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestEditEmbedded'][0]) { - $request = $this->signatureRequestEditEmbeddedRequest($signature_request_id, $signature_request_edit_embedded_request, $contentType); + $request = $this->signatureRequestEditEmbeddedRequest($signature_request_id, $signature_request_edit_embedded_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -2356,15 +2460,16 @@ public function signatureRequestEditEmbeddedWithHttpInfo(string $signature_reque * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditEmbeddedRequest $signature_request_edit_embedded_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestEditEmbedded'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestEditEmbedded. This method will eventually become unavailable */ - public function signatureRequestEditEmbeddedAsync(string $signature_request_id, Model\SignatureRequestEditEmbeddedRequest $signature_request_edit_embedded_request, string $contentType = self::contentTypes['signatureRequestEditEmbedded'][0]) + public function signatureRequestEditEmbeddedAsync(string $signature_request_id, Model\SignatureRequestEditEmbeddedRequest $signature_request_edit_embedded_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestEditEmbedded'][0]) { - return $this->signatureRequestEditEmbeddedAsyncWithHttpInfo($signature_request_id, $signature_request_edit_embedded_request, $contentType) + return $this->signatureRequestEditEmbeddedAsyncWithHttpInfo($signature_request_id, $signature_request_edit_embedded_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -2381,16 +2486,17 @@ function ($response) { * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditEmbeddedRequest $signature_request_edit_embedded_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestEditEmbedded'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestEditEmbedded. This method will eventually become unavailable */ - public function signatureRequestEditEmbeddedAsyncWithHttpInfo(string $signature_request_id, Model\SignatureRequestEditEmbeddedRequest $signature_request_edit_embedded_request, string $contentType = self::contentTypes['signatureRequestEditEmbedded'][0]) + public function signatureRequestEditEmbeddedAsyncWithHttpInfo(string $signature_request_id, Model\SignatureRequestEditEmbeddedRequest $signature_request_edit_embedded_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestEditEmbedded'][0]) { $returnType = '\Dropbox\Sign\Model\SignatureRequestGetResponse'; - $request = $this->signatureRequestEditEmbeddedRequest($signature_request_id, $signature_request_edit_embedded_request, $contentType); + $request = $this->signatureRequestEditEmbeddedRequest($signature_request_id, $signature_request_edit_embedded_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2433,13 +2539,14 @@ function ($exception) { * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditEmbeddedRequest $signature_request_edit_embedded_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestEditEmbedded'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestEditEmbedded. This method will eventually become unavailable */ - public function signatureRequestEditEmbeddedRequest(string $signature_request_id, Model\SignatureRequestEditEmbeddedRequest $signature_request_edit_embedded_request, string $contentType = self::contentTypes['signatureRequestEditEmbedded'][0]) + public function signatureRequestEditEmbeddedRequest(string $signature_request_id, Model\SignatureRequestEditEmbeddedRequest $signature_request_edit_embedded_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestEditEmbedded'][0]) { // verify the required parameter 'signature_request_id' is set if ($signature_request_id === null || (is_array($signature_request_id) && count($signature_request_id) === 0)) { @@ -2455,6 +2562,13 @@ public function signatureRequestEditEmbeddedRequest(string $signature_request_id ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestEditEmbedded, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestEditEmbedded, must be bigger than or equal to 1.'); + } + $resourcePath = '/signature_request/edit_embedded/{signature_request_id}'; $formParams = []; $queryParams = []; @@ -2468,6 +2582,11 @@ public function signatureRequestEditEmbeddedRequest(string $signature_request_id $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + // path params if ($signature_request_id !== null) { $resourcePath = str_replace( @@ -2564,14 +2683,15 @@ public function signatureRequestEditEmbeddedRequest(string $signature_request_id * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditEmbeddedWithTemplateRequest $signature_request_edit_embedded_with_template_request signature_request_edit_embedded_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\SignatureRequestGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function signatureRequestEditEmbeddedWithTemplate(string $signature_request_id, Model\SignatureRequestEditEmbeddedWithTemplateRequest $signature_request_edit_embedded_with_template_request) + public function signatureRequestEditEmbeddedWithTemplate(string $signature_request_id, Model\SignatureRequestEditEmbeddedWithTemplateRequest $signature_request_edit_embedded_with_template_request, ?string $idempotency_key = null) { - list($response) = $this->signatureRequestEditEmbeddedWithTemplateWithHttpInfo($signature_request_id, $signature_request_edit_embedded_with_template_request); + list($response) = $this->signatureRequestEditEmbeddedWithTemplateWithHttpInfo($signature_request_id, $signature_request_edit_embedded_with_template_request, $idempotency_key); return $response; } @@ -2584,6 +2704,7 @@ public function signatureRequestEditEmbeddedWithTemplate(string $signature_reque * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditEmbeddedWithTemplateRequest $signature_request_edit_embedded_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestEditEmbeddedWithTemplate'] to see the possible values for this operation * * @return array of Model\SignatureRequestGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -2591,9 +2712,9 @@ public function signatureRequestEditEmbeddedWithTemplate(string $signature_reque * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestEditEmbeddedWithTemplate. This method will eventually become unavailable */ - public function signatureRequestEditEmbeddedWithTemplateWithHttpInfo(string $signature_request_id, Model\SignatureRequestEditEmbeddedWithTemplateRequest $signature_request_edit_embedded_with_template_request, string $contentType = self::contentTypes['signatureRequestEditEmbeddedWithTemplate'][0]) + public function signatureRequestEditEmbeddedWithTemplateWithHttpInfo(string $signature_request_id, Model\SignatureRequestEditEmbeddedWithTemplateRequest $signature_request_edit_embedded_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestEditEmbeddedWithTemplate'][0]) { - $request = $this->signatureRequestEditEmbeddedWithTemplateRequest($signature_request_id, $signature_request_edit_embedded_with_template_request, $contentType); + $request = $this->signatureRequestEditEmbeddedWithTemplateRequest($signature_request_id, $signature_request_edit_embedded_with_template_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -2724,15 +2845,16 @@ public function signatureRequestEditEmbeddedWithTemplateWithHttpInfo(string $sig * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditEmbeddedWithTemplateRequest $signature_request_edit_embedded_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestEditEmbeddedWithTemplate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestEditEmbeddedWithTemplate. This method will eventually become unavailable */ - public function signatureRequestEditEmbeddedWithTemplateAsync(string $signature_request_id, Model\SignatureRequestEditEmbeddedWithTemplateRequest $signature_request_edit_embedded_with_template_request, string $contentType = self::contentTypes['signatureRequestEditEmbeddedWithTemplate'][0]) + public function signatureRequestEditEmbeddedWithTemplateAsync(string $signature_request_id, Model\SignatureRequestEditEmbeddedWithTemplateRequest $signature_request_edit_embedded_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestEditEmbeddedWithTemplate'][0]) { - return $this->signatureRequestEditEmbeddedWithTemplateAsyncWithHttpInfo($signature_request_id, $signature_request_edit_embedded_with_template_request, $contentType) + return $this->signatureRequestEditEmbeddedWithTemplateAsyncWithHttpInfo($signature_request_id, $signature_request_edit_embedded_with_template_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -2749,16 +2871,17 @@ function ($response) { * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditEmbeddedWithTemplateRequest $signature_request_edit_embedded_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestEditEmbeddedWithTemplate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestEditEmbeddedWithTemplate. This method will eventually become unavailable */ - public function signatureRequestEditEmbeddedWithTemplateAsyncWithHttpInfo(string $signature_request_id, Model\SignatureRequestEditEmbeddedWithTemplateRequest $signature_request_edit_embedded_with_template_request, string $contentType = self::contentTypes['signatureRequestEditEmbeddedWithTemplate'][0]) + public function signatureRequestEditEmbeddedWithTemplateAsyncWithHttpInfo(string $signature_request_id, Model\SignatureRequestEditEmbeddedWithTemplateRequest $signature_request_edit_embedded_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestEditEmbeddedWithTemplate'][0]) { $returnType = '\Dropbox\Sign\Model\SignatureRequestGetResponse'; - $request = $this->signatureRequestEditEmbeddedWithTemplateRequest($signature_request_id, $signature_request_edit_embedded_with_template_request, $contentType); + $request = $this->signatureRequestEditEmbeddedWithTemplateRequest($signature_request_id, $signature_request_edit_embedded_with_template_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2801,13 +2924,14 @@ function ($exception) { * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditEmbeddedWithTemplateRequest $signature_request_edit_embedded_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestEditEmbeddedWithTemplate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestEditEmbeddedWithTemplate. This method will eventually become unavailable */ - public function signatureRequestEditEmbeddedWithTemplateRequest(string $signature_request_id, Model\SignatureRequestEditEmbeddedWithTemplateRequest $signature_request_edit_embedded_with_template_request, string $contentType = self::contentTypes['signatureRequestEditEmbeddedWithTemplate'][0]) + public function signatureRequestEditEmbeddedWithTemplateRequest(string $signature_request_id, Model\SignatureRequestEditEmbeddedWithTemplateRequest $signature_request_edit_embedded_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestEditEmbeddedWithTemplate'][0]) { // verify the required parameter 'signature_request_id' is set if ($signature_request_id === null || (is_array($signature_request_id) && count($signature_request_id) === 0)) { @@ -2823,6 +2947,13 @@ public function signatureRequestEditEmbeddedWithTemplateRequest(string $signatur ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestEditEmbeddedWithTemplate, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestEditEmbeddedWithTemplate, must be bigger than or equal to 1.'); + } + $resourcePath = '/signature_request/edit_embedded_with_template/{signature_request_id}'; $formParams = []; $queryParams = []; @@ -2836,6 +2967,11 @@ public function signatureRequestEditEmbeddedWithTemplateRequest(string $signatur $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + // path params if ($signature_request_id !== null) { $resourcePath = str_replace( @@ -2932,14 +3068,15 @@ public function signatureRequestEditEmbeddedWithTemplateRequest(string $signatur * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditWithTemplateRequest $signature_request_edit_with_template_request signature_request_edit_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\SignatureRequestGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function signatureRequestEditWithTemplate(string $signature_request_id, Model\SignatureRequestEditWithTemplateRequest $signature_request_edit_with_template_request) + public function signatureRequestEditWithTemplate(string $signature_request_id, Model\SignatureRequestEditWithTemplateRequest $signature_request_edit_with_template_request, ?string $idempotency_key = null) { - list($response) = $this->signatureRequestEditWithTemplateWithHttpInfo($signature_request_id, $signature_request_edit_with_template_request); + list($response) = $this->signatureRequestEditWithTemplateWithHttpInfo($signature_request_id, $signature_request_edit_with_template_request, $idempotency_key); return $response; } @@ -2952,6 +3089,7 @@ public function signatureRequestEditWithTemplate(string $signature_request_id, M * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditWithTemplateRequest $signature_request_edit_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestEditWithTemplate'] to see the possible values for this operation * * @return array of Model\SignatureRequestGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -2959,9 +3097,9 @@ public function signatureRequestEditWithTemplate(string $signature_request_id, M * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestEditWithTemplate. This method will eventually become unavailable */ - public function signatureRequestEditWithTemplateWithHttpInfo(string $signature_request_id, Model\SignatureRequestEditWithTemplateRequest $signature_request_edit_with_template_request, string $contentType = self::contentTypes['signatureRequestEditWithTemplate'][0]) + public function signatureRequestEditWithTemplateWithHttpInfo(string $signature_request_id, Model\SignatureRequestEditWithTemplateRequest $signature_request_edit_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestEditWithTemplate'][0]) { - $request = $this->signatureRequestEditWithTemplateRequest($signature_request_id, $signature_request_edit_with_template_request, $contentType); + $request = $this->signatureRequestEditWithTemplateRequest($signature_request_id, $signature_request_edit_with_template_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -3092,15 +3230,16 @@ public function signatureRequestEditWithTemplateWithHttpInfo(string $signature_r * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditWithTemplateRequest $signature_request_edit_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestEditWithTemplate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestEditWithTemplate. This method will eventually become unavailable */ - public function signatureRequestEditWithTemplateAsync(string $signature_request_id, Model\SignatureRequestEditWithTemplateRequest $signature_request_edit_with_template_request, string $contentType = self::contentTypes['signatureRequestEditWithTemplate'][0]) + public function signatureRequestEditWithTemplateAsync(string $signature_request_id, Model\SignatureRequestEditWithTemplateRequest $signature_request_edit_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestEditWithTemplate'][0]) { - return $this->signatureRequestEditWithTemplateAsyncWithHttpInfo($signature_request_id, $signature_request_edit_with_template_request, $contentType) + return $this->signatureRequestEditWithTemplateAsyncWithHttpInfo($signature_request_id, $signature_request_edit_with_template_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -3117,16 +3256,17 @@ function ($response) { * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditWithTemplateRequest $signature_request_edit_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestEditWithTemplate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestEditWithTemplate. This method will eventually become unavailable */ - public function signatureRequestEditWithTemplateAsyncWithHttpInfo(string $signature_request_id, Model\SignatureRequestEditWithTemplateRequest $signature_request_edit_with_template_request, string $contentType = self::contentTypes['signatureRequestEditWithTemplate'][0]) + public function signatureRequestEditWithTemplateAsyncWithHttpInfo(string $signature_request_id, Model\SignatureRequestEditWithTemplateRequest $signature_request_edit_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestEditWithTemplate'][0]) { $returnType = '\Dropbox\Sign\Model\SignatureRequestGetResponse'; - $request = $this->signatureRequestEditWithTemplateRequest($signature_request_id, $signature_request_edit_with_template_request, $contentType); + $request = $this->signatureRequestEditWithTemplateRequest($signature_request_id, $signature_request_edit_with_template_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3169,13 +3309,14 @@ function ($exception) { * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditWithTemplateRequest $signature_request_edit_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestEditWithTemplate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestEditWithTemplate. This method will eventually become unavailable */ - public function signatureRequestEditWithTemplateRequest(string $signature_request_id, Model\SignatureRequestEditWithTemplateRequest $signature_request_edit_with_template_request, string $contentType = self::contentTypes['signatureRequestEditWithTemplate'][0]) + public function signatureRequestEditWithTemplateRequest(string $signature_request_id, Model\SignatureRequestEditWithTemplateRequest $signature_request_edit_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestEditWithTemplate'][0]) { // verify the required parameter 'signature_request_id' is set if ($signature_request_id === null || (is_array($signature_request_id) && count($signature_request_id) === 0)) { @@ -3191,6 +3332,13 @@ public function signatureRequestEditWithTemplateRequest(string $signature_reques ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestEditWithTemplate, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestEditWithTemplate, must be bigger than or equal to 1.'); + } + $resourcePath = '/signature_request/edit_with_template/{signature_request_id}'; $formParams = []; $queryParams = []; @@ -3204,6 +3352,11 @@ public function signatureRequestEditWithTemplateRequest(string $signature_reques $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + // path params if ($signature_request_id !== null) { $resourcePath = str_replace( @@ -5064,15 +5217,16 @@ public function signatureRequestListRequest(?string $account_id = null, ?int $pa * * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestReleaseHoldExample.php * - * @param string $signature_request_id The id of the SignatureRequest to release. (required) + * @param string $signature_request_id The id of the SignatureRequest to release. (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\SignatureRequestGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function signatureRequestReleaseHold(string $signature_request_id) + public function signatureRequestReleaseHold(string $signature_request_id, ?string $idempotency_key = null) { - list($response) = $this->signatureRequestReleaseHoldWithHttpInfo($signature_request_id); + list($response) = $this->signatureRequestReleaseHoldWithHttpInfo($signature_request_id, $idempotency_key); return $response; } @@ -5083,17 +5237,18 @@ public function signatureRequestReleaseHold(string $signature_request_id) * * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestReleaseHoldExample.php * - * @param string $signature_request_id The id of the SignatureRequest to release. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestReleaseHold'] to see the possible values for this operation + * @param string $signature_request_id The id of the SignatureRequest to release. (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestReleaseHold'] to see the possible values for this operation * * @return array of Model\SignatureRequestGetResponse, HTTP status code, HTTP response headers (array of strings) * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestReleaseHold. This method will eventually become unavailable */ - public function signatureRequestReleaseHoldWithHttpInfo(string $signature_request_id, string $contentType = self::contentTypes['signatureRequestReleaseHold'][0]) + public function signatureRequestReleaseHoldWithHttpInfo(string $signature_request_id, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestReleaseHold'][0]) { - $request = $this->signatureRequestReleaseHoldRequest($signature_request_id, $contentType); + $request = $this->signatureRequestReleaseHoldRequest($signature_request_id, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -5222,16 +5377,17 @@ public function signatureRequestReleaseHoldWithHttpInfo(string $signature_reques * * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestReleaseHoldExample.php * - * @param string $signature_request_id The id of the SignatureRequest to release. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestReleaseHold'] to see the possible values for this operation + * @param string $signature_request_id The id of the SignatureRequest to release. (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestReleaseHold'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestReleaseHold. This method will eventually become unavailable */ - public function signatureRequestReleaseHoldAsync(string $signature_request_id, string $contentType = self::contentTypes['signatureRequestReleaseHold'][0]) + public function signatureRequestReleaseHoldAsync(string $signature_request_id, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestReleaseHold'][0]) { - return $this->signatureRequestReleaseHoldAsyncWithHttpInfo($signature_request_id, $contentType) + return $this->signatureRequestReleaseHoldAsyncWithHttpInfo($signature_request_id, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -5246,17 +5402,18 @@ function ($response) { * * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestReleaseHoldExample.php * - * @param string $signature_request_id The id of the SignatureRequest to release. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestReleaseHold'] to see the possible values for this operation + * @param string $signature_request_id The id of the SignatureRequest to release. (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestReleaseHold'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestReleaseHold. This method will eventually become unavailable */ - public function signatureRequestReleaseHoldAsyncWithHttpInfo(string $signature_request_id, string $contentType = self::contentTypes['signatureRequestReleaseHold'][0]) + public function signatureRequestReleaseHoldAsyncWithHttpInfo(string $signature_request_id, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestReleaseHold'][0]) { $returnType = '\Dropbox\Sign\Model\SignatureRequestGetResponse'; - $request = $this->signatureRequestReleaseHoldRequest($signature_request_id, $contentType); + $request = $this->signatureRequestReleaseHoldRequest($signature_request_id, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5297,14 +5454,15 @@ function ($exception) { /** * Create request for operation 'signatureRequestReleaseHold' * - * @param string $signature_request_id The id of the SignatureRequest to release. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestReleaseHold'] to see the possible values for this operation + * @param string $signature_request_id The id of the SignatureRequest to release. (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestReleaseHold'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestReleaseHold. This method will eventually become unavailable */ - public function signatureRequestReleaseHoldRequest(string $signature_request_id, string $contentType = self::contentTypes['signatureRequestReleaseHold'][0]) + public function signatureRequestReleaseHoldRequest(string $signature_request_id, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestReleaseHold'][0]) { // verify the required parameter 'signature_request_id' is set if ($signature_request_id === null || (is_array($signature_request_id) && count($signature_request_id) === 0)) { @@ -5313,6 +5471,13 @@ public function signatureRequestReleaseHoldRequest(string $signature_request_id, ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestReleaseHold, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestReleaseHold, must be bigger than or equal to 1.'); + } + $resourcePath = '/signature_request/release_hold/{signature_request_id}'; $formParams = []; $queryParams = []; @@ -5320,6 +5485,11 @@ public function signatureRequestReleaseHoldRequest(string $signature_request_id, $httpBody = ''; $multipart = false; + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + // path params if ($signature_request_id !== null) { $resourcePath = str_replace( @@ -5406,14 +5576,15 @@ public function signatureRequestReleaseHoldRequest(string $signature_request_id, * * @param string $signature_request_id The id of the SignatureRequest to send a reminder for. (required) * @param Model\SignatureRequestRemindRequest $signature_request_remind_request signature_request_remind_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\SignatureRequestGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function signatureRequestRemind(string $signature_request_id, Model\SignatureRequestRemindRequest $signature_request_remind_request) + public function signatureRequestRemind(string $signature_request_id, Model\SignatureRequestRemindRequest $signature_request_remind_request, ?string $idempotency_key = null) { - list($response) = $this->signatureRequestRemindWithHttpInfo($signature_request_id, $signature_request_remind_request); + list($response) = $this->signatureRequestRemindWithHttpInfo($signature_request_id, $signature_request_remind_request, $idempotency_key); return $response; } @@ -5426,6 +5597,7 @@ public function signatureRequestRemind(string $signature_request_id, Model\Signa * * @param string $signature_request_id The id of the SignatureRequest to send a reminder for. (required) * @param Model\SignatureRequestRemindRequest $signature_request_remind_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestRemind'] to see the possible values for this operation * * @return array of Model\SignatureRequestGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -5433,9 +5605,9 @@ public function signatureRequestRemind(string $signature_request_id, Model\Signa * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestRemind. This method will eventually become unavailable */ - public function signatureRequestRemindWithHttpInfo(string $signature_request_id, Model\SignatureRequestRemindRequest $signature_request_remind_request, string $contentType = self::contentTypes['signatureRequestRemind'][0]) + public function signatureRequestRemindWithHttpInfo(string $signature_request_id, Model\SignatureRequestRemindRequest $signature_request_remind_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestRemind'][0]) { - $request = $this->signatureRequestRemindRequest($signature_request_id, $signature_request_remind_request, $contentType); + $request = $this->signatureRequestRemindRequest($signature_request_id, $signature_request_remind_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -5566,15 +5738,16 @@ public function signatureRequestRemindWithHttpInfo(string $signature_request_id, * * @param string $signature_request_id The id of the SignatureRequest to send a reminder for. (required) * @param Model\SignatureRequestRemindRequest $signature_request_remind_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestRemind'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestRemind. This method will eventually become unavailable */ - public function signatureRequestRemindAsync(string $signature_request_id, Model\SignatureRequestRemindRequest $signature_request_remind_request, string $contentType = self::contentTypes['signatureRequestRemind'][0]) + public function signatureRequestRemindAsync(string $signature_request_id, Model\SignatureRequestRemindRequest $signature_request_remind_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestRemind'][0]) { - return $this->signatureRequestRemindAsyncWithHttpInfo($signature_request_id, $signature_request_remind_request, $contentType) + return $this->signatureRequestRemindAsyncWithHttpInfo($signature_request_id, $signature_request_remind_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -5591,16 +5764,17 @@ function ($response) { * * @param string $signature_request_id The id of the SignatureRequest to send a reminder for. (required) * @param Model\SignatureRequestRemindRequest $signature_request_remind_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestRemind'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestRemind. This method will eventually become unavailable */ - public function signatureRequestRemindAsyncWithHttpInfo(string $signature_request_id, Model\SignatureRequestRemindRequest $signature_request_remind_request, string $contentType = self::contentTypes['signatureRequestRemind'][0]) + public function signatureRequestRemindAsyncWithHttpInfo(string $signature_request_id, Model\SignatureRequestRemindRequest $signature_request_remind_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestRemind'][0]) { $returnType = '\Dropbox\Sign\Model\SignatureRequestGetResponse'; - $request = $this->signatureRequestRemindRequest($signature_request_id, $signature_request_remind_request, $contentType); + $request = $this->signatureRequestRemindRequest($signature_request_id, $signature_request_remind_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5643,13 +5817,14 @@ function ($exception) { * * @param string $signature_request_id The id of the SignatureRequest to send a reminder for. (required) * @param Model\SignatureRequestRemindRequest $signature_request_remind_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestRemind'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestRemind. This method will eventually become unavailable */ - public function signatureRequestRemindRequest(string $signature_request_id, Model\SignatureRequestRemindRequest $signature_request_remind_request, string $contentType = self::contentTypes['signatureRequestRemind'][0]) + public function signatureRequestRemindRequest(string $signature_request_id, Model\SignatureRequestRemindRequest $signature_request_remind_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestRemind'][0]) { // verify the required parameter 'signature_request_id' is set if ($signature_request_id === null || (is_array($signature_request_id) && count($signature_request_id) === 0)) { @@ -5665,6 +5840,13 @@ public function signatureRequestRemindRequest(string $signature_request_id, Mode ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestRemind, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestRemind, must be bigger than or equal to 1.'); + } + $resourcePath = '/signature_request/remind/{signature_request_id}'; $formParams = []; $queryParams = []; @@ -5678,6 +5860,11 @@ public function signatureRequestRemindRequest(string $signature_request_id, Mode $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + // path params if ($signature_request_id !== null) { $resourcePath = str_replace( @@ -5772,14 +5959,15 @@ public function signatureRequestRemindRequest(string $signature_request_id, Mode * * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestRemoveExample.php * - * @param string $signature_request_id The id of the SignatureRequest to remove. (required) + * @param string $signature_request_id The id of the SignatureRequest to remove. (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function signatureRequestRemove(string $signature_request_id) + public function signatureRequestRemove(string $signature_request_id, ?string $idempotency_key = null) { - $this->signatureRequestRemoveWithHttpInfo($signature_request_id); + $this->signatureRequestRemoveWithHttpInfo($signature_request_id, $idempotency_key); } /** @@ -5789,17 +5977,18 @@ public function signatureRequestRemove(string $signature_request_id) * * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestRemoveExample.php * - * @param string $signature_request_id The id of the SignatureRequest to remove. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestRemove'] to see the possible values for this operation + * @param string $signature_request_id The id of the SignatureRequest to remove. (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestRemove'] to see the possible values for this operation * * @return array of null, HTTP status code, HTTP response headers (array of strings) * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestRemove. This method will eventually become unavailable */ - public function signatureRequestRemoveWithHttpInfo(string $signature_request_id, string $contentType = self::contentTypes['signatureRequestRemove'][0]) + public function signatureRequestRemoveWithHttpInfo(string $signature_request_id, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestRemove'][0]) { - $request = $this->signatureRequestRemoveRequest($signature_request_id, $contentType); + $request = $this->signatureRequestRemoveRequest($signature_request_id, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -5842,16 +6031,17 @@ public function signatureRequestRemoveWithHttpInfo(string $signature_request_id, * * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestRemoveExample.php * - * @param string $signature_request_id The id of the SignatureRequest to remove. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestRemove'] to see the possible values for this operation + * @param string $signature_request_id The id of the SignatureRequest to remove. (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestRemove'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestRemove. This method will eventually become unavailable */ - public function signatureRequestRemoveAsync(string $signature_request_id, string $contentType = self::contentTypes['signatureRequestRemove'][0]) + public function signatureRequestRemoveAsync(string $signature_request_id, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestRemove'][0]) { - return $this->signatureRequestRemoveAsyncWithHttpInfo($signature_request_id, $contentType) + return $this->signatureRequestRemoveAsyncWithHttpInfo($signature_request_id, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -5866,17 +6056,18 @@ function ($response) { * * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestRemoveExample.php * - * @param string $signature_request_id The id of the SignatureRequest to remove. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestRemove'] to see the possible values for this operation + * @param string $signature_request_id The id of the SignatureRequest to remove. (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestRemove'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestRemove. This method will eventually become unavailable */ - public function signatureRequestRemoveAsyncWithHttpInfo(string $signature_request_id, string $contentType = self::contentTypes['signatureRequestRemove'][0]) + public function signatureRequestRemoveAsyncWithHttpInfo(string $signature_request_id, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestRemove'][0]) { $returnType = ''; - $request = $this->signatureRequestRemoveRequest($signature_request_id, $contentType); + $request = $this->signatureRequestRemoveRequest($signature_request_id, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5904,14 +6095,15 @@ function ($exception) { /** * Create request for operation 'signatureRequestRemove' * - * @param string $signature_request_id The id of the SignatureRequest to remove. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestRemove'] to see the possible values for this operation + * @param string $signature_request_id The id of the SignatureRequest to remove. (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestRemove'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestRemove. This method will eventually become unavailable */ - public function signatureRequestRemoveRequest(string $signature_request_id, string $contentType = self::contentTypes['signatureRequestRemove'][0]) + public function signatureRequestRemoveRequest(string $signature_request_id, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestRemove'][0]) { // verify the required parameter 'signature_request_id' is set if ($signature_request_id === null || (is_array($signature_request_id) && count($signature_request_id) === 0)) { @@ -5920,6 +6112,13 @@ public function signatureRequestRemoveRequest(string $signature_request_id, stri ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestRemove, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestRemove, must be bigger than or equal to 1.'); + } + $resourcePath = '/signature_request/remove/{signature_request_id}'; $formParams = []; $queryParams = []; @@ -5927,6 +6126,11 @@ public function signatureRequestRemoveRequest(string $signature_request_id, stri $httpBody = ''; $multipart = false; + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + // path params if ($signature_request_id !== null) { $resourcePath = str_replace( @@ -6008,14 +6212,15 @@ public function signatureRequestRemoveRequest(string $signature_request_id, stri * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestSendExample.php * * @param Model\SignatureRequestSendRequest $signature_request_send_request signature_request_send_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\SignatureRequestGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function signatureRequestSend(Model\SignatureRequestSendRequest $signature_request_send_request) + public function signatureRequestSend(Model\SignatureRequestSendRequest $signature_request_send_request, ?string $idempotency_key = null) { - list($response) = $this->signatureRequestSendWithHttpInfo($signature_request_send_request); + list($response) = $this->signatureRequestSendWithHttpInfo($signature_request_send_request, $idempotency_key); return $response; } @@ -6027,6 +6232,7 @@ public function signatureRequestSend(Model\SignatureRequestSendRequest $signatur * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestSendExample.php * * @param Model\SignatureRequestSendRequest $signature_request_send_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestSend'] to see the possible values for this operation * * @return array of Model\SignatureRequestGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -6034,9 +6240,9 @@ public function signatureRequestSend(Model\SignatureRequestSendRequest $signatur * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestSend. This method will eventually become unavailable */ - public function signatureRequestSendWithHttpInfo(Model\SignatureRequestSendRequest $signature_request_send_request, string $contentType = self::contentTypes['signatureRequestSend'][0]) + public function signatureRequestSendWithHttpInfo(Model\SignatureRequestSendRequest $signature_request_send_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestSend'][0]) { - $request = $this->signatureRequestSendRequest($signature_request_send_request, $contentType); + $request = $this->signatureRequestSendRequest($signature_request_send_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -6166,15 +6372,16 @@ public function signatureRequestSendWithHttpInfo(Model\SignatureRequestSendReque * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestSendExample.php * * @param Model\SignatureRequestSendRequest $signature_request_send_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestSend'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestSend. This method will eventually become unavailable */ - public function signatureRequestSendAsync(Model\SignatureRequestSendRequest $signature_request_send_request, string $contentType = self::contentTypes['signatureRequestSend'][0]) + public function signatureRequestSendAsync(Model\SignatureRequestSendRequest $signature_request_send_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestSend'][0]) { - return $this->signatureRequestSendAsyncWithHttpInfo($signature_request_send_request, $contentType) + return $this->signatureRequestSendAsyncWithHttpInfo($signature_request_send_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -6190,16 +6397,17 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestSendExample.php * * @param Model\SignatureRequestSendRequest $signature_request_send_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestSend'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestSend. This method will eventually become unavailable */ - public function signatureRequestSendAsyncWithHttpInfo(Model\SignatureRequestSendRequest $signature_request_send_request, string $contentType = self::contentTypes['signatureRequestSend'][0]) + public function signatureRequestSendAsyncWithHttpInfo(Model\SignatureRequestSendRequest $signature_request_send_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestSend'][0]) { $returnType = '\Dropbox\Sign\Model\SignatureRequestGetResponse'; - $request = $this->signatureRequestSendRequest($signature_request_send_request, $contentType); + $request = $this->signatureRequestSendRequest($signature_request_send_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -6241,13 +6449,14 @@ function ($exception) { * Create request for operation 'signatureRequestSend' * * @param Model\SignatureRequestSendRequest $signature_request_send_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestSend'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestSend. This method will eventually become unavailable */ - public function signatureRequestSendRequest(Model\SignatureRequestSendRequest $signature_request_send_request, string $contentType = self::contentTypes['signatureRequestSend'][0]) + public function signatureRequestSendRequest(Model\SignatureRequestSendRequest $signature_request_send_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestSend'][0]) { // verify the required parameter 'signature_request_send_request' is set if ($signature_request_send_request === null || (is_array($signature_request_send_request) && count($signature_request_send_request) === 0)) { @@ -6256,6 +6465,13 @@ public function signatureRequestSendRequest(Model\SignatureRequestSendRequest $s ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestSend, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestSend, must be bigger than or equal to 1.'); + } + $resourcePath = '/signature_request/send'; $formParams = []; $queryParams = []; @@ -6269,6 +6485,11 @@ public function signatureRequestSendRequest(Model\SignatureRequestSendRequest $s $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -6355,14 +6576,15 @@ public function signatureRequestSendRequest(Model\SignatureRequestSendRequest $s * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestSendWithTemplateExample.php * * @param Model\SignatureRequestSendWithTemplateRequest $signature_request_send_with_template_request signature_request_send_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\SignatureRequestGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function signatureRequestSendWithTemplate(Model\SignatureRequestSendWithTemplateRequest $signature_request_send_with_template_request) + public function signatureRequestSendWithTemplate(Model\SignatureRequestSendWithTemplateRequest $signature_request_send_with_template_request, ?string $idempotency_key = null) { - list($response) = $this->signatureRequestSendWithTemplateWithHttpInfo($signature_request_send_with_template_request); + list($response) = $this->signatureRequestSendWithTemplateWithHttpInfo($signature_request_send_with_template_request, $idempotency_key); return $response; } @@ -6374,6 +6596,7 @@ public function signatureRequestSendWithTemplate(Model\SignatureRequestSendWithT * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestSendWithTemplateExample.php * * @param Model\SignatureRequestSendWithTemplateRequest $signature_request_send_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestSendWithTemplate'] to see the possible values for this operation * * @return array of Model\SignatureRequestGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -6381,9 +6604,9 @@ public function signatureRequestSendWithTemplate(Model\SignatureRequestSendWithT * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestSendWithTemplate. This method will eventually become unavailable */ - public function signatureRequestSendWithTemplateWithHttpInfo(Model\SignatureRequestSendWithTemplateRequest $signature_request_send_with_template_request, string $contentType = self::contentTypes['signatureRequestSendWithTemplate'][0]) + public function signatureRequestSendWithTemplateWithHttpInfo(Model\SignatureRequestSendWithTemplateRequest $signature_request_send_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestSendWithTemplate'][0]) { - $request = $this->signatureRequestSendWithTemplateRequest($signature_request_send_with_template_request, $contentType); + $request = $this->signatureRequestSendWithTemplateRequest($signature_request_send_with_template_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -6513,15 +6736,16 @@ public function signatureRequestSendWithTemplateWithHttpInfo(Model\SignatureRequ * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestSendWithTemplateExample.php * * @param Model\SignatureRequestSendWithTemplateRequest $signature_request_send_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestSendWithTemplate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestSendWithTemplate. This method will eventually become unavailable */ - public function signatureRequestSendWithTemplateAsync(Model\SignatureRequestSendWithTemplateRequest $signature_request_send_with_template_request, string $contentType = self::contentTypes['signatureRequestSendWithTemplate'][0]) + public function signatureRequestSendWithTemplateAsync(Model\SignatureRequestSendWithTemplateRequest $signature_request_send_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestSendWithTemplate'][0]) { - return $this->signatureRequestSendWithTemplateAsyncWithHttpInfo($signature_request_send_with_template_request, $contentType) + return $this->signatureRequestSendWithTemplateAsyncWithHttpInfo($signature_request_send_with_template_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -6537,16 +6761,17 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestSendWithTemplateExample.php * * @param Model\SignatureRequestSendWithTemplateRequest $signature_request_send_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestSendWithTemplate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestSendWithTemplate. This method will eventually become unavailable */ - public function signatureRequestSendWithTemplateAsyncWithHttpInfo(Model\SignatureRequestSendWithTemplateRequest $signature_request_send_with_template_request, string $contentType = self::contentTypes['signatureRequestSendWithTemplate'][0]) + public function signatureRequestSendWithTemplateAsyncWithHttpInfo(Model\SignatureRequestSendWithTemplateRequest $signature_request_send_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestSendWithTemplate'][0]) { $returnType = '\Dropbox\Sign\Model\SignatureRequestGetResponse'; - $request = $this->signatureRequestSendWithTemplateRequest($signature_request_send_with_template_request, $contentType); + $request = $this->signatureRequestSendWithTemplateRequest($signature_request_send_with_template_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -6588,13 +6813,14 @@ function ($exception) { * Create request for operation 'signatureRequestSendWithTemplate' * * @param Model\SignatureRequestSendWithTemplateRequest $signature_request_send_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestSendWithTemplate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestSendWithTemplate. This method will eventually become unavailable */ - public function signatureRequestSendWithTemplateRequest(Model\SignatureRequestSendWithTemplateRequest $signature_request_send_with_template_request, string $contentType = self::contentTypes['signatureRequestSendWithTemplate'][0]) + public function signatureRequestSendWithTemplateRequest(Model\SignatureRequestSendWithTemplateRequest $signature_request_send_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestSendWithTemplate'][0]) { // verify the required parameter 'signature_request_send_with_template_request' is set if ($signature_request_send_with_template_request === null || (is_array($signature_request_send_with_template_request) && count($signature_request_send_with_template_request) === 0)) { @@ -6603,6 +6829,13 @@ public function signatureRequestSendWithTemplateRequest(Model\SignatureRequestSe ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestSendWithTemplate, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestSendWithTemplate, must be bigger than or equal to 1.'); + } + $resourcePath = '/signature_request/send_with_template'; $formParams = []; $queryParams = []; @@ -6616,6 +6849,11 @@ public function signatureRequestSendWithTemplateRequest(Model\SignatureRequestSe $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -6703,14 +6941,15 @@ public function signatureRequestSendWithTemplateRequest(Model\SignatureRequestSe * * @param string $signature_request_id The id of the SignatureRequest to update. (required) * @param Model\SignatureRequestUpdateRequest $signature_request_update_request signature_request_update_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\SignatureRequestGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function signatureRequestUpdate(string $signature_request_id, Model\SignatureRequestUpdateRequest $signature_request_update_request) + public function signatureRequestUpdate(string $signature_request_id, Model\SignatureRequestUpdateRequest $signature_request_update_request, ?string $idempotency_key = null) { - list($response) = $this->signatureRequestUpdateWithHttpInfo($signature_request_id, $signature_request_update_request); + list($response) = $this->signatureRequestUpdateWithHttpInfo($signature_request_id, $signature_request_update_request, $idempotency_key); return $response; } @@ -6723,6 +6962,7 @@ public function signatureRequestUpdate(string $signature_request_id, Model\Signa * * @param string $signature_request_id The id of the SignatureRequest to update. (required) * @param Model\SignatureRequestUpdateRequest $signature_request_update_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestUpdate'] to see the possible values for this operation * * @return array of Model\SignatureRequestGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -6730,9 +6970,9 @@ public function signatureRequestUpdate(string $signature_request_id, Model\Signa * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestUpdate. This method will eventually become unavailable */ - public function signatureRequestUpdateWithHttpInfo(string $signature_request_id, Model\SignatureRequestUpdateRequest $signature_request_update_request, string $contentType = self::contentTypes['signatureRequestUpdate'][0]) + public function signatureRequestUpdateWithHttpInfo(string $signature_request_id, Model\SignatureRequestUpdateRequest $signature_request_update_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestUpdate'][0]) { - $request = $this->signatureRequestUpdateRequest($signature_request_id, $signature_request_update_request, $contentType); + $request = $this->signatureRequestUpdateRequest($signature_request_id, $signature_request_update_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -6863,15 +7103,16 @@ public function signatureRequestUpdateWithHttpInfo(string $signature_request_id, * * @param string $signature_request_id The id of the SignatureRequest to update. (required) * @param Model\SignatureRequestUpdateRequest $signature_request_update_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestUpdate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestUpdate. This method will eventually become unavailable */ - public function signatureRequestUpdateAsync(string $signature_request_id, Model\SignatureRequestUpdateRequest $signature_request_update_request, string $contentType = self::contentTypes['signatureRequestUpdate'][0]) + public function signatureRequestUpdateAsync(string $signature_request_id, Model\SignatureRequestUpdateRequest $signature_request_update_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestUpdate'][0]) { - return $this->signatureRequestUpdateAsyncWithHttpInfo($signature_request_id, $signature_request_update_request, $contentType) + return $this->signatureRequestUpdateAsyncWithHttpInfo($signature_request_id, $signature_request_update_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -6888,16 +7129,17 @@ function ($response) { * * @param string $signature_request_id The id of the SignatureRequest to update. (required) * @param Model\SignatureRequestUpdateRequest $signature_request_update_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestUpdate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestUpdate. This method will eventually become unavailable */ - public function signatureRequestUpdateAsyncWithHttpInfo(string $signature_request_id, Model\SignatureRequestUpdateRequest $signature_request_update_request, string $contentType = self::contentTypes['signatureRequestUpdate'][0]) + public function signatureRequestUpdateAsyncWithHttpInfo(string $signature_request_id, Model\SignatureRequestUpdateRequest $signature_request_update_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestUpdate'][0]) { $returnType = '\Dropbox\Sign\Model\SignatureRequestGetResponse'; - $request = $this->signatureRequestUpdateRequest($signature_request_id, $signature_request_update_request, $contentType); + $request = $this->signatureRequestUpdateRequest($signature_request_id, $signature_request_update_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -6940,13 +7182,14 @@ function ($exception) { * * @param string $signature_request_id The id of the SignatureRequest to update. (required) * @param Model\SignatureRequestUpdateRequest $signature_request_update_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestUpdate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestUpdate. This method will eventually become unavailable */ - public function signatureRequestUpdateRequest(string $signature_request_id, Model\SignatureRequestUpdateRequest $signature_request_update_request, string $contentType = self::contentTypes['signatureRequestUpdate'][0]) + public function signatureRequestUpdateRequest(string $signature_request_id, Model\SignatureRequestUpdateRequest $signature_request_update_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestUpdate'][0]) { // verify the required parameter 'signature_request_id' is set if ($signature_request_id === null || (is_array($signature_request_id) && count($signature_request_id) === 0)) { @@ -6962,6 +7205,13 @@ public function signatureRequestUpdateRequest(string $signature_request_id, Mode ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestUpdate, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestUpdate, must be bigger than or equal to 1.'); + } + $resourcePath = '/signature_request/update/{signature_request_id}'; $formParams = []; $queryParams = []; @@ -6975,6 +7225,11 @@ public function signatureRequestUpdateRequest(string $signature_request_id, Mode $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + // path params if ($signature_request_id !== null) { $resourcePath = str_replace( diff --git a/sdks/php/src/Api/TeamApi.php b/sdks/php/src/Api/TeamApi.php index 93652aeb9..5ad34b45b 100644 --- a/sdks/php/src/Api/TeamApi.php +++ b/sdks/php/src/Api/TeamApi.php @@ -164,14 +164,15 @@ public function getResponse() * * @param Model\TeamAddMemberRequest $team_add_member_request team_add_member_request (required) * @param string|null $team_id The id of the team. (optional) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\TeamGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function teamAddMember(Model\TeamAddMemberRequest $team_add_member_request, ?string $team_id = null) + public function teamAddMember(Model\TeamAddMemberRequest $team_add_member_request, ?string $team_id = null, ?string $idempotency_key = null) { - list($response) = $this->teamAddMemberWithHttpInfo($team_add_member_request, $team_id); + list($response) = $this->teamAddMemberWithHttpInfo($team_add_member_request, $team_id, $idempotency_key); return $response; } @@ -184,6 +185,7 @@ public function teamAddMember(Model\TeamAddMemberRequest $team_add_member_reques * * @param Model\TeamAddMemberRequest $team_add_member_request (required) * @param string|null $team_id The id of the team. (optional) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['teamAddMember'] to see the possible values for this operation * * @return array of Model\TeamGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -191,9 +193,9 @@ public function teamAddMember(Model\TeamAddMemberRequest $team_add_member_reques * @throws InvalidArgumentException * @deprecated Prefer to use ::teamAddMember. This method will eventually become unavailable */ - public function teamAddMemberWithHttpInfo(Model\TeamAddMemberRequest $team_add_member_request, ?string $team_id = null, string $contentType = self::contentTypes['teamAddMember'][0]) + public function teamAddMemberWithHttpInfo(Model\TeamAddMemberRequest $team_add_member_request, ?string $team_id = null, ?string $idempotency_key = null, string $contentType = self::contentTypes['teamAddMember'][0]) { - $request = $this->teamAddMemberRequest($team_add_member_request, $team_id, $contentType); + $request = $this->teamAddMemberRequest($team_add_member_request, $team_id, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -324,15 +326,16 @@ public function teamAddMemberWithHttpInfo(Model\TeamAddMemberRequest $team_add_m * * @param Model\TeamAddMemberRequest $team_add_member_request (required) * @param string|null $team_id The id of the team. (optional) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['teamAddMember'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::teamAddMember. This method will eventually become unavailable */ - public function teamAddMemberAsync(Model\TeamAddMemberRequest $team_add_member_request, ?string $team_id = null, string $contentType = self::contentTypes['teamAddMember'][0]) + public function teamAddMemberAsync(Model\TeamAddMemberRequest $team_add_member_request, ?string $team_id = null, ?string $idempotency_key = null, string $contentType = self::contentTypes['teamAddMember'][0]) { - return $this->teamAddMemberAsyncWithHttpInfo($team_add_member_request, $team_id, $contentType) + return $this->teamAddMemberAsyncWithHttpInfo($team_add_member_request, $team_id, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -349,16 +352,17 @@ function ($response) { * * @param Model\TeamAddMemberRequest $team_add_member_request (required) * @param string|null $team_id The id of the team. (optional) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['teamAddMember'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::teamAddMember. This method will eventually become unavailable */ - public function teamAddMemberAsyncWithHttpInfo(Model\TeamAddMemberRequest $team_add_member_request, ?string $team_id = null, string $contentType = self::contentTypes['teamAddMember'][0]) + public function teamAddMemberAsyncWithHttpInfo(Model\TeamAddMemberRequest $team_add_member_request, ?string $team_id = null, ?string $idempotency_key = null, string $contentType = self::contentTypes['teamAddMember'][0]) { $returnType = '\Dropbox\Sign\Model\TeamGetResponse'; - $request = $this->teamAddMemberRequest($team_add_member_request, $team_id, $contentType); + $request = $this->teamAddMemberRequest($team_add_member_request, $team_id, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -401,13 +405,14 @@ function ($exception) { * * @param Model\TeamAddMemberRequest $team_add_member_request (required) * @param string|null $team_id The id of the team. (optional) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['teamAddMember'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::teamAddMember. This method will eventually become unavailable */ - public function teamAddMemberRequest(Model\TeamAddMemberRequest $team_add_member_request, ?string $team_id = null, string $contentType = self::contentTypes['teamAddMember'][0]) + public function teamAddMemberRequest(Model\TeamAddMemberRequest $team_add_member_request, ?string $team_id = null, ?string $idempotency_key = null, string $contentType = self::contentTypes['teamAddMember'][0]) { // verify the required parameter 'team_add_member_request' is set if ($team_add_member_request === null || (is_array($team_add_member_request) && count($team_add_member_request) === 0)) { @@ -416,6 +421,13 @@ public function teamAddMemberRequest(Model\TeamAddMemberRequest $team_add_member ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TeamApi.teamAddMember, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TeamApi.teamAddMember, must be bigger than or equal to 1.'); + } + $resourcePath = '/team/add_member'; $formParams = []; $queryParams = []; @@ -438,6 +450,11 @@ public function teamAddMemberRequest(Model\TeamAddMemberRequest $team_add_member false // required ) ?? []); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -524,14 +541,15 @@ public function teamAddMemberRequest(Model\TeamAddMemberRequest $team_add_member * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TeamCreateExample.php * * @param Model\TeamCreateRequest $team_create_request team_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\TeamGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function teamCreate(Model\TeamCreateRequest $team_create_request) + public function teamCreate(Model\TeamCreateRequest $team_create_request, ?string $idempotency_key = null) { - list($response) = $this->teamCreateWithHttpInfo($team_create_request); + list($response) = $this->teamCreateWithHttpInfo($team_create_request, $idempotency_key); return $response; } @@ -543,6 +561,7 @@ public function teamCreate(Model\TeamCreateRequest $team_create_request) * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TeamCreateExample.php * * @param Model\TeamCreateRequest $team_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['teamCreate'] to see the possible values for this operation * * @return array of Model\TeamGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -550,9 +569,9 @@ public function teamCreate(Model\TeamCreateRequest $team_create_request) * @throws InvalidArgumentException * @deprecated Prefer to use ::teamCreate. This method will eventually become unavailable */ - public function teamCreateWithHttpInfo(Model\TeamCreateRequest $team_create_request, string $contentType = self::contentTypes['teamCreate'][0]) + public function teamCreateWithHttpInfo(Model\TeamCreateRequest $team_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['teamCreate'][0]) { - $request = $this->teamCreateRequest($team_create_request, $contentType); + $request = $this->teamCreateRequest($team_create_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -682,15 +701,16 @@ public function teamCreateWithHttpInfo(Model\TeamCreateRequest $team_create_requ * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TeamCreateExample.php * * @param Model\TeamCreateRequest $team_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['teamCreate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::teamCreate. This method will eventually become unavailable */ - public function teamCreateAsync(Model\TeamCreateRequest $team_create_request, string $contentType = self::contentTypes['teamCreate'][0]) + public function teamCreateAsync(Model\TeamCreateRequest $team_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['teamCreate'][0]) { - return $this->teamCreateAsyncWithHttpInfo($team_create_request, $contentType) + return $this->teamCreateAsyncWithHttpInfo($team_create_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -706,16 +726,17 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TeamCreateExample.php * * @param Model\TeamCreateRequest $team_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['teamCreate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::teamCreate. This method will eventually become unavailable */ - public function teamCreateAsyncWithHttpInfo(Model\TeamCreateRequest $team_create_request, string $contentType = self::contentTypes['teamCreate'][0]) + public function teamCreateAsyncWithHttpInfo(Model\TeamCreateRequest $team_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['teamCreate'][0]) { $returnType = '\Dropbox\Sign\Model\TeamGetResponse'; - $request = $this->teamCreateRequest($team_create_request, $contentType); + $request = $this->teamCreateRequest($team_create_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -757,13 +778,14 @@ function ($exception) { * Create request for operation 'teamCreate' * * @param Model\TeamCreateRequest $team_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['teamCreate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::teamCreate. This method will eventually become unavailable */ - public function teamCreateRequest(Model\TeamCreateRequest $team_create_request, string $contentType = self::contentTypes['teamCreate'][0]) + public function teamCreateRequest(Model\TeamCreateRequest $team_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['teamCreate'][0]) { // verify the required parameter 'team_create_request' is set if ($team_create_request === null || (is_array($team_create_request) && count($team_create_request) === 0)) { @@ -772,6 +794,13 @@ public function teamCreateRequest(Model\TeamCreateRequest $team_create_request, ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TeamApi.teamCreate, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TeamApi.teamCreate, must be bigger than or equal to 1.'); + } + $resourcePath = '/team/create'; $formParams = []; $queryParams = []; @@ -785,6 +814,11 @@ public function teamCreateRequest(Model\TeamCreateRequest $team_create_request, $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -2450,14 +2484,15 @@ public function teamMembersRequest(string $team_id, ?int $page = 1, ?int $page_s * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TeamRemoveMemberExample.php * * @param Model\TeamRemoveMemberRequest $team_remove_member_request team_remove_member_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\TeamGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function teamRemoveMember(Model\TeamRemoveMemberRequest $team_remove_member_request) + public function teamRemoveMember(Model\TeamRemoveMemberRequest $team_remove_member_request, ?string $idempotency_key = null) { - list($response) = $this->teamRemoveMemberWithHttpInfo($team_remove_member_request); + list($response) = $this->teamRemoveMemberWithHttpInfo($team_remove_member_request, $idempotency_key); return $response; } @@ -2469,6 +2504,7 @@ public function teamRemoveMember(Model\TeamRemoveMemberRequest $team_remove_memb * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TeamRemoveMemberExample.php * * @param Model\TeamRemoveMemberRequest $team_remove_member_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['teamRemoveMember'] to see the possible values for this operation * * @return array of Model\TeamGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -2476,9 +2512,9 @@ public function teamRemoveMember(Model\TeamRemoveMemberRequest $team_remove_memb * @throws InvalidArgumentException * @deprecated Prefer to use ::teamRemoveMember. This method will eventually become unavailable */ - public function teamRemoveMemberWithHttpInfo(Model\TeamRemoveMemberRequest $team_remove_member_request, string $contentType = self::contentTypes['teamRemoveMember'][0]) + public function teamRemoveMemberWithHttpInfo(Model\TeamRemoveMemberRequest $team_remove_member_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['teamRemoveMember'][0]) { - $request = $this->teamRemoveMemberRequest($team_remove_member_request, $contentType); + $request = $this->teamRemoveMemberRequest($team_remove_member_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -2608,15 +2644,16 @@ public function teamRemoveMemberWithHttpInfo(Model\TeamRemoveMemberRequest $team * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TeamRemoveMemberExample.php * * @param Model\TeamRemoveMemberRequest $team_remove_member_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['teamRemoveMember'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::teamRemoveMember. This method will eventually become unavailable */ - public function teamRemoveMemberAsync(Model\TeamRemoveMemberRequest $team_remove_member_request, string $contentType = self::contentTypes['teamRemoveMember'][0]) + public function teamRemoveMemberAsync(Model\TeamRemoveMemberRequest $team_remove_member_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['teamRemoveMember'][0]) { - return $this->teamRemoveMemberAsyncWithHttpInfo($team_remove_member_request, $contentType) + return $this->teamRemoveMemberAsyncWithHttpInfo($team_remove_member_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -2632,16 +2669,17 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TeamRemoveMemberExample.php * * @param Model\TeamRemoveMemberRequest $team_remove_member_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['teamRemoveMember'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::teamRemoveMember. This method will eventually become unavailable */ - public function teamRemoveMemberAsyncWithHttpInfo(Model\TeamRemoveMemberRequest $team_remove_member_request, string $contentType = self::contentTypes['teamRemoveMember'][0]) + public function teamRemoveMemberAsyncWithHttpInfo(Model\TeamRemoveMemberRequest $team_remove_member_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['teamRemoveMember'][0]) { $returnType = '\Dropbox\Sign\Model\TeamGetResponse'; - $request = $this->teamRemoveMemberRequest($team_remove_member_request, $contentType); + $request = $this->teamRemoveMemberRequest($team_remove_member_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2683,13 +2721,14 @@ function ($exception) { * Create request for operation 'teamRemoveMember' * * @param Model\TeamRemoveMemberRequest $team_remove_member_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['teamRemoveMember'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::teamRemoveMember. This method will eventually become unavailable */ - public function teamRemoveMemberRequest(Model\TeamRemoveMemberRequest $team_remove_member_request, string $contentType = self::contentTypes['teamRemoveMember'][0]) + public function teamRemoveMemberRequest(Model\TeamRemoveMemberRequest $team_remove_member_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['teamRemoveMember'][0]) { // verify the required parameter 'team_remove_member_request' is set if ($team_remove_member_request === null || (is_array($team_remove_member_request) && count($team_remove_member_request) === 0)) { @@ -2698,6 +2737,13 @@ public function teamRemoveMemberRequest(Model\TeamRemoveMemberRequest $team_remo ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TeamApi.teamRemoveMember, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TeamApi.teamRemoveMember, must be bigger than or equal to 1.'); + } + $resourcePath = '/team/remove_member'; $formParams = []; $queryParams = []; @@ -2711,6 +2757,11 @@ public function teamRemoveMemberRequest(Model\TeamRemoveMemberRequest $team_remo $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -3173,14 +3224,15 @@ public function teamSubTeamsRequest(string $team_id, ?int $page = 1, ?int $page_ * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TeamUpdateExample.php * * @param Model\TeamUpdateRequest $team_update_request team_update_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\TeamGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function teamUpdate(Model\TeamUpdateRequest $team_update_request) + public function teamUpdate(Model\TeamUpdateRequest $team_update_request, ?string $idempotency_key = null) { - list($response) = $this->teamUpdateWithHttpInfo($team_update_request); + list($response) = $this->teamUpdateWithHttpInfo($team_update_request, $idempotency_key); return $response; } @@ -3192,6 +3244,7 @@ public function teamUpdate(Model\TeamUpdateRequest $team_update_request) * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TeamUpdateExample.php * * @param Model\TeamUpdateRequest $team_update_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['teamUpdate'] to see the possible values for this operation * * @return array of Model\TeamGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -3199,9 +3252,9 @@ public function teamUpdate(Model\TeamUpdateRequest $team_update_request) * @throws InvalidArgumentException * @deprecated Prefer to use ::teamUpdate. This method will eventually become unavailable */ - public function teamUpdateWithHttpInfo(Model\TeamUpdateRequest $team_update_request, string $contentType = self::contentTypes['teamUpdate'][0]) + public function teamUpdateWithHttpInfo(Model\TeamUpdateRequest $team_update_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['teamUpdate'][0]) { - $request = $this->teamUpdateRequest($team_update_request, $contentType); + $request = $this->teamUpdateRequest($team_update_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -3331,15 +3384,16 @@ public function teamUpdateWithHttpInfo(Model\TeamUpdateRequest $team_update_requ * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TeamUpdateExample.php * * @param Model\TeamUpdateRequest $team_update_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['teamUpdate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::teamUpdate. This method will eventually become unavailable */ - public function teamUpdateAsync(Model\TeamUpdateRequest $team_update_request, string $contentType = self::contentTypes['teamUpdate'][0]) + public function teamUpdateAsync(Model\TeamUpdateRequest $team_update_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['teamUpdate'][0]) { - return $this->teamUpdateAsyncWithHttpInfo($team_update_request, $contentType) + return $this->teamUpdateAsyncWithHttpInfo($team_update_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -3355,16 +3409,17 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TeamUpdateExample.php * * @param Model\TeamUpdateRequest $team_update_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['teamUpdate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::teamUpdate. This method will eventually become unavailable */ - public function teamUpdateAsyncWithHttpInfo(Model\TeamUpdateRequest $team_update_request, string $contentType = self::contentTypes['teamUpdate'][0]) + public function teamUpdateAsyncWithHttpInfo(Model\TeamUpdateRequest $team_update_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['teamUpdate'][0]) { $returnType = '\Dropbox\Sign\Model\TeamGetResponse'; - $request = $this->teamUpdateRequest($team_update_request, $contentType); + $request = $this->teamUpdateRequest($team_update_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3406,13 +3461,14 @@ function ($exception) { * Create request for operation 'teamUpdate' * * @param Model\TeamUpdateRequest $team_update_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['teamUpdate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::teamUpdate. This method will eventually become unavailable */ - public function teamUpdateRequest(Model\TeamUpdateRequest $team_update_request, string $contentType = self::contentTypes['teamUpdate'][0]) + public function teamUpdateRequest(Model\TeamUpdateRequest $team_update_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['teamUpdate'][0]) { // verify the required parameter 'team_update_request' is set if ($team_update_request === null || (is_array($team_update_request) && count($team_update_request) === 0)) { @@ -3421,6 +3477,13 @@ public function teamUpdateRequest(Model\TeamUpdateRequest $team_update_request, ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TeamApi.teamUpdate, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TeamApi.teamUpdate, must be bigger than or equal to 1.'); + } + $resourcePath = '/team'; $formParams = []; $queryParams = []; @@ -3434,6 +3497,11 @@ public function teamUpdateRequest(Model\TeamUpdateRequest $team_update_request, $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, diff --git a/sdks/php/src/Api/TemplateApi.php b/sdks/php/src/Api/TemplateApi.php index 515142ada..1a1a2bf66 100644 --- a/sdks/php/src/Api/TemplateApi.php +++ b/sdks/php/src/Api/TemplateApi.php @@ -171,14 +171,15 @@ public function getResponse() * * @param string $template_id The id of the Template to give the Account access to. (required) * @param Model\TemplateAddUserRequest $template_add_user_request template_add_user_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\TemplateGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function templateAddUser(string $template_id, Model\TemplateAddUserRequest $template_add_user_request) + public function templateAddUser(string $template_id, Model\TemplateAddUserRequest $template_add_user_request, ?string $idempotency_key = null) { - list($response) = $this->templateAddUserWithHttpInfo($template_id, $template_add_user_request); + list($response) = $this->templateAddUserWithHttpInfo($template_id, $template_add_user_request, $idempotency_key); return $response; } @@ -191,6 +192,7 @@ public function templateAddUser(string $template_id, Model\TemplateAddUserReques * * @param string $template_id The id of the Template to give the Account access to. (required) * @param Model\TemplateAddUserRequest $template_add_user_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateAddUser'] to see the possible values for this operation * * @return array of Model\TemplateGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -198,9 +200,9 @@ public function templateAddUser(string $template_id, Model\TemplateAddUserReques * @throws InvalidArgumentException * @deprecated Prefer to use ::templateAddUser. This method will eventually become unavailable */ - public function templateAddUserWithHttpInfo(string $template_id, Model\TemplateAddUserRequest $template_add_user_request, string $contentType = self::contentTypes['templateAddUser'][0]) + public function templateAddUserWithHttpInfo(string $template_id, Model\TemplateAddUserRequest $template_add_user_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateAddUser'][0]) { - $request = $this->templateAddUserRequest($template_id, $template_add_user_request, $contentType); + $request = $this->templateAddUserRequest($template_id, $template_add_user_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -331,15 +333,16 @@ public function templateAddUserWithHttpInfo(string $template_id, Model\TemplateA * * @param string $template_id The id of the Template to give the Account access to. (required) * @param Model\TemplateAddUserRequest $template_add_user_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateAddUser'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::templateAddUser. This method will eventually become unavailable */ - public function templateAddUserAsync(string $template_id, Model\TemplateAddUserRequest $template_add_user_request, string $contentType = self::contentTypes['templateAddUser'][0]) + public function templateAddUserAsync(string $template_id, Model\TemplateAddUserRequest $template_add_user_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateAddUser'][0]) { - return $this->templateAddUserAsyncWithHttpInfo($template_id, $template_add_user_request, $contentType) + return $this->templateAddUserAsyncWithHttpInfo($template_id, $template_add_user_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -356,16 +359,17 @@ function ($response) { * * @param string $template_id The id of the Template to give the Account access to. (required) * @param Model\TemplateAddUserRequest $template_add_user_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateAddUser'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::templateAddUser. This method will eventually become unavailable */ - public function templateAddUserAsyncWithHttpInfo(string $template_id, Model\TemplateAddUserRequest $template_add_user_request, string $contentType = self::contentTypes['templateAddUser'][0]) + public function templateAddUserAsyncWithHttpInfo(string $template_id, Model\TemplateAddUserRequest $template_add_user_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateAddUser'][0]) { $returnType = '\Dropbox\Sign\Model\TemplateGetResponse'; - $request = $this->templateAddUserRequest($template_id, $template_add_user_request, $contentType); + $request = $this->templateAddUserRequest($template_id, $template_add_user_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -408,13 +412,14 @@ function ($exception) { * * @param string $template_id The id of the Template to give the Account access to. (required) * @param Model\TemplateAddUserRequest $template_add_user_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateAddUser'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::templateAddUser. This method will eventually become unavailable */ - public function templateAddUserRequest(string $template_id, Model\TemplateAddUserRequest $template_add_user_request, string $contentType = self::contentTypes['templateAddUser'][0]) + public function templateAddUserRequest(string $template_id, Model\TemplateAddUserRequest $template_add_user_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateAddUser'][0]) { // verify the required parameter 'template_id' is set if ($template_id === null || (is_array($template_id) && count($template_id) === 0)) { @@ -430,6 +435,13 @@ public function templateAddUserRequest(string $template_id, Model\TemplateAddUse ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TemplateApi.templateAddUser, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TemplateApi.templateAddUser, must be bigger than or equal to 1.'); + } + $resourcePath = '/template/add_user/{template_id}'; $formParams = []; $queryParams = []; @@ -443,6 +455,11 @@ public function templateAddUserRequest(string $template_id, Model\TemplateAddUse $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + // path params if ($template_id !== null) { $resourcePath = str_replace( @@ -538,14 +555,15 @@ public function templateAddUserRequest(string $template_id, Model\TemplateAddUse * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TemplateCreateExample.php * * @param Model\TemplateCreateRequest $template_create_request template_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\TemplateCreateResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function templateCreate(Model\TemplateCreateRequest $template_create_request) + public function templateCreate(Model\TemplateCreateRequest $template_create_request, ?string $idempotency_key = null) { - list($response) = $this->templateCreateWithHttpInfo($template_create_request); + list($response) = $this->templateCreateWithHttpInfo($template_create_request, $idempotency_key); return $response; } @@ -557,6 +575,7 @@ public function templateCreate(Model\TemplateCreateRequest $template_create_requ * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TemplateCreateExample.php * * @param Model\TemplateCreateRequest $template_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateCreate'] to see the possible values for this operation * * @return array of Model\TemplateCreateResponse, HTTP status code, HTTP response headers (array of strings) @@ -564,9 +583,9 @@ public function templateCreate(Model\TemplateCreateRequest $template_create_requ * @throws InvalidArgumentException * @deprecated Prefer to use ::templateCreate. This method will eventually become unavailable */ - public function templateCreateWithHttpInfo(Model\TemplateCreateRequest $template_create_request, string $contentType = self::contentTypes['templateCreate'][0]) + public function templateCreateWithHttpInfo(Model\TemplateCreateRequest $template_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateCreate'][0]) { - $request = $this->templateCreateRequest($template_create_request, $contentType); + $request = $this->templateCreateRequest($template_create_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -696,15 +715,16 @@ public function templateCreateWithHttpInfo(Model\TemplateCreateRequest $template * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TemplateCreateExample.php * * @param Model\TemplateCreateRequest $template_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateCreate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::templateCreate. This method will eventually become unavailable */ - public function templateCreateAsync(Model\TemplateCreateRequest $template_create_request, string $contentType = self::contentTypes['templateCreate'][0]) + public function templateCreateAsync(Model\TemplateCreateRequest $template_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateCreate'][0]) { - return $this->templateCreateAsyncWithHttpInfo($template_create_request, $contentType) + return $this->templateCreateAsyncWithHttpInfo($template_create_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -720,16 +740,17 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TemplateCreateExample.php * * @param Model\TemplateCreateRequest $template_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateCreate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::templateCreate. This method will eventually become unavailable */ - public function templateCreateAsyncWithHttpInfo(Model\TemplateCreateRequest $template_create_request, string $contentType = self::contentTypes['templateCreate'][0]) + public function templateCreateAsyncWithHttpInfo(Model\TemplateCreateRequest $template_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateCreate'][0]) { $returnType = '\Dropbox\Sign\Model\TemplateCreateResponse'; - $request = $this->templateCreateRequest($template_create_request, $contentType); + $request = $this->templateCreateRequest($template_create_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -771,13 +792,14 @@ function ($exception) { * Create request for operation 'templateCreate' * * @param Model\TemplateCreateRequest $template_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateCreate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::templateCreate. This method will eventually become unavailable */ - public function templateCreateRequest(Model\TemplateCreateRequest $template_create_request, string $contentType = self::contentTypes['templateCreate'][0]) + public function templateCreateRequest(Model\TemplateCreateRequest $template_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateCreate'][0]) { // verify the required parameter 'template_create_request' is set if ($template_create_request === null || (is_array($template_create_request) && count($template_create_request) === 0)) { @@ -786,6 +808,13 @@ public function templateCreateRequest(Model\TemplateCreateRequest $template_crea ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TemplateApi.templateCreate, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TemplateApi.templateCreate, must be bigger than or equal to 1.'); + } + $resourcePath = '/template/create'; $formParams = []; $queryParams = []; @@ -799,6 +828,11 @@ public function templateCreateRequest(Model\TemplateCreateRequest $template_crea $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -885,14 +919,15 @@ public function templateCreateRequest(Model\TemplateCreateRequest $template_crea * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TemplateCreateEmbeddedDraftExample.php * * @param Model\TemplateCreateEmbeddedDraftRequest $template_create_embedded_draft_request template_create_embedded_draft_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\TemplateCreateEmbeddedDraftResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function templateCreateEmbeddedDraft(Model\TemplateCreateEmbeddedDraftRequest $template_create_embedded_draft_request) + public function templateCreateEmbeddedDraft(Model\TemplateCreateEmbeddedDraftRequest $template_create_embedded_draft_request, ?string $idempotency_key = null) { - list($response) = $this->templateCreateEmbeddedDraftWithHttpInfo($template_create_embedded_draft_request); + list($response) = $this->templateCreateEmbeddedDraftWithHttpInfo($template_create_embedded_draft_request, $idempotency_key); return $response; } @@ -904,6 +939,7 @@ public function templateCreateEmbeddedDraft(Model\TemplateCreateEmbeddedDraftReq * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TemplateCreateEmbeddedDraftExample.php * * @param Model\TemplateCreateEmbeddedDraftRequest $template_create_embedded_draft_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateCreateEmbeddedDraft'] to see the possible values for this operation * * @return array of Model\TemplateCreateEmbeddedDraftResponse, HTTP status code, HTTP response headers (array of strings) @@ -911,9 +947,9 @@ public function templateCreateEmbeddedDraft(Model\TemplateCreateEmbeddedDraftReq * @throws InvalidArgumentException * @deprecated Prefer to use ::templateCreateEmbeddedDraft. This method will eventually become unavailable */ - public function templateCreateEmbeddedDraftWithHttpInfo(Model\TemplateCreateEmbeddedDraftRequest $template_create_embedded_draft_request, string $contentType = self::contentTypes['templateCreateEmbeddedDraft'][0]) + public function templateCreateEmbeddedDraftWithHttpInfo(Model\TemplateCreateEmbeddedDraftRequest $template_create_embedded_draft_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateCreateEmbeddedDraft'][0]) { - $request = $this->templateCreateEmbeddedDraftRequest($template_create_embedded_draft_request, $contentType); + $request = $this->templateCreateEmbeddedDraftRequest($template_create_embedded_draft_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -1043,15 +1079,16 @@ public function templateCreateEmbeddedDraftWithHttpInfo(Model\TemplateCreateEmbe * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TemplateCreateEmbeddedDraftExample.php * * @param Model\TemplateCreateEmbeddedDraftRequest $template_create_embedded_draft_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateCreateEmbeddedDraft'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::templateCreateEmbeddedDraft. This method will eventually become unavailable */ - public function templateCreateEmbeddedDraftAsync(Model\TemplateCreateEmbeddedDraftRequest $template_create_embedded_draft_request, string $contentType = self::contentTypes['templateCreateEmbeddedDraft'][0]) + public function templateCreateEmbeddedDraftAsync(Model\TemplateCreateEmbeddedDraftRequest $template_create_embedded_draft_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateCreateEmbeddedDraft'][0]) { - return $this->templateCreateEmbeddedDraftAsyncWithHttpInfo($template_create_embedded_draft_request, $contentType) + return $this->templateCreateEmbeddedDraftAsyncWithHttpInfo($template_create_embedded_draft_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -1067,16 +1104,17 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TemplateCreateEmbeddedDraftExample.php * * @param Model\TemplateCreateEmbeddedDraftRequest $template_create_embedded_draft_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateCreateEmbeddedDraft'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::templateCreateEmbeddedDraft. This method will eventually become unavailable */ - public function templateCreateEmbeddedDraftAsyncWithHttpInfo(Model\TemplateCreateEmbeddedDraftRequest $template_create_embedded_draft_request, string $contentType = self::contentTypes['templateCreateEmbeddedDraft'][0]) + public function templateCreateEmbeddedDraftAsyncWithHttpInfo(Model\TemplateCreateEmbeddedDraftRequest $template_create_embedded_draft_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateCreateEmbeddedDraft'][0]) { $returnType = '\Dropbox\Sign\Model\TemplateCreateEmbeddedDraftResponse'; - $request = $this->templateCreateEmbeddedDraftRequest($template_create_embedded_draft_request, $contentType); + $request = $this->templateCreateEmbeddedDraftRequest($template_create_embedded_draft_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1118,13 +1156,14 @@ function ($exception) { * Create request for operation 'templateCreateEmbeddedDraft' * * @param Model\TemplateCreateEmbeddedDraftRequest $template_create_embedded_draft_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateCreateEmbeddedDraft'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::templateCreateEmbeddedDraft. This method will eventually become unavailable */ - public function templateCreateEmbeddedDraftRequest(Model\TemplateCreateEmbeddedDraftRequest $template_create_embedded_draft_request, string $contentType = self::contentTypes['templateCreateEmbeddedDraft'][0]) + public function templateCreateEmbeddedDraftRequest(Model\TemplateCreateEmbeddedDraftRequest $template_create_embedded_draft_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateCreateEmbeddedDraft'][0]) { // verify the required parameter 'template_create_embedded_draft_request' is set if ($template_create_embedded_draft_request === null || (is_array($template_create_embedded_draft_request) && count($template_create_embedded_draft_request) === 0)) { @@ -1133,6 +1172,13 @@ public function templateCreateEmbeddedDraftRequest(Model\TemplateCreateEmbeddedD ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TemplateApi.templateCreateEmbeddedDraft, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TemplateApi.templateCreateEmbeddedDraft, must be bigger than or equal to 1.'); + } + $resourcePath = '/template/create_embedded_draft'; $formParams = []; $queryParams = []; @@ -1146,6 +1192,11 @@ public function templateCreateEmbeddedDraftRequest(Model\TemplateCreateEmbeddedD $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -1231,14 +1282,15 @@ public function templateCreateEmbeddedDraftRequest(Model\TemplateCreateEmbeddedD * * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TemplateDeleteExample.php * - * @param string $template_id The id of the Template to delete. (required) + * @param string $template_id The id of the Template to delete. (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function templateDelete(string $template_id) + public function templateDelete(string $template_id, ?string $idempotency_key = null) { - $this->templateDeleteWithHttpInfo($template_id); + $this->templateDeleteWithHttpInfo($template_id, $idempotency_key); } /** @@ -1248,17 +1300,18 @@ public function templateDelete(string $template_id) * * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TemplateDeleteExample.php * - * @param string $template_id The id of the Template to delete. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateDelete'] to see the possible values for this operation + * @param string $template_id The id of the Template to delete. (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateDelete'] to see the possible values for this operation * * @return array of null, HTTP status code, HTTP response headers (array of strings) * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException * @deprecated Prefer to use ::templateDelete. This method will eventually become unavailable */ - public function templateDeleteWithHttpInfo(string $template_id, string $contentType = self::contentTypes['templateDelete'][0]) + public function templateDeleteWithHttpInfo(string $template_id, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateDelete'][0]) { - $request = $this->templateDeleteRequest($template_id, $contentType); + $request = $this->templateDeleteRequest($template_id, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -1301,16 +1354,17 @@ public function templateDeleteWithHttpInfo(string $template_id, string $contentT * * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TemplateDeleteExample.php * - * @param string $template_id The id of the Template to delete. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateDelete'] to see the possible values for this operation + * @param string $template_id The id of the Template to delete. (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateDelete'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::templateDelete. This method will eventually become unavailable */ - public function templateDeleteAsync(string $template_id, string $contentType = self::contentTypes['templateDelete'][0]) + public function templateDeleteAsync(string $template_id, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateDelete'][0]) { - return $this->templateDeleteAsyncWithHttpInfo($template_id, $contentType) + return $this->templateDeleteAsyncWithHttpInfo($template_id, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -1325,17 +1379,18 @@ function ($response) { * * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TemplateDeleteExample.php * - * @param string $template_id The id of the Template to delete. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateDelete'] to see the possible values for this operation + * @param string $template_id The id of the Template to delete. (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateDelete'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::templateDelete. This method will eventually become unavailable */ - public function templateDeleteAsyncWithHttpInfo(string $template_id, string $contentType = self::contentTypes['templateDelete'][0]) + public function templateDeleteAsyncWithHttpInfo(string $template_id, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateDelete'][0]) { $returnType = ''; - $request = $this->templateDeleteRequest($template_id, $contentType); + $request = $this->templateDeleteRequest($template_id, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1363,14 +1418,15 @@ function ($exception) { /** * Create request for operation 'templateDelete' * - * @param string $template_id The id of the Template to delete. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateDelete'] to see the possible values for this operation + * @param string $template_id The id of the Template to delete. (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateDelete'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::templateDelete. This method will eventually become unavailable */ - public function templateDeleteRequest(string $template_id, string $contentType = self::contentTypes['templateDelete'][0]) + public function templateDeleteRequest(string $template_id, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateDelete'][0]) { // verify the required parameter 'template_id' is set if ($template_id === null || (is_array($template_id) && count($template_id) === 0)) { @@ -1379,6 +1435,13 @@ public function templateDeleteRequest(string $template_id, string $contentType = ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TemplateApi.templateDelete, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TemplateApi.templateDelete, must be bigger than or equal to 1.'); + } + $resourcePath = '/template/delete/{template_id}'; $formParams = []; $queryParams = []; @@ -1386,6 +1449,11 @@ public function templateDeleteRequest(string $template_id, string $contentType = $httpBody = ''; $multipart = false; + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + // path params if ($template_id !== null) { $resourcePath = str_replace( @@ -3245,14 +3313,15 @@ public function templateListRequest(?string $account_id = null, ?int $page = 1, * * @param string $template_id The id of the Template to remove the Account's access to. (required) * @param Model\TemplateRemoveUserRequest $template_remove_user_request template_remove_user_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\TemplateGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function templateRemoveUser(string $template_id, Model\TemplateRemoveUserRequest $template_remove_user_request) + public function templateRemoveUser(string $template_id, Model\TemplateRemoveUserRequest $template_remove_user_request, ?string $idempotency_key = null) { - list($response) = $this->templateRemoveUserWithHttpInfo($template_id, $template_remove_user_request); + list($response) = $this->templateRemoveUserWithHttpInfo($template_id, $template_remove_user_request, $idempotency_key); return $response; } @@ -3265,6 +3334,7 @@ public function templateRemoveUser(string $template_id, Model\TemplateRemoveUser * * @param string $template_id The id of the Template to remove the Account's access to. (required) * @param Model\TemplateRemoveUserRequest $template_remove_user_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateRemoveUser'] to see the possible values for this operation * * @return array of Model\TemplateGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -3272,9 +3342,9 @@ public function templateRemoveUser(string $template_id, Model\TemplateRemoveUser * @throws InvalidArgumentException * @deprecated Prefer to use ::templateRemoveUser. This method will eventually become unavailable */ - public function templateRemoveUserWithHttpInfo(string $template_id, Model\TemplateRemoveUserRequest $template_remove_user_request, string $contentType = self::contentTypes['templateRemoveUser'][0]) + public function templateRemoveUserWithHttpInfo(string $template_id, Model\TemplateRemoveUserRequest $template_remove_user_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateRemoveUser'][0]) { - $request = $this->templateRemoveUserRequest($template_id, $template_remove_user_request, $contentType); + $request = $this->templateRemoveUserRequest($template_id, $template_remove_user_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -3405,15 +3475,16 @@ public function templateRemoveUserWithHttpInfo(string $template_id, Model\Templa * * @param string $template_id The id of the Template to remove the Account's access to. (required) * @param Model\TemplateRemoveUserRequest $template_remove_user_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateRemoveUser'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::templateRemoveUser. This method will eventually become unavailable */ - public function templateRemoveUserAsync(string $template_id, Model\TemplateRemoveUserRequest $template_remove_user_request, string $contentType = self::contentTypes['templateRemoveUser'][0]) + public function templateRemoveUserAsync(string $template_id, Model\TemplateRemoveUserRequest $template_remove_user_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateRemoveUser'][0]) { - return $this->templateRemoveUserAsyncWithHttpInfo($template_id, $template_remove_user_request, $contentType) + return $this->templateRemoveUserAsyncWithHttpInfo($template_id, $template_remove_user_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -3430,16 +3501,17 @@ function ($response) { * * @param string $template_id The id of the Template to remove the Account's access to. (required) * @param Model\TemplateRemoveUserRequest $template_remove_user_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateRemoveUser'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::templateRemoveUser. This method will eventually become unavailable */ - public function templateRemoveUserAsyncWithHttpInfo(string $template_id, Model\TemplateRemoveUserRequest $template_remove_user_request, string $contentType = self::contentTypes['templateRemoveUser'][0]) + public function templateRemoveUserAsyncWithHttpInfo(string $template_id, Model\TemplateRemoveUserRequest $template_remove_user_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateRemoveUser'][0]) { $returnType = '\Dropbox\Sign\Model\TemplateGetResponse'; - $request = $this->templateRemoveUserRequest($template_id, $template_remove_user_request, $contentType); + $request = $this->templateRemoveUserRequest($template_id, $template_remove_user_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3482,13 +3554,14 @@ function ($exception) { * * @param string $template_id The id of the Template to remove the Account's access to. (required) * @param Model\TemplateRemoveUserRequest $template_remove_user_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateRemoveUser'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::templateRemoveUser. This method will eventually become unavailable */ - public function templateRemoveUserRequest(string $template_id, Model\TemplateRemoveUserRequest $template_remove_user_request, string $contentType = self::contentTypes['templateRemoveUser'][0]) + public function templateRemoveUserRequest(string $template_id, Model\TemplateRemoveUserRequest $template_remove_user_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateRemoveUser'][0]) { // verify the required parameter 'template_id' is set if ($template_id === null || (is_array($template_id) && count($template_id) === 0)) { @@ -3504,6 +3577,13 @@ public function templateRemoveUserRequest(string $template_id, Model\TemplateRem ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TemplateApi.templateRemoveUser, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TemplateApi.templateRemoveUser, must be bigger than or equal to 1.'); + } + $resourcePath = '/template/remove_user/{template_id}'; $formParams = []; $queryParams = []; @@ -3517,6 +3597,11 @@ public function templateRemoveUserRequest(string $template_id, Model\TemplateRem $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + // path params if ($template_id !== null) { $resourcePath = str_replace( @@ -3613,14 +3698,15 @@ public function templateRemoveUserRequest(string $template_id, Model\TemplateRem * * @param string $template_id The ID of the template whose files to update. (required) * @param Model\TemplateUpdateFilesRequest $template_update_files_request template_update_files_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\TemplateUpdateFilesResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function templateUpdateFiles(string $template_id, Model\TemplateUpdateFilesRequest $template_update_files_request) + public function templateUpdateFiles(string $template_id, Model\TemplateUpdateFilesRequest $template_update_files_request, ?string $idempotency_key = null) { - list($response) = $this->templateUpdateFilesWithHttpInfo($template_id, $template_update_files_request); + list($response) = $this->templateUpdateFilesWithHttpInfo($template_id, $template_update_files_request, $idempotency_key); return $response; } @@ -3633,6 +3719,7 @@ public function templateUpdateFiles(string $template_id, Model\TemplateUpdateFil * * @param string $template_id The ID of the template whose files to update. (required) * @param Model\TemplateUpdateFilesRequest $template_update_files_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateUpdateFiles'] to see the possible values for this operation * * @return array of Model\TemplateUpdateFilesResponse, HTTP status code, HTTP response headers (array of strings) @@ -3640,9 +3727,9 @@ public function templateUpdateFiles(string $template_id, Model\TemplateUpdateFil * @throws InvalidArgumentException * @deprecated Prefer to use ::templateUpdateFiles. This method will eventually become unavailable */ - public function templateUpdateFilesWithHttpInfo(string $template_id, Model\TemplateUpdateFilesRequest $template_update_files_request, string $contentType = self::contentTypes['templateUpdateFiles'][0]) + public function templateUpdateFilesWithHttpInfo(string $template_id, Model\TemplateUpdateFilesRequest $template_update_files_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateUpdateFiles'][0]) { - $request = $this->templateUpdateFilesRequest($template_id, $template_update_files_request, $contentType); + $request = $this->templateUpdateFilesRequest($template_id, $template_update_files_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -3773,15 +3860,16 @@ public function templateUpdateFilesWithHttpInfo(string $template_id, Model\Templ * * @param string $template_id The ID of the template whose files to update. (required) * @param Model\TemplateUpdateFilesRequest $template_update_files_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateUpdateFiles'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::templateUpdateFiles. This method will eventually become unavailable */ - public function templateUpdateFilesAsync(string $template_id, Model\TemplateUpdateFilesRequest $template_update_files_request, string $contentType = self::contentTypes['templateUpdateFiles'][0]) + public function templateUpdateFilesAsync(string $template_id, Model\TemplateUpdateFilesRequest $template_update_files_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateUpdateFiles'][0]) { - return $this->templateUpdateFilesAsyncWithHttpInfo($template_id, $template_update_files_request, $contentType) + return $this->templateUpdateFilesAsyncWithHttpInfo($template_id, $template_update_files_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -3798,16 +3886,17 @@ function ($response) { * * @param string $template_id The ID of the template whose files to update. (required) * @param Model\TemplateUpdateFilesRequest $template_update_files_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateUpdateFiles'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::templateUpdateFiles. This method will eventually become unavailable */ - public function templateUpdateFilesAsyncWithHttpInfo(string $template_id, Model\TemplateUpdateFilesRequest $template_update_files_request, string $contentType = self::contentTypes['templateUpdateFiles'][0]) + public function templateUpdateFilesAsyncWithHttpInfo(string $template_id, Model\TemplateUpdateFilesRequest $template_update_files_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateUpdateFiles'][0]) { $returnType = '\Dropbox\Sign\Model\TemplateUpdateFilesResponse'; - $request = $this->templateUpdateFilesRequest($template_id, $template_update_files_request, $contentType); + $request = $this->templateUpdateFilesRequest($template_id, $template_update_files_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3850,13 +3939,14 @@ function ($exception) { * * @param string $template_id The ID of the template whose files to update. (required) * @param Model\TemplateUpdateFilesRequest $template_update_files_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateUpdateFiles'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::templateUpdateFiles. This method will eventually become unavailable */ - public function templateUpdateFilesRequest(string $template_id, Model\TemplateUpdateFilesRequest $template_update_files_request, string $contentType = self::contentTypes['templateUpdateFiles'][0]) + public function templateUpdateFilesRequest(string $template_id, Model\TemplateUpdateFilesRequest $template_update_files_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateUpdateFiles'][0]) { // verify the required parameter 'template_id' is set if ($template_id === null || (is_array($template_id) && count($template_id) === 0)) { @@ -3872,6 +3962,13 @@ public function templateUpdateFilesRequest(string $template_id, Model\TemplateUp ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TemplateApi.templateUpdateFiles, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TemplateApi.templateUpdateFiles, must be bigger than or equal to 1.'); + } + $resourcePath = '/template/update_files/{template_id}'; $formParams = []; $queryParams = []; @@ -3885,6 +3982,11 @@ public function templateUpdateFilesRequest(string $template_id, Model\TemplateUp $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + // path params if ($template_id !== null) { $resourcePath = str_replace( diff --git a/sdks/php/src/Api/UnclaimedDraftApi.php b/sdks/php/src/Api/UnclaimedDraftApi.php index fbc0a7768..fef18f391 100644 --- a/sdks/php/src/Api/UnclaimedDraftApi.php +++ b/sdks/php/src/Api/UnclaimedDraftApi.php @@ -148,14 +148,15 @@ public function getResponse() * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/UnclaimedDraftCreateExample.php * * @param Model\UnclaimedDraftCreateRequest $unclaimed_draft_create_request unclaimed_draft_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\UnclaimedDraftCreateResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function unclaimedDraftCreate(Model\UnclaimedDraftCreateRequest $unclaimed_draft_create_request) + public function unclaimedDraftCreate(Model\UnclaimedDraftCreateRequest $unclaimed_draft_create_request, ?string $idempotency_key = null) { - list($response) = $this->unclaimedDraftCreateWithHttpInfo($unclaimed_draft_create_request); + list($response) = $this->unclaimedDraftCreateWithHttpInfo($unclaimed_draft_create_request, $idempotency_key); return $response; } @@ -167,6 +168,7 @@ public function unclaimedDraftCreate(Model\UnclaimedDraftCreateRequest $unclaime * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/UnclaimedDraftCreateExample.php * * @param Model\UnclaimedDraftCreateRequest $unclaimed_draft_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unclaimedDraftCreate'] to see the possible values for this operation * * @return array of Model\UnclaimedDraftCreateResponse, HTTP status code, HTTP response headers (array of strings) @@ -174,9 +176,9 @@ public function unclaimedDraftCreate(Model\UnclaimedDraftCreateRequest $unclaime * @throws InvalidArgumentException * @deprecated Prefer to use ::unclaimedDraftCreate. This method will eventually become unavailable */ - public function unclaimedDraftCreateWithHttpInfo(Model\UnclaimedDraftCreateRequest $unclaimed_draft_create_request, string $contentType = self::contentTypes['unclaimedDraftCreate'][0]) + public function unclaimedDraftCreateWithHttpInfo(Model\UnclaimedDraftCreateRequest $unclaimed_draft_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['unclaimedDraftCreate'][0]) { - $request = $this->unclaimedDraftCreateRequest($unclaimed_draft_create_request, $contentType); + $request = $this->unclaimedDraftCreateRequest($unclaimed_draft_create_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -306,15 +308,16 @@ public function unclaimedDraftCreateWithHttpInfo(Model\UnclaimedDraftCreateReque * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/UnclaimedDraftCreateExample.php * * @param Model\UnclaimedDraftCreateRequest $unclaimed_draft_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unclaimedDraftCreate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::unclaimedDraftCreate. This method will eventually become unavailable */ - public function unclaimedDraftCreateAsync(Model\UnclaimedDraftCreateRequest $unclaimed_draft_create_request, string $contentType = self::contentTypes['unclaimedDraftCreate'][0]) + public function unclaimedDraftCreateAsync(Model\UnclaimedDraftCreateRequest $unclaimed_draft_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['unclaimedDraftCreate'][0]) { - return $this->unclaimedDraftCreateAsyncWithHttpInfo($unclaimed_draft_create_request, $contentType) + return $this->unclaimedDraftCreateAsyncWithHttpInfo($unclaimed_draft_create_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -330,16 +333,17 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/UnclaimedDraftCreateExample.php * * @param Model\UnclaimedDraftCreateRequest $unclaimed_draft_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unclaimedDraftCreate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::unclaimedDraftCreate. This method will eventually become unavailable */ - public function unclaimedDraftCreateAsyncWithHttpInfo(Model\UnclaimedDraftCreateRequest $unclaimed_draft_create_request, string $contentType = self::contentTypes['unclaimedDraftCreate'][0]) + public function unclaimedDraftCreateAsyncWithHttpInfo(Model\UnclaimedDraftCreateRequest $unclaimed_draft_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['unclaimedDraftCreate'][0]) { $returnType = '\Dropbox\Sign\Model\UnclaimedDraftCreateResponse'; - $request = $this->unclaimedDraftCreateRequest($unclaimed_draft_create_request, $contentType); + $request = $this->unclaimedDraftCreateRequest($unclaimed_draft_create_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -381,13 +385,14 @@ function ($exception) { * Create request for operation 'unclaimedDraftCreate' * * @param Model\UnclaimedDraftCreateRequest $unclaimed_draft_create_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unclaimedDraftCreate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::unclaimedDraftCreate. This method will eventually become unavailable */ - public function unclaimedDraftCreateRequest(Model\UnclaimedDraftCreateRequest $unclaimed_draft_create_request, string $contentType = self::contentTypes['unclaimedDraftCreate'][0]) + public function unclaimedDraftCreateRequest(Model\UnclaimedDraftCreateRequest $unclaimed_draft_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['unclaimedDraftCreate'][0]) { // verify the required parameter 'unclaimed_draft_create_request' is set if ($unclaimed_draft_create_request === null || (is_array($unclaimed_draft_create_request) && count($unclaimed_draft_create_request) === 0)) { @@ -396,6 +401,13 @@ public function unclaimedDraftCreateRequest(Model\UnclaimedDraftCreateRequest $u ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling UnclaimedDraftApi.unclaimedDraftCreate, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling UnclaimedDraftApi.unclaimedDraftCreate, must be bigger than or equal to 1.'); + } + $resourcePath = '/unclaimed_draft/create'; $formParams = []; $queryParams = []; @@ -409,6 +421,11 @@ public function unclaimedDraftCreateRequest(Model\UnclaimedDraftCreateRequest $u $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -495,14 +512,15 @@ public function unclaimedDraftCreateRequest(Model\UnclaimedDraftCreateRequest $u * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.php * * @param Model\UnclaimedDraftCreateEmbeddedRequest $unclaimed_draft_create_embedded_request unclaimed_draft_create_embedded_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\UnclaimedDraftCreateResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function unclaimedDraftCreateEmbedded(Model\UnclaimedDraftCreateEmbeddedRequest $unclaimed_draft_create_embedded_request) + public function unclaimedDraftCreateEmbedded(Model\UnclaimedDraftCreateEmbeddedRequest $unclaimed_draft_create_embedded_request, ?string $idempotency_key = null) { - list($response) = $this->unclaimedDraftCreateEmbeddedWithHttpInfo($unclaimed_draft_create_embedded_request); + list($response) = $this->unclaimedDraftCreateEmbeddedWithHttpInfo($unclaimed_draft_create_embedded_request, $idempotency_key); return $response; } @@ -514,6 +532,7 @@ public function unclaimedDraftCreateEmbedded(Model\UnclaimedDraftCreateEmbeddedR * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.php * * @param Model\UnclaimedDraftCreateEmbeddedRequest $unclaimed_draft_create_embedded_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unclaimedDraftCreateEmbedded'] to see the possible values for this operation * * @return array of Model\UnclaimedDraftCreateResponse, HTTP status code, HTTP response headers (array of strings) @@ -521,9 +540,9 @@ public function unclaimedDraftCreateEmbedded(Model\UnclaimedDraftCreateEmbeddedR * @throws InvalidArgumentException * @deprecated Prefer to use ::unclaimedDraftCreateEmbedded. This method will eventually become unavailable */ - public function unclaimedDraftCreateEmbeddedWithHttpInfo(Model\UnclaimedDraftCreateEmbeddedRequest $unclaimed_draft_create_embedded_request, string $contentType = self::contentTypes['unclaimedDraftCreateEmbedded'][0]) + public function unclaimedDraftCreateEmbeddedWithHttpInfo(Model\UnclaimedDraftCreateEmbeddedRequest $unclaimed_draft_create_embedded_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['unclaimedDraftCreateEmbedded'][0]) { - $request = $this->unclaimedDraftCreateEmbeddedRequest($unclaimed_draft_create_embedded_request, $contentType); + $request = $this->unclaimedDraftCreateEmbeddedRequest($unclaimed_draft_create_embedded_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -653,15 +672,16 @@ public function unclaimedDraftCreateEmbeddedWithHttpInfo(Model\UnclaimedDraftCre * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.php * * @param Model\UnclaimedDraftCreateEmbeddedRequest $unclaimed_draft_create_embedded_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unclaimedDraftCreateEmbedded'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::unclaimedDraftCreateEmbedded. This method will eventually become unavailable */ - public function unclaimedDraftCreateEmbeddedAsync(Model\UnclaimedDraftCreateEmbeddedRequest $unclaimed_draft_create_embedded_request, string $contentType = self::contentTypes['unclaimedDraftCreateEmbedded'][0]) + public function unclaimedDraftCreateEmbeddedAsync(Model\UnclaimedDraftCreateEmbeddedRequest $unclaimed_draft_create_embedded_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['unclaimedDraftCreateEmbedded'][0]) { - return $this->unclaimedDraftCreateEmbeddedAsyncWithHttpInfo($unclaimed_draft_create_embedded_request, $contentType) + return $this->unclaimedDraftCreateEmbeddedAsyncWithHttpInfo($unclaimed_draft_create_embedded_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -677,16 +697,17 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.php * * @param Model\UnclaimedDraftCreateEmbeddedRequest $unclaimed_draft_create_embedded_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unclaimedDraftCreateEmbedded'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::unclaimedDraftCreateEmbedded. This method will eventually become unavailable */ - public function unclaimedDraftCreateEmbeddedAsyncWithHttpInfo(Model\UnclaimedDraftCreateEmbeddedRequest $unclaimed_draft_create_embedded_request, string $contentType = self::contentTypes['unclaimedDraftCreateEmbedded'][0]) + public function unclaimedDraftCreateEmbeddedAsyncWithHttpInfo(Model\UnclaimedDraftCreateEmbeddedRequest $unclaimed_draft_create_embedded_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['unclaimedDraftCreateEmbedded'][0]) { $returnType = '\Dropbox\Sign\Model\UnclaimedDraftCreateResponse'; - $request = $this->unclaimedDraftCreateEmbeddedRequest($unclaimed_draft_create_embedded_request, $contentType); + $request = $this->unclaimedDraftCreateEmbeddedRequest($unclaimed_draft_create_embedded_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -728,13 +749,14 @@ function ($exception) { * Create request for operation 'unclaimedDraftCreateEmbedded' * * @param Model\UnclaimedDraftCreateEmbeddedRequest $unclaimed_draft_create_embedded_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unclaimedDraftCreateEmbedded'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::unclaimedDraftCreateEmbedded. This method will eventually become unavailable */ - public function unclaimedDraftCreateEmbeddedRequest(Model\UnclaimedDraftCreateEmbeddedRequest $unclaimed_draft_create_embedded_request, string $contentType = self::contentTypes['unclaimedDraftCreateEmbedded'][0]) + public function unclaimedDraftCreateEmbeddedRequest(Model\UnclaimedDraftCreateEmbeddedRequest $unclaimed_draft_create_embedded_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['unclaimedDraftCreateEmbedded'][0]) { // verify the required parameter 'unclaimed_draft_create_embedded_request' is set if ($unclaimed_draft_create_embedded_request === null || (is_array($unclaimed_draft_create_embedded_request) && count($unclaimed_draft_create_embedded_request) === 0)) { @@ -743,6 +765,13 @@ public function unclaimedDraftCreateEmbeddedRequest(Model\UnclaimedDraftCreateEm ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling UnclaimedDraftApi.unclaimedDraftCreateEmbedded, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling UnclaimedDraftApi.unclaimedDraftCreateEmbedded, must be bigger than or equal to 1.'); + } + $resourcePath = '/unclaimed_draft/create_embedded'; $formParams = []; $queryParams = []; @@ -756,6 +785,11 @@ public function unclaimedDraftCreateEmbeddedRequest(Model\UnclaimedDraftCreateEm $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -842,14 +876,15 @@ public function unclaimedDraftCreateEmbeddedRequest(Model\UnclaimedDraftCreateEm * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.php * * @param Model\UnclaimedDraftCreateEmbeddedWithTemplateRequest $unclaimed_draft_create_embedded_with_template_request unclaimed_draft_create_embedded_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\UnclaimedDraftCreateResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function unclaimedDraftCreateEmbeddedWithTemplate(Model\UnclaimedDraftCreateEmbeddedWithTemplateRequest $unclaimed_draft_create_embedded_with_template_request) + public function unclaimedDraftCreateEmbeddedWithTemplate(Model\UnclaimedDraftCreateEmbeddedWithTemplateRequest $unclaimed_draft_create_embedded_with_template_request, ?string $idempotency_key = null) { - list($response) = $this->unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo($unclaimed_draft_create_embedded_with_template_request); + list($response) = $this->unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo($unclaimed_draft_create_embedded_with_template_request, $idempotency_key); return $response; } @@ -861,6 +896,7 @@ public function unclaimedDraftCreateEmbeddedWithTemplate(Model\UnclaimedDraftCre * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.php * * @param Model\UnclaimedDraftCreateEmbeddedWithTemplateRequest $unclaimed_draft_create_embedded_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unclaimedDraftCreateEmbeddedWithTemplate'] to see the possible values for this operation * * @return array of Model\UnclaimedDraftCreateResponse, HTTP status code, HTTP response headers (array of strings) @@ -868,9 +904,9 @@ public function unclaimedDraftCreateEmbeddedWithTemplate(Model\UnclaimedDraftCre * @throws InvalidArgumentException * @deprecated Prefer to use ::unclaimedDraftCreateEmbeddedWithTemplate. This method will eventually become unavailable */ - public function unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(Model\UnclaimedDraftCreateEmbeddedWithTemplateRequest $unclaimed_draft_create_embedded_with_template_request, string $contentType = self::contentTypes['unclaimedDraftCreateEmbeddedWithTemplate'][0]) + public function unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(Model\UnclaimedDraftCreateEmbeddedWithTemplateRequest $unclaimed_draft_create_embedded_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['unclaimedDraftCreateEmbeddedWithTemplate'][0]) { - $request = $this->unclaimedDraftCreateEmbeddedWithTemplateRequest($unclaimed_draft_create_embedded_with_template_request, $contentType); + $request = $this->unclaimedDraftCreateEmbeddedWithTemplateRequest($unclaimed_draft_create_embedded_with_template_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -1000,15 +1036,16 @@ public function unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(Model\Uncla * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.php * * @param Model\UnclaimedDraftCreateEmbeddedWithTemplateRequest $unclaimed_draft_create_embedded_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unclaimedDraftCreateEmbeddedWithTemplate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::unclaimedDraftCreateEmbeddedWithTemplate. This method will eventually become unavailable */ - public function unclaimedDraftCreateEmbeddedWithTemplateAsync(Model\UnclaimedDraftCreateEmbeddedWithTemplateRequest $unclaimed_draft_create_embedded_with_template_request, string $contentType = self::contentTypes['unclaimedDraftCreateEmbeddedWithTemplate'][0]) + public function unclaimedDraftCreateEmbeddedWithTemplateAsync(Model\UnclaimedDraftCreateEmbeddedWithTemplateRequest $unclaimed_draft_create_embedded_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['unclaimedDraftCreateEmbeddedWithTemplate'][0]) { - return $this->unclaimedDraftCreateEmbeddedWithTemplateAsyncWithHttpInfo($unclaimed_draft_create_embedded_with_template_request, $contentType) + return $this->unclaimedDraftCreateEmbeddedWithTemplateAsyncWithHttpInfo($unclaimed_draft_create_embedded_with_template_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -1024,16 +1061,17 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.php * * @param Model\UnclaimedDraftCreateEmbeddedWithTemplateRequest $unclaimed_draft_create_embedded_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unclaimedDraftCreateEmbeddedWithTemplate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::unclaimedDraftCreateEmbeddedWithTemplate. This method will eventually become unavailable */ - public function unclaimedDraftCreateEmbeddedWithTemplateAsyncWithHttpInfo(Model\UnclaimedDraftCreateEmbeddedWithTemplateRequest $unclaimed_draft_create_embedded_with_template_request, string $contentType = self::contentTypes['unclaimedDraftCreateEmbeddedWithTemplate'][0]) + public function unclaimedDraftCreateEmbeddedWithTemplateAsyncWithHttpInfo(Model\UnclaimedDraftCreateEmbeddedWithTemplateRequest $unclaimed_draft_create_embedded_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['unclaimedDraftCreateEmbeddedWithTemplate'][0]) { $returnType = '\Dropbox\Sign\Model\UnclaimedDraftCreateResponse'; - $request = $this->unclaimedDraftCreateEmbeddedWithTemplateRequest($unclaimed_draft_create_embedded_with_template_request, $contentType); + $request = $this->unclaimedDraftCreateEmbeddedWithTemplateRequest($unclaimed_draft_create_embedded_with_template_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1075,13 +1113,14 @@ function ($exception) { * Create request for operation 'unclaimedDraftCreateEmbeddedWithTemplate' * * @param Model\UnclaimedDraftCreateEmbeddedWithTemplateRequest $unclaimed_draft_create_embedded_with_template_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unclaimedDraftCreateEmbeddedWithTemplate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::unclaimedDraftCreateEmbeddedWithTemplate. This method will eventually become unavailable */ - public function unclaimedDraftCreateEmbeddedWithTemplateRequest(Model\UnclaimedDraftCreateEmbeddedWithTemplateRequest $unclaimed_draft_create_embedded_with_template_request, string $contentType = self::contentTypes['unclaimedDraftCreateEmbeddedWithTemplate'][0]) + public function unclaimedDraftCreateEmbeddedWithTemplateRequest(Model\UnclaimedDraftCreateEmbeddedWithTemplateRequest $unclaimed_draft_create_embedded_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['unclaimedDraftCreateEmbeddedWithTemplate'][0]) { // verify the required parameter 'unclaimed_draft_create_embedded_with_template_request' is set if ($unclaimed_draft_create_embedded_with_template_request === null || (is_array($unclaimed_draft_create_embedded_with_template_request) && count($unclaimed_draft_create_embedded_with_template_request) === 0)) { @@ -1090,6 +1129,13 @@ public function unclaimedDraftCreateEmbeddedWithTemplateRequest(Model\UnclaimedD ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling UnclaimedDraftApi.unclaimedDraftCreateEmbeddedWithTemplate, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling UnclaimedDraftApi.unclaimedDraftCreateEmbeddedWithTemplate, must be bigger than or equal to 1.'); + } + $resourcePath = '/unclaimed_draft/create_embedded_with_template'; $formParams = []; $queryParams = []; @@ -1103,6 +1149,11 @@ public function unclaimedDraftCreateEmbeddedWithTemplateRequest(Model\UnclaimedD $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -1190,14 +1241,15 @@ public function unclaimedDraftCreateEmbeddedWithTemplateRequest(Model\UnclaimedD * * @param string $signature_request_id The ID of the signature request to edit and resend. (required) * @param Model\UnclaimedDraftEditAndResendRequest $unclaimed_draft_edit_and_resend_request unclaimed_draft_edit_and_resend_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\UnclaimedDraftCreateResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function unclaimedDraftEditAndResend(string $signature_request_id, Model\UnclaimedDraftEditAndResendRequest $unclaimed_draft_edit_and_resend_request) + public function unclaimedDraftEditAndResend(string $signature_request_id, Model\UnclaimedDraftEditAndResendRequest $unclaimed_draft_edit_and_resend_request, ?string $idempotency_key = null) { - list($response) = $this->unclaimedDraftEditAndResendWithHttpInfo($signature_request_id, $unclaimed_draft_edit_and_resend_request); + list($response) = $this->unclaimedDraftEditAndResendWithHttpInfo($signature_request_id, $unclaimed_draft_edit_and_resend_request, $idempotency_key); return $response; } @@ -1210,6 +1262,7 @@ public function unclaimedDraftEditAndResend(string $signature_request_id, Model\ * * @param string $signature_request_id The ID of the signature request to edit and resend. (required) * @param Model\UnclaimedDraftEditAndResendRequest $unclaimed_draft_edit_and_resend_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unclaimedDraftEditAndResend'] to see the possible values for this operation * * @return array of Model\UnclaimedDraftCreateResponse, HTTP status code, HTTP response headers (array of strings) @@ -1217,9 +1270,9 @@ public function unclaimedDraftEditAndResend(string $signature_request_id, Model\ * @throws InvalidArgumentException * @deprecated Prefer to use ::unclaimedDraftEditAndResend. This method will eventually become unavailable */ - public function unclaimedDraftEditAndResendWithHttpInfo(string $signature_request_id, Model\UnclaimedDraftEditAndResendRequest $unclaimed_draft_edit_and_resend_request, string $contentType = self::contentTypes['unclaimedDraftEditAndResend'][0]) + public function unclaimedDraftEditAndResendWithHttpInfo(string $signature_request_id, Model\UnclaimedDraftEditAndResendRequest $unclaimed_draft_edit_and_resend_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['unclaimedDraftEditAndResend'][0]) { - $request = $this->unclaimedDraftEditAndResendRequest($signature_request_id, $unclaimed_draft_edit_and_resend_request, $contentType); + $request = $this->unclaimedDraftEditAndResendRequest($signature_request_id, $unclaimed_draft_edit_and_resend_request, $idempotency_key, $contentType); try { $options = $this->createHttpClientOption(); @@ -1350,15 +1403,16 @@ public function unclaimedDraftEditAndResendWithHttpInfo(string $signature_reques * * @param string $signature_request_id The ID of the signature request to edit and resend. (required) * @param Model\UnclaimedDraftEditAndResendRequest $unclaimed_draft_edit_and_resend_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unclaimedDraftEditAndResend'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::unclaimedDraftEditAndResend. This method will eventually become unavailable */ - public function unclaimedDraftEditAndResendAsync(string $signature_request_id, Model\UnclaimedDraftEditAndResendRequest $unclaimed_draft_edit_and_resend_request, string $contentType = self::contentTypes['unclaimedDraftEditAndResend'][0]) + public function unclaimedDraftEditAndResendAsync(string $signature_request_id, Model\UnclaimedDraftEditAndResendRequest $unclaimed_draft_edit_and_resend_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['unclaimedDraftEditAndResend'][0]) { - return $this->unclaimedDraftEditAndResendAsyncWithHttpInfo($signature_request_id, $unclaimed_draft_edit_and_resend_request, $contentType) + return $this->unclaimedDraftEditAndResendAsyncWithHttpInfo($signature_request_id, $unclaimed_draft_edit_and_resend_request, $idempotency_key, $contentType) ->then( function ($response) { return $response[0]; @@ -1375,16 +1429,17 @@ function ($response) { * * @param string $signature_request_id The ID of the signature request to edit and resend. (required) * @param Model\UnclaimedDraftEditAndResendRequest $unclaimed_draft_edit_and_resend_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unclaimedDraftEditAndResend'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::unclaimedDraftEditAndResend. This method will eventually become unavailable */ - public function unclaimedDraftEditAndResendAsyncWithHttpInfo(string $signature_request_id, Model\UnclaimedDraftEditAndResendRequest $unclaimed_draft_edit_and_resend_request, string $contentType = self::contentTypes['unclaimedDraftEditAndResend'][0]) + public function unclaimedDraftEditAndResendAsyncWithHttpInfo(string $signature_request_id, Model\UnclaimedDraftEditAndResendRequest $unclaimed_draft_edit_and_resend_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['unclaimedDraftEditAndResend'][0]) { $returnType = '\Dropbox\Sign\Model\UnclaimedDraftCreateResponse'; - $request = $this->unclaimedDraftEditAndResendRequest($signature_request_id, $unclaimed_draft_edit_and_resend_request, $contentType); + $request = $this->unclaimedDraftEditAndResendRequest($signature_request_id, $unclaimed_draft_edit_and_resend_request, $idempotency_key, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1427,13 +1482,14 @@ function ($exception) { * * @param string $signature_request_id The ID of the signature request to edit and resend. (required) * @param Model\UnclaimedDraftEditAndResendRequest $unclaimed_draft_edit_and_resend_request (required) + * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unclaimedDraftEditAndResend'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::unclaimedDraftEditAndResend. This method will eventually become unavailable */ - public function unclaimedDraftEditAndResendRequest(string $signature_request_id, Model\UnclaimedDraftEditAndResendRequest $unclaimed_draft_edit_and_resend_request, string $contentType = self::contentTypes['unclaimedDraftEditAndResend'][0]) + public function unclaimedDraftEditAndResendRequest(string $signature_request_id, Model\UnclaimedDraftEditAndResendRequest $unclaimed_draft_edit_and_resend_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['unclaimedDraftEditAndResend'][0]) { // verify the required parameter 'signature_request_id' is set if ($signature_request_id === null || (is_array($signature_request_id) && count($signature_request_id) === 0)) { @@ -1449,6 +1505,13 @@ public function unclaimedDraftEditAndResendRequest(string $signature_request_id, ); } + if ($idempotency_key !== null && strlen($idempotency_key) > 255) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling UnclaimedDraftApi.unclaimedDraftEditAndResend, must be smaller than or equal to 255.'); + } + if ($idempotency_key !== null && strlen($idempotency_key) < 1) { + throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling UnclaimedDraftApi.unclaimedDraftEditAndResend, must be bigger than or equal to 1.'); + } + $resourcePath = '/unclaimed_draft/edit_and_resend/{signature_request_id}'; $formParams = []; $queryParams = []; @@ -1462,6 +1525,11 @@ public function unclaimedDraftEditAndResendRequest(string $signature_request_id, $multipart = !empty($formParams); + // header params + if ($idempotency_key !== null) { + $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); + } + // path params if ($signature_request_id !== null) { $resourcePath = str_replace( diff --git a/sdks/python/docs/AccountApi.md b/sdks/python/docs/AccountApi.md index baf60a9f2..32c80dcd6 100644 --- a/sdks/python/docs/AccountApi.md +++ b/sdks/python/docs/AccountApi.md @@ -55,6 +55,7 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `account_create_request` | [**AccountCreateRequest**](AccountCreateRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -73,7 +74,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -187,6 +188,7 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `account_update_request` | [**AccountUpdateRequest**](AccountUpdateRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -205,7 +207,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -255,6 +257,7 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `account_verify_request` | [**AccountVerifyRequest**](AccountVerifyRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -273,7 +276,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/python/docs/ApiAppApi.md b/sdks/python/docs/ApiAppApi.md index 2ee0a39e0..45b8301e5 100644 --- a/sdks/python/docs/ApiAppApi.md +++ b/sdks/python/docs/ApiAppApi.md @@ -75,6 +75,7 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `api_app_create_request` | [**ApiAppCreateRequest**](ApiAppCreateRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -93,7 +94,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**201** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -357,6 +358,7 @@ with ApiClient(configuration) as api_client: | ---- | ---- | ----------- | ----- | | `client_id` | **str** | The client id of the API App to update. | | | `api_app_update_request` | [**ApiAppUpdateRequest**](ApiAppUpdateRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -375,7 +377,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/python/docs/DocumentApi.md b/sdks/python/docs/DocumentApi.md index c5e2321c9..0425896e2 100644 --- a/sdks/python/docs/DocumentApi.md +++ b/sdks/python/docs/DocumentApi.md @@ -54,6 +54,7 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `document_field_detection_request` | [**DocumentFieldDetectionRequest**](DocumentFieldDetectionRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -72,7 +73,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/python/docs/EmbeddedApi.md b/sdks/python/docs/EmbeddedApi.md index 9bf1d9dbc..7e7e16e76 100644 --- a/sdks/python/docs/EmbeddedApi.md +++ b/sdks/python/docs/EmbeddedApi.md @@ -60,6 +60,7 @@ with ApiClient(configuration) as api_client: | ---- | ---- | ----------- | ----- | | `template_id` | **str** | The id of the template to edit. | | | `embedded_edit_url_request` | [**EmbeddedEditUrlRequest**](EmbeddedEditUrlRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -78,7 +79,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/python/docs/FaxApi.md b/sdks/python/docs/FaxApi.md index 431d0ca9f..6d4c028ae 100644 --- a/sdks/python/docs/FaxApi.md +++ b/sdks/python/docs/FaxApi.md @@ -311,6 +311,7 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `fax_send_request` | [**FaxSendRequest**](FaxSendRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -329,7 +330,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/python/docs/FaxLineApi.md b/sdks/python/docs/FaxLineApi.md index 4f1b2a4a4..808689a50 100644 --- a/sdks/python/docs/FaxLineApi.md +++ b/sdks/python/docs/FaxLineApi.md @@ -57,6 +57,7 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `fax_line_add_user_request` | [**FaxLineAddUserRequest**](FaxLineAddUserRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -75,7 +76,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -189,6 +190,7 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `fax_line_create_request` | [**FaxLineCreateRequest**](FaxLineCreateRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -207,7 +209,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -449,6 +451,7 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `fax_line_remove_user_request` | [**FaxLineRemoveUserRequest**](FaxLineRemoveUserRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -467,7 +470,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/python/docs/ReportApi.md b/sdks/python/docs/ReportApi.md index 0ddd8c376..ef5ad7954 100644 --- a/sdks/python/docs/ReportApi.md +++ b/sdks/python/docs/ReportApi.md @@ -57,6 +57,7 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `report_create_request` | [**ReportCreateRequest**](ReportCreateRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -75,7 +76,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/python/docs/SignatureRequestApi.md b/sdks/python/docs/SignatureRequestApi.md index 79db31de2..61f863b10 100644 --- a/sdks/python/docs/SignatureRequestApi.md +++ b/sdks/python/docs/SignatureRequestApi.md @@ -150,6 +150,7 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_bulk_create_embedded_with_template_request` | [**SignatureRequestBulkCreateEmbeddedWithTemplateRequest**](SignatureRequestBulkCreateEmbeddedWithTemplateRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -168,7 +169,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -298,6 +299,7 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_bulk_send_with_template_request` | [**SignatureRequestBulkSendWithTemplateRequest**](SignatureRequestBulkSendWithTemplateRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -316,7 +318,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -371,6 +373,7 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_id` | **str** | The id of the incomplete SignatureRequest to cancel. | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -389,7 +392,7 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -483,6 +486,7 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_create_embedded_request` | [**SignatureRequestCreateEmbeddedRequest**](SignatureRequestCreateEmbeddedRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -501,7 +505,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -585,6 +589,7 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_create_embedded_with_template_request` | [**SignatureRequestCreateEmbeddedWithTemplateRequest**](SignatureRequestCreateEmbeddedWithTemplateRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -603,7 +608,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -710,6 +715,7 @@ with ApiClient(configuration) as api_client: | ---- | ---- | ----------- | ----- | | `signature_request_id` | **str** | The id of the SignatureRequest to edit. | | | `signature_request_edit_request` | [**SignatureRequestEditRequest**](SignatureRequestEditRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -728,7 +734,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -823,6 +829,7 @@ with ApiClient(configuration) as api_client: | ---- | ---- | ----------- | ----- | | `signature_request_id` | **str** | The id of the SignatureRequest to edit. | | | `signature_request_edit_embedded_request` | [**SignatureRequestEditEmbeddedRequest**](SignatureRequestEditEmbeddedRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -841,7 +848,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -928,6 +935,7 @@ with ApiClient(configuration) as api_client: | ---- | ---- | ----------- | ----- | | `signature_request_id` | **str** | The id of the SignatureRequest to edit. | | | `signature_request_edit_embedded_with_template_request` | [**SignatureRequestEditEmbeddedWithTemplateRequest**](SignatureRequestEditEmbeddedWithTemplateRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -946,7 +954,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1054,6 +1062,7 @@ with ApiClient(configuration) as api_client: | ---- | ---- | ----------- | ----- | | `signature_request_id` | **str** | The id of the SignatureRequest to edit. | | | `signature_request_edit_with_template_request` | [**SignatureRequestEditWithTemplateRequest**](SignatureRequestEditWithTemplateRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1072,7 +1081,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1475,6 +1484,7 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_id` | **str** | The id of the SignatureRequest to release. | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1493,7 +1503,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1550,6 +1560,7 @@ with ApiClient(configuration) as api_client: | ---- | ---- | ----------- | ----- | | `signature_request_id` | **str** | The id of the SignatureRequest to send a reminder for. | | | `signature_request_remind_request` | [**SignatureRequestRemindRequest**](SignatureRequestRemindRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1568,7 +1579,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1617,6 +1628,7 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_id` | **str** | The id of the SignatureRequest to remove. | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1635,7 +1647,7 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1739,6 +1751,7 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_send_request` | [**SignatureRequestSendRequest**](SignatureRequestSendRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1757,7 +1770,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1862,6 +1875,7 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_send_with_template_request` | [**SignatureRequestSendWithTemplateRequest**](SignatureRequestSendWithTemplateRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1880,7 +1894,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1940,6 +1954,7 @@ with ApiClient(configuration) as api_client: | ---- | ---- | ----------- | ----- | | `signature_request_id` | **str** | The id of the SignatureRequest to update. | | | `signature_request_update_request` | [**SignatureRequestUpdateRequest**](SignatureRequestUpdateRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1958,7 +1973,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/python/docs/TeamApi.md b/sdks/python/docs/TeamApi.md index e61896a51..06f941791 100644 --- a/sdks/python/docs/TeamApi.md +++ b/sdks/python/docs/TeamApi.md @@ -63,6 +63,7 @@ with ApiClient(configuration) as api_client: | ---- | ---- | ----------- | ----- | | `team_add_member_request` | [**TeamAddMemberRequest**](TeamAddMemberRequest.md) | | | | `team_id` | **str** | The id of the team. | [optional] | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -81,7 +82,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -131,6 +132,7 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `team_create_request` | [**TeamCreateRequest**](TeamCreateRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -149,7 +151,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -512,6 +514,7 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `team_remove_member_request` | [**TeamRemoveMemberRequest**](TeamRemoveMemberRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -530,7 +533,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**201** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -648,6 +651,7 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `team_update_request` | [**TeamUpdateRequest**](TeamUpdateRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -666,7 +670,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/python/docs/TemplateApi.md b/sdks/python/docs/TemplateApi.md index 23d16d10b..cb0ee8b69 100644 --- a/sdks/python/docs/TemplateApi.md +++ b/sdks/python/docs/TemplateApi.md @@ -64,6 +64,7 @@ with ApiClient(configuration) as api_client: | ---- | ---- | ----------- | ----- | | `template_id` | **str** | The id of the Template to give the Account access to. | | | `template_add_user_request` | [**TemplateAddUserRequest**](TemplateAddUserRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -82,7 +83,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -219,6 +220,7 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `template_create_request` | [**TemplateCreateRequest**](TemplateCreateRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -237,7 +239,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -337,6 +339,7 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `template_create_embedded_draft_request` | [**TemplateCreateEmbeddedDraftRequest**](TemplateCreateEmbeddedDraftRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -355,7 +358,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -399,6 +402,7 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `template_id` | **str** | The id of the Template to delete. | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -417,7 +421,7 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -804,6 +808,7 @@ with ApiClient(configuration) as api_client: | ---- | ---- | ----------- | ----- | | `template_id` | **str** | The id of the Template to remove the Account's access to. | | | `template_remove_user_request` | [**TemplateRemoveUserRequest**](TemplateRemoveUserRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -822,7 +827,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -887,6 +892,7 @@ with ApiClient(configuration) as api_client: | ---- | ---- | ----------- | ----- | | `template_id` | **str** | The ID of the template whose files to update. | | | `template_update_files_request` | [**TemplateUpdateFilesRequest**](TemplateUpdateFilesRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -905,7 +911,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/python/docs/UnclaimedDraftApi.md b/sdks/python/docs/UnclaimedDraftApi.md index 62c15dc8e..bd207313e 100644 --- a/sdks/python/docs/UnclaimedDraftApi.md +++ b/sdks/python/docs/UnclaimedDraftApi.md @@ -72,6 +72,7 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `unclaimed_draft_create_request` | [**UnclaimedDraftCreateRequest**](UnclaimedDraftCreateRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -90,7 +91,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -152,6 +153,7 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `unclaimed_draft_create_embedded_request` | [**UnclaimedDraftCreateEmbeddedRequest**](UnclaimedDraftCreateEmbeddedRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -170,7 +172,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -255,6 +257,7 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `unclaimed_draft_create_embedded_with_template_request` | [**UnclaimedDraftCreateEmbeddedWithTemplateRequest**](UnclaimedDraftCreateEmbeddedWithTemplateRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -273,7 +276,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -331,6 +334,7 @@ with ApiClient(configuration) as api_client: | ---- | ---- | ----------- | ----- | | `signature_request_id` | **str** | The ID of the signature request to edit and resend. | | | `unclaimed_draft_edit_and_resend_request` | [**UnclaimedDraftEditAndResendRequest**](UnclaimedDraftEditAndResendRequest.md) | | | +| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -349,7 +353,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/python/dropbox_sign/api/account_api.py b/sdks/python/dropbox_sign/api/account_api.py index 887a72b51..3b6ce8a0c 100644 --- a/sdks/python/dropbox_sign/api/account_api.py +++ b/sdks/python/dropbox_sign/api/account_api.py @@ -49,6 +49,12 @@ def __init__(self, api_client=None) -> None: def account_create( self, account_create_request: AccountCreateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -69,6 +75,8 @@ def account_create( :param account_create_request: (required) :type account_create_request: AccountCreateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -93,6 +101,7 @@ def account_create( _param = self._account_create_serialize( account_create_request=account_create_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -117,6 +126,12 @@ def account_create( def account_create_with_http_info( self, account_create_request: AccountCreateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -137,6 +152,8 @@ def account_create_with_http_info( :param account_create_request: (required) :type account_create_request: AccountCreateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -161,6 +178,7 @@ def account_create_with_http_info( _param = self._account_create_serialize( account_create_request=account_create_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -185,6 +203,12 @@ def account_create_with_http_info( def account_create_without_preload_content( self, account_create_request: AccountCreateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -205,6 +229,8 @@ def account_create_without_preload_content( :param account_create_request: (required) :type account_create_request: AccountCreateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -229,6 +255,7 @@ def account_create_without_preload_content( _param = self._account_create_serialize( account_create_request=account_create_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -248,6 +275,7 @@ def account_create_without_preload_content( def _account_create_serialize( self, account_create_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -292,6 +320,8 @@ def _account_create_serialize( # process the path parameters # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if account_create_request is not None and has_files is False: @@ -638,6 +668,12 @@ def _account_get_serialize( def account_update( self, account_update_request: AccountUpdateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -658,6 +694,8 @@ def account_update( :param account_update_request: (required) :type account_update_request: AccountUpdateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -682,6 +720,7 @@ def account_update( _param = self._account_update_serialize( account_update_request=account_update_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -706,6 +745,12 @@ def account_update( def account_update_with_http_info( self, account_update_request: AccountUpdateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -726,6 +771,8 @@ def account_update_with_http_info( :param account_update_request: (required) :type account_update_request: AccountUpdateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -750,6 +797,7 @@ def account_update_with_http_info( _param = self._account_update_serialize( account_update_request=account_update_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -774,6 +822,12 @@ def account_update_with_http_info( def account_update_without_preload_content( self, account_update_request: AccountUpdateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -794,6 +848,8 @@ def account_update_without_preload_content( :param account_update_request: (required) :type account_update_request: AccountUpdateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -818,6 +874,7 @@ def account_update_without_preload_content( _param = self._account_update_serialize( account_update_request=account_update_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -837,6 +894,7 @@ def account_update_without_preload_content( def _account_update_serialize( self, account_update_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -881,6 +939,8 @@ def _account_update_serialize( # process the path parameters # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if account_update_request is not None and has_files is False: @@ -924,6 +984,12 @@ def _account_update_serialize( def account_verify( self, account_verify_request: AccountVerifyRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -944,6 +1010,8 @@ def account_verify( :param account_verify_request: (required) :type account_verify_request: AccountVerifyRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -968,6 +1036,7 @@ def account_verify( _param = self._account_verify_serialize( account_verify_request=account_verify_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -992,6 +1061,12 @@ def account_verify( def account_verify_with_http_info( self, account_verify_request: AccountVerifyRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1012,6 +1087,8 @@ def account_verify_with_http_info( :param account_verify_request: (required) :type account_verify_request: AccountVerifyRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1036,6 +1113,7 @@ def account_verify_with_http_info( _param = self._account_verify_serialize( account_verify_request=account_verify_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1060,6 +1138,12 @@ def account_verify_with_http_info( def account_verify_without_preload_content( self, account_verify_request: AccountVerifyRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1080,6 +1164,8 @@ def account_verify_without_preload_content( :param account_verify_request: (required) :type account_verify_request: AccountVerifyRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1104,6 +1190,7 @@ def account_verify_without_preload_content( _param = self._account_verify_serialize( account_verify_request=account_verify_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1123,6 +1210,7 @@ def account_verify_without_preload_content( def _account_verify_serialize( self, account_verify_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -1167,6 +1255,8 @@ def _account_verify_serialize( # process the path parameters # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if account_verify_request is not None and has_files is False: diff --git a/sdks/python/dropbox_sign/api/api_app_api.py b/sdks/python/dropbox_sign/api/api_app_api.py index b626413f4..9a32cd3a1 100644 --- a/sdks/python/dropbox_sign/api/api_app_api.py +++ b/sdks/python/dropbox_sign/api/api_app_api.py @@ -47,6 +47,12 @@ def __init__(self, api_client=None) -> None: def api_app_create( self, api_app_create_request: ApiAppCreateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -67,6 +73,8 @@ def api_app_create( :param api_app_create_request: (required) :type api_app_create_request: ApiAppCreateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -91,6 +99,7 @@ def api_app_create( _param = self._api_app_create_serialize( api_app_create_request=api_app_create_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -115,6 +124,12 @@ def api_app_create( def api_app_create_with_http_info( self, api_app_create_request: ApiAppCreateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -135,6 +150,8 @@ def api_app_create_with_http_info( :param api_app_create_request: (required) :type api_app_create_request: ApiAppCreateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -159,6 +176,7 @@ def api_app_create_with_http_info( _param = self._api_app_create_serialize( api_app_create_request=api_app_create_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -183,6 +201,12 @@ def api_app_create_with_http_info( def api_app_create_without_preload_content( self, api_app_create_request: ApiAppCreateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -203,6 +227,8 @@ def api_app_create_without_preload_content( :param api_app_create_request: (required) :type api_app_create_request: ApiAppCreateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -227,6 +253,7 @@ def api_app_create_without_preload_content( _param = self._api_app_create_serialize( api_app_create_request=api_app_create_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -246,6 +273,7 @@ def api_app_create_without_preload_content( def _api_app_create_serialize( self, api_app_create_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -290,6 +318,8 @@ def _api_app_create_serialize( # process the path parameters # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if api_app_create_request is not None and has_files is False: @@ -1159,6 +1189,12 @@ def api_app_update( StrictStr, Field(description="The client id of the API App to update.") ], api_app_update_request: ApiAppUpdateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1181,6 +1217,8 @@ def api_app_update( :type client_id: str :param api_app_update_request: (required) :type api_app_update_request: ApiAppUpdateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1206,6 +1244,7 @@ def api_app_update( _param = self._api_app_update_serialize( client_id=client_id, api_app_update_request=api_app_update_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1233,6 +1272,12 @@ def api_app_update_with_http_info( StrictStr, Field(description="The client id of the API App to update.") ], api_app_update_request: ApiAppUpdateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1255,6 +1300,8 @@ def api_app_update_with_http_info( :type client_id: str :param api_app_update_request: (required) :type api_app_update_request: ApiAppUpdateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1280,6 +1327,7 @@ def api_app_update_with_http_info( _param = self._api_app_update_serialize( client_id=client_id, api_app_update_request=api_app_update_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1307,6 +1355,12 @@ def api_app_update_without_preload_content( StrictStr, Field(description="The client id of the API App to update.") ], api_app_update_request: ApiAppUpdateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1329,6 +1383,8 @@ def api_app_update_without_preload_content( :type client_id: str :param api_app_update_request: (required) :type api_app_update_request: ApiAppUpdateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1354,6 +1410,7 @@ def api_app_update_without_preload_content( _param = self._api_app_update_serialize( client_id=client_id, api_app_update_request=api_app_update_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1374,6 +1431,7 @@ def _api_app_update_serialize( self, client_id, api_app_update_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -1420,6 +1478,8 @@ def _api_app_update_serialize( _path_params["client_id"] = client_id # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if api_app_update_request is not None and has_files is False: diff --git a/sdks/python/dropbox_sign/api/document_api.py b/sdks/python/dropbox_sign/api/document_api.py index eb92dc1c2..d7de619d2 100644 --- a/sdks/python/dropbox_sign/api/document_api.py +++ b/sdks/python/dropbox_sign/api/document_api.py @@ -17,6 +17,9 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from pydantic import Field +from typing import Optional +from typing_extensions import Annotated from dropbox_sign.models.document_field_detection_request import ( DocumentFieldDetectionRequest, ) @@ -46,6 +49,12 @@ def __init__(self, api_client=None) -> None: def document_detect_fields( self, document_field_detection_request: DocumentFieldDetectionRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -66,6 +75,8 @@ def document_detect_fields( :param document_field_detection_request: (required) :type document_field_detection_request: DocumentFieldDetectionRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -90,6 +101,7 @@ def document_detect_fields( _param = self._document_detect_fields_serialize( document_field_detection_request=document_field_detection_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -114,6 +126,12 @@ def document_detect_fields( def document_detect_fields_with_http_info( self, document_field_detection_request: DocumentFieldDetectionRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -134,6 +152,8 @@ def document_detect_fields_with_http_info( :param document_field_detection_request: (required) :type document_field_detection_request: DocumentFieldDetectionRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -158,6 +178,7 @@ def document_detect_fields_with_http_info( _param = self._document_detect_fields_serialize( document_field_detection_request=document_field_detection_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -182,6 +203,12 @@ def document_detect_fields_with_http_info( def document_detect_fields_without_preload_content( self, document_field_detection_request: DocumentFieldDetectionRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -202,6 +229,8 @@ def document_detect_fields_without_preload_content( :param document_field_detection_request: (required) :type document_field_detection_request: DocumentFieldDetectionRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -226,6 +255,7 @@ def document_detect_fields_without_preload_content( _param = self._document_detect_fields_serialize( document_field_detection_request=document_field_detection_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -245,6 +275,7 @@ def document_detect_fields_without_preload_content( def _document_detect_fields_serialize( self, document_field_detection_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -289,6 +320,8 @@ def _document_detect_fields_serialize( # process the path parameters # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if document_field_detection_request is not None and has_files is False: diff --git a/sdks/python/dropbox_sign/api/embedded_api.py b/sdks/python/dropbox_sign/api/embedded_api.py index 1a79db1be..c6c51e790 100644 --- a/sdks/python/dropbox_sign/api/embedded_api.py +++ b/sdks/python/dropbox_sign/api/embedded_api.py @@ -18,6 +18,7 @@ from typing_extensions import Annotated from pydantic import Field, StrictStr +from typing import Optional from typing_extensions import Annotated from dropbox_sign.models.embedded_edit_url_request import EmbeddedEditUrlRequest from dropbox_sign.models.embedded_edit_url_response import EmbeddedEditUrlResponse @@ -48,6 +49,12 @@ def embedded_edit_url( StrictStr, Field(description="The id of the template to edit.") ], embedded_edit_url_request: EmbeddedEditUrlRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -70,6 +77,8 @@ def embedded_edit_url( :type template_id: str :param embedded_edit_url_request: (required) :type embedded_edit_url_request: EmbeddedEditUrlRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -95,6 +104,7 @@ def embedded_edit_url( _param = self._embedded_edit_url_serialize( template_id=template_id, embedded_edit_url_request=embedded_edit_url_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -122,6 +132,12 @@ def embedded_edit_url_with_http_info( StrictStr, Field(description="The id of the template to edit.") ], embedded_edit_url_request: EmbeddedEditUrlRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -144,6 +160,8 @@ def embedded_edit_url_with_http_info( :type template_id: str :param embedded_edit_url_request: (required) :type embedded_edit_url_request: EmbeddedEditUrlRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -169,6 +187,7 @@ def embedded_edit_url_with_http_info( _param = self._embedded_edit_url_serialize( template_id=template_id, embedded_edit_url_request=embedded_edit_url_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -196,6 +215,12 @@ def embedded_edit_url_without_preload_content( StrictStr, Field(description="The id of the template to edit.") ], embedded_edit_url_request: EmbeddedEditUrlRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -218,6 +243,8 @@ def embedded_edit_url_without_preload_content( :type template_id: str :param embedded_edit_url_request: (required) :type embedded_edit_url_request: EmbeddedEditUrlRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -243,6 +270,7 @@ def embedded_edit_url_without_preload_content( _param = self._embedded_edit_url_serialize( template_id=template_id, embedded_edit_url_request=embedded_edit_url_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -263,6 +291,7 @@ def _embedded_edit_url_serialize( self, template_id, embedded_edit_url_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -309,6 +338,8 @@ def _embedded_edit_url_serialize( _path_params["template_id"] = template_id # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if embedded_edit_url_request is not None and has_files is False: diff --git a/sdks/python/dropbox_sign/api/fax_api.py b/sdks/python/dropbox_sign/api/fax_api.py index 682b26e40..38af47068 100644 --- a/sdks/python/dropbox_sign/api/fax_api.py +++ b/sdks/python/dropbox_sign/api/fax_api.py @@ -1111,6 +1111,12 @@ def _fax_list_serialize( def fax_send( self, fax_send_request: FaxSendRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1131,6 +1137,8 @@ def fax_send( :param fax_send_request: (required) :type fax_send_request: FaxSendRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1155,6 +1163,7 @@ def fax_send( _param = self._fax_send_serialize( fax_send_request=fax_send_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1179,6 +1188,12 @@ def fax_send( def fax_send_with_http_info( self, fax_send_request: FaxSendRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1199,6 +1214,8 @@ def fax_send_with_http_info( :param fax_send_request: (required) :type fax_send_request: FaxSendRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1223,6 +1240,7 @@ def fax_send_with_http_info( _param = self._fax_send_serialize( fax_send_request=fax_send_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1247,6 +1265,12 @@ def fax_send_with_http_info( def fax_send_without_preload_content( self, fax_send_request: FaxSendRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1267,6 +1291,8 @@ def fax_send_without_preload_content( :param fax_send_request: (required) :type fax_send_request: FaxSendRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1291,6 +1317,7 @@ def fax_send_without_preload_content( _param = self._fax_send_serialize( fax_send_request=fax_send_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1310,6 +1337,7 @@ def fax_send_without_preload_content( def _fax_send_serialize( self, fax_send_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -1354,6 +1382,8 @@ def _fax_send_serialize( # process the path parameters # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if fax_send_request is not None and has_files is False: diff --git a/sdks/python/dropbox_sign/api/fax_line_api.py b/sdks/python/dropbox_sign/api/fax_line_api.py index f752698b0..89989aa9c 100644 --- a/sdks/python/dropbox_sign/api/fax_line_api.py +++ b/sdks/python/dropbox_sign/api/fax_line_api.py @@ -52,6 +52,12 @@ def __init__(self, api_client=None) -> None: def fax_line_add_user( self, fax_line_add_user_request: FaxLineAddUserRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -72,6 +78,8 @@ def fax_line_add_user( :param fax_line_add_user_request: (required) :type fax_line_add_user_request: FaxLineAddUserRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -96,6 +104,7 @@ def fax_line_add_user( _param = self._fax_line_add_user_serialize( fax_line_add_user_request=fax_line_add_user_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -120,6 +129,12 @@ def fax_line_add_user( def fax_line_add_user_with_http_info( self, fax_line_add_user_request: FaxLineAddUserRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -140,6 +155,8 @@ def fax_line_add_user_with_http_info( :param fax_line_add_user_request: (required) :type fax_line_add_user_request: FaxLineAddUserRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -164,6 +181,7 @@ def fax_line_add_user_with_http_info( _param = self._fax_line_add_user_serialize( fax_line_add_user_request=fax_line_add_user_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -188,6 +206,12 @@ def fax_line_add_user_with_http_info( def fax_line_add_user_without_preload_content( self, fax_line_add_user_request: FaxLineAddUserRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -208,6 +232,8 @@ def fax_line_add_user_without_preload_content( :param fax_line_add_user_request: (required) :type fax_line_add_user_request: FaxLineAddUserRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -232,6 +258,7 @@ def fax_line_add_user_without_preload_content( _param = self._fax_line_add_user_serialize( fax_line_add_user_request=fax_line_add_user_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -251,6 +278,7 @@ def fax_line_add_user_without_preload_content( def _fax_line_add_user_serialize( self, fax_line_add_user_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -295,6 +323,8 @@ def _fax_line_add_user_serialize( # process the path parameters # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if fax_line_add_user_request is not None and has_files is False: @@ -669,6 +699,12 @@ def _fax_line_area_code_get_serialize( def fax_line_create( self, fax_line_create_request: FaxLineCreateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -689,6 +725,8 @@ def fax_line_create( :param fax_line_create_request: (required) :type fax_line_create_request: FaxLineCreateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -713,6 +751,7 @@ def fax_line_create( _param = self._fax_line_create_serialize( fax_line_create_request=fax_line_create_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -737,6 +776,12 @@ def fax_line_create( def fax_line_create_with_http_info( self, fax_line_create_request: FaxLineCreateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -757,6 +802,8 @@ def fax_line_create_with_http_info( :param fax_line_create_request: (required) :type fax_line_create_request: FaxLineCreateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -781,6 +828,7 @@ def fax_line_create_with_http_info( _param = self._fax_line_create_serialize( fax_line_create_request=fax_line_create_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -805,6 +853,12 @@ def fax_line_create_with_http_info( def fax_line_create_without_preload_content( self, fax_line_create_request: FaxLineCreateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -825,6 +879,8 @@ def fax_line_create_without_preload_content( :param fax_line_create_request: (required) :type fax_line_create_request: FaxLineCreateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -849,6 +905,7 @@ def fax_line_create_without_preload_content( _param = self._fax_line_create_serialize( fax_line_create_request=fax_line_create_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -868,6 +925,7 @@ def fax_line_create_without_preload_content( def _fax_line_create_serialize( self, fax_line_create_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -912,6 +970,8 @@ def _fax_line_create_serialize( # process the path parameters # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if fax_line_create_request is not None and has_files is False: @@ -1855,6 +1915,12 @@ def _fax_line_list_serialize( def fax_line_remove_user( self, fax_line_remove_user_request: FaxLineRemoveUserRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1875,6 +1941,8 @@ def fax_line_remove_user( :param fax_line_remove_user_request: (required) :type fax_line_remove_user_request: FaxLineRemoveUserRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1899,6 +1967,7 @@ def fax_line_remove_user( _param = self._fax_line_remove_user_serialize( fax_line_remove_user_request=fax_line_remove_user_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1923,6 +1992,12 @@ def fax_line_remove_user( def fax_line_remove_user_with_http_info( self, fax_line_remove_user_request: FaxLineRemoveUserRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1943,6 +2018,8 @@ def fax_line_remove_user_with_http_info( :param fax_line_remove_user_request: (required) :type fax_line_remove_user_request: FaxLineRemoveUserRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1967,6 +2044,7 @@ def fax_line_remove_user_with_http_info( _param = self._fax_line_remove_user_serialize( fax_line_remove_user_request=fax_line_remove_user_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1991,6 +2069,12 @@ def fax_line_remove_user_with_http_info( def fax_line_remove_user_without_preload_content( self, fax_line_remove_user_request: FaxLineRemoveUserRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2011,6 +2095,8 @@ def fax_line_remove_user_without_preload_content( :param fax_line_remove_user_request: (required) :type fax_line_remove_user_request: FaxLineRemoveUserRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2035,6 +2121,7 @@ def fax_line_remove_user_without_preload_content( _param = self._fax_line_remove_user_serialize( fax_line_remove_user_request=fax_line_remove_user_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2054,6 +2141,7 @@ def fax_line_remove_user_without_preload_content( def _fax_line_remove_user_serialize( self, fax_line_remove_user_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -2098,6 +2186,8 @@ def _fax_line_remove_user_serialize( # process the path parameters # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if fax_line_remove_user_request is not None and has_files is False: diff --git a/sdks/python/dropbox_sign/api/report_api.py b/sdks/python/dropbox_sign/api/report_api.py index 38b120b2a..d43e3c4e8 100644 --- a/sdks/python/dropbox_sign/api/report_api.py +++ b/sdks/python/dropbox_sign/api/report_api.py @@ -17,6 +17,9 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from pydantic import Field +from typing import Optional +from typing_extensions import Annotated from dropbox_sign.models.report_create_request import ReportCreateRequest from dropbox_sign.models.report_create_response import ReportCreateResponse @@ -42,6 +45,12 @@ def __init__(self, api_client=None) -> None: def report_create( self, report_create_request: ReportCreateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -62,6 +71,8 @@ def report_create( :param report_create_request: (required) :type report_create_request: ReportCreateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -86,6 +97,7 @@ def report_create( _param = self._report_create_serialize( report_create_request=report_create_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -110,6 +122,12 @@ def report_create( def report_create_with_http_info( self, report_create_request: ReportCreateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -130,6 +148,8 @@ def report_create_with_http_info( :param report_create_request: (required) :type report_create_request: ReportCreateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -154,6 +174,7 @@ def report_create_with_http_info( _param = self._report_create_serialize( report_create_request=report_create_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -178,6 +199,12 @@ def report_create_with_http_info( def report_create_without_preload_content( self, report_create_request: ReportCreateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -198,6 +225,8 @@ def report_create_without_preload_content( :param report_create_request: (required) :type report_create_request: ReportCreateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -222,6 +251,7 @@ def report_create_without_preload_content( _param = self._report_create_serialize( report_create_request=report_create_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -241,6 +271,7 @@ def report_create_without_preload_content( def _report_create_serialize( self, report_create_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -285,6 +316,8 @@ def _report_create_serialize( # process the path parameters # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if report_create_request is not None and has_files is False: diff --git a/sdks/python/dropbox_sign/api/signature_request_api.py b/sdks/python/dropbox_sign/api/signature_request_api.py index 77f3c71bd..310e5b0fb 100644 --- a/sdks/python/dropbox_sign/api/signature_request_api.py +++ b/sdks/python/dropbox_sign/api/signature_request_api.py @@ -88,6 +88,12 @@ def __init__(self, api_client=None) -> None: def signature_request_bulk_create_embedded_with_template( self, signature_request_bulk_create_embedded_with_template_request: SignatureRequestBulkCreateEmbeddedWithTemplateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -108,6 +114,8 @@ def signature_request_bulk_create_embedded_with_template( :param signature_request_bulk_create_embedded_with_template_request: (required) :type signature_request_bulk_create_embedded_with_template_request: SignatureRequestBulkCreateEmbeddedWithTemplateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -132,6 +140,7 @@ def signature_request_bulk_create_embedded_with_template( _param = self._signature_request_bulk_create_embedded_with_template_serialize( signature_request_bulk_create_embedded_with_template_request=signature_request_bulk_create_embedded_with_template_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -156,6 +165,12 @@ def signature_request_bulk_create_embedded_with_template( def signature_request_bulk_create_embedded_with_template_with_http_info( self, signature_request_bulk_create_embedded_with_template_request: SignatureRequestBulkCreateEmbeddedWithTemplateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -176,6 +191,8 @@ def signature_request_bulk_create_embedded_with_template_with_http_info( :param signature_request_bulk_create_embedded_with_template_request: (required) :type signature_request_bulk_create_embedded_with_template_request: SignatureRequestBulkCreateEmbeddedWithTemplateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -200,6 +217,7 @@ def signature_request_bulk_create_embedded_with_template_with_http_info( _param = self._signature_request_bulk_create_embedded_with_template_serialize( signature_request_bulk_create_embedded_with_template_request=signature_request_bulk_create_embedded_with_template_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -224,6 +242,12 @@ def signature_request_bulk_create_embedded_with_template_with_http_info( def signature_request_bulk_create_embedded_with_template_without_preload_content( self, signature_request_bulk_create_embedded_with_template_request: SignatureRequestBulkCreateEmbeddedWithTemplateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -244,6 +268,8 @@ def signature_request_bulk_create_embedded_with_template_without_preload_content :param signature_request_bulk_create_embedded_with_template_request: (required) :type signature_request_bulk_create_embedded_with_template_request: SignatureRequestBulkCreateEmbeddedWithTemplateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -268,6 +294,7 @@ def signature_request_bulk_create_embedded_with_template_without_preload_content _param = self._signature_request_bulk_create_embedded_with_template_serialize( signature_request_bulk_create_embedded_with_template_request=signature_request_bulk_create_embedded_with_template_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -287,6 +314,7 @@ def signature_request_bulk_create_embedded_with_template_without_preload_content def _signature_request_bulk_create_embedded_with_template_serialize( self, signature_request_bulk_create_embedded_with_template_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -331,6 +359,8 @@ def _signature_request_bulk_create_embedded_with_template_serialize( # process the path parameters # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if ( @@ -377,6 +407,12 @@ def _signature_request_bulk_create_embedded_with_template_serialize( def signature_request_bulk_send_with_template( self, signature_request_bulk_send_with_template_request: SignatureRequestBulkSendWithTemplateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -397,6 +433,8 @@ def signature_request_bulk_send_with_template( :param signature_request_bulk_send_with_template_request: (required) :type signature_request_bulk_send_with_template_request: SignatureRequestBulkSendWithTemplateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -421,6 +459,7 @@ def signature_request_bulk_send_with_template( _param = self._signature_request_bulk_send_with_template_serialize( signature_request_bulk_send_with_template_request=signature_request_bulk_send_with_template_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -445,6 +484,12 @@ def signature_request_bulk_send_with_template( def signature_request_bulk_send_with_template_with_http_info( self, signature_request_bulk_send_with_template_request: SignatureRequestBulkSendWithTemplateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -465,6 +510,8 @@ def signature_request_bulk_send_with_template_with_http_info( :param signature_request_bulk_send_with_template_request: (required) :type signature_request_bulk_send_with_template_request: SignatureRequestBulkSendWithTemplateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -489,6 +536,7 @@ def signature_request_bulk_send_with_template_with_http_info( _param = self._signature_request_bulk_send_with_template_serialize( signature_request_bulk_send_with_template_request=signature_request_bulk_send_with_template_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -513,6 +561,12 @@ def signature_request_bulk_send_with_template_with_http_info( def signature_request_bulk_send_with_template_without_preload_content( self, signature_request_bulk_send_with_template_request: SignatureRequestBulkSendWithTemplateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -533,6 +587,8 @@ def signature_request_bulk_send_with_template_without_preload_content( :param signature_request_bulk_send_with_template_request: (required) :type signature_request_bulk_send_with_template_request: SignatureRequestBulkSendWithTemplateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -557,6 +613,7 @@ def signature_request_bulk_send_with_template_without_preload_content( _param = self._signature_request_bulk_send_with_template_serialize( signature_request_bulk_send_with_template_request=signature_request_bulk_send_with_template_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -576,6 +633,7 @@ def signature_request_bulk_send_with_template_without_preload_content( def _signature_request_bulk_send_with_template_serialize( self, signature_request_bulk_send_with_template_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -620,6 +678,8 @@ def _signature_request_bulk_send_with_template_serialize( # process the path parameters # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if ( @@ -669,6 +729,12 @@ def signature_request_cancel( StrictStr, Field(description="The id of the incomplete SignatureRequest to cancel."), ], + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -689,6 +755,8 @@ def signature_request_cancel( :param signature_request_id: The id of the incomplete SignatureRequest to cancel. (required) :type signature_request_id: str + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -713,6 +781,7 @@ def signature_request_cancel( _param = self._signature_request_cancel_serialize( signature_request_id=signature_request_id, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -740,6 +809,12 @@ def signature_request_cancel_with_http_info( StrictStr, Field(description="The id of the incomplete SignatureRequest to cancel."), ], + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -760,6 +835,8 @@ def signature_request_cancel_with_http_info( :param signature_request_id: The id of the incomplete SignatureRequest to cancel. (required) :type signature_request_id: str + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -784,6 +861,7 @@ def signature_request_cancel_with_http_info( _param = self._signature_request_cancel_serialize( signature_request_id=signature_request_id, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -811,6 +889,12 @@ def signature_request_cancel_without_preload_content( StrictStr, Field(description="The id of the incomplete SignatureRequest to cancel."), ], + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -831,6 +915,8 @@ def signature_request_cancel_without_preload_content( :param signature_request_id: The id of the incomplete SignatureRequest to cancel. (required) :type signature_request_id: str + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -855,6 +941,7 @@ def signature_request_cancel_without_preload_content( _param = self._signature_request_cancel_serialize( signature_request_id=signature_request_id, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -874,6 +961,7 @@ def signature_request_cancel_without_preload_content( def _signature_request_cancel_serialize( self, signature_request_id, + idempotency_key, _request_auth, _content_type, _headers, @@ -898,6 +986,8 @@ def _signature_request_cancel_serialize( _path_params["signature_request_id"] = signature_request_id # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter @@ -929,6 +1019,12 @@ def _signature_request_cancel_serialize( def signature_request_create_embedded( self, signature_request_create_embedded_request: SignatureRequestCreateEmbeddedRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -949,6 +1045,8 @@ def signature_request_create_embedded( :param signature_request_create_embedded_request: (required) :type signature_request_create_embedded_request: SignatureRequestCreateEmbeddedRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -973,6 +1071,7 @@ def signature_request_create_embedded( _param = self._signature_request_create_embedded_serialize( signature_request_create_embedded_request=signature_request_create_embedded_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -997,6 +1096,12 @@ def signature_request_create_embedded( def signature_request_create_embedded_with_http_info( self, signature_request_create_embedded_request: SignatureRequestCreateEmbeddedRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1017,6 +1122,8 @@ def signature_request_create_embedded_with_http_info( :param signature_request_create_embedded_request: (required) :type signature_request_create_embedded_request: SignatureRequestCreateEmbeddedRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1041,6 +1148,7 @@ def signature_request_create_embedded_with_http_info( _param = self._signature_request_create_embedded_serialize( signature_request_create_embedded_request=signature_request_create_embedded_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1065,6 +1173,12 @@ def signature_request_create_embedded_with_http_info( def signature_request_create_embedded_without_preload_content( self, signature_request_create_embedded_request: SignatureRequestCreateEmbeddedRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1085,6 +1199,8 @@ def signature_request_create_embedded_without_preload_content( :param signature_request_create_embedded_request: (required) :type signature_request_create_embedded_request: SignatureRequestCreateEmbeddedRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1109,6 +1225,7 @@ def signature_request_create_embedded_without_preload_content( _param = self._signature_request_create_embedded_serialize( signature_request_create_embedded_request=signature_request_create_embedded_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1128,6 +1245,7 @@ def signature_request_create_embedded_without_preload_content( def _signature_request_create_embedded_serialize( self, signature_request_create_embedded_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -1172,6 +1290,8 @@ def _signature_request_create_embedded_serialize( # process the path parameters # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if signature_request_create_embedded_request is not None and has_files is False: @@ -1215,6 +1335,12 @@ def _signature_request_create_embedded_serialize( def signature_request_create_embedded_with_template( self, signature_request_create_embedded_with_template_request: SignatureRequestCreateEmbeddedWithTemplateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1235,6 +1361,8 @@ def signature_request_create_embedded_with_template( :param signature_request_create_embedded_with_template_request: (required) :type signature_request_create_embedded_with_template_request: SignatureRequestCreateEmbeddedWithTemplateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1259,6 +1387,7 @@ def signature_request_create_embedded_with_template( _param = self._signature_request_create_embedded_with_template_serialize( signature_request_create_embedded_with_template_request=signature_request_create_embedded_with_template_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1283,6 +1412,12 @@ def signature_request_create_embedded_with_template( def signature_request_create_embedded_with_template_with_http_info( self, signature_request_create_embedded_with_template_request: SignatureRequestCreateEmbeddedWithTemplateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1303,6 +1438,8 @@ def signature_request_create_embedded_with_template_with_http_info( :param signature_request_create_embedded_with_template_request: (required) :type signature_request_create_embedded_with_template_request: SignatureRequestCreateEmbeddedWithTemplateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1327,6 +1464,7 @@ def signature_request_create_embedded_with_template_with_http_info( _param = self._signature_request_create_embedded_with_template_serialize( signature_request_create_embedded_with_template_request=signature_request_create_embedded_with_template_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1351,6 +1489,12 @@ def signature_request_create_embedded_with_template_with_http_info( def signature_request_create_embedded_with_template_without_preload_content( self, signature_request_create_embedded_with_template_request: SignatureRequestCreateEmbeddedWithTemplateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1371,6 +1515,8 @@ def signature_request_create_embedded_with_template_without_preload_content( :param signature_request_create_embedded_with_template_request: (required) :type signature_request_create_embedded_with_template_request: SignatureRequestCreateEmbeddedWithTemplateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1395,6 +1541,7 @@ def signature_request_create_embedded_with_template_without_preload_content( _param = self._signature_request_create_embedded_with_template_serialize( signature_request_create_embedded_with_template_request=signature_request_create_embedded_with_template_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1414,6 +1561,7 @@ def signature_request_create_embedded_with_template_without_preload_content( def _signature_request_create_embedded_with_template_serialize( self, signature_request_create_embedded_with_template_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -1458,6 +1606,8 @@ def _signature_request_create_embedded_with_template_serialize( # process the path parameters # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if ( @@ -1507,6 +1657,12 @@ def signature_request_edit( StrictStr, Field(description="The id of the SignatureRequest to edit.") ], signature_request_edit_request: SignatureRequestEditRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1529,6 +1685,8 @@ def signature_request_edit( :type signature_request_id: str :param signature_request_edit_request: (required) :type signature_request_edit_request: SignatureRequestEditRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1554,6 +1712,7 @@ def signature_request_edit( _param = self._signature_request_edit_serialize( signature_request_id=signature_request_id, signature_request_edit_request=signature_request_edit_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1581,6 +1740,12 @@ def signature_request_edit_with_http_info( StrictStr, Field(description="The id of the SignatureRequest to edit.") ], signature_request_edit_request: SignatureRequestEditRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1603,6 +1768,8 @@ def signature_request_edit_with_http_info( :type signature_request_id: str :param signature_request_edit_request: (required) :type signature_request_edit_request: SignatureRequestEditRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1628,6 +1795,7 @@ def signature_request_edit_with_http_info( _param = self._signature_request_edit_serialize( signature_request_id=signature_request_id, signature_request_edit_request=signature_request_edit_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1655,6 +1823,12 @@ def signature_request_edit_without_preload_content( StrictStr, Field(description="The id of the SignatureRequest to edit.") ], signature_request_edit_request: SignatureRequestEditRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1677,6 +1851,8 @@ def signature_request_edit_without_preload_content( :type signature_request_id: str :param signature_request_edit_request: (required) :type signature_request_edit_request: SignatureRequestEditRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1702,6 +1878,7 @@ def signature_request_edit_without_preload_content( _param = self._signature_request_edit_serialize( signature_request_id=signature_request_id, signature_request_edit_request=signature_request_edit_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1722,6 +1899,7 @@ def _signature_request_edit_serialize( self, signature_request_id, signature_request_edit_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -1768,6 +1946,8 @@ def _signature_request_edit_serialize( _path_params["signature_request_id"] = signature_request_id # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if signature_request_edit_request is not None and has_files is False: @@ -1814,6 +1994,12 @@ def signature_request_edit_embedded( StrictStr, Field(description="The id of the SignatureRequest to edit.") ], signature_request_edit_embedded_request: SignatureRequestEditEmbeddedRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1836,6 +2022,8 @@ def signature_request_edit_embedded( :type signature_request_id: str :param signature_request_edit_embedded_request: (required) :type signature_request_edit_embedded_request: SignatureRequestEditEmbeddedRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1861,6 +2049,7 @@ def signature_request_edit_embedded( _param = self._signature_request_edit_embedded_serialize( signature_request_id=signature_request_id, signature_request_edit_embedded_request=signature_request_edit_embedded_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1888,6 +2077,12 @@ def signature_request_edit_embedded_with_http_info( StrictStr, Field(description="The id of the SignatureRequest to edit.") ], signature_request_edit_embedded_request: SignatureRequestEditEmbeddedRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1910,6 +2105,8 @@ def signature_request_edit_embedded_with_http_info( :type signature_request_id: str :param signature_request_edit_embedded_request: (required) :type signature_request_edit_embedded_request: SignatureRequestEditEmbeddedRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1935,6 +2132,7 @@ def signature_request_edit_embedded_with_http_info( _param = self._signature_request_edit_embedded_serialize( signature_request_id=signature_request_id, signature_request_edit_embedded_request=signature_request_edit_embedded_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1962,6 +2160,12 @@ def signature_request_edit_embedded_without_preload_content( StrictStr, Field(description="The id of the SignatureRequest to edit.") ], signature_request_edit_embedded_request: SignatureRequestEditEmbeddedRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1984,6 +2188,8 @@ def signature_request_edit_embedded_without_preload_content( :type signature_request_id: str :param signature_request_edit_embedded_request: (required) :type signature_request_edit_embedded_request: SignatureRequestEditEmbeddedRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2009,6 +2215,7 @@ def signature_request_edit_embedded_without_preload_content( _param = self._signature_request_edit_embedded_serialize( signature_request_id=signature_request_id, signature_request_edit_embedded_request=signature_request_edit_embedded_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2029,6 +2236,7 @@ def _signature_request_edit_embedded_serialize( self, signature_request_id, signature_request_edit_embedded_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -2075,6 +2283,8 @@ def _signature_request_edit_embedded_serialize( _path_params["signature_request_id"] = signature_request_id # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if signature_request_edit_embedded_request is not None and has_files is False: @@ -2121,6 +2331,12 @@ def signature_request_edit_embedded_with_template( StrictStr, Field(description="The id of the SignatureRequest to edit.") ], signature_request_edit_embedded_with_template_request: SignatureRequestEditEmbeddedWithTemplateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2143,6 +2359,8 @@ def signature_request_edit_embedded_with_template( :type signature_request_id: str :param signature_request_edit_embedded_with_template_request: (required) :type signature_request_edit_embedded_with_template_request: SignatureRequestEditEmbeddedWithTemplateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2168,6 +2386,7 @@ def signature_request_edit_embedded_with_template( _param = self._signature_request_edit_embedded_with_template_serialize( signature_request_id=signature_request_id, signature_request_edit_embedded_with_template_request=signature_request_edit_embedded_with_template_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2195,6 +2414,12 @@ def signature_request_edit_embedded_with_template_with_http_info( StrictStr, Field(description="The id of the SignatureRequest to edit.") ], signature_request_edit_embedded_with_template_request: SignatureRequestEditEmbeddedWithTemplateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2217,6 +2442,8 @@ def signature_request_edit_embedded_with_template_with_http_info( :type signature_request_id: str :param signature_request_edit_embedded_with_template_request: (required) :type signature_request_edit_embedded_with_template_request: SignatureRequestEditEmbeddedWithTemplateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2242,6 +2469,7 @@ def signature_request_edit_embedded_with_template_with_http_info( _param = self._signature_request_edit_embedded_with_template_serialize( signature_request_id=signature_request_id, signature_request_edit_embedded_with_template_request=signature_request_edit_embedded_with_template_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2269,6 +2497,12 @@ def signature_request_edit_embedded_with_template_without_preload_content( StrictStr, Field(description="The id of the SignatureRequest to edit.") ], signature_request_edit_embedded_with_template_request: SignatureRequestEditEmbeddedWithTemplateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2291,6 +2525,8 @@ def signature_request_edit_embedded_with_template_without_preload_content( :type signature_request_id: str :param signature_request_edit_embedded_with_template_request: (required) :type signature_request_edit_embedded_with_template_request: SignatureRequestEditEmbeddedWithTemplateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2316,6 +2552,7 @@ def signature_request_edit_embedded_with_template_without_preload_content( _param = self._signature_request_edit_embedded_with_template_serialize( signature_request_id=signature_request_id, signature_request_edit_embedded_with_template_request=signature_request_edit_embedded_with_template_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2336,6 +2573,7 @@ def _signature_request_edit_embedded_with_template_serialize( self, signature_request_id, signature_request_edit_embedded_with_template_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -2382,6 +2620,8 @@ def _signature_request_edit_embedded_with_template_serialize( _path_params["signature_request_id"] = signature_request_id # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if ( @@ -2431,6 +2671,12 @@ def signature_request_edit_with_template( StrictStr, Field(description="The id of the SignatureRequest to edit.") ], signature_request_edit_with_template_request: SignatureRequestEditWithTemplateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2453,6 +2699,8 @@ def signature_request_edit_with_template( :type signature_request_id: str :param signature_request_edit_with_template_request: (required) :type signature_request_edit_with_template_request: SignatureRequestEditWithTemplateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2478,6 +2726,7 @@ def signature_request_edit_with_template( _param = self._signature_request_edit_with_template_serialize( signature_request_id=signature_request_id, signature_request_edit_with_template_request=signature_request_edit_with_template_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2505,6 +2754,12 @@ def signature_request_edit_with_template_with_http_info( StrictStr, Field(description="The id of the SignatureRequest to edit.") ], signature_request_edit_with_template_request: SignatureRequestEditWithTemplateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2527,6 +2782,8 @@ def signature_request_edit_with_template_with_http_info( :type signature_request_id: str :param signature_request_edit_with_template_request: (required) :type signature_request_edit_with_template_request: SignatureRequestEditWithTemplateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2552,6 +2809,7 @@ def signature_request_edit_with_template_with_http_info( _param = self._signature_request_edit_with_template_serialize( signature_request_id=signature_request_id, signature_request_edit_with_template_request=signature_request_edit_with_template_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2579,6 +2837,12 @@ def signature_request_edit_with_template_without_preload_content( StrictStr, Field(description="The id of the SignatureRequest to edit.") ], signature_request_edit_with_template_request: SignatureRequestEditWithTemplateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2601,6 +2865,8 @@ def signature_request_edit_with_template_without_preload_content( :type signature_request_id: str :param signature_request_edit_with_template_request: (required) :type signature_request_edit_with_template_request: SignatureRequestEditWithTemplateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2626,6 +2892,7 @@ def signature_request_edit_with_template_without_preload_content( _param = self._signature_request_edit_with_template_serialize( signature_request_id=signature_request_id, signature_request_edit_with_template_request=signature_request_edit_with_template_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2646,6 +2913,7 @@ def _signature_request_edit_with_template_serialize( self, signature_request_id, signature_request_edit_with_template_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -2692,6 +2960,8 @@ def _signature_request_edit_with_template_serialize( _path_params["signature_request_id"] = signature_request_id # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if ( @@ -4211,6 +4481,12 @@ def signature_request_release_hold( signature_request_id: Annotated[ StrictStr, Field(description="The id of the SignatureRequest to release.") ], + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4231,6 +4507,8 @@ def signature_request_release_hold( :param signature_request_id: The id of the SignatureRequest to release. (required) :type signature_request_id: str + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4255,6 +4533,7 @@ def signature_request_release_hold( _param = self._signature_request_release_hold_serialize( signature_request_id=signature_request_id, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4281,6 +4560,12 @@ def signature_request_release_hold_with_http_info( signature_request_id: Annotated[ StrictStr, Field(description="The id of the SignatureRequest to release.") ], + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4301,6 +4586,8 @@ def signature_request_release_hold_with_http_info( :param signature_request_id: The id of the SignatureRequest to release. (required) :type signature_request_id: str + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4325,6 +4612,7 @@ def signature_request_release_hold_with_http_info( _param = self._signature_request_release_hold_serialize( signature_request_id=signature_request_id, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4351,6 +4639,12 @@ def signature_request_release_hold_without_preload_content( signature_request_id: Annotated[ StrictStr, Field(description="The id of the SignatureRequest to release.") ], + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4371,6 +4665,8 @@ def signature_request_release_hold_without_preload_content( :param signature_request_id: The id of the SignatureRequest to release. (required) :type signature_request_id: str + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4395,6 +4691,7 @@ def signature_request_release_hold_without_preload_content( _param = self._signature_request_release_hold_serialize( signature_request_id=signature_request_id, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4414,6 +4711,7 @@ def signature_request_release_hold_without_preload_content( def _signature_request_release_hold_serialize( self, signature_request_id, + idempotency_key, _request_auth, _content_type, _headers, @@ -4438,6 +4736,8 @@ def _signature_request_release_hold_serialize( _path_params["signature_request_id"] = signature_request_id # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter @@ -4473,6 +4773,12 @@ def signature_request_remind( Field(description="The id of the SignatureRequest to send a reminder for."), ], signature_request_remind_request: SignatureRequestRemindRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4495,6 +4801,8 @@ def signature_request_remind( :type signature_request_id: str :param signature_request_remind_request: (required) :type signature_request_remind_request: SignatureRequestRemindRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4520,6 +4828,7 @@ def signature_request_remind( _param = self._signature_request_remind_serialize( signature_request_id=signature_request_id, signature_request_remind_request=signature_request_remind_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4548,6 +4857,12 @@ def signature_request_remind_with_http_info( Field(description="The id of the SignatureRequest to send a reminder for."), ], signature_request_remind_request: SignatureRequestRemindRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4570,6 +4885,8 @@ def signature_request_remind_with_http_info( :type signature_request_id: str :param signature_request_remind_request: (required) :type signature_request_remind_request: SignatureRequestRemindRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4595,6 +4912,7 @@ def signature_request_remind_with_http_info( _param = self._signature_request_remind_serialize( signature_request_id=signature_request_id, signature_request_remind_request=signature_request_remind_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4623,6 +4941,12 @@ def signature_request_remind_without_preload_content( Field(description="The id of the SignatureRequest to send a reminder for."), ], signature_request_remind_request: SignatureRequestRemindRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4645,6 +4969,8 @@ def signature_request_remind_without_preload_content( :type signature_request_id: str :param signature_request_remind_request: (required) :type signature_request_remind_request: SignatureRequestRemindRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4670,6 +4996,7 @@ def signature_request_remind_without_preload_content( _param = self._signature_request_remind_serialize( signature_request_id=signature_request_id, signature_request_remind_request=signature_request_remind_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4690,6 +5017,7 @@ def _signature_request_remind_serialize( self, signature_request_id, signature_request_remind_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -4736,6 +5064,8 @@ def _signature_request_remind_serialize( _path_params["signature_request_id"] = signature_request_id # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if signature_request_remind_request is not None and has_files is False: @@ -4781,6 +5111,12 @@ def signature_request_remove( signature_request_id: Annotated[ StrictStr, Field(description="The id of the SignatureRequest to remove.") ], + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4801,6 +5137,8 @@ def signature_request_remove( :param signature_request_id: The id of the SignatureRequest to remove. (required) :type signature_request_id: str + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4825,6 +5163,7 @@ def signature_request_remove( _param = self._signature_request_remove_serialize( signature_request_id=signature_request_id, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4851,6 +5190,12 @@ def signature_request_remove_with_http_info( signature_request_id: Annotated[ StrictStr, Field(description="The id of the SignatureRequest to remove.") ], + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4871,6 +5216,8 @@ def signature_request_remove_with_http_info( :param signature_request_id: The id of the SignatureRequest to remove. (required) :type signature_request_id: str + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4895,6 +5242,7 @@ def signature_request_remove_with_http_info( _param = self._signature_request_remove_serialize( signature_request_id=signature_request_id, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4921,6 +5269,12 @@ def signature_request_remove_without_preload_content( signature_request_id: Annotated[ StrictStr, Field(description="The id of the SignatureRequest to remove.") ], + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4941,6 +5295,8 @@ def signature_request_remove_without_preload_content( :param signature_request_id: The id of the SignatureRequest to remove. (required) :type signature_request_id: str + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4965,6 +5321,7 @@ def signature_request_remove_without_preload_content( _param = self._signature_request_remove_serialize( signature_request_id=signature_request_id, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4984,6 +5341,7 @@ def signature_request_remove_without_preload_content( def _signature_request_remove_serialize( self, signature_request_id, + idempotency_key, _request_auth, _content_type, _headers, @@ -5008,6 +5366,8 @@ def _signature_request_remove_serialize( _path_params["signature_request_id"] = signature_request_id # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter @@ -5039,6 +5399,12 @@ def _signature_request_remove_serialize( def signature_request_send( self, signature_request_send_request: SignatureRequestSendRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5059,6 +5425,8 @@ def signature_request_send( :param signature_request_send_request: (required) :type signature_request_send_request: SignatureRequestSendRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5083,6 +5451,7 @@ def signature_request_send( _param = self._signature_request_send_serialize( signature_request_send_request=signature_request_send_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5107,6 +5476,12 @@ def signature_request_send( def signature_request_send_with_http_info( self, signature_request_send_request: SignatureRequestSendRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5127,6 +5502,8 @@ def signature_request_send_with_http_info( :param signature_request_send_request: (required) :type signature_request_send_request: SignatureRequestSendRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5151,6 +5528,7 @@ def signature_request_send_with_http_info( _param = self._signature_request_send_serialize( signature_request_send_request=signature_request_send_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5175,6 +5553,12 @@ def signature_request_send_with_http_info( def signature_request_send_without_preload_content( self, signature_request_send_request: SignatureRequestSendRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5195,6 +5579,8 @@ def signature_request_send_without_preload_content( :param signature_request_send_request: (required) :type signature_request_send_request: SignatureRequestSendRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5219,6 +5605,7 @@ def signature_request_send_without_preload_content( _param = self._signature_request_send_serialize( signature_request_send_request=signature_request_send_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5238,6 +5625,7 @@ def signature_request_send_without_preload_content( def _signature_request_send_serialize( self, signature_request_send_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -5282,6 +5670,8 @@ def _signature_request_send_serialize( # process the path parameters # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if signature_request_send_request is not None and has_files is False: @@ -5325,6 +5715,12 @@ def _signature_request_send_serialize( def signature_request_send_with_template( self, signature_request_send_with_template_request: SignatureRequestSendWithTemplateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5345,6 +5741,8 @@ def signature_request_send_with_template( :param signature_request_send_with_template_request: (required) :type signature_request_send_with_template_request: SignatureRequestSendWithTemplateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5369,6 +5767,7 @@ def signature_request_send_with_template( _param = self._signature_request_send_with_template_serialize( signature_request_send_with_template_request=signature_request_send_with_template_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5393,6 +5792,12 @@ def signature_request_send_with_template( def signature_request_send_with_template_with_http_info( self, signature_request_send_with_template_request: SignatureRequestSendWithTemplateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5413,6 +5818,8 @@ def signature_request_send_with_template_with_http_info( :param signature_request_send_with_template_request: (required) :type signature_request_send_with_template_request: SignatureRequestSendWithTemplateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5437,6 +5844,7 @@ def signature_request_send_with_template_with_http_info( _param = self._signature_request_send_with_template_serialize( signature_request_send_with_template_request=signature_request_send_with_template_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5461,6 +5869,12 @@ def signature_request_send_with_template_with_http_info( def signature_request_send_with_template_without_preload_content( self, signature_request_send_with_template_request: SignatureRequestSendWithTemplateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5481,6 +5895,8 @@ def signature_request_send_with_template_without_preload_content( :param signature_request_send_with_template_request: (required) :type signature_request_send_with_template_request: SignatureRequestSendWithTemplateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5505,6 +5921,7 @@ def signature_request_send_with_template_without_preload_content( _param = self._signature_request_send_with_template_serialize( signature_request_send_with_template_request=signature_request_send_with_template_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5524,6 +5941,7 @@ def signature_request_send_with_template_without_preload_content( def _signature_request_send_with_template_serialize( self, signature_request_send_with_template_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -5568,6 +5986,8 @@ def _signature_request_send_with_template_serialize( # process the path parameters # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if ( @@ -5617,6 +6037,12 @@ def signature_request_update( StrictStr, Field(description="The id of the SignatureRequest to update.") ], signature_request_update_request: SignatureRequestUpdateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5639,6 +6065,8 @@ def signature_request_update( :type signature_request_id: str :param signature_request_update_request: (required) :type signature_request_update_request: SignatureRequestUpdateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5664,6 +6092,7 @@ def signature_request_update( _param = self._signature_request_update_serialize( signature_request_id=signature_request_id, signature_request_update_request=signature_request_update_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5691,6 +6120,12 @@ def signature_request_update_with_http_info( StrictStr, Field(description="The id of the SignatureRequest to update.") ], signature_request_update_request: SignatureRequestUpdateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5713,6 +6148,8 @@ def signature_request_update_with_http_info( :type signature_request_id: str :param signature_request_update_request: (required) :type signature_request_update_request: SignatureRequestUpdateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5738,6 +6175,7 @@ def signature_request_update_with_http_info( _param = self._signature_request_update_serialize( signature_request_id=signature_request_id, signature_request_update_request=signature_request_update_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5765,6 +6203,12 @@ def signature_request_update_without_preload_content( StrictStr, Field(description="The id of the SignatureRequest to update.") ], signature_request_update_request: SignatureRequestUpdateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5787,6 +6231,8 @@ def signature_request_update_without_preload_content( :type signature_request_id: str :param signature_request_update_request: (required) :type signature_request_update_request: SignatureRequestUpdateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5812,6 +6258,7 @@ def signature_request_update_without_preload_content( _param = self._signature_request_update_serialize( signature_request_id=signature_request_id, signature_request_update_request=signature_request_update_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5832,6 +6279,7 @@ def _signature_request_update_serialize( self, signature_request_id, signature_request_update_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -5878,6 +6326,8 @@ def _signature_request_update_serialize( _path_params["signature_request_id"] = signature_request_id # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if signature_request_update_request is not None and has_files is False: diff --git a/sdks/python/dropbox_sign/api/team_api.py b/sdks/python/dropbox_sign/api/team_api.py index db6adcc16..1024672b1 100644 --- a/sdks/python/dropbox_sign/api/team_api.py +++ b/sdks/python/dropbox_sign/api/team_api.py @@ -55,6 +55,12 @@ def team_add_member( team_id: Annotated[ Optional[StrictStr], Field(description="The id of the team.") ] = None, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -77,6 +83,8 @@ def team_add_member( :type team_add_member_request: TeamAddMemberRequest :param team_id: The id of the team. :type team_id: str + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -102,6 +110,7 @@ def team_add_member( _param = self._team_add_member_serialize( team_add_member_request=team_add_member_request, team_id=team_id, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -129,6 +138,12 @@ def team_add_member_with_http_info( team_id: Annotated[ Optional[StrictStr], Field(description="The id of the team.") ] = None, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -151,6 +166,8 @@ def team_add_member_with_http_info( :type team_add_member_request: TeamAddMemberRequest :param team_id: The id of the team. :type team_id: str + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -176,6 +193,7 @@ def team_add_member_with_http_info( _param = self._team_add_member_serialize( team_add_member_request=team_add_member_request, team_id=team_id, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -203,6 +221,12 @@ def team_add_member_without_preload_content( team_id: Annotated[ Optional[StrictStr], Field(description="The id of the team.") ] = None, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -225,6 +249,8 @@ def team_add_member_without_preload_content( :type team_add_member_request: TeamAddMemberRequest :param team_id: The id of the team. :type team_id: str + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -250,6 +276,7 @@ def team_add_member_without_preload_content( _param = self._team_add_member_serialize( team_add_member_request=team_add_member_request, team_id=team_id, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -270,6 +297,7 @@ def _team_add_member_serialize( self, team_add_member_request, team_id, + idempotency_key, _request_auth, _content_type, _headers, @@ -318,6 +346,8 @@ def _team_add_member_serialize( _query_params.append(("team_id", team_id)) # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if team_add_member_request is not None and has_files is False: @@ -361,6 +391,12 @@ def _team_add_member_serialize( def team_create( self, team_create_request: TeamCreateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -381,6 +417,8 @@ def team_create( :param team_create_request: (required) :type team_create_request: TeamCreateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -405,6 +443,7 @@ def team_create( _param = self._team_create_serialize( team_create_request=team_create_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -429,6 +468,12 @@ def team_create( def team_create_with_http_info( self, team_create_request: TeamCreateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -449,6 +494,8 @@ def team_create_with_http_info( :param team_create_request: (required) :type team_create_request: TeamCreateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -473,6 +520,7 @@ def team_create_with_http_info( _param = self._team_create_serialize( team_create_request=team_create_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -497,6 +545,12 @@ def team_create_with_http_info( def team_create_without_preload_content( self, team_create_request: TeamCreateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -517,6 +571,8 @@ def team_create_without_preload_content( :param team_create_request: (required) :type team_create_request: TeamCreateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -541,6 +597,7 @@ def team_create_without_preload_content( _param = self._team_create_serialize( team_create_request=team_create_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -560,6 +617,7 @@ def team_create_without_preload_content( def _team_create_serialize( self, team_create_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -604,6 +662,8 @@ def _team_create_serialize( # process the path parameters # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if team_create_request is not None and has_files is False: @@ -1991,6 +2051,12 @@ def _team_members_serialize( def team_remove_member( self, team_remove_member_request: TeamRemoveMemberRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2011,6 +2077,8 @@ def team_remove_member( :param team_remove_member_request: (required) :type team_remove_member_request: TeamRemoveMemberRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2035,6 +2103,7 @@ def team_remove_member( _param = self._team_remove_member_serialize( team_remove_member_request=team_remove_member_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2059,6 +2128,12 @@ def team_remove_member( def team_remove_member_with_http_info( self, team_remove_member_request: TeamRemoveMemberRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2079,6 +2154,8 @@ def team_remove_member_with_http_info( :param team_remove_member_request: (required) :type team_remove_member_request: TeamRemoveMemberRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2103,6 +2180,7 @@ def team_remove_member_with_http_info( _param = self._team_remove_member_serialize( team_remove_member_request=team_remove_member_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2127,6 +2205,12 @@ def team_remove_member_with_http_info( def team_remove_member_without_preload_content( self, team_remove_member_request: TeamRemoveMemberRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2147,6 +2231,8 @@ def team_remove_member_without_preload_content( :param team_remove_member_request: (required) :type team_remove_member_request: TeamRemoveMemberRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2171,6 +2257,7 @@ def team_remove_member_without_preload_content( _param = self._team_remove_member_serialize( team_remove_member_request=team_remove_member_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2190,6 +2277,7 @@ def team_remove_member_without_preload_content( def _team_remove_member_serialize( self, team_remove_member_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -2234,6 +2322,8 @@ def _team_remove_member_serialize( # process the path parameters # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if team_remove_member_request is not None and has_files is False: @@ -2595,6 +2685,12 @@ def _team_sub_teams_serialize( def team_update( self, team_update_request: TeamUpdateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2615,6 +2711,8 @@ def team_update( :param team_update_request: (required) :type team_update_request: TeamUpdateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2639,6 +2737,7 @@ def team_update( _param = self._team_update_serialize( team_update_request=team_update_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2663,6 +2762,12 @@ def team_update( def team_update_with_http_info( self, team_update_request: TeamUpdateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2683,6 +2788,8 @@ def team_update_with_http_info( :param team_update_request: (required) :type team_update_request: TeamUpdateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2707,6 +2814,7 @@ def team_update_with_http_info( _param = self._team_update_serialize( team_update_request=team_update_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2731,6 +2839,12 @@ def team_update_with_http_info( def team_update_without_preload_content( self, team_update_request: TeamUpdateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2751,6 +2865,8 @@ def team_update_without_preload_content( :param team_update_request: (required) :type team_update_request: TeamUpdateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2775,6 +2891,7 @@ def team_update_without_preload_content( _param = self._team_update_serialize( team_update_request=team_update_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2794,6 +2911,7 @@ def team_update_without_preload_content( def _team_update_serialize( self, team_update_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -2838,6 +2956,8 @@ def _team_update_serialize( # process the path parameters # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if team_update_request is not None and has_files is False: diff --git a/sdks/python/dropbox_sign/api/template_api.py b/sdks/python/dropbox_sign/api/template_api.py index 4ae3b449b..1031d9334 100644 --- a/sdks/python/dropbox_sign/api/template_api.py +++ b/sdks/python/dropbox_sign/api/template_api.py @@ -65,6 +65,12 @@ def template_add_user( Field(description="The id of the Template to give the Account access to."), ], template_add_user_request: TemplateAddUserRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -87,6 +93,8 @@ def template_add_user( :type template_id: str :param template_add_user_request: (required) :type template_add_user_request: TemplateAddUserRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -112,6 +120,7 @@ def template_add_user( _param = self._template_add_user_serialize( template_id=template_id, template_add_user_request=template_add_user_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -140,6 +149,12 @@ def template_add_user_with_http_info( Field(description="The id of the Template to give the Account access to."), ], template_add_user_request: TemplateAddUserRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -162,6 +177,8 @@ def template_add_user_with_http_info( :type template_id: str :param template_add_user_request: (required) :type template_add_user_request: TemplateAddUserRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -187,6 +204,7 @@ def template_add_user_with_http_info( _param = self._template_add_user_serialize( template_id=template_id, template_add_user_request=template_add_user_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -215,6 +233,12 @@ def template_add_user_without_preload_content( Field(description="The id of the Template to give the Account access to."), ], template_add_user_request: TemplateAddUserRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -237,6 +261,8 @@ def template_add_user_without_preload_content( :type template_id: str :param template_add_user_request: (required) :type template_add_user_request: TemplateAddUserRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -262,6 +288,7 @@ def template_add_user_without_preload_content( _param = self._template_add_user_serialize( template_id=template_id, template_add_user_request=template_add_user_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -282,6 +309,7 @@ def _template_add_user_serialize( self, template_id, template_add_user_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -328,6 +356,8 @@ def _template_add_user_serialize( _path_params["template_id"] = template_id # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if template_add_user_request is not None and has_files is False: @@ -371,6 +401,12 @@ def _template_add_user_serialize( def template_create( self, template_create_request: TemplateCreateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -391,6 +427,8 @@ def template_create( :param template_create_request: (required) :type template_create_request: TemplateCreateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -415,6 +453,7 @@ def template_create( _param = self._template_create_serialize( template_create_request=template_create_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -439,6 +478,12 @@ def template_create( def template_create_with_http_info( self, template_create_request: TemplateCreateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -459,6 +504,8 @@ def template_create_with_http_info( :param template_create_request: (required) :type template_create_request: TemplateCreateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -483,6 +530,7 @@ def template_create_with_http_info( _param = self._template_create_serialize( template_create_request=template_create_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -507,6 +555,12 @@ def template_create_with_http_info( def template_create_without_preload_content( self, template_create_request: TemplateCreateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -527,6 +581,8 @@ def template_create_without_preload_content( :param template_create_request: (required) :type template_create_request: TemplateCreateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -551,6 +607,7 @@ def template_create_without_preload_content( _param = self._template_create_serialize( template_create_request=template_create_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -570,6 +627,7 @@ def template_create_without_preload_content( def _template_create_serialize( self, template_create_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -614,6 +672,8 @@ def _template_create_serialize( # process the path parameters # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if template_create_request is not None and has_files is False: @@ -657,6 +717,12 @@ def _template_create_serialize( def template_create_embedded_draft( self, template_create_embedded_draft_request: TemplateCreateEmbeddedDraftRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -677,6 +743,8 @@ def template_create_embedded_draft( :param template_create_embedded_draft_request: (required) :type template_create_embedded_draft_request: TemplateCreateEmbeddedDraftRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -701,6 +769,7 @@ def template_create_embedded_draft( _param = self._template_create_embedded_draft_serialize( template_create_embedded_draft_request=template_create_embedded_draft_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -725,6 +794,12 @@ def template_create_embedded_draft( def template_create_embedded_draft_with_http_info( self, template_create_embedded_draft_request: TemplateCreateEmbeddedDraftRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -745,6 +820,8 @@ def template_create_embedded_draft_with_http_info( :param template_create_embedded_draft_request: (required) :type template_create_embedded_draft_request: TemplateCreateEmbeddedDraftRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -769,6 +846,7 @@ def template_create_embedded_draft_with_http_info( _param = self._template_create_embedded_draft_serialize( template_create_embedded_draft_request=template_create_embedded_draft_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -793,6 +871,12 @@ def template_create_embedded_draft_with_http_info( def template_create_embedded_draft_without_preload_content( self, template_create_embedded_draft_request: TemplateCreateEmbeddedDraftRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -813,6 +897,8 @@ def template_create_embedded_draft_without_preload_content( :param template_create_embedded_draft_request: (required) :type template_create_embedded_draft_request: TemplateCreateEmbeddedDraftRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -837,6 +923,7 @@ def template_create_embedded_draft_without_preload_content( _param = self._template_create_embedded_draft_serialize( template_create_embedded_draft_request=template_create_embedded_draft_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -856,6 +943,7 @@ def template_create_embedded_draft_without_preload_content( def _template_create_embedded_draft_serialize( self, template_create_embedded_draft_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -900,6 +988,8 @@ def _template_create_embedded_draft_serialize( # process the path parameters # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if template_create_embedded_draft_request is not None and has_files is False: @@ -945,6 +1035,12 @@ def template_delete( template_id: Annotated[ StrictStr, Field(description="The id of the Template to delete.") ], + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -965,6 +1061,8 @@ def template_delete( :param template_id: The id of the Template to delete. (required) :type template_id: str + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -989,6 +1087,7 @@ def template_delete( _param = self._template_delete_serialize( template_id=template_id, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1015,6 +1114,12 @@ def template_delete_with_http_info( template_id: Annotated[ StrictStr, Field(description="The id of the Template to delete.") ], + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1035,6 +1140,8 @@ def template_delete_with_http_info( :param template_id: The id of the Template to delete. (required) :type template_id: str + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1059,6 +1166,7 @@ def template_delete_with_http_info( _param = self._template_delete_serialize( template_id=template_id, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1085,6 +1193,12 @@ def template_delete_without_preload_content( template_id: Annotated[ StrictStr, Field(description="The id of the Template to delete.") ], + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1105,6 +1219,8 @@ def template_delete_without_preload_content( :param template_id: The id of the Template to delete. (required) :type template_id: str + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1129,6 +1245,7 @@ def template_delete_without_preload_content( _param = self._template_delete_serialize( template_id=template_id, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1148,6 +1265,7 @@ def template_delete_without_preload_content( def _template_delete_serialize( self, template_id, + idempotency_key, _request_auth, _content_type, _headers, @@ -1172,6 +1290,8 @@ def _template_delete_serialize( _path_params["template_id"] = template_id # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter @@ -2680,6 +2800,12 @@ def template_remove_user( ), ], template_remove_user_request: TemplateRemoveUserRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2702,6 +2828,8 @@ def template_remove_user( :type template_id: str :param template_remove_user_request: (required) :type template_remove_user_request: TemplateRemoveUserRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2727,6 +2855,7 @@ def template_remove_user( _param = self._template_remove_user_serialize( template_id=template_id, template_remove_user_request=template_remove_user_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2757,6 +2886,12 @@ def template_remove_user_with_http_info( ), ], template_remove_user_request: TemplateRemoveUserRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2779,6 +2914,8 @@ def template_remove_user_with_http_info( :type template_id: str :param template_remove_user_request: (required) :type template_remove_user_request: TemplateRemoveUserRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2804,6 +2941,7 @@ def template_remove_user_with_http_info( _param = self._template_remove_user_serialize( template_id=template_id, template_remove_user_request=template_remove_user_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2834,6 +2972,12 @@ def template_remove_user_without_preload_content( ), ], template_remove_user_request: TemplateRemoveUserRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2856,6 +3000,8 @@ def template_remove_user_without_preload_content( :type template_id: str :param template_remove_user_request: (required) :type template_remove_user_request: TemplateRemoveUserRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2881,6 +3027,7 @@ def template_remove_user_without_preload_content( _param = self._template_remove_user_serialize( template_id=template_id, template_remove_user_request=template_remove_user_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2901,6 +3048,7 @@ def _template_remove_user_serialize( self, template_id, template_remove_user_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -2947,6 +3095,8 @@ def _template_remove_user_serialize( _path_params["template_id"] = template_id # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if template_remove_user_request is not None and has_files is False: @@ -2994,6 +3144,12 @@ def template_update_files( Field(description="The ID of the template whose files to update."), ], template_update_files_request: TemplateUpdateFilesRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3016,6 +3172,8 @@ def template_update_files( :type template_id: str :param template_update_files_request: (required) :type template_update_files_request: TemplateUpdateFilesRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3041,6 +3199,7 @@ def template_update_files( _param = self._template_update_files_serialize( template_id=template_id, template_update_files_request=template_update_files_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3069,6 +3228,12 @@ def template_update_files_with_http_info( Field(description="The ID of the template whose files to update."), ], template_update_files_request: TemplateUpdateFilesRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3091,6 +3256,8 @@ def template_update_files_with_http_info( :type template_id: str :param template_update_files_request: (required) :type template_update_files_request: TemplateUpdateFilesRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3116,6 +3283,7 @@ def template_update_files_with_http_info( _param = self._template_update_files_serialize( template_id=template_id, template_update_files_request=template_update_files_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3144,6 +3312,12 @@ def template_update_files_without_preload_content( Field(description="The ID of the template whose files to update."), ], template_update_files_request: TemplateUpdateFilesRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3166,6 +3340,8 @@ def template_update_files_without_preload_content( :type template_id: str :param template_update_files_request: (required) :type template_update_files_request: TemplateUpdateFilesRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3191,6 +3367,7 @@ def template_update_files_without_preload_content( _param = self._template_update_files_serialize( template_id=template_id, template_update_files_request=template_update_files_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3211,6 +3388,7 @@ def _template_update_files_serialize( self, template_id, template_update_files_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -3257,6 +3435,8 @@ def _template_update_files_serialize( _path_params["template_id"] = template_id # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if template_update_files_request is not None and has_files is False: diff --git a/sdks/python/dropbox_sign/api/unclaimed_draft_api.py b/sdks/python/dropbox_sign/api/unclaimed_draft_api.py index 3c9936164..2e386502f 100644 --- a/sdks/python/dropbox_sign/api/unclaimed_draft_api.py +++ b/sdks/python/dropbox_sign/api/unclaimed_draft_api.py @@ -18,6 +18,7 @@ from typing_extensions import Annotated from pydantic import Field, StrictStr +from typing import Optional from typing_extensions import Annotated from dropbox_sign.models.unclaimed_draft_create_embedded_request import ( UnclaimedDraftCreateEmbeddedRequest, @@ -57,6 +58,12 @@ def __init__(self, api_client=None) -> None: def unclaimed_draft_create( self, unclaimed_draft_create_request: UnclaimedDraftCreateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -77,6 +84,8 @@ def unclaimed_draft_create( :param unclaimed_draft_create_request: (required) :type unclaimed_draft_create_request: UnclaimedDraftCreateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -101,6 +110,7 @@ def unclaimed_draft_create( _param = self._unclaimed_draft_create_serialize( unclaimed_draft_create_request=unclaimed_draft_create_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -125,6 +135,12 @@ def unclaimed_draft_create( def unclaimed_draft_create_with_http_info( self, unclaimed_draft_create_request: UnclaimedDraftCreateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -145,6 +161,8 @@ def unclaimed_draft_create_with_http_info( :param unclaimed_draft_create_request: (required) :type unclaimed_draft_create_request: UnclaimedDraftCreateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -169,6 +187,7 @@ def unclaimed_draft_create_with_http_info( _param = self._unclaimed_draft_create_serialize( unclaimed_draft_create_request=unclaimed_draft_create_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -193,6 +212,12 @@ def unclaimed_draft_create_with_http_info( def unclaimed_draft_create_without_preload_content( self, unclaimed_draft_create_request: UnclaimedDraftCreateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -213,6 +238,8 @@ def unclaimed_draft_create_without_preload_content( :param unclaimed_draft_create_request: (required) :type unclaimed_draft_create_request: UnclaimedDraftCreateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -237,6 +264,7 @@ def unclaimed_draft_create_without_preload_content( _param = self._unclaimed_draft_create_serialize( unclaimed_draft_create_request=unclaimed_draft_create_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -256,6 +284,7 @@ def unclaimed_draft_create_without_preload_content( def _unclaimed_draft_create_serialize( self, unclaimed_draft_create_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -300,6 +329,8 @@ def _unclaimed_draft_create_serialize( # process the path parameters # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if unclaimed_draft_create_request is not None and has_files is False: @@ -343,6 +374,12 @@ def _unclaimed_draft_create_serialize( def unclaimed_draft_create_embedded( self, unclaimed_draft_create_embedded_request: UnclaimedDraftCreateEmbeddedRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -363,6 +400,8 @@ def unclaimed_draft_create_embedded( :param unclaimed_draft_create_embedded_request: (required) :type unclaimed_draft_create_embedded_request: UnclaimedDraftCreateEmbeddedRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -387,6 +426,7 @@ def unclaimed_draft_create_embedded( _param = self._unclaimed_draft_create_embedded_serialize( unclaimed_draft_create_embedded_request=unclaimed_draft_create_embedded_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -411,6 +451,12 @@ def unclaimed_draft_create_embedded( def unclaimed_draft_create_embedded_with_http_info( self, unclaimed_draft_create_embedded_request: UnclaimedDraftCreateEmbeddedRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -431,6 +477,8 @@ def unclaimed_draft_create_embedded_with_http_info( :param unclaimed_draft_create_embedded_request: (required) :type unclaimed_draft_create_embedded_request: UnclaimedDraftCreateEmbeddedRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -455,6 +503,7 @@ def unclaimed_draft_create_embedded_with_http_info( _param = self._unclaimed_draft_create_embedded_serialize( unclaimed_draft_create_embedded_request=unclaimed_draft_create_embedded_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -479,6 +528,12 @@ def unclaimed_draft_create_embedded_with_http_info( def unclaimed_draft_create_embedded_without_preload_content( self, unclaimed_draft_create_embedded_request: UnclaimedDraftCreateEmbeddedRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -499,6 +554,8 @@ def unclaimed_draft_create_embedded_without_preload_content( :param unclaimed_draft_create_embedded_request: (required) :type unclaimed_draft_create_embedded_request: UnclaimedDraftCreateEmbeddedRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -523,6 +580,7 @@ def unclaimed_draft_create_embedded_without_preload_content( _param = self._unclaimed_draft_create_embedded_serialize( unclaimed_draft_create_embedded_request=unclaimed_draft_create_embedded_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -542,6 +600,7 @@ def unclaimed_draft_create_embedded_without_preload_content( def _unclaimed_draft_create_embedded_serialize( self, unclaimed_draft_create_embedded_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -586,6 +645,8 @@ def _unclaimed_draft_create_embedded_serialize( # process the path parameters # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if unclaimed_draft_create_embedded_request is not None and has_files is False: @@ -629,6 +690,12 @@ def _unclaimed_draft_create_embedded_serialize( def unclaimed_draft_create_embedded_with_template( self, unclaimed_draft_create_embedded_with_template_request: UnclaimedDraftCreateEmbeddedWithTemplateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -649,6 +716,8 @@ def unclaimed_draft_create_embedded_with_template( :param unclaimed_draft_create_embedded_with_template_request: (required) :type unclaimed_draft_create_embedded_with_template_request: UnclaimedDraftCreateEmbeddedWithTemplateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -673,6 +742,7 @@ def unclaimed_draft_create_embedded_with_template( _param = self._unclaimed_draft_create_embedded_with_template_serialize( unclaimed_draft_create_embedded_with_template_request=unclaimed_draft_create_embedded_with_template_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -697,6 +767,12 @@ def unclaimed_draft_create_embedded_with_template( def unclaimed_draft_create_embedded_with_template_with_http_info( self, unclaimed_draft_create_embedded_with_template_request: UnclaimedDraftCreateEmbeddedWithTemplateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -717,6 +793,8 @@ def unclaimed_draft_create_embedded_with_template_with_http_info( :param unclaimed_draft_create_embedded_with_template_request: (required) :type unclaimed_draft_create_embedded_with_template_request: UnclaimedDraftCreateEmbeddedWithTemplateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -741,6 +819,7 @@ def unclaimed_draft_create_embedded_with_template_with_http_info( _param = self._unclaimed_draft_create_embedded_with_template_serialize( unclaimed_draft_create_embedded_with_template_request=unclaimed_draft_create_embedded_with_template_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -765,6 +844,12 @@ def unclaimed_draft_create_embedded_with_template_with_http_info( def unclaimed_draft_create_embedded_with_template_without_preload_content( self, unclaimed_draft_create_embedded_with_template_request: UnclaimedDraftCreateEmbeddedWithTemplateRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -785,6 +870,8 @@ def unclaimed_draft_create_embedded_with_template_without_preload_content( :param unclaimed_draft_create_embedded_with_template_request: (required) :type unclaimed_draft_create_embedded_with_template_request: UnclaimedDraftCreateEmbeddedWithTemplateRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -809,6 +896,7 @@ def unclaimed_draft_create_embedded_with_template_without_preload_content( _param = self._unclaimed_draft_create_embedded_with_template_serialize( unclaimed_draft_create_embedded_with_template_request=unclaimed_draft_create_embedded_with_template_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -828,6 +916,7 @@ def unclaimed_draft_create_embedded_with_template_without_preload_content( def _unclaimed_draft_create_embedded_with_template_serialize( self, unclaimed_draft_create_embedded_with_template_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -872,6 +961,8 @@ def _unclaimed_draft_create_embedded_with_template_serialize( # process the path parameters # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if ( @@ -922,6 +1013,12 @@ def unclaimed_draft_edit_and_resend( Field(description="The ID of the signature request to edit and resend."), ], unclaimed_draft_edit_and_resend_request: UnclaimedDraftEditAndResendRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -944,6 +1041,8 @@ def unclaimed_draft_edit_and_resend( :type signature_request_id: str :param unclaimed_draft_edit_and_resend_request: (required) :type unclaimed_draft_edit_and_resend_request: UnclaimedDraftEditAndResendRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -969,6 +1068,7 @@ def unclaimed_draft_edit_and_resend( _param = self._unclaimed_draft_edit_and_resend_serialize( signature_request_id=signature_request_id, unclaimed_draft_edit_and_resend_request=unclaimed_draft_edit_and_resend_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -997,6 +1097,12 @@ def unclaimed_draft_edit_and_resend_with_http_info( Field(description="The ID of the signature request to edit and resend."), ], unclaimed_draft_edit_and_resend_request: UnclaimedDraftEditAndResendRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1019,6 +1125,8 @@ def unclaimed_draft_edit_and_resend_with_http_info( :type signature_request_id: str :param unclaimed_draft_edit_and_resend_request: (required) :type unclaimed_draft_edit_and_resend_request: UnclaimedDraftEditAndResendRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1044,6 +1152,7 @@ def unclaimed_draft_edit_and_resend_with_http_info( _param = self._unclaimed_draft_edit_and_resend_serialize( signature_request_id=signature_request_id, unclaimed_draft_edit_and_resend_request=unclaimed_draft_edit_and_resend_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1072,6 +1181,12 @@ def unclaimed_draft_edit_and_resend_without_preload_content( Field(description="The ID of the signature request to edit and resend."), ], unclaimed_draft_edit_and_resend_request: UnclaimedDraftEditAndResendRequest, + idempotency_key: Annotated[ + Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], + Field( + description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1094,6 +1209,8 @@ def unclaimed_draft_edit_and_resend_without_preload_content( :type signature_request_id: str :param unclaimed_draft_edit_and_resend_request: (required) :type unclaimed_draft_edit_and_resend_request: UnclaimedDraftEditAndResendRequest + :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1119,6 +1236,7 @@ def unclaimed_draft_edit_and_resend_without_preload_content( _param = self._unclaimed_draft_edit_and_resend_serialize( signature_request_id=signature_request_id, unclaimed_draft_edit_and_resend_request=unclaimed_draft_edit_and_resend_request, + idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1139,6 +1257,7 @@ def _unclaimed_draft_edit_and_resend_serialize( self, signature_request_id, unclaimed_draft_edit_and_resend_request, + idempotency_key, _request_auth, _content_type, _headers, @@ -1185,6 +1304,8 @@ def _unclaimed_draft_edit_and_resend_serialize( _path_params["signature_request_id"] = signature_request_id # process the query parameters # process the header parameters + if idempotency_key is not None: + _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if unclaimed_draft_edit_and_resend_request is not None and has_files is False: diff --git a/sdks/ruby/docs/AccountApi.md b/sdks/ruby/docs/AccountApi.md index ebae7148b..aee56b868 100644 --- a/sdks/ruby/docs/AccountApi.md +++ b/sdks/ruby/docs/AccountApi.md @@ -12,7 +12,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## `account_create` -> ` account_create(account_create_request)` +> ` account_create(account_create_request, opts)` Create Account @@ -48,12 +48,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> account_create_with_http_info(account_create_request)` +> `, Integer, Hash)> account_create_with_http_info(account_create_request, opts)` ```ruby begin # Create Account - data, status_code, headers = api_instance.account_create_with_http_info(account_create_request) + data, status_code, headers = api_instance.account_create_with_http_info(account_create_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -67,6 +67,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `account_create_request` | [**AccountCreateRequest**](AccountCreateRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -152,7 +153,7 @@ end ## `account_update` -> ` account_update(account_update_request)` +> ` account_update(account_update_request, opts)` Update Account @@ -189,12 +190,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> account_update_with_http_info(account_update_request)` +> `, Integer, Hash)> account_update_with_http_info(account_update_request, opts)` ```ruby begin # Update Account - data, status_code, headers = api_instance.account_update_with_http_info(account_update_request) + data, status_code, headers = api_instance.account_update_with_http_info(account_update_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -208,6 +209,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `account_update_request` | [**AccountUpdateRequest**](AccountUpdateRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -225,7 +227,7 @@ end ## `account_verify` -> ` account_verify(account_verify_request)` +> ` account_verify(account_verify_request, opts)` Verify Account @@ -261,12 +263,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> account_verify_with_http_info(account_verify_request)` +> `, Integer, Hash)> account_verify_with_http_info(account_verify_request, opts)` ```ruby begin # Verify Account - data, status_code, headers = api_instance.account_verify_with_http_info(account_verify_request) + data, status_code, headers = api_instance.account_verify_with_http_info(account_verify_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -280,6 +282,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `account_verify_request` | [**AccountVerifyRequest**](AccountVerifyRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/ruby/docs/ApiAppApi.md b/sdks/ruby/docs/ApiAppApi.md index 10b5fac53..041c09d59 100644 --- a/sdks/ruby/docs/ApiAppApi.md +++ b/sdks/ruby/docs/ApiAppApi.md @@ -13,7 +13,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## `api_app_create` -> ` api_app_create(api_app_create_request)` +> ` api_app_create(api_app_create_request, opts)` Create API App @@ -66,12 +66,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> api_app_create_with_http_info(api_app_create_request)` +> `, Integer, Hash)> api_app_create_with_http_info(api_app_create_request, opts)` ```ruby begin # Create API App - data, status_code, headers = api_instance.api_app_create_with_http_info(api_app_create_request) + data, status_code, headers = api_instance.api_app_create_with_http_info(api_app_create_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -85,6 +85,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `api_app_create_request` | [**ApiAppCreateRequest**](ApiAppCreateRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -311,7 +312,7 @@ end ## `api_app_update` -> ` api_app_update(client_id, api_app_update_request)` +> ` api_app_update(client_id, api_app_update_request, opts)` Update API App @@ -366,12 +367,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> api_app_update_with_http_info(client_id, api_app_update_request)` +> `, Integer, Hash)> api_app_update_with_http_info(client_id, api_app_update_request, opts)` ```ruby begin # Update API App - data, status_code, headers = api_instance.api_app_update_with_http_info(client_id, api_app_update_request) + data, status_code, headers = api_instance.api_app_update_with_http_info(client_id, api_app_update_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -386,6 +387,7 @@ end | ---- | ---- | ----------- | ----- | | `client_id` | **String** | The client id of the API App to update. | | | `api_app_update_request` | [**ApiAppUpdateRequest**](ApiAppUpdateRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/ruby/docs/DocumentApi.md b/sdks/ruby/docs/DocumentApi.md index 074517671..c1bc15884 100644 --- a/sdks/ruby/docs/DocumentApi.md +++ b/sdks/ruby/docs/DocumentApi.md @@ -9,7 +9,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## `document_detect_fields` -> ` document_detect_fields(document_field_detection_request)` +> ` document_detect_fields(document_field_detection_request, opts)` Detect Document Fields @@ -47,12 +47,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> document_detect_fields_with_http_info(document_field_detection_request)` +> `, Integer, Hash)> document_detect_fields_with_http_info(document_field_detection_request, opts)` ```ruby begin # Detect Document Fields - data, status_code, headers = api_instance.document_detect_fields_with_http_info(document_field_detection_request) + data, status_code, headers = api_instance.document_detect_fields_with_http_info(document_field_detection_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -66,6 +66,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `document_field_detection_request` | [**DocumentFieldDetectionRequest**](DocumentFieldDetectionRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/ruby/docs/EmbeddedApi.md b/sdks/ruby/docs/EmbeddedApi.md index 998c914b3..2dffe9e0e 100644 --- a/sdks/ruby/docs/EmbeddedApi.md +++ b/sdks/ruby/docs/EmbeddedApi.md @@ -10,7 +10,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## `embedded_edit_url` -> ` embedded_edit_url(template_id, embedded_edit_url_request)` +> ` embedded_edit_url(template_id, embedded_edit_url_request, opts)` Get Embedded Template Edit URL @@ -53,12 +53,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> embedded_edit_url_with_http_info(template_id, embedded_edit_url_request)` +> `, Integer, Hash)> embedded_edit_url_with_http_info(template_id, embedded_edit_url_request, opts)` ```ruby begin # Get Embedded Template Edit URL - data, status_code, headers = api_instance.embedded_edit_url_with_http_info(template_id, embedded_edit_url_request) + data, status_code, headers = api_instance.embedded_edit_url_with_http_info(template_id, embedded_edit_url_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -73,6 +73,7 @@ end | ---- | ---- | ----------- | ----- | | `template_id` | **String** | The id of the template to edit. | | | `embedded_edit_url_request` | [**EmbeddedEditUrlRequest**](EmbeddedEditUrlRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/ruby/docs/FaxApi.md b/sdks/ruby/docs/FaxApi.md index 310c9a34b..12849432b 100644 --- a/sdks/ruby/docs/FaxApi.md +++ b/sdks/ruby/docs/FaxApi.md @@ -287,7 +287,7 @@ end ## `fax_send` -> ` fax_send(fax_send_request)` +> ` fax_send(fax_send_request, opts)` Send Fax @@ -331,12 +331,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> fax_send_with_http_info(fax_send_request)` +> `, Integer, Hash)> fax_send_with_http_info(fax_send_request, opts)` ```ruby begin # Send Fax - data, status_code, headers = api_instance.fax_send_with_http_info(fax_send_request) + data, status_code, headers = api_instance.fax_send_with_http_info(fax_send_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -350,6 +350,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `fax_send_request` | [**FaxSendRequest**](FaxSendRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/ruby/docs/FaxLineApi.md b/sdks/ruby/docs/FaxLineApi.md index a52f30c55..c005adacc 100644 --- a/sdks/ruby/docs/FaxLineApi.md +++ b/sdks/ruby/docs/FaxLineApi.md @@ -15,7 +15,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## `fax_line_add_user` -> ` fax_line_add_user(fax_line_add_user_request)` +> ` fax_line_add_user(fax_line_add_user_request, opts)` Add Fax Line User @@ -51,12 +51,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> fax_line_add_user_with_http_info(fax_line_add_user_request)` +> `, Integer, Hash)> fax_line_add_user_with_http_info(fax_line_add_user_request, opts)` ```ruby begin # Add Fax Line User - data, status_code, headers = api_instance.fax_line_add_user_with_http_info(fax_line_add_user_request) + data, status_code, headers = api_instance.fax_line_add_user_with_http_info(fax_line_add_user_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -70,6 +70,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `fax_line_add_user_request` | [**FaxLineAddUserRequest**](FaxLineAddUserRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -158,7 +159,7 @@ end ## `fax_line_create` -> ` fax_line_create(fax_line_create_request)` +> ` fax_line_create(fax_line_create_request, opts)` Purchase Fax Line @@ -194,12 +195,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> fax_line_create_with_http_info(fax_line_create_request)` +> `, Integer, Hash)> fax_line_create_with_http_info(fax_line_create_request, opts)` ```ruby begin # Purchase Fax Line - data, status_code, headers = api_instance.fax_line_create_with_http_info(fax_line_create_request) + data, status_code, headers = api_instance.fax_line_create_with_http_info(fax_line_create_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -213,6 +214,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `fax_line_create_request` | [**FaxLineCreateRequest**](FaxLineCreateRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -443,7 +445,7 @@ end ## `fax_line_remove_user` -> ` fax_line_remove_user(fax_line_remove_user_request)` +> ` fax_line_remove_user(fax_line_remove_user_request, opts)` Remove Fax Line Access @@ -479,12 +481,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> fax_line_remove_user_with_http_info(fax_line_remove_user_request)` +> `, Integer, Hash)> fax_line_remove_user_with_http_info(fax_line_remove_user_request, opts)` ```ruby begin # Remove Fax Line Access - data, status_code, headers = api_instance.fax_line_remove_user_with_http_info(fax_line_remove_user_request) + data, status_code, headers = api_instance.fax_line_remove_user_with_http_info(fax_line_remove_user_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -498,6 +500,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `fax_line_remove_user_request` | [**FaxLineRemoveUserRequest**](FaxLineRemoveUserRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/ruby/docs/ReportApi.md b/sdks/ruby/docs/ReportApi.md index 9b0b90317..5fdc526b5 100644 --- a/sdks/ruby/docs/ReportApi.md +++ b/sdks/ruby/docs/ReportApi.md @@ -9,7 +9,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## `report_create` -> ` report_create(report_create_request)` +> ` report_create(report_create_request, opts)` Create Report @@ -49,12 +49,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> report_create_with_http_info(report_create_request)` +> `, Integer, Hash)> report_create_with_http_info(report_create_request, opts)` ```ruby begin # Create Report - data, status_code, headers = api_instance.report_create_with_http_info(report_create_request) + data, status_code, headers = api_instance.report_create_with_http_info(report_create_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -68,6 +68,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `report_create_request` | [**ReportCreateRequest**](ReportCreateRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/ruby/docs/SignatureRequestApi.md b/sdks/ruby/docs/SignatureRequestApi.md index e3f4b361e..7889862a0 100644 --- a/sdks/ruby/docs/SignatureRequestApi.md +++ b/sdks/ruby/docs/SignatureRequestApi.md @@ -28,7 +28,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## `signature_request_bulk_create_embedded_with_template` -> ` signature_request_bulk_create_embedded_with_template(signature_request_bulk_create_embedded_with_template_request)` +> ` signature_request_bulk_create_embedded_with_template(signature_request_bulk_create_embedded_with_template_request, opts)` Embedded Bulk Send with Template @@ -128,12 +128,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> signature_request_bulk_create_embedded_with_template_with_http_info(signature_request_bulk_create_embedded_with_template_request)` +> `, Integer, Hash)> signature_request_bulk_create_embedded_with_template_with_http_info(signature_request_bulk_create_embedded_with_template_request, opts)` ```ruby begin # Embedded Bulk Send with Template - data, status_code, headers = api_instance.signature_request_bulk_create_embedded_with_template_with_http_info(signature_request_bulk_create_embedded_with_template_request) + data, status_code, headers = api_instance.signature_request_bulk_create_embedded_with_template_with_http_info(signature_request_bulk_create_embedded_with_template_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -147,6 +147,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_bulk_create_embedded_with_template_request` | [**SignatureRequestBulkCreateEmbeddedWithTemplateRequest**](SignatureRequestBulkCreateEmbeddedWithTemplateRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -164,7 +165,7 @@ end ## `signature_request_bulk_send_with_template` -> ` signature_request_bulk_send_with_template(signature_request_bulk_send_with_template_request)` +> ` signature_request_bulk_send_with_template(signature_request_bulk_send_with_template_request, opts)` Bulk Send with Template @@ -264,12 +265,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> signature_request_bulk_send_with_template_with_http_info(signature_request_bulk_send_with_template_request)` +> `, Integer, Hash)> signature_request_bulk_send_with_template_with_http_info(signature_request_bulk_send_with_template_request, opts)` ```ruby begin # Bulk Send with Template - data, status_code, headers = api_instance.signature_request_bulk_send_with_template_with_http_info(signature_request_bulk_send_with_template_request) + data, status_code, headers = api_instance.signature_request_bulk_send_with_template_with_http_info(signature_request_bulk_send_with_template_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -283,6 +284,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_bulk_send_with_template_request` | [**SignatureRequestBulkSendWithTemplateRequest**](SignatureRequestBulkSendWithTemplateRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -300,7 +302,7 @@ end ## `signature_request_cancel` -> `signature_request_cancel(signature_request_id)` +> `signature_request_cancel(signature_request_id, opts)` Cancel Incomplete Signature Request @@ -331,12 +333,12 @@ end This returns an Array which contains the response data (`nil` in this case), status code and headers. -> ` signature_request_cancel_with_http_info(signature_request_id)` +> ` signature_request_cancel_with_http_info(signature_request_id, opts)` ```ruby begin # Cancel Incomplete Signature Request - data, status_code, headers = api_instance.signature_request_cancel_with_http_info(signature_request_id) + data, status_code, headers = api_instance.signature_request_cancel_with_http_info(signature_request_id, opts) p status_code # => 2xx p headers # => { ... } p data # => nil @@ -350,6 +352,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_id` | **String** | The id of the incomplete SignatureRequest to cancel. | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -367,7 +370,7 @@ nil (empty response body) ## `signature_request_create_embedded` -> ` signature_request_create_embedded(signature_request_create_embedded_request)` +> ` signature_request_create_embedded(signature_request_create_embedded_request, opts)` Create Embedded Signature Request @@ -439,12 +442,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> signature_request_create_embedded_with_http_info(signature_request_create_embedded_request)` +> `, Integer, Hash)> signature_request_create_embedded_with_http_info(signature_request_create_embedded_request, opts)` ```ruby begin # Create Embedded Signature Request - data, status_code, headers = api_instance.signature_request_create_embedded_with_http_info(signature_request_create_embedded_request) + data, status_code, headers = api_instance.signature_request_create_embedded_with_http_info(signature_request_create_embedded_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -458,6 +461,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_create_embedded_request` | [**SignatureRequestCreateEmbeddedRequest**](SignatureRequestCreateEmbeddedRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -475,7 +479,7 @@ end ## `signature_request_create_embedded_with_template` -> ` signature_request_create_embedded_with_template(signature_request_create_embedded_with_template_request)` +> ` signature_request_create_embedded_with_template(signature_request_create_embedded_with_template_request, opts)` Create Embedded Signature Request with Template @@ -536,12 +540,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> signature_request_create_embedded_with_template_with_http_info(signature_request_create_embedded_with_template_request)` +> `, Integer, Hash)> signature_request_create_embedded_with_template_with_http_info(signature_request_create_embedded_with_template_request, opts)` ```ruby begin # Create Embedded Signature Request with Template - data, status_code, headers = api_instance.signature_request_create_embedded_with_template_with_http_info(signature_request_create_embedded_with_template_request) + data, status_code, headers = api_instance.signature_request_create_embedded_with_template_with_http_info(signature_request_create_embedded_with_template_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -555,6 +559,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_create_embedded_with_template_request` | [**SignatureRequestCreateEmbeddedWithTemplateRequest**](SignatureRequestCreateEmbeddedWithTemplateRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -572,7 +577,7 @@ end ## `signature_request_edit` -> ` signature_request_edit(signature_request_id, signature_request_edit_request)` +> ` signature_request_edit(signature_request_id, signature_request_edit_request, opts)` Edit Signature Request @@ -654,12 +659,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> signature_request_edit_with_http_info(signature_request_id, signature_request_edit_request)` +> `, Integer, Hash)> signature_request_edit_with_http_info(signature_request_id, signature_request_edit_request, opts)` ```ruby begin # Edit Signature Request - data, status_code, headers = api_instance.signature_request_edit_with_http_info(signature_request_id, signature_request_edit_request) + data, status_code, headers = api_instance.signature_request_edit_with_http_info(signature_request_id, signature_request_edit_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -674,6 +679,7 @@ end | ---- | ---- | ----------- | ----- | | `signature_request_id` | **String** | The id of the SignatureRequest to edit. | | | `signature_request_edit_request` | [**SignatureRequestEditRequest**](SignatureRequestEditRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -691,7 +697,7 @@ end ## `signature_request_edit_embedded` -> ` signature_request_edit_embedded(signature_request_id, signature_request_edit_embedded_request)` +> ` signature_request_edit_embedded(signature_request_id, signature_request_edit_embedded_request, opts)` Edit Embedded Signature Request @@ -763,12 +769,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> signature_request_edit_embedded_with_http_info(signature_request_id, signature_request_edit_embedded_request)` +> `, Integer, Hash)> signature_request_edit_embedded_with_http_info(signature_request_id, signature_request_edit_embedded_request, opts)` ```ruby begin # Edit Embedded Signature Request - data, status_code, headers = api_instance.signature_request_edit_embedded_with_http_info(signature_request_id, signature_request_edit_embedded_request) + data, status_code, headers = api_instance.signature_request_edit_embedded_with_http_info(signature_request_id, signature_request_edit_embedded_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -783,6 +789,7 @@ end | ---- | ---- | ----------- | ----- | | `signature_request_id` | **String** | The id of the SignatureRequest to edit. | | | `signature_request_edit_embedded_request` | [**SignatureRequestEditEmbeddedRequest**](SignatureRequestEditEmbeddedRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -800,7 +807,7 @@ end ## `signature_request_edit_embedded_with_template` -> ` signature_request_edit_embedded_with_template(signature_request_id, signature_request_edit_embedded_with_template_request)` +> ` signature_request_edit_embedded_with_template(signature_request_id, signature_request_edit_embedded_with_template_request, opts)` Edit Embedded Signature Request with Template @@ -861,12 +868,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> signature_request_edit_embedded_with_template_with_http_info(signature_request_id, signature_request_edit_embedded_with_template_request)` +> `, Integer, Hash)> signature_request_edit_embedded_with_template_with_http_info(signature_request_id, signature_request_edit_embedded_with_template_request, opts)` ```ruby begin # Edit Embedded Signature Request with Template - data, status_code, headers = api_instance.signature_request_edit_embedded_with_template_with_http_info(signature_request_id, signature_request_edit_embedded_with_template_request) + data, status_code, headers = api_instance.signature_request_edit_embedded_with_template_with_http_info(signature_request_id, signature_request_edit_embedded_with_template_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -881,6 +888,7 @@ end | ---- | ---- | ----------- | ----- | | `signature_request_id` | **String** | The id of the SignatureRequest to edit. | | | `signature_request_edit_embedded_with_template_request` | [**SignatureRequestEditEmbeddedWithTemplateRequest**](SignatureRequestEditEmbeddedWithTemplateRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -898,7 +906,7 @@ end ## `signature_request_edit_with_template` -> ` signature_request_edit_with_template(signature_request_id, signature_request_edit_with_template_request)` +> ` signature_request_edit_with_template(signature_request_id, signature_request_edit_with_template_request, opts)` Edit Signature Request With Template @@ -978,12 +986,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> signature_request_edit_with_template_with_http_info(signature_request_id, signature_request_edit_with_template_request)` +> `, Integer, Hash)> signature_request_edit_with_template_with_http_info(signature_request_id, signature_request_edit_with_template_request, opts)` ```ruby begin # Edit Signature Request With Template - data, status_code, headers = api_instance.signature_request_edit_with_template_with_http_info(signature_request_id, signature_request_edit_with_template_request) + data, status_code, headers = api_instance.signature_request_edit_with_template_with_http_info(signature_request_id, signature_request_edit_with_template_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -998,6 +1006,7 @@ end | ---- | ---- | ----------- | ----- | | `signature_request_id` | **String** | The id of the SignatureRequest to edit. | | | `signature_request_edit_with_template_request` | [**SignatureRequestEditWithTemplateRequest**](SignatureRequestEditWithTemplateRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1376,7 +1385,7 @@ end ## `signature_request_release_hold` -> ` signature_request_release_hold(signature_request_id)` +> ` signature_request_release_hold(signature_request_id, opts)` Release On-Hold Signature Request @@ -1409,12 +1418,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> signature_request_release_hold_with_http_info(signature_request_id)` +> `, Integer, Hash)> signature_request_release_hold_with_http_info(signature_request_id, opts)` ```ruby begin # Release On-Hold Signature Request - data, status_code, headers = api_instance.signature_request_release_hold_with_http_info(signature_request_id) + data, status_code, headers = api_instance.signature_request_release_hold_with_http_info(signature_request_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1428,6 +1437,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_id` | **String** | The id of the SignatureRequest to release. | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1445,7 +1455,7 @@ end ## `signature_request_remind` -> ` signature_request_remind(signature_request_id, signature_request_remind_request)` +> ` signature_request_remind(signature_request_id, signature_request_remind_request, opts)` Send Request Reminder @@ -1482,12 +1492,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> signature_request_remind_with_http_info(signature_request_id, signature_request_remind_request)` +> `, Integer, Hash)> signature_request_remind_with_http_info(signature_request_id, signature_request_remind_request, opts)` ```ruby begin # Send Request Reminder - data, status_code, headers = api_instance.signature_request_remind_with_http_info(signature_request_id, signature_request_remind_request) + data, status_code, headers = api_instance.signature_request_remind_with_http_info(signature_request_id, signature_request_remind_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1502,6 +1512,7 @@ end | ---- | ---- | ----------- | ----- | | `signature_request_id` | **String** | The id of the SignatureRequest to send a reminder for. | | | `signature_request_remind_request` | [**SignatureRequestRemindRequest**](SignatureRequestRemindRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1519,7 +1530,7 @@ end ## `signature_request_remove` -> `signature_request_remove(signature_request_id)` +> `signature_request_remove(signature_request_id, opts)` Remove Signature Request Access @@ -1549,12 +1560,12 @@ end This returns an Array which contains the response data (`nil` in this case), status code and headers. -> ` signature_request_remove_with_http_info(signature_request_id)` +> ` signature_request_remove_with_http_info(signature_request_id, opts)` ```ruby begin # Remove Signature Request Access - data, status_code, headers = api_instance.signature_request_remove_with_http_info(signature_request_id) + data, status_code, headers = api_instance.signature_request_remove_with_http_info(signature_request_id, opts) p status_code # => 2xx p headers # => { ... } p data # => nil @@ -1568,6 +1579,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_id` | **String** | The id of the SignatureRequest to remove. | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1585,7 +1597,7 @@ nil (empty response body) ## `signature_request_send` -> ` signature_request_send(signature_request_send_request)` +> ` signature_request_send(signature_request_send_request, opts)` Send Signature Request @@ -1667,12 +1679,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> signature_request_send_with_http_info(signature_request_send_request)` +> `, Integer, Hash)> signature_request_send_with_http_info(signature_request_send_request, opts)` ```ruby begin # Send Signature Request - data, status_code, headers = api_instance.signature_request_send_with_http_info(signature_request_send_request) + data, status_code, headers = api_instance.signature_request_send_with_http_info(signature_request_send_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1686,6 +1698,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_send_request` | [**SignatureRequestSendRequest**](SignatureRequestSendRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1703,7 +1716,7 @@ end ## `signature_request_send_with_template` -> ` signature_request_send_with_template(signature_request_send_with_template_request)` +> ` signature_request_send_with_template(signature_request_send_with_template_request, opts)` Send with Template @@ -1783,12 +1796,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> signature_request_send_with_template_with_http_info(signature_request_send_with_template_request)` +> `, Integer, Hash)> signature_request_send_with_template_with_http_info(signature_request_send_with_template_request, opts)` ```ruby begin # Send with Template - data, status_code, headers = api_instance.signature_request_send_with_template_with_http_info(signature_request_send_with_template_request) + data, status_code, headers = api_instance.signature_request_send_with_template_with_http_info(signature_request_send_with_template_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1802,6 +1815,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_send_with_template_request` | [**SignatureRequestSendWithTemplateRequest**](SignatureRequestSendWithTemplateRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1819,7 +1833,7 @@ end ## `signature_request_update` -> ` signature_request_update(signature_request_id, signature_request_update_request)` +> ` signature_request_update(signature_request_id, signature_request_update_request, opts)` Update Signature Request @@ -1857,12 +1871,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> signature_request_update_with_http_info(signature_request_id, signature_request_update_request)` +> `, Integer, Hash)> signature_request_update_with_http_info(signature_request_id, signature_request_update_request, opts)` ```ruby begin # Update Signature Request - data, status_code, headers = api_instance.signature_request_update_with_http_info(signature_request_id, signature_request_update_request) + data, status_code, headers = api_instance.signature_request_update_with_http_info(signature_request_id, signature_request_update_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1877,6 +1891,7 @@ end | ---- | ---- | ----------- | ----- | | `signature_request_id` | **String** | The id of the SignatureRequest to update. | | | `signature_request_update_request` | [**SignatureRequestUpdateRequest**](SignatureRequestUpdateRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/ruby/docs/TeamApi.md b/sdks/ruby/docs/TeamApi.md index b8279a3b9..c40f6ee75 100644 --- a/sdks/ruby/docs/TeamApi.md +++ b/sdks/ruby/docs/TeamApi.md @@ -77,6 +77,7 @@ end | ---- | ---- | ----------- | ----- | | `team_add_member_request` | [**TeamAddMemberRequest**](TeamAddMemberRequest.md) | | | | `team_id` | **String** | The id of the team. | [optional] | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -94,7 +95,7 @@ end ## `team_create` -> ` team_create(team_create_request)` +> ` team_create(team_create_request, opts)` Create Team @@ -130,12 +131,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> team_create_with_http_info(team_create_request)` +> `, Integer, Hash)> team_create_with_http_info(team_create_request, opts)` ```ruby begin # Create Team - data, status_code, headers = api_instance.team_create_with_http_info(team_create_request) + data, status_code, headers = api_instance.team_create_with_http_info(team_create_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -149,6 +150,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `team_create_request` | [**TeamCreateRequest**](TeamCreateRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -507,7 +509,7 @@ end ## `team_remove_member` -> ` team_remove_member(team_remove_member_request)` +> ` team_remove_member(team_remove_member_request, opts)` Remove User from Team @@ -544,12 +546,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> team_remove_member_with_http_info(team_remove_member_request)` +> `, Integer, Hash)> team_remove_member_with_http_info(team_remove_member_request, opts)` ```ruby begin # Remove User from Team - data, status_code, headers = api_instance.team_remove_member_with_http_info(team_remove_member_request) + data, status_code, headers = api_instance.team_remove_member_with_http_info(team_remove_member_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -563,6 +565,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `team_remove_member_request` | [**TeamRemoveMemberRequest**](TeamRemoveMemberRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -655,7 +658,7 @@ end ## `team_update` -> ` team_update(team_update_request)` +> ` team_update(team_update_request, opts)` Update Team @@ -691,12 +694,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> team_update_with_http_info(team_update_request)` +> `, Integer, Hash)> team_update_with_http_info(team_update_request, opts)` ```ruby begin # Update Team - data, status_code, headers = api_instance.team_update_with_http_info(team_update_request) + data, status_code, headers = api_instance.team_update_with_http_info(team_update_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -710,6 +713,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `team_update_request` | [**TeamUpdateRequest**](TeamUpdateRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/ruby/docs/TemplateApi.md b/sdks/ruby/docs/TemplateApi.md index ffd6ec0ea..8a9c0cba7 100644 --- a/sdks/ruby/docs/TemplateApi.md +++ b/sdks/ruby/docs/TemplateApi.md @@ -19,7 +19,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## `template_add_user` -> ` template_add_user(template_id, template_add_user_request)` +> ` template_add_user(template_id, template_add_user_request, opts)` Add User to Template @@ -56,12 +56,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> template_add_user_with_http_info(template_id, template_add_user_request)` +> `, Integer, Hash)> template_add_user_with_http_info(template_id, template_add_user_request, opts)` ```ruby begin # Add User to Template - data, status_code, headers = api_instance.template_add_user_with_http_info(template_id, template_add_user_request) + data, status_code, headers = api_instance.template_add_user_with_http_info(template_id, template_add_user_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -76,6 +76,7 @@ end | ---- | ---- | ----------- | ----- | | `template_id` | **String** | The id of the Template to give the Account access to. | | | `template_add_user_request` | [**TemplateAddUserRequest**](TemplateAddUserRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -93,7 +94,7 @@ end ## `template_create` -> ` template_create(template_create_request)` +> ` template_create(template_create_request, opts)` Create Template @@ -205,12 +206,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> template_create_with_http_info(template_create_request)` +> `, Integer, Hash)> template_create_with_http_info(template_create_request, opts)` ```ruby begin # Create Template - data, status_code, headers = api_instance.template_create_with_http_info(template_create_request) + data, status_code, headers = api_instance.template_create_with_http_info(template_create_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -224,6 +225,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `template_create_request` | [**TemplateCreateRequest**](TemplateCreateRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -241,7 +243,7 @@ end ## `template_create_embedded_draft` -> ` template_create_embedded_draft(template_create_embedded_draft_request)` +> ` template_create_embedded_draft(template_create_embedded_draft_request, opts)` Create Embedded Template Draft @@ -319,12 +321,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> template_create_embedded_draft_with_http_info(template_create_embedded_draft_request)` +> `, Integer, Hash)> template_create_embedded_draft_with_http_info(template_create_embedded_draft_request, opts)` ```ruby begin # Create Embedded Template Draft - data, status_code, headers = api_instance.template_create_embedded_draft_with_http_info(template_create_embedded_draft_request) + data, status_code, headers = api_instance.template_create_embedded_draft_with_http_info(template_create_embedded_draft_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -338,6 +340,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `template_create_embedded_draft_request` | [**TemplateCreateEmbeddedDraftRequest**](TemplateCreateEmbeddedDraftRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -355,7 +358,7 @@ end ## `template_delete` -> `template_delete(template_id)` +> `template_delete(template_id, opts)` Delete Template @@ -386,12 +389,12 @@ end This returns an Array which contains the response data (`nil` in this case), status code and headers. -> ` template_delete_with_http_info(template_id)` +> ` template_delete_with_http_info(template_id, opts)` ```ruby begin # Delete Template - data, status_code, headers = api_instance.template_delete_with_http_info(template_id) + data, status_code, headers = api_instance.template_delete_with_http_info(template_id, opts) p status_code # => 2xx p headers # => { ... } p data # => nil @@ -405,6 +408,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `template_id` | **String** | The id of the Template to delete. | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -780,7 +784,7 @@ end ## `template_remove_user` -> ` template_remove_user(template_id, template_remove_user_request)` +> ` template_remove_user(template_id, template_remove_user_request, opts)` Remove User from Template @@ -817,12 +821,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> template_remove_user_with_http_info(template_id, template_remove_user_request)` +> `, Integer, Hash)> template_remove_user_with_http_info(template_id, template_remove_user_request, opts)` ```ruby begin # Remove User from Template - data, status_code, headers = api_instance.template_remove_user_with_http_info(template_id, template_remove_user_request) + data, status_code, headers = api_instance.template_remove_user_with_http_info(template_id, template_remove_user_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -837,6 +841,7 @@ end | ---- | ---- | ----------- | ----- | | `template_id` | **String** | The id of the Template to remove the Account's access to. | | | `template_remove_user_request` | [**TemplateRemoveUserRequest**](TemplateRemoveUserRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -854,7 +859,7 @@ end ## `template_update_files` -> ` template_update_files(template_id, template_update_files_request)` +> ` template_update_files(template_id, template_update_files_request, opts)` Update Template Files @@ -893,12 +898,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> template_update_files_with_http_info(template_id, template_update_files_request)` +> `, Integer, Hash)> template_update_files_with_http_info(template_id, template_update_files_request, opts)` ```ruby begin # Update Template Files - data, status_code, headers = api_instance.template_update_files_with_http_info(template_id, template_update_files_request) + data, status_code, headers = api_instance.template_update_files_with_http_info(template_id, template_update_files_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -913,6 +918,7 @@ end | ---- | ---- | ----------- | ----- | | `template_id` | **String** | The ID of the template whose files to update. | | | `template_update_files_request` | [**TemplateUpdateFilesRequest**](TemplateUpdateFilesRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/ruby/docs/UnclaimedDraftApi.md b/sdks/ruby/docs/UnclaimedDraftApi.md index 2ce820254..29294c8ce 100644 --- a/sdks/ruby/docs/UnclaimedDraftApi.md +++ b/sdks/ruby/docs/UnclaimedDraftApi.md @@ -12,7 +12,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## `unclaimed_draft_create` -> ` unclaimed_draft_create(unclaimed_draft_create_request)` +> ` unclaimed_draft_create(unclaimed_draft_create_request, opts)` Create Unclaimed Draft @@ -62,12 +62,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> unclaimed_draft_create_with_http_info(unclaimed_draft_create_request)` +> `, Integer, Hash)> unclaimed_draft_create_with_http_info(unclaimed_draft_create_request, opts)` ```ruby begin # Create Unclaimed Draft - data, status_code, headers = api_instance.unclaimed_draft_create_with_http_info(unclaimed_draft_create_request) + data, status_code, headers = api_instance.unclaimed_draft_create_with_http_info(unclaimed_draft_create_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -81,6 +81,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `unclaimed_draft_create_request` | [**UnclaimedDraftCreateRequest**](UnclaimedDraftCreateRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -98,7 +99,7 @@ end ## `unclaimed_draft_create_embedded` -> ` unclaimed_draft_create_embedded(unclaimed_draft_create_embedded_request)` +> ` unclaimed_draft_create_embedded(unclaimed_draft_create_embedded_request, opts)` Create Embedded Unclaimed Draft @@ -139,12 +140,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> unclaimed_draft_create_embedded_with_http_info(unclaimed_draft_create_embedded_request)` +> `, Integer, Hash)> unclaimed_draft_create_embedded_with_http_info(unclaimed_draft_create_embedded_request, opts)` ```ruby begin # Create Embedded Unclaimed Draft - data, status_code, headers = api_instance.unclaimed_draft_create_embedded_with_http_info(unclaimed_draft_create_embedded_request) + data, status_code, headers = api_instance.unclaimed_draft_create_embedded_with_http_info(unclaimed_draft_create_embedded_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -158,6 +159,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `unclaimed_draft_create_embedded_request` | [**UnclaimedDraftCreateEmbeddedRequest**](UnclaimedDraftCreateEmbeddedRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -175,7 +177,7 @@ end ## `unclaimed_draft_create_embedded_with_template` -> ` unclaimed_draft_create_embedded_with_template(unclaimed_draft_create_embedded_with_template_request)` +> ` unclaimed_draft_create_embedded_with_template(unclaimed_draft_create_embedded_with_template_request, opts)` Create Embedded Unclaimed Draft with Template @@ -235,12 +237,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> unclaimed_draft_create_embedded_with_template_with_http_info(unclaimed_draft_create_embedded_with_template_request)` +> `, Integer, Hash)> unclaimed_draft_create_embedded_with_template_with_http_info(unclaimed_draft_create_embedded_with_template_request, opts)` ```ruby begin # Create Embedded Unclaimed Draft with Template - data, status_code, headers = api_instance.unclaimed_draft_create_embedded_with_template_with_http_info(unclaimed_draft_create_embedded_with_template_request) + data, status_code, headers = api_instance.unclaimed_draft_create_embedded_with_template_with_http_info(unclaimed_draft_create_embedded_with_template_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -254,6 +256,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `unclaimed_draft_create_embedded_with_template_request` | [**UnclaimedDraftCreateEmbeddedWithTemplateRequest**](UnclaimedDraftCreateEmbeddedWithTemplateRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -271,7 +274,7 @@ end ## `unclaimed_draft_edit_and_resend` -> ` unclaimed_draft_edit_and_resend(signature_request_id, unclaimed_draft_edit_and_resend_request)` +> ` unclaimed_draft_edit_and_resend(signature_request_id, unclaimed_draft_edit_and_resend_request, opts)` Edit and Resend Unclaimed Draft @@ -309,12 +312,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> unclaimed_draft_edit_and_resend_with_http_info(signature_request_id, unclaimed_draft_edit_and_resend_request)` +> `, Integer, Hash)> unclaimed_draft_edit_and_resend_with_http_info(signature_request_id, unclaimed_draft_edit_and_resend_request, opts)` ```ruby begin # Edit and Resend Unclaimed Draft - data, status_code, headers = api_instance.unclaimed_draft_edit_and_resend_with_http_info(signature_request_id, unclaimed_draft_edit_and_resend_request) + data, status_code, headers = api_instance.unclaimed_draft_edit_and_resend_with_http_info(signature_request_id, unclaimed_draft_edit_and_resend_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -329,6 +332,7 @@ end | ---- | ---- | ----------- | ----- | | `signature_request_id` | **String** | The ID of the signature request to edit and resend. | | | `unclaimed_draft_edit_and_resend_request` | [**UnclaimedDraftEditAndResendRequest**](UnclaimedDraftEditAndResendRequest.md) | | | +| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/ruby/lib/dropbox-sign/api/account_api.rb b/sdks/ruby/lib/dropbox-sign/api/account_api.rb index 873531b58..ffbe9f9aa 100644 --- a/sdks/ruby/lib/dropbox-sign/api/account_api.rb +++ b/sdks/ruby/lib/dropbox-sign/api/account_api.rb @@ -27,6 +27,7 @@ def initialize(api_client = ApiClient.default) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/AccountCreateExample.rb # @param account_create_request [AccountCreateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [AccountCreateResponse] def account_create(account_create_request, opts = {}) data, _status_code, _headers = account_create_with_http_info(account_create_request, opts) @@ -38,6 +39,7 @@ def account_create(account_create_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/AccountCreateExample.rb # @param account_create_request [AccountCreateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(AccountCreateResponse, Integer, Hash)>] AccountCreateResponse data, response status code and response headers def account_create_with_http_info(account_create_request, opts = {}) if @api_client.config.debugging @@ -47,6 +49,14 @@ def account_create_with_http_info(account_create_request, opts = {}) if @api_client.config.client_side_validation && account_create_request.nil? fail ArgumentError, "Missing the required parameter 'account_create_request' when calling AccountApi.account_create" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling AccountApi.account_create, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling AccountApi.account_create, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/account/create' @@ -62,6 +72,7 @@ def account_create_with_http_info(account_create_request, opts = {}) if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -236,6 +247,7 @@ def account_get_with_http_info(opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/AccountUpdateExample.rb # @param account_update_request [AccountUpdateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [AccountGetResponse] def account_update(account_update_request, opts = {}) data, _status_code, _headers = account_update_with_http_info(account_update_request, opts) @@ -247,6 +259,7 @@ def account_update(account_update_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/AccountUpdateExample.rb # @param account_update_request [AccountUpdateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(AccountGetResponse, Integer, Hash)>] AccountGetResponse data, response status code and response headers def account_update_with_http_info(account_update_request, opts = {}) if @api_client.config.debugging @@ -256,6 +269,14 @@ def account_update_with_http_info(account_update_request, opts = {}) if @api_client.config.client_side_validation && account_update_request.nil? fail ArgumentError, "Missing the required parameter 'account_update_request' when calling AccountApi.account_update" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling AccountApi.account_update, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling AccountApi.account_update, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/account' @@ -271,6 +292,7 @@ def account_update_with_http_info(account_update_request, opts = {}) if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -348,6 +370,7 @@ def account_update_with_http_info(account_update_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/AccountVerifyExample.rb # @param account_verify_request [AccountVerifyRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [AccountVerifyResponse] def account_verify(account_verify_request, opts = {}) data, _status_code, _headers = account_verify_with_http_info(account_verify_request, opts) @@ -359,6 +382,7 @@ def account_verify(account_verify_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/AccountVerifyExample.rb # @param account_verify_request [AccountVerifyRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(AccountVerifyResponse, Integer, Hash)>] AccountVerifyResponse data, response status code and response headers def account_verify_with_http_info(account_verify_request, opts = {}) if @api_client.config.debugging @@ -368,6 +392,14 @@ def account_verify_with_http_info(account_verify_request, opts = {}) if @api_client.config.client_side_validation && account_verify_request.nil? fail ArgumentError, "Missing the required parameter 'account_verify_request' when calling AccountApi.account_verify" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling AccountApi.account_verify, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling AccountApi.account_verify, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/account/verify' @@ -383,6 +415,7 @@ def account_verify_with_http_info(account_verify_request, opts = {}) if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} diff --git a/sdks/ruby/lib/dropbox-sign/api/api_app_api.rb b/sdks/ruby/lib/dropbox-sign/api/api_app_api.rb index 0ec145b5a..4a773cbd3 100644 --- a/sdks/ruby/lib/dropbox-sign/api/api_app_api.rb +++ b/sdks/ruby/lib/dropbox-sign/api/api_app_api.rb @@ -27,6 +27,7 @@ def initialize(api_client = ApiClient.default) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/ApiAppCreateExample.rb # @param api_app_create_request [ApiAppCreateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [ApiAppGetResponse] def api_app_create(api_app_create_request, opts = {}) data, _status_code, _headers = api_app_create_with_http_info(api_app_create_request, opts) @@ -38,6 +39,7 @@ def api_app_create(api_app_create_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/ApiAppCreateExample.rb # @param api_app_create_request [ApiAppCreateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(ApiAppGetResponse, Integer, Hash)>] ApiAppGetResponse data, response status code and response headers def api_app_create_with_http_info(api_app_create_request, opts = {}) if @api_client.config.debugging @@ -47,6 +49,14 @@ def api_app_create_with_http_info(api_app_create_request, opts = {}) if @api_client.config.client_side_validation && api_app_create_request.nil? fail ArgumentError, "Missing the required parameter 'api_app_create_request' when calling ApiAppApi.api_app_create" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling ApiAppApi.api_app_create, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling ApiAppApi.api_app_create, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/api_app' @@ -62,6 +72,7 @@ def api_app_create_with_http_info(api_app_create_request, opts = {}) if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -404,6 +415,7 @@ def api_app_list_with_http_info(opts = {}) # @param client_id [String] The client id of the API App to update. # @param api_app_update_request [ApiAppUpdateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [ApiAppGetResponse] def api_app_update(client_id, api_app_update_request, opts = {}) data, _status_code, _headers = api_app_update_with_http_info(client_id, api_app_update_request, opts) @@ -416,6 +428,7 @@ def api_app_update(client_id, api_app_update_request, opts = {}) # @param client_id [String] The client id of the API App to update. # @param api_app_update_request [ApiAppUpdateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(ApiAppGetResponse, Integer, Hash)>] ApiAppGetResponse data, response status code and response headers def api_app_update_with_http_info(client_id, api_app_update_request, opts = {}) if @api_client.config.debugging @@ -429,6 +442,14 @@ def api_app_update_with_http_info(client_id, api_app_update_request, opts = {}) if @api_client.config.client_side_validation && api_app_update_request.nil? fail ArgumentError, "Missing the required parameter 'api_app_update_request' when calling ApiAppApi.api_app_update" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling ApiAppApi.api_app_update, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling ApiAppApi.api_app_update, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/api_app/{client_id}'.sub('{' + 'client_id' + '}', CGI.escape(client_id.to_s)) @@ -444,6 +465,7 @@ def api_app_update_with_http_info(client_id, api_app_update_request, opts = {}) if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} diff --git a/sdks/ruby/lib/dropbox-sign/api/document_api.rb b/sdks/ruby/lib/dropbox-sign/api/document_api.rb index 84322c7e2..3029fbf83 100644 --- a/sdks/ruby/lib/dropbox-sign/api/document_api.rb +++ b/sdks/ruby/lib/dropbox-sign/api/document_api.rb @@ -27,6 +27,7 @@ def initialize(api_client = ApiClient.default) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/DocumentDetectFieldsExample.rb # @param document_field_detection_request [DocumentFieldDetectionRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [DocumentFieldDetectionResponse] def document_detect_fields(document_field_detection_request, opts = {}) data, _status_code, _headers = document_detect_fields_with_http_info(document_field_detection_request, opts) @@ -38,6 +39,7 @@ def document_detect_fields(document_field_detection_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/DocumentDetectFieldsExample.rb # @param document_field_detection_request [DocumentFieldDetectionRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(DocumentFieldDetectionResponse, Integer, Hash)>] DocumentFieldDetectionResponse data, response status code and response headers def document_detect_fields_with_http_info(document_field_detection_request, opts = {}) if @api_client.config.debugging @@ -47,6 +49,14 @@ def document_detect_fields_with_http_info(document_field_detection_request, opts if @api_client.config.client_side_validation && document_field_detection_request.nil? fail ArgumentError, "Missing the required parameter 'document_field_detection_request' when calling DocumentApi.document_detect_fields" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling DocumentApi.document_detect_fields, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling DocumentApi.document_detect_fields, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/document/detect_fields' @@ -62,6 +72,7 @@ def document_detect_fields_with_http_info(document_field_detection_request, opts if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} diff --git a/sdks/ruby/lib/dropbox-sign/api/embedded_api.rb b/sdks/ruby/lib/dropbox-sign/api/embedded_api.rb index e5c021909..197723de1 100644 --- a/sdks/ruby/lib/dropbox-sign/api/embedded_api.rb +++ b/sdks/ruby/lib/dropbox-sign/api/embedded_api.rb @@ -28,6 +28,7 @@ def initialize(api_client = ApiClient.default) # @param template_id [String] The id of the template to edit. # @param embedded_edit_url_request [EmbeddedEditUrlRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [EmbeddedEditUrlResponse] def embedded_edit_url(template_id, embedded_edit_url_request, opts = {}) data, _status_code, _headers = embedded_edit_url_with_http_info(template_id, embedded_edit_url_request, opts) @@ -40,6 +41,7 @@ def embedded_edit_url(template_id, embedded_edit_url_request, opts = {}) # @param template_id [String] The id of the template to edit. # @param embedded_edit_url_request [EmbeddedEditUrlRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(EmbeddedEditUrlResponse, Integer, Hash)>] EmbeddedEditUrlResponse data, response status code and response headers def embedded_edit_url_with_http_info(template_id, embedded_edit_url_request, opts = {}) if @api_client.config.debugging @@ -53,6 +55,14 @@ def embedded_edit_url_with_http_info(template_id, embedded_edit_url_request, opt if @api_client.config.client_side_validation && embedded_edit_url_request.nil? fail ArgumentError, "Missing the required parameter 'embedded_edit_url_request' when calling EmbeddedApi.embedded_edit_url" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling EmbeddedApi.embedded_edit_url, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling EmbeddedApi.embedded_edit_url, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/embedded/edit_url/{template_id}'.sub('{' + 'template_id' + '}', CGI.escape(template_id.to_s)) @@ -68,6 +78,7 @@ def embedded_edit_url_with_http_info(template_id, embedded_edit_url_request, opt if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} diff --git a/sdks/ruby/lib/dropbox-sign/api/fax_api.rb b/sdks/ruby/lib/dropbox-sign/api/fax_api.rb index 04d04eb8c..5bf83077d 100644 --- a/sdks/ruby/lib/dropbox-sign/api/fax_api.rb +++ b/sdks/ruby/lib/dropbox-sign/api/fax_api.rb @@ -400,6 +400,7 @@ def fax_list_with_http_info(opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/FaxSendExample.rb # @param fax_send_request [FaxSendRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [FaxGetResponse] def fax_send(fax_send_request, opts = {}) data, _status_code, _headers = fax_send_with_http_info(fax_send_request, opts) @@ -411,6 +412,7 @@ def fax_send(fax_send_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/FaxSendExample.rb # @param fax_send_request [FaxSendRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(FaxGetResponse, Integer, Hash)>] FaxGetResponse data, response status code and response headers def fax_send_with_http_info(fax_send_request, opts = {}) if @api_client.config.debugging @@ -420,6 +422,14 @@ def fax_send_with_http_info(fax_send_request, opts = {}) if @api_client.config.client_side_validation && fax_send_request.nil? fail ArgumentError, "Missing the required parameter 'fax_send_request' when calling FaxApi.fax_send" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling FaxApi.fax_send, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling FaxApi.fax_send, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/fax/send' @@ -435,6 +445,7 @@ def fax_send_with_http_info(fax_send_request, opts = {}) if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} diff --git a/sdks/ruby/lib/dropbox-sign/api/fax_line_api.rb b/sdks/ruby/lib/dropbox-sign/api/fax_line_api.rb index 232aaa736..0d4485664 100644 --- a/sdks/ruby/lib/dropbox-sign/api/fax_line_api.rb +++ b/sdks/ruby/lib/dropbox-sign/api/fax_line_api.rb @@ -27,6 +27,7 @@ def initialize(api_client = ApiClient.default) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/FaxLineAddUserExample.rb # @param fax_line_add_user_request [FaxLineAddUserRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [FaxLineResponse] def fax_line_add_user(fax_line_add_user_request, opts = {}) data, _status_code, _headers = fax_line_add_user_with_http_info(fax_line_add_user_request, opts) @@ -38,6 +39,7 @@ def fax_line_add_user(fax_line_add_user_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/FaxLineAddUserExample.rb # @param fax_line_add_user_request [FaxLineAddUserRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(FaxLineResponse, Integer, Hash)>] FaxLineResponse data, response status code and response headers def fax_line_add_user_with_http_info(fax_line_add_user_request, opts = {}) if @api_client.config.debugging @@ -47,6 +49,14 @@ def fax_line_add_user_with_http_info(fax_line_add_user_request, opts = {}) if @api_client.config.client_side_validation && fax_line_add_user_request.nil? fail ArgumentError, "Missing the required parameter 'fax_line_add_user_request' when calling FaxLineApi.fax_line_add_user" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling FaxLineApi.fax_line_add_user, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling FaxLineApi.fax_line_add_user, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/fax_line/add_user' @@ -62,6 +72,7 @@ def fax_line_add_user_with_http_info(fax_line_add_user_request, opts = {}) if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -259,6 +270,7 @@ def fax_line_area_code_get_with_http_info(country, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/FaxLineCreateExample.rb # @param fax_line_create_request [FaxLineCreateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [FaxLineResponse] def fax_line_create(fax_line_create_request, opts = {}) data, _status_code, _headers = fax_line_create_with_http_info(fax_line_create_request, opts) @@ -270,6 +282,7 @@ def fax_line_create(fax_line_create_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/FaxLineCreateExample.rb # @param fax_line_create_request [FaxLineCreateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(FaxLineResponse, Integer, Hash)>] FaxLineResponse data, response status code and response headers def fax_line_create_with_http_info(fax_line_create_request, opts = {}) if @api_client.config.debugging @@ -279,6 +292,14 @@ def fax_line_create_with_http_info(fax_line_create_request, opts = {}) if @api_client.config.client_side_validation && fax_line_create_request.nil? fail ArgumentError, "Missing the required parameter 'fax_line_create_request' when calling FaxLineApi.fax_line_create" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling FaxLineApi.fax_line_create, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling FaxLineApi.fax_line_create, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/fax_line/create' @@ -294,6 +315,7 @@ def fax_line_create_with_http_info(fax_line_create_request, opts = {}) if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -657,6 +679,7 @@ def fax_line_list_with_http_info(opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/FaxLineRemoveUserExample.rb # @param fax_line_remove_user_request [FaxLineRemoveUserRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [FaxLineResponse] def fax_line_remove_user(fax_line_remove_user_request, opts = {}) data, _status_code, _headers = fax_line_remove_user_with_http_info(fax_line_remove_user_request, opts) @@ -668,6 +691,7 @@ def fax_line_remove_user(fax_line_remove_user_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/FaxLineRemoveUserExample.rb # @param fax_line_remove_user_request [FaxLineRemoveUserRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(FaxLineResponse, Integer, Hash)>] FaxLineResponse data, response status code and response headers def fax_line_remove_user_with_http_info(fax_line_remove_user_request, opts = {}) if @api_client.config.debugging @@ -677,6 +701,14 @@ def fax_line_remove_user_with_http_info(fax_line_remove_user_request, opts = {}) if @api_client.config.client_side_validation && fax_line_remove_user_request.nil? fail ArgumentError, "Missing the required parameter 'fax_line_remove_user_request' when calling FaxLineApi.fax_line_remove_user" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling FaxLineApi.fax_line_remove_user, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling FaxLineApi.fax_line_remove_user, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/fax_line/remove_user' @@ -692,6 +724,7 @@ def fax_line_remove_user_with_http_info(fax_line_remove_user_request, opts = {}) if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} diff --git a/sdks/ruby/lib/dropbox-sign/api/report_api.rb b/sdks/ruby/lib/dropbox-sign/api/report_api.rb index a6e414821..c889678dd 100644 --- a/sdks/ruby/lib/dropbox-sign/api/report_api.rb +++ b/sdks/ruby/lib/dropbox-sign/api/report_api.rb @@ -27,6 +27,7 @@ def initialize(api_client = ApiClient.default) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/ReportCreateExample.rb # @param report_create_request [ReportCreateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [ReportCreateResponse] def report_create(report_create_request, opts = {}) data, _status_code, _headers = report_create_with_http_info(report_create_request, opts) @@ -38,6 +39,7 @@ def report_create(report_create_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/ReportCreateExample.rb # @param report_create_request [ReportCreateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(ReportCreateResponse, Integer, Hash)>] ReportCreateResponse data, response status code and response headers def report_create_with_http_info(report_create_request, opts = {}) if @api_client.config.debugging @@ -47,6 +49,14 @@ def report_create_with_http_info(report_create_request, opts = {}) if @api_client.config.client_side_validation && report_create_request.nil? fail ArgumentError, "Missing the required parameter 'report_create_request' when calling ReportApi.report_create" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling ReportApi.report_create, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling ReportApi.report_create, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/report/create' @@ -62,6 +72,7 @@ def report_create_with_http_info(report_create_request, opts = {}) if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} diff --git a/sdks/ruby/lib/dropbox-sign/api/signature_request_api.rb b/sdks/ruby/lib/dropbox-sign/api/signature_request_api.rb index 84294f5b2..eb09a2051 100644 --- a/sdks/ruby/lib/dropbox-sign/api/signature_request_api.rb +++ b/sdks/ruby/lib/dropbox-sign/api/signature_request_api.rb @@ -27,6 +27,7 @@ def initialize(api_client = ApiClient.default) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.rb # @param signature_request_bulk_create_embedded_with_template_request [SignatureRequestBulkCreateEmbeddedWithTemplateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [BulkSendJobSendResponse] def signature_request_bulk_create_embedded_with_template(signature_request_bulk_create_embedded_with_template_request, opts = {}) data, _status_code, _headers = signature_request_bulk_create_embedded_with_template_with_http_info(signature_request_bulk_create_embedded_with_template_request, opts) @@ -38,6 +39,7 @@ def signature_request_bulk_create_embedded_with_template(signature_request_bulk_ # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.rb # @param signature_request_bulk_create_embedded_with_template_request [SignatureRequestBulkCreateEmbeddedWithTemplateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(BulkSendJobSendResponse, Integer, Hash)>] BulkSendJobSendResponse data, response status code and response headers def signature_request_bulk_create_embedded_with_template_with_http_info(signature_request_bulk_create_embedded_with_template_request, opts = {}) if @api_client.config.debugging @@ -47,6 +49,14 @@ def signature_request_bulk_create_embedded_with_template_with_http_info(signatur if @api_client.config.client_side_validation && signature_request_bulk_create_embedded_with_template_request.nil? fail ArgumentError, "Missing the required parameter 'signature_request_bulk_create_embedded_with_template_request' when calling SignatureRequestApi.signature_request_bulk_create_embedded_with_template" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_bulk_create_embedded_with_template, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_bulk_create_embedded_with_template, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/signature_request/bulk_create_embedded_with_template' @@ -62,6 +72,7 @@ def signature_request_bulk_create_embedded_with_template_with_http_info(signatur if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -139,6 +150,7 @@ def signature_request_bulk_create_embedded_with_template_with_http_info(signatur # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.rb # @param signature_request_bulk_send_with_template_request [SignatureRequestBulkSendWithTemplateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [BulkSendJobSendResponse] def signature_request_bulk_send_with_template(signature_request_bulk_send_with_template_request, opts = {}) data, _status_code, _headers = signature_request_bulk_send_with_template_with_http_info(signature_request_bulk_send_with_template_request, opts) @@ -150,6 +162,7 @@ def signature_request_bulk_send_with_template(signature_request_bulk_send_with_t # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.rb # @param signature_request_bulk_send_with_template_request [SignatureRequestBulkSendWithTemplateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(BulkSendJobSendResponse, Integer, Hash)>] BulkSendJobSendResponse data, response status code and response headers def signature_request_bulk_send_with_template_with_http_info(signature_request_bulk_send_with_template_request, opts = {}) if @api_client.config.debugging @@ -159,6 +172,14 @@ def signature_request_bulk_send_with_template_with_http_info(signature_request_b if @api_client.config.client_side_validation && signature_request_bulk_send_with_template_request.nil? fail ArgumentError, "Missing the required parameter 'signature_request_bulk_send_with_template_request' when calling SignatureRequestApi.signature_request_bulk_send_with_template" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_bulk_send_with_template, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_bulk_send_with_template, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/signature_request/bulk_send_with_template' @@ -174,6 +195,7 @@ def signature_request_bulk_send_with_template_with_http_info(signature_request_b if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -251,6 +273,7 @@ def signature_request_bulk_send_with_template_with_http_info(signature_request_b # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestCancelExample.rb # @param signature_request_id [String] The id of the incomplete SignatureRequest to cancel. # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [nil] def signature_request_cancel(signature_request_id, opts = {}) signature_request_cancel_with_http_info(signature_request_id, opts) @@ -262,6 +285,7 @@ def signature_request_cancel(signature_request_id, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestCancelExample.rb # @param signature_request_id [String] The id of the incomplete SignatureRequest to cancel. # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def signature_request_cancel_with_http_info(signature_request_id, opts = {}) if @api_client.config.debugging @@ -271,6 +295,14 @@ def signature_request_cancel_with_http_info(signature_request_id, opts = {}) if @api_client.config.client_side_validation && signature_request_id.nil? fail ArgumentError, "Missing the required parameter 'signature_request_id' when calling SignatureRequestApi.signature_request_cancel" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_cancel, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_cancel, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/signature_request/cancel/{signature_request_id}'.sub('{' + 'signature_request_id' + '}', CGI.escape(signature_request_id.to_s)) @@ -281,6 +313,7 @@ def signature_request_cancel_with_http_info(signature_request_id, opts = {}) header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -321,6 +354,7 @@ def signature_request_cancel_with_http_info(signature_request_id, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestCreateEmbeddedExample.rb # @param signature_request_create_embedded_request [SignatureRequestCreateEmbeddedRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [SignatureRequestGetResponse] def signature_request_create_embedded(signature_request_create_embedded_request, opts = {}) data, _status_code, _headers = signature_request_create_embedded_with_http_info(signature_request_create_embedded_request, opts) @@ -332,6 +366,7 @@ def signature_request_create_embedded(signature_request_create_embedded_request, # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestCreateEmbeddedExample.rb # @param signature_request_create_embedded_request [SignatureRequestCreateEmbeddedRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(SignatureRequestGetResponse, Integer, Hash)>] SignatureRequestGetResponse data, response status code and response headers def signature_request_create_embedded_with_http_info(signature_request_create_embedded_request, opts = {}) if @api_client.config.debugging @@ -341,6 +376,14 @@ def signature_request_create_embedded_with_http_info(signature_request_create_em if @api_client.config.client_side_validation && signature_request_create_embedded_request.nil? fail ArgumentError, "Missing the required parameter 'signature_request_create_embedded_request' when calling SignatureRequestApi.signature_request_create_embedded" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_create_embedded, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_create_embedded, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/signature_request/create_embedded' @@ -356,6 +399,7 @@ def signature_request_create_embedded_with_http_info(signature_request_create_em if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -433,6 +477,7 @@ def signature_request_create_embedded_with_http_info(signature_request_create_em # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.rb # @param signature_request_create_embedded_with_template_request [SignatureRequestCreateEmbeddedWithTemplateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [SignatureRequestGetResponse] def signature_request_create_embedded_with_template(signature_request_create_embedded_with_template_request, opts = {}) data, _status_code, _headers = signature_request_create_embedded_with_template_with_http_info(signature_request_create_embedded_with_template_request, opts) @@ -444,6 +489,7 @@ def signature_request_create_embedded_with_template(signature_request_create_emb # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.rb # @param signature_request_create_embedded_with_template_request [SignatureRequestCreateEmbeddedWithTemplateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(SignatureRequestGetResponse, Integer, Hash)>] SignatureRequestGetResponse data, response status code and response headers def signature_request_create_embedded_with_template_with_http_info(signature_request_create_embedded_with_template_request, opts = {}) if @api_client.config.debugging @@ -453,6 +499,14 @@ def signature_request_create_embedded_with_template_with_http_info(signature_req if @api_client.config.client_side_validation && signature_request_create_embedded_with_template_request.nil? fail ArgumentError, "Missing the required parameter 'signature_request_create_embedded_with_template_request' when calling SignatureRequestApi.signature_request_create_embedded_with_template" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_create_embedded_with_template, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_create_embedded_with_template, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/signature_request/create_embedded_with_template' @@ -468,6 +522,7 @@ def signature_request_create_embedded_with_template_with_http_info(signature_req if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -546,6 +601,7 @@ def signature_request_create_embedded_with_template_with_http_info(signature_req # @param signature_request_id [String] The id of the SignatureRequest to edit. # @param signature_request_edit_request [SignatureRequestEditRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [SignatureRequestGetResponse] def signature_request_edit(signature_request_id, signature_request_edit_request, opts = {}) data, _status_code, _headers = signature_request_edit_with_http_info(signature_request_id, signature_request_edit_request, opts) @@ -558,6 +614,7 @@ def signature_request_edit(signature_request_id, signature_request_edit_request, # @param signature_request_id [String] The id of the SignatureRequest to edit. # @param signature_request_edit_request [SignatureRequestEditRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(SignatureRequestGetResponse, Integer, Hash)>] SignatureRequestGetResponse data, response status code and response headers def signature_request_edit_with_http_info(signature_request_id, signature_request_edit_request, opts = {}) if @api_client.config.debugging @@ -571,6 +628,14 @@ def signature_request_edit_with_http_info(signature_request_id, signature_reques if @api_client.config.client_side_validation && signature_request_edit_request.nil? fail ArgumentError, "Missing the required parameter 'signature_request_edit_request' when calling SignatureRequestApi.signature_request_edit" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_edit, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_edit, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/signature_request/edit/{signature_request_id}'.sub('{' + 'signature_request_id' + '}', CGI.escape(signature_request_id.to_s)) @@ -586,6 +651,7 @@ def signature_request_edit_with_http_info(signature_request_id, signature_reques if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -664,6 +730,7 @@ def signature_request_edit_with_http_info(signature_request_id, signature_reques # @param signature_request_id [String] The id of the SignatureRequest to edit. # @param signature_request_edit_embedded_request [SignatureRequestEditEmbeddedRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [SignatureRequestGetResponse] def signature_request_edit_embedded(signature_request_id, signature_request_edit_embedded_request, opts = {}) data, _status_code, _headers = signature_request_edit_embedded_with_http_info(signature_request_id, signature_request_edit_embedded_request, opts) @@ -676,6 +743,7 @@ def signature_request_edit_embedded(signature_request_id, signature_request_edit # @param signature_request_id [String] The id of the SignatureRequest to edit. # @param signature_request_edit_embedded_request [SignatureRequestEditEmbeddedRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(SignatureRequestGetResponse, Integer, Hash)>] SignatureRequestGetResponse data, response status code and response headers def signature_request_edit_embedded_with_http_info(signature_request_id, signature_request_edit_embedded_request, opts = {}) if @api_client.config.debugging @@ -689,6 +757,14 @@ def signature_request_edit_embedded_with_http_info(signature_request_id, signatu if @api_client.config.client_side_validation && signature_request_edit_embedded_request.nil? fail ArgumentError, "Missing the required parameter 'signature_request_edit_embedded_request' when calling SignatureRequestApi.signature_request_edit_embedded" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_edit_embedded, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_edit_embedded, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/signature_request/edit_embedded/{signature_request_id}'.sub('{' + 'signature_request_id' + '}', CGI.escape(signature_request_id.to_s)) @@ -704,6 +780,7 @@ def signature_request_edit_embedded_with_http_info(signature_request_id, signatu if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -782,6 +859,7 @@ def signature_request_edit_embedded_with_http_info(signature_request_id, signatu # @param signature_request_id [String] The id of the SignatureRequest to edit. # @param signature_request_edit_embedded_with_template_request [SignatureRequestEditEmbeddedWithTemplateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [SignatureRequestGetResponse] def signature_request_edit_embedded_with_template(signature_request_id, signature_request_edit_embedded_with_template_request, opts = {}) data, _status_code, _headers = signature_request_edit_embedded_with_template_with_http_info(signature_request_id, signature_request_edit_embedded_with_template_request, opts) @@ -794,6 +872,7 @@ def signature_request_edit_embedded_with_template(signature_request_id, signatur # @param signature_request_id [String] The id of the SignatureRequest to edit. # @param signature_request_edit_embedded_with_template_request [SignatureRequestEditEmbeddedWithTemplateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(SignatureRequestGetResponse, Integer, Hash)>] SignatureRequestGetResponse data, response status code and response headers def signature_request_edit_embedded_with_template_with_http_info(signature_request_id, signature_request_edit_embedded_with_template_request, opts = {}) if @api_client.config.debugging @@ -807,6 +886,14 @@ def signature_request_edit_embedded_with_template_with_http_info(signature_reque if @api_client.config.client_side_validation && signature_request_edit_embedded_with_template_request.nil? fail ArgumentError, "Missing the required parameter 'signature_request_edit_embedded_with_template_request' when calling SignatureRequestApi.signature_request_edit_embedded_with_template" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_edit_embedded_with_template, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_edit_embedded_with_template, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/signature_request/edit_embedded_with_template/{signature_request_id}'.sub('{' + 'signature_request_id' + '}', CGI.escape(signature_request_id.to_s)) @@ -822,6 +909,7 @@ def signature_request_edit_embedded_with_template_with_http_info(signature_reque if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -900,6 +988,7 @@ def signature_request_edit_embedded_with_template_with_http_info(signature_reque # @param signature_request_id [String] The id of the SignatureRequest to edit. # @param signature_request_edit_with_template_request [SignatureRequestEditWithTemplateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [SignatureRequestGetResponse] def signature_request_edit_with_template(signature_request_id, signature_request_edit_with_template_request, opts = {}) data, _status_code, _headers = signature_request_edit_with_template_with_http_info(signature_request_id, signature_request_edit_with_template_request, opts) @@ -912,6 +1001,7 @@ def signature_request_edit_with_template(signature_request_id, signature_request # @param signature_request_id [String] The id of the SignatureRequest to edit. # @param signature_request_edit_with_template_request [SignatureRequestEditWithTemplateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(SignatureRequestGetResponse, Integer, Hash)>] SignatureRequestGetResponse data, response status code and response headers def signature_request_edit_with_template_with_http_info(signature_request_id, signature_request_edit_with_template_request, opts = {}) if @api_client.config.debugging @@ -925,6 +1015,14 @@ def signature_request_edit_with_template_with_http_info(signature_request_id, si if @api_client.config.client_side_validation && signature_request_edit_with_template_request.nil? fail ArgumentError, "Missing the required parameter 'signature_request_edit_with_template_request' when calling SignatureRequestApi.signature_request_edit_with_template" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_edit_with_template, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_edit_with_template, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/signature_request/edit_with_template/{signature_request_id}'.sub('{' + 'signature_request_id' + '}', CGI.escape(signature_request_id.to_s)) @@ -940,6 +1038,7 @@ def signature_request_edit_with_template_with_http_info(signature_request_id, si if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -1518,6 +1617,7 @@ def signature_request_list_with_http_info(opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestReleaseHoldExample.rb # @param signature_request_id [String] The id of the SignatureRequest to release. # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [SignatureRequestGetResponse] def signature_request_release_hold(signature_request_id, opts = {}) data, _status_code, _headers = signature_request_release_hold_with_http_info(signature_request_id, opts) @@ -1529,6 +1629,7 @@ def signature_request_release_hold(signature_request_id, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestReleaseHoldExample.rb # @param signature_request_id [String] The id of the SignatureRequest to release. # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(SignatureRequestGetResponse, Integer, Hash)>] SignatureRequestGetResponse data, response status code and response headers def signature_request_release_hold_with_http_info(signature_request_id, opts = {}) if @api_client.config.debugging @@ -1538,6 +1639,14 @@ def signature_request_release_hold_with_http_info(signature_request_id, opts = { if @api_client.config.client_side_validation && signature_request_id.nil? fail ArgumentError, "Missing the required parameter 'signature_request_id' when calling SignatureRequestApi.signature_request_release_hold" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_release_hold, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_release_hold, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/signature_request/release_hold/{signature_request_id}'.sub('{' + 'signature_request_id' + '}', CGI.escape(signature_request_id.to_s)) @@ -1548,6 +1657,7 @@ def signature_request_release_hold_with_http_info(signature_request_id, opts = { header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -1616,6 +1726,7 @@ def signature_request_release_hold_with_http_info(signature_request_id, opts = { # @param signature_request_id [String] The id of the SignatureRequest to send a reminder for. # @param signature_request_remind_request [SignatureRequestRemindRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [SignatureRequestGetResponse] def signature_request_remind(signature_request_id, signature_request_remind_request, opts = {}) data, _status_code, _headers = signature_request_remind_with_http_info(signature_request_id, signature_request_remind_request, opts) @@ -1628,6 +1739,7 @@ def signature_request_remind(signature_request_id, signature_request_remind_requ # @param signature_request_id [String] The id of the SignatureRequest to send a reminder for. # @param signature_request_remind_request [SignatureRequestRemindRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(SignatureRequestGetResponse, Integer, Hash)>] SignatureRequestGetResponse data, response status code and response headers def signature_request_remind_with_http_info(signature_request_id, signature_request_remind_request, opts = {}) if @api_client.config.debugging @@ -1641,6 +1753,14 @@ def signature_request_remind_with_http_info(signature_request_id, signature_requ if @api_client.config.client_side_validation && signature_request_remind_request.nil? fail ArgumentError, "Missing the required parameter 'signature_request_remind_request' when calling SignatureRequestApi.signature_request_remind" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_remind, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_remind, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/signature_request/remind/{signature_request_id}'.sub('{' + 'signature_request_id' + '}', CGI.escape(signature_request_id.to_s)) @@ -1656,6 +1776,7 @@ def signature_request_remind_with_http_info(signature_request_id, signature_requ if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -1733,6 +1854,7 @@ def signature_request_remind_with_http_info(signature_request_id, signature_requ # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestRemoveExample.rb # @param signature_request_id [String] The id of the SignatureRequest to remove. # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [nil] def signature_request_remove(signature_request_id, opts = {}) signature_request_remove_with_http_info(signature_request_id, opts) @@ -1744,6 +1866,7 @@ def signature_request_remove(signature_request_id, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestRemoveExample.rb # @param signature_request_id [String] The id of the SignatureRequest to remove. # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def signature_request_remove_with_http_info(signature_request_id, opts = {}) if @api_client.config.debugging @@ -1753,6 +1876,14 @@ def signature_request_remove_with_http_info(signature_request_id, opts = {}) if @api_client.config.client_side_validation && signature_request_id.nil? fail ArgumentError, "Missing the required parameter 'signature_request_id' when calling SignatureRequestApi.signature_request_remove" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_remove, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_remove, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/signature_request/remove/{signature_request_id}'.sub('{' + 'signature_request_id' + '}', CGI.escape(signature_request_id.to_s)) @@ -1763,6 +1894,7 @@ def signature_request_remove_with_http_info(signature_request_id, opts = {}) header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -1803,6 +1935,7 @@ def signature_request_remove_with_http_info(signature_request_id, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestSendExample.rb # @param signature_request_send_request [SignatureRequestSendRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [SignatureRequestGetResponse] def signature_request_send(signature_request_send_request, opts = {}) data, _status_code, _headers = signature_request_send_with_http_info(signature_request_send_request, opts) @@ -1814,6 +1947,7 @@ def signature_request_send(signature_request_send_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestSendExample.rb # @param signature_request_send_request [SignatureRequestSendRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(SignatureRequestGetResponse, Integer, Hash)>] SignatureRequestGetResponse data, response status code and response headers def signature_request_send_with_http_info(signature_request_send_request, opts = {}) if @api_client.config.debugging @@ -1823,6 +1957,14 @@ def signature_request_send_with_http_info(signature_request_send_request, opts = if @api_client.config.client_side_validation && signature_request_send_request.nil? fail ArgumentError, "Missing the required parameter 'signature_request_send_request' when calling SignatureRequestApi.signature_request_send" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_send, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_send, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/signature_request/send' @@ -1838,6 +1980,7 @@ def signature_request_send_with_http_info(signature_request_send_request, opts = if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -1915,6 +2058,7 @@ def signature_request_send_with_http_info(signature_request_send_request, opts = # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestSendWithTemplateExample.rb # @param signature_request_send_with_template_request [SignatureRequestSendWithTemplateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [SignatureRequestGetResponse] def signature_request_send_with_template(signature_request_send_with_template_request, opts = {}) data, _status_code, _headers = signature_request_send_with_template_with_http_info(signature_request_send_with_template_request, opts) @@ -1926,6 +2070,7 @@ def signature_request_send_with_template(signature_request_send_with_template_re # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestSendWithTemplateExample.rb # @param signature_request_send_with_template_request [SignatureRequestSendWithTemplateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(SignatureRequestGetResponse, Integer, Hash)>] SignatureRequestGetResponse data, response status code and response headers def signature_request_send_with_template_with_http_info(signature_request_send_with_template_request, opts = {}) if @api_client.config.debugging @@ -1935,6 +2080,14 @@ def signature_request_send_with_template_with_http_info(signature_request_send_w if @api_client.config.client_side_validation && signature_request_send_with_template_request.nil? fail ArgumentError, "Missing the required parameter 'signature_request_send_with_template_request' when calling SignatureRequestApi.signature_request_send_with_template" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_send_with_template, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_send_with_template, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/signature_request/send_with_template' @@ -1950,6 +2103,7 @@ def signature_request_send_with_template_with_http_info(signature_request_send_w if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -2028,6 +2182,7 @@ def signature_request_send_with_template_with_http_info(signature_request_send_w # @param signature_request_id [String] The id of the SignatureRequest to update. # @param signature_request_update_request [SignatureRequestUpdateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [SignatureRequestGetResponse] def signature_request_update(signature_request_id, signature_request_update_request, opts = {}) data, _status_code, _headers = signature_request_update_with_http_info(signature_request_id, signature_request_update_request, opts) @@ -2040,6 +2195,7 @@ def signature_request_update(signature_request_id, signature_request_update_requ # @param signature_request_id [String] The id of the SignatureRequest to update. # @param signature_request_update_request [SignatureRequestUpdateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(SignatureRequestGetResponse, Integer, Hash)>] SignatureRequestGetResponse data, response status code and response headers def signature_request_update_with_http_info(signature_request_id, signature_request_update_request, opts = {}) if @api_client.config.debugging @@ -2053,6 +2209,14 @@ def signature_request_update_with_http_info(signature_request_id, signature_requ if @api_client.config.client_side_validation && signature_request_update_request.nil? fail ArgumentError, "Missing the required parameter 'signature_request_update_request' when calling SignatureRequestApi.signature_request_update" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_update, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_update, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/signature_request/update/{signature_request_id}'.sub('{' + 'signature_request_id' + '}', CGI.escape(signature_request_id.to_s)) @@ -2068,6 +2232,7 @@ def signature_request_update_with_http_info(signature_request_id, signature_requ if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} diff --git a/sdks/ruby/lib/dropbox-sign/api/team_api.rb b/sdks/ruby/lib/dropbox-sign/api/team_api.rb index bafc56226..40b1ea7a1 100644 --- a/sdks/ruby/lib/dropbox-sign/api/team_api.rb +++ b/sdks/ruby/lib/dropbox-sign/api/team_api.rb @@ -28,6 +28,7 @@ def initialize(api_client = ApiClient.default) # @param team_add_member_request [TeamAddMemberRequest] # @param [Hash] opts the optional parameters # @option opts [String] :team_id The id of the team. + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [TeamGetResponse] def team_add_member(team_add_member_request, opts = {}) data, _status_code, _headers = team_add_member_with_http_info(team_add_member_request, opts) @@ -40,6 +41,7 @@ def team_add_member(team_add_member_request, opts = {}) # @param team_add_member_request [TeamAddMemberRequest] # @param [Hash] opts the optional parameters # @option opts [String] :team_id The id of the team. + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(TeamGetResponse, Integer, Hash)>] TeamGetResponse data, response status code and response headers def team_add_member_with_http_info(team_add_member_request, opts = {}) if @api_client.config.debugging @@ -49,6 +51,14 @@ def team_add_member_with_http_info(team_add_member_request, opts = {}) if @api_client.config.client_side_validation && team_add_member_request.nil? fail ArgumentError, "Missing the required parameter 'team_add_member_request' when calling TeamApi.team_add_member" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TeamApi.team_add_member, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TeamApi.team_add_member, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/team/add_member' @@ -65,6 +75,7 @@ def team_add_member_with_http_info(team_add_member_request, opts = {}) if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -142,6 +153,7 @@ def team_add_member_with_http_info(team_add_member_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/TeamCreateExample.rb # @param team_create_request [TeamCreateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [TeamGetResponse] def team_create(team_create_request, opts = {}) data, _status_code, _headers = team_create_with_http_info(team_create_request, opts) @@ -153,6 +165,7 @@ def team_create(team_create_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/TeamCreateExample.rb # @param team_create_request [TeamCreateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(TeamGetResponse, Integer, Hash)>] TeamGetResponse data, response status code and response headers def team_create_with_http_info(team_create_request, opts = {}) if @api_client.config.debugging @@ -162,6 +175,14 @@ def team_create_with_http_info(team_create_request, opts = {}) if @api_client.config.client_side_validation && team_create_request.nil? fail ArgumentError, "Missing the required parameter 'team_create_request' when calling TeamApi.team_create" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TeamApi.team_create, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TeamApi.team_create, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/team/create' @@ -177,6 +198,7 @@ def team_create_with_http_info(team_create_request, opts = {}) if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -708,6 +730,7 @@ def team_members_with_http_info(team_id, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/TeamRemoveMemberExample.rb # @param team_remove_member_request [TeamRemoveMemberRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [TeamGetResponse] def team_remove_member(team_remove_member_request, opts = {}) data, _status_code, _headers = team_remove_member_with_http_info(team_remove_member_request, opts) @@ -719,6 +742,7 @@ def team_remove_member(team_remove_member_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/TeamRemoveMemberExample.rb # @param team_remove_member_request [TeamRemoveMemberRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(TeamGetResponse, Integer, Hash)>] TeamGetResponse data, response status code and response headers def team_remove_member_with_http_info(team_remove_member_request, opts = {}) if @api_client.config.debugging @@ -728,6 +752,14 @@ def team_remove_member_with_http_info(team_remove_member_request, opts = {}) if @api_client.config.client_side_validation && team_remove_member_request.nil? fail ArgumentError, "Missing the required parameter 'team_remove_member_request' when calling TeamApi.team_remove_member" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TeamApi.team_remove_member, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TeamApi.team_remove_member, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/team/remove_member' @@ -743,6 +775,7 @@ def team_remove_member_with_http_info(team_remove_member_request, opts = {}) if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -931,6 +964,7 @@ def team_sub_teams_with_http_info(team_id, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/TeamUpdateExample.rb # @param team_update_request [TeamUpdateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [TeamGetResponse] def team_update(team_update_request, opts = {}) data, _status_code, _headers = team_update_with_http_info(team_update_request, opts) @@ -942,6 +976,7 @@ def team_update(team_update_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/TeamUpdateExample.rb # @param team_update_request [TeamUpdateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(TeamGetResponse, Integer, Hash)>] TeamGetResponse data, response status code and response headers def team_update_with_http_info(team_update_request, opts = {}) if @api_client.config.debugging @@ -951,6 +986,14 @@ def team_update_with_http_info(team_update_request, opts = {}) if @api_client.config.client_side_validation && team_update_request.nil? fail ArgumentError, "Missing the required parameter 'team_update_request' when calling TeamApi.team_update" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TeamApi.team_update, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TeamApi.team_update, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/team' @@ -966,6 +1009,7 @@ def team_update_with_http_info(team_update_request, opts = {}) if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} diff --git a/sdks/ruby/lib/dropbox-sign/api/template_api.rb b/sdks/ruby/lib/dropbox-sign/api/template_api.rb index e88070145..93ecb7f5b 100644 --- a/sdks/ruby/lib/dropbox-sign/api/template_api.rb +++ b/sdks/ruby/lib/dropbox-sign/api/template_api.rb @@ -28,6 +28,7 @@ def initialize(api_client = ApiClient.default) # @param template_id [String] The id of the Template to give the Account access to. # @param template_add_user_request [TemplateAddUserRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [TemplateGetResponse] def template_add_user(template_id, template_add_user_request, opts = {}) data, _status_code, _headers = template_add_user_with_http_info(template_id, template_add_user_request, opts) @@ -40,6 +41,7 @@ def template_add_user(template_id, template_add_user_request, opts = {}) # @param template_id [String] The id of the Template to give the Account access to. # @param template_add_user_request [TemplateAddUserRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(TemplateGetResponse, Integer, Hash)>] TemplateGetResponse data, response status code and response headers def template_add_user_with_http_info(template_id, template_add_user_request, opts = {}) if @api_client.config.debugging @@ -53,6 +55,14 @@ def template_add_user_with_http_info(template_id, template_add_user_request, opt if @api_client.config.client_side_validation && template_add_user_request.nil? fail ArgumentError, "Missing the required parameter 'template_add_user_request' when calling TemplateApi.template_add_user" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TemplateApi.template_add_user, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TemplateApi.template_add_user, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/template/add_user/{template_id}'.sub('{' + 'template_id' + '}', CGI.escape(template_id.to_s)) @@ -68,6 +78,7 @@ def template_add_user_with_http_info(template_id, template_add_user_request, opt if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -145,6 +156,7 @@ def template_add_user_with_http_info(template_id, template_add_user_request, opt # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/TemplateCreateExample.rb # @param template_create_request [TemplateCreateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [TemplateCreateResponse] def template_create(template_create_request, opts = {}) data, _status_code, _headers = template_create_with_http_info(template_create_request, opts) @@ -156,6 +168,7 @@ def template_create(template_create_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/TemplateCreateExample.rb # @param template_create_request [TemplateCreateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(TemplateCreateResponse, Integer, Hash)>] TemplateCreateResponse data, response status code and response headers def template_create_with_http_info(template_create_request, opts = {}) if @api_client.config.debugging @@ -165,6 +178,14 @@ def template_create_with_http_info(template_create_request, opts = {}) if @api_client.config.client_side_validation && template_create_request.nil? fail ArgumentError, "Missing the required parameter 'template_create_request' when calling TemplateApi.template_create" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TemplateApi.template_create, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TemplateApi.template_create, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/template/create' @@ -180,6 +201,7 @@ def template_create_with_http_info(template_create_request, opts = {}) if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -257,6 +279,7 @@ def template_create_with_http_info(template_create_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/TemplateCreateEmbeddedDraftExample.rb # @param template_create_embedded_draft_request [TemplateCreateEmbeddedDraftRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [TemplateCreateEmbeddedDraftResponse] def template_create_embedded_draft(template_create_embedded_draft_request, opts = {}) data, _status_code, _headers = template_create_embedded_draft_with_http_info(template_create_embedded_draft_request, opts) @@ -268,6 +291,7 @@ def template_create_embedded_draft(template_create_embedded_draft_request, opts # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/TemplateCreateEmbeddedDraftExample.rb # @param template_create_embedded_draft_request [TemplateCreateEmbeddedDraftRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(TemplateCreateEmbeddedDraftResponse, Integer, Hash)>] TemplateCreateEmbeddedDraftResponse data, response status code and response headers def template_create_embedded_draft_with_http_info(template_create_embedded_draft_request, opts = {}) if @api_client.config.debugging @@ -277,6 +301,14 @@ def template_create_embedded_draft_with_http_info(template_create_embedded_draft if @api_client.config.client_side_validation && template_create_embedded_draft_request.nil? fail ArgumentError, "Missing the required parameter 'template_create_embedded_draft_request' when calling TemplateApi.template_create_embedded_draft" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TemplateApi.template_create_embedded_draft, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TemplateApi.template_create_embedded_draft, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/template/create_embedded_draft' @@ -292,6 +324,7 @@ def template_create_embedded_draft_with_http_info(template_create_embedded_draft if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -369,6 +402,7 @@ def template_create_embedded_draft_with_http_info(template_create_embedded_draft # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/TemplateDeleteExample.rb # @param template_id [String] The id of the Template to delete. # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [nil] def template_delete(template_id, opts = {}) template_delete_with_http_info(template_id, opts) @@ -380,6 +414,7 @@ def template_delete(template_id, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/TemplateDeleteExample.rb # @param template_id [String] The id of the Template to delete. # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def template_delete_with_http_info(template_id, opts = {}) if @api_client.config.debugging @@ -389,6 +424,14 @@ def template_delete_with_http_info(template_id, opts = {}) if @api_client.config.client_side_validation && template_id.nil? fail ArgumentError, "Missing the required parameter 'template_id' when calling TemplateApi.template_delete" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TemplateApi.template_delete, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TemplateApi.template_delete, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/template/delete/{template_id}'.sub('{' + 'template_id' + '}', CGI.escape(template_id.to_s)) @@ -399,6 +442,7 @@ def template_delete_with_http_info(template_id, opts = {}) header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -949,6 +993,7 @@ def template_list_with_http_info(opts = {}) # @param template_id [String] The id of the Template to remove the Account's access to. # @param template_remove_user_request [TemplateRemoveUserRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [TemplateGetResponse] def template_remove_user(template_id, template_remove_user_request, opts = {}) data, _status_code, _headers = template_remove_user_with_http_info(template_id, template_remove_user_request, opts) @@ -961,6 +1006,7 @@ def template_remove_user(template_id, template_remove_user_request, opts = {}) # @param template_id [String] The id of the Template to remove the Account's access to. # @param template_remove_user_request [TemplateRemoveUserRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(TemplateGetResponse, Integer, Hash)>] TemplateGetResponse data, response status code and response headers def template_remove_user_with_http_info(template_id, template_remove_user_request, opts = {}) if @api_client.config.debugging @@ -974,6 +1020,14 @@ def template_remove_user_with_http_info(template_id, template_remove_user_reques if @api_client.config.client_side_validation && template_remove_user_request.nil? fail ArgumentError, "Missing the required parameter 'template_remove_user_request' when calling TemplateApi.template_remove_user" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TemplateApi.template_remove_user, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TemplateApi.template_remove_user, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/template/remove_user/{template_id}'.sub('{' + 'template_id' + '}', CGI.escape(template_id.to_s)) @@ -989,6 +1043,7 @@ def template_remove_user_with_http_info(template_id, template_remove_user_reques if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -1067,6 +1122,7 @@ def template_remove_user_with_http_info(template_id, template_remove_user_reques # @param template_id [String] The ID of the template whose files to update. # @param template_update_files_request [TemplateUpdateFilesRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [TemplateUpdateFilesResponse] def template_update_files(template_id, template_update_files_request, opts = {}) data, _status_code, _headers = template_update_files_with_http_info(template_id, template_update_files_request, opts) @@ -1079,6 +1135,7 @@ def template_update_files(template_id, template_update_files_request, opts = {}) # @param template_id [String] The ID of the template whose files to update. # @param template_update_files_request [TemplateUpdateFilesRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(TemplateUpdateFilesResponse, Integer, Hash)>] TemplateUpdateFilesResponse data, response status code and response headers def template_update_files_with_http_info(template_id, template_update_files_request, opts = {}) if @api_client.config.debugging @@ -1092,6 +1149,14 @@ def template_update_files_with_http_info(template_id, template_update_files_requ if @api_client.config.client_side_validation && template_update_files_request.nil? fail ArgumentError, "Missing the required parameter 'template_update_files_request' when calling TemplateApi.template_update_files" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TemplateApi.template_update_files, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TemplateApi.template_update_files, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/template/update_files/{template_id}'.sub('{' + 'template_id' + '}', CGI.escape(template_id.to_s)) @@ -1107,6 +1172,7 @@ def template_update_files_with_http_info(template_id, template_update_files_requ if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} diff --git a/sdks/ruby/lib/dropbox-sign/api/unclaimed_draft_api.rb b/sdks/ruby/lib/dropbox-sign/api/unclaimed_draft_api.rb index 27f4e10ab..a7c0d396a 100644 --- a/sdks/ruby/lib/dropbox-sign/api/unclaimed_draft_api.rb +++ b/sdks/ruby/lib/dropbox-sign/api/unclaimed_draft_api.rb @@ -27,6 +27,7 @@ def initialize(api_client = ApiClient.default) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/UnclaimedDraftCreateExample.rb # @param unclaimed_draft_create_request [UnclaimedDraftCreateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [UnclaimedDraftCreateResponse] def unclaimed_draft_create(unclaimed_draft_create_request, opts = {}) data, _status_code, _headers = unclaimed_draft_create_with_http_info(unclaimed_draft_create_request, opts) @@ -38,6 +39,7 @@ def unclaimed_draft_create(unclaimed_draft_create_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/UnclaimedDraftCreateExample.rb # @param unclaimed_draft_create_request [UnclaimedDraftCreateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(UnclaimedDraftCreateResponse, Integer, Hash)>] UnclaimedDraftCreateResponse data, response status code and response headers def unclaimed_draft_create_with_http_info(unclaimed_draft_create_request, opts = {}) if @api_client.config.debugging @@ -47,6 +49,14 @@ def unclaimed_draft_create_with_http_info(unclaimed_draft_create_request, opts = if @api_client.config.client_side_validation && unclaimed_draft_create_request.nil? fail ArgumentError, "Missing the required parameter 'unclaimed_draft_create_request' when calling UnclaimedDraftApi.unclaimed_draft_create" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling UnclaimedDraftApi.unclaimed_draft_create, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling UnclaimedDraftApi.unclaimed_draft_create, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/unclaimed_draft/create' @@ -62,6 +72,7 @@ def unclaimed_draft_create_with_http_info(unclaimed_draft_create_request, opts = if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -139,6 +150,7 @@ def unclaimed_draft_create_with_http_info(unclaimed_draft_create_request, opts = # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.rb # @param unclaimed_draft_create_embedded_request [UnclaimedDraftCreateEmbeddedRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [UnclaimedDraftCreateResponse] def unclaimed_draft_create_embedded(unclaimed_draft_create_embedded_request, opts = {}) data, _status_code, _headers = unclaimed_draft_create_embedded_with_http_info(unclaimed_draft_create_embedded_request, opts) @@ -150,6 +162,7 @@ def unclaimed_draft_create_embedded(unclaimed_draft_create_embedded_request, opt # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.rb # @param unclaimed_draft_create_embedded_request [UnclaimedDraftCreateEmbeddedRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(UnclaimedDraftCreateResponse, Integer, Hash)>] UnclaimedDraftCreateResponse data, response status code and response headers def unclaimed_draft_create_embedded_with_http_info(unclaimed_draft_create_embedded_request, opts = {}) if @api_client.config.debugging @@ -159,6 +172,14 @@ def unclaimed_draft_create_embedded_with_http_info(unclaimed_draft_create_embedd if @api_client.config.client_side_validation && unclaimed_draft_create_embedded_request.nil? fail ArgumentError, "Missing the required parameter 'unclaimed_draft_create_embedded_request' when calling UnclaimedDraftApi.unclaimed_draft_create_embedded" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling UnclaimedDraftApi.unclaimed_draft_create_embedded, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling UnclaimedDraftApi.unclaimed_draft_create_embedded, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/unclaimed_draft/create_embedded' @@ -174,6 +195,7 @@ def unclaimed_draft_create_embedded_with_http_info(unclaimed_draft_create_embedd if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -251,6 +273,7 @@ def unclaimed_draft_create_embedded_with_http_info(unclaimed_draft_create_embedd # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.rb # @param unclaimed_draft_create_embedded_with_template_request [UnclaimedDraftCreateEmbeddedWithTemplateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [UnclaimedDraftCreateResponse] def unclaimed_draft_create_embedded_with_template(unclaimed_draft_create_embedded_with_template_request, opts = {}) data, _status_code, _headers = unclaimed_draft_create_embedded_with_template_with_http_info(unclaimed_draft_create_embedded_with_template_request, opts) @@ -262,6 +285,7 @@ def unclaimed_draft_create_embedded_with_template(unclaimed_draft_create_embedde # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.rb # @param unclaimed_draft_create_embedded_with_template_request [UnclaimedDraftCreateEmbeddedWithTemplateRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(UnclaimedDraftCreateResponse, Integer, Hash)>] UnclaimedDraftCreateResponse data, response status code and response headers def unclaimed_draft_create_embedded_with_template_with_http_info(unclaimed_draft_create_embedded_with_template_request, opts = {}) if @api_client.config.debugging @@ -271,6 +295,14 @@ def unclaimed_draft_create_embedded_with_template_with_http_info(unclaimed_draft if @api_client.config.client_side_validation && unclaimed_draft_create_embedded_with_template_request.nil? fail ArgumentError, "Missing the required parameter 'unclaimed_draft_create_embedded_with_template_request' when calling UnclaimedDraftApi.unclaimed_draft_create_embedded_with_template" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling UnclaimedDraftApi.unclaimed_draft_create_embedded_with_template, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling UnclaimedDraftApi.unclaimed_draft_create_embedded_with_template, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/unclaimed_draft/create_embedded_with_template' @@ -286,6 +318,7 @@ def unclaimed_draft_create_embedded_with_template_with_http_info(unclaimed_draft if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -364,6 +397,7 @@ def unclaimed_draft_create_embedded_with_template_with_http_info(unclaimed_draft # @param signature_request_id [String] The ID of the signature request to edit and resend. # @param unclaimed_draft_edit_and_resend_request [UnclaimedDraftEditAndResendRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [UnclaimedDraftCreateResponse] def unclaimed_draft_edit_and_resend(signature_request_id, unclaimed_draft_edit_and_resend_request, opts = {}) data, _status_code, _headers = unclaimed_draft_edit_and_resend_with_http_info(signature_request_id, unclaimed_draft_edit_and_resend_request, opts) @@ -376,6 +410,7 @@ def unclaimed_draft_edit_and_resend(signature_request_id, unclaimed_draft_edit_a # @param signature_request_id [String] The ID of the signature request to edit and resend. # @param unclaimed_draft_edit_and_resend_request [UnclaimedDraftEditAndResendRequest] # @param [Hash] opts the optional parameters + # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(UnclaimedDraftCreateResponse, Integer, Hash)>] UnclaimedDraftCreateResponse data, response status code and response headers def unclaimed_draft_edit_and_resend_with_http_info(signature_request_id, unclaimed_draft_edit_and_resend_request, opts = {}) if @api_client.config.debugging @@ -389,6 +424,14 @@ def unclaimed_draft_edit_and_resend_with_http_info(signature_request_id, unclaim if @api_client.config.client_side_validation && unclaimed_draft_edit_and_resend_request.nil? fail ArgumentError, "Missing the required parameter 'unclaimed_draft_edit_and_resend_request' when calling UnclaimedDraftApi.unclaimed_draft_edit_and_resend" end + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling UnclaimedDraftApi.unclaimed_draft_edit_and_resend, the character length must be smaller than or equal to 255.' + end + + if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 + fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling UnclaimedDraftApi.unclaimed_draft_edit_and_resend, the character length must be great than or equal to 1.' + end + # resource path local_var_path = '/unclaimed_draft/edit_and_resend/{signature_request_id}'.sub('{' + 'signature_request_id' + '}', CGI.escape(signature_request_id.to_s)) @@ -404,6 +447,7 @@ def unclaimed_draft_edit_and_resend_with_http_info(signature_request_id, unclaim if !content_type.nil? header_params['Content-Type'] = content_type end + header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} diff --git a/translations/en.yaml b/translations/en.yaml index 798143095..a1777e38d 100644 --- a/translations/en.yaml +++ b/translations/en.yaml @@ -1387,6 +1387,8 @@ "Common::RateLimiting::LIMIT": The maximum number of requests per hour that you can make. "Common::RateLimiting::REMAINING": The number of requests remaining in the current rate limit window. "Common::RateLimiting::RESET": The Unix time at which the rate limit will reset to its maximum. +"Common::Idempotency::KEY": Reuse the same key when retrying the same request. Must be 1 to 255 characters. +"Common::Idempotency::REPLAYED": Present and true when replaying a stored response. "EmbeddedEditUrlResponseExample::SUMMARY": Embedded Edit URL "EmbeddedSignUrlResponseExample::SUMMARY": Embedded Sign URL From 4ce9013461d56679f0fae1a9e823218b02bb141b Mon Sep 17 00:00:00 2001 From: John Spaetzel Date: Wed, 7 Oct 2026 15:49:32 -0700 Subject: [PATCH 3/6] Keep Idempotency-Key out of generated SDK method signatures. Leave the header in the API reference, and pass it through each SDK's existing headers or options argument instead of a dedicated parameter. Co-authored-by: Cursor --- openapi-raw.yaml | 88 ++ openapi-sdk.yaml | 205 ----- sdks/dotnet/docs/AccountApi.md | 21 +- sdks/dotnet/docs/ApiAppApi.md | 14 +- sdks/dotnet/docs/DocumentApi.md | 7 +- sdks/dotnet/docs/EmbeddedApi.md | 7 +- sdks/dotnet/docs/FaxApi.md | 7 +- sdks/dotnet/docs/FaxLineApi.md | 21 +- sdks/dotnet/docs/ReportApi.md | 7 +- sdks/dotnet/docs/SignatureRequestApi.md | 105 +-- sdks/dotnet/docs/TeamApi.md | 28 +- sdks/dotnet/docs/TemplateApi.md | 42 +- sdks/dotnet/docs/UnclaimedDraftApi.md | 28 +- .../dotnet/src/Dropbox.Sign/Api/AccountApi.cs | 108 +-- sdks/dotnet/src/Dropbox.Sign/Api/ApiAppApi.cs | 72 +- .../src/Dropbox.Sign/Api/DocumentApi.cs | 36 +- .../src/Dropbox.Sign/Api/EmbeddedApi.cs | 36 +- sdks/dotnet/src/Dropbox.Sign/Api/FaxApi.cs | 36 +- .../dotnet/src/Dropbox.Sign/Api/FaxLineApi.cs | 108 +-- sdks/dotnet/src/Dropbox.Sign/Api/ReportApi.cs | 36 +- .../Dropbox.Sign/Api/SignatureRequestApi.cs | 540 ++++-------- sdks/dotnet/src/Dropbox.Sign/Api/TeamApi.cs | 144 +--- .../src/Dropbox.Sign/Api/TemplateApi.cs | 216 ++--- .../src/Dropbox.Sign/Api/UnclaimedDraftApi.cs | 144 +--- .../java-v1/bin/generate-overload-methods.php | 14 +- sdks/java-v1/docs/AccountApi.md | 15 +- sdks/java-v1/docs/ApiAppApi.md | 10 +- sdks/java-v1/docs/DocumentApi.md | 5 +- sdks/java-v1/docs/EmbeddedApi.md | 5 +- sdks/java-v1/docs/FaxApi.md | 5 +- sdks/java-v1/docs/FaxLineApi.md | 15 +- sdks/java-v1/docs/ReportApi.md | 5 +- sdks/java-v1/docs/SignatureRequestApi.md | 75 +- sdks/java-v1/docs/TeamApi.md | 20 +- sdks/java-v1/docs/TemplateApi.md | 30 +- sdks/java-v1/docs/UnclaimedDraftApi.md | 20 +- .../java/com/dropbox/sign/api/AccountApi.java | 123 +-- .../java/com/dropbox/sign/api/ApiAppApi.java | 84 +- .../com/dropbox/sign/api/DocumentApi.java | 45 +- .../com/dropbox/sign/api/EmbeddedApi.java | 45 +- .../java/com/dropbox/sign/api/FaxApi.java | 43 +- .../java/com/dropbox/sign/api/FaxLineApi.java | 127 +-- .../java/com/dropbox/sign/api/ReportApi.java | 41 +- .../dropbox/sign/api/SignatureRequestApi.java | 766 ++---------------- .../java/com/dropbox/sign/api/TeamApi.java | 184 +---- .../com/dropbox/sign/api/TemplateApi.java | 280 +------ .../dropbox/sign/api/UnclaimedDraftApi.java | 204 +---- .../java-v2/bin/generate-overload-methods.php | 14 +- sdks/java-v2/docs/AccountApi.md | 15 +- sdks/java-v2/docs/ApiAppApi.md | 10 +- sdks/java-v2/docs/DocumentApi.md | 5 +- sdks/java-v2/docs/EmbeddedApi.md | 5 +- sdks/java-v2/docs/FaxApi.md | 5 +- sdks/java-v2/docs/FaxLineApi.md | 15 +- sdks/java-v2/docs/ReportApi.md | 5 +- sdks/java-v2/docs/SignatureRequestApi.md | 75 +- sdks/java-v2/docs/TeamApi.md | 20 +- sdks/java-v2/docs/TemplateApi.md | 30 +- sdks/java-v2/docs/UnclaimedDraftApi.md | 20 +- .../java/com/dropbox/sign/api/AccountApi.java | 111 +-- .../java/com/dropbox/sign/api/ApiAppApi.java | 74 +- .../com/dropbox/sign/api/DocumentApi.java | 37 +- .../com/dropbox/sign/api/EmbeddedApi.java | 37 +- .../java/com/dropbox/sign/api/FaxApi.java | 37 +- .../java/com/dropbox/sign/api/FaxLineApi.java | 111 +-- .../java/com/dropbox/sign/api/ReportApi.java | 37 +- .../dropbox/sign/api/SignatureRequestApi.java | 555 ++----------- .../java/com/dropbox/sign/api/TeamApi.java | 159 +--- .../com/dropbox/sign/api/TemplateApi.java | 222 +---- .../dropbox/sign/api/UnclaimedDraftApi.java | 148 +--- sdks/node/api/accountApi.ts | 18 - sdks/node/api/apiAppApi.ts | 12 - sdks/node/api/documentApi.ts | 6 - sdks/node/api/embeddedApi.ts | 6 - sdks/node/api/faxApi.ts | 6 - sdks/node/api/faxLineApi.ts | 18 - sdks/node/api/reportApi.ts | 6 - sdks/node/api/signatureRequestApi.ts | 90 -- sdks/node/api/teamApi.ts | 24 - sdks/node/api/templateApi.ts | 36 - sdks/node/api/unclaimedDraftApi.ts | 24 - sdks/node/dist/api.js | 287 +------ sdks/node/docs/api/AccountApi.md | 9 +- sdks/node/docs/api/ApiAppApi.md | 6 +- sdks/node/docs/api/DocumentApi.md | 3 +- sdks/node/docs/api/EmbeddedApi.md | 3 +- sdks/node/docs/api/FaxApi.md | 3 +- sdks/node/docs/api/FaxLineApi.md | 9 +- sdks/node/docs/api/ReportApi.md | 3 +- sdks/node/docs/api/SignatureRequestApi.md | 45 +- sdks/node/docs/api/TeamApi.md | 12 +- sdks/node/docs/api/TemplateApi.md | 18 +- sdks/node/docs/api/UnclaimedDraftApi.md | 12 +- sdks/node/types/api/accountApi.d.ts | 6 +- sdks/node/types/api/apiAppApi.d.ts | 4 +- sdks/node/types/api/documentApi.d.ts | 2 +- sdks/node/types/api/embeddedApi.d.ts | 2 +- sdks/node/types/api/faxApi.d.ts | 2 +- sdks/node/types/api/faxLineApi.d.ts | 6 +- sdks/node/types/api/reportApi.d.ts | 2 +- sdks/node/types/api/signatureRequestApi.d.ts | 30 +- sdks/node/types/api/teamApi.d.ts | 8 +- sdks/node/types/api/templateApi.d.ts | 12 +- sdks/node/types/api/unclaimedDraftApi.d.ts | 8 +- sdks/php/docs/Api/AccountApi.md | 9 +- sdks/php/docs/Api/ApiAppApi.md | 6 +- sdks/php/docs/Api/DocumentApi.md | 3 +- sdks/php/docs/Api/EmbeddedApi.md | 3 +- sdks/php/docs/Api/FaxApi.md | 3 +- sdks/php/docs/Api/FaxLineApi.md | 9 +- sdks/php/docs/Api/ReportApi.md | 3 +- sdks/php/docs/Api/SignatureRequestApi.md | 45 +- sdks/php/docs/Api/TeamApi.md | 12 +- sdks/php/docs/Api/TemplateApi.md | 18 +- sdks/php/docs/Api/UnclaimedDraftApi.md | 12 +- sdks/php/src/Api/AccountApi.php | 105 +-- sdks/php/src/Api/ApiAppApi.php | 70 +- sdks/php/src/Api/DocumentApi.php | 35 +- sdks/php/src/Api/EmbeddedApi.php | 35 +- sdks/php/src/Api/FaxApi.php | 35 +- sdks/php/src/Api/FaxLineApi.php | 105 +-- sdks/php/src/Api/ReportApi.php | 35 +- sdks/php/src/Api/SignatureRequestApi.php | 579 ++++--------- sdks/php/src/Api/TeamApi.php | 140 +--- sdks/php/src/Api/TemplateApi.php | 228 ++---- sdks/php/src/Api/UnclaimedDraftApi.php | 140 +--- sdks/python/docs/AccountApi.md | 9 +- sdks/python/docs/ApiAppApi.md | 6 +- sdks/python/docs/DocumentApi.md | 3 +- sdks/python/docs/EmbeddedApi.md | 3 +- sdks/python/docs/FaxApi.md | 3 +- sdks/python/docs/FaxLineApi.md | 9 +- sdks/python/docs/ReportApi.md | 3 +- sdks/python/docs/SignatureRequestApi.md | 45 +- sdks/python/docs/TeamApi.md | 12 +- sdks/python/docs/TemplateApi.md | 18 +- sdks/python/docs/UnclaimedDraftApi.md | 12 +- sdks/python/dropbox_sign/api/account_api.py | 90 -- sdks/python/dropbox_sign/api/api_app_api.py | 60 -- sdks/python/dropbox_sign/api/document_api.py | 33 - sdks/python/dropbox_sign/api/embedded_api.py | 31 - sdks/python/dropbox_sign/api/fax_api.py | 30 - sdks/python/dropbox_sign/api/fax_line_api.py | 90 -- sdks/python/dropbox_sign/api/report_api.py | 33 - .../dropbox_sign/api/signature_request_api.py | 450 ---------- sdks/python/dropbox_sign/api/team_api.py | 120 --- sdks/python/dropbox_sign/api/template_api.py | 180 ---- .../dropbox_sign/api/unclaimed_draft_api.py | 121 --- sdks/ruby/docs/AccountApi.md | 21 +- sdks/ruby/docs/ApiAppApi.md | 14 +- sdks/ruby/docs/DocumentApi.md | 7 +- sdks/ruby/docs/EmbeddedApi.md | 7 +- sdks/ruby/docs/FaxApi.md | 7 +- sdks/ruby/docs/FaxLineApi.md | 21 +- sdks/ruby/docs/ReportApi.md | 7 +- sdks/ruby/docs/SignatureRequestApi.md | 105 +-- sdks/ruby/docs/TeamApi.md | 22 +- sdks/ruby/docs/TemplateApi.md | 42 +- sdks/ruby/docs/UnclaimedDraftApi.md | 28 +- sdks/ruby/lib/dropbox-sign/api/account_api.rb | 33 - sdks/ruby/lib/dropbox-sign/api/api_app_api.rb | 22 - .../ruby/lib/dropbox-sign/api/document_api.rb | 11 - .../ruby/lib/dropbox-sign/api/embedded_api.rb | 11 - sdks/ruby/lib/dropbox-sign/api/fax_api.rb | 11 - .../ruby/lib/dropbox-sign/api/fax_line_api.rb | 33 - sdks/ruby/lib/dropbox-sign/api/report_api.rb | 11 - .../dropbox-sign/api/signature_request_api.rb | 165 ---- sdks/ruby/lib/dropbox-sign/api/team_api.rb | 44 - .../ruby/lib/dropbox-sign/api/template_api.rb | 66 -- .../dropbox-sign/api/unclaimed_draft_api.rb | 44 - 170 files changed, 1946 insertions(+), 8479 deletions(-) diff --git a/openapi-raw.yaml b/openapi-raw.yaml index 4ed6aa64c..fc5296fe3 100644 --- a/openapi-raw.yaml +++ b/openapi-raw.yaml @@ -34,6 +34,7 @@ paths: parameters: - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk responses: '200': description: 'successful operation' @@ -46,6 +47,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -243,6 +245,7 @@ paths: parameters: - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk responses: '200': description: 'successful operation' @@ -255,6 +258,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -348,6 +352,7 @@ paths: parameters: - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk responses: '200': description: 'successful operation' @@ -360,6 +365,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -456,6 +462,7 @@ paths: parameters: - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk responses: '201': description: 'successful operation' @@ -468,6 +475,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -659,6 +667,7 @@ paths: example: 0dd3b823a682527788c4e40cb7b6f7e9 - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk requestBody: required: true content: @@ -683,6 +692,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -963,12 +973,14 @@ paths: parameters: - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk responses: '202': description: 'Resend queued' headers: Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk 4XX: description: failed_operation content: @@ -1237,6 +1249,7 @@ paths: parameters: - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk responses: '200': description: 'successful operation' @@ -1249,6 +1262,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -1339,6 +1353,7 @@ paths: example: f57db65d3f933b5316d398057a36176831451a35 - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk requestBody: required: true content: @@ -1360,6 +1375,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -1838,6 +1854,7 @@ paths: parameters: - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk responses: '200': description: 'successful operation' @@ -1850,6 +1867,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -2123,6 +2141,7 @@ paths: parameters: - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk responses: '200': description: 'successful operation' @@ -2135,6 +2154,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -2529,6 +2549,7 @@ paths: parameters: - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk responses: '200': description: 'successful operation' @@ -2541,6 +2562,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -2740,6 +2762,7 @@ paths: parameters: - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk responses: '200': description: 'successful operation' @@ -2752,6 +2775,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -3036,6 +3060,7 @@ paths: parameters: - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk responses: '200': description: 'successful operation' @@ -3048,6 +3073,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -3139,6 +3165,7 @@ paths: parameters: - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk responses: '200': description: 'successful operation' @@ -3151,6 +3178,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -3246,6 +3274,7 @@ paths: parameters: - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk responses: '200': description: 'successful operation' @@ -3258,6 +3287,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -3351,6 +3381,7 @@ paths: example: fa5c8a0b0f492d768749333ad6fcc214c111e967 - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk responses: '200': description: 'successful operation' @@ -3363,6 +3394,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: { } 4XX: @@ -3461,6 +3493,7 @@ paths: parameters: - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk responses: '200': description: 'successful operation' @@ -3473,6 +3506,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -3569,6 +3603,7 @@ paths: parameters: - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk responses: '200': description: 'successful operation' @@ -3581,6 +3616,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -3673,6 +3709,7 @@ paths: example: fa5c8a0b0f492d768749333ad6fcc214c111e967 - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk requestBody: required: true content: @@ -3699,6 +3736,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -3794,6 +3832,7 @@ paths: example: fa5c8a0b0f492d768749333ad6fcc214c111e967 - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk requestBody: required: true content: @@ -3820,6 +3859,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -3914,6 +3954,7 @@ paths: example: fa5c8a0b0f492d768749333ad6fcc214c111e967 - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk requestBody: required: true content: @@ -3938,6 +3979,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -4032,6 +4074,7 @@ paths: example: fa5c8a0b0f492d768749333ad6fcc214c111e967 - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk requestBody: required: true content: @@ -4056,6 +4099,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -4708,6 +4752,7 @@ paths: example: fa5c8a0b0f492d768749333ad6fcc214c111e967 - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk responses: '200': description: 'successful operation' @@ -4720,6 +4765,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -4812,6 +4858,7 @@ paths: example: fa5c8a0b0f492d768749333ad6fcc214c111e967 - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk requestBody: required: true content: @@ -4833,6 +4880,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -4930,6 +4978,7 @@ paths: example: fa5c8a0b0f492d768749333ad6fcc214c111e967 - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk responses: '200': description: 'successful operation' @@ -4942,6 +4991,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: { } 4XX: @@ -5036,6 +5086,7 @@ paths: parameters: - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk responses: '200': description: 'successful operation' @@ -5048,6 +5099,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -5145,6 +5197,7 @@ paths: parameters: - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk responses: '200': description: 'successful operation' @@ -5157,6 +5210,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -5248,6 +5302,7 @@ paths: example: fa5c8a0b0f492d768749333ad6fcc214c111e967 - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk requestBody: required: true content: @@ -5269,6 +5324,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -5363,6 +5419,7 @@ paths: example: 4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk requestBody: required: true content: @@ -5386,6 +5443,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -5479,6 +5537,7 @@ paths: parameters: - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk responses: '200': description: 'successful operation' @@ -5491,6 +5550,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -5754,6 +5814,7 @@ paths: parameters: - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk responses: '200': description: 'successful operation' @@ -5766,6 +5827,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -6173,6 +6235,7 @@ paths: parameters: - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk responses: '201': description: 'successful operation' @@ -6185,6 +6248,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -6393,6 +6457,7 @@ paths: example: f57db65d3f933b5316d398057a36176831451a35 - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk requestBody: required: true content: @@ -6414,6 +6479,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -6516,6 +6582,7 @@ paths: parameters: - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk responses: '200': description: 'successful operation' @@ -6528,6 +6595,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -6632,6 +6700,7 @@ paths: parameters: - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk responses: '200': description: 'successful operation' @@ -6644,6 +6713,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -6738,6 +6808,7 @@ paths: example: f57db65d3f933b5316d398057a36176831451a35 - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk responses: '200': description: 'successful operation' @@ -6750,6 +6821,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: { } 4XX: @@ -7389,6 +7461,7 @@ paths: example: f57db65d3f933b5316d398057a36176831451a35 - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk requestBody: required: true content: @@ -7410,6 +7483,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -7502,6 +7576,7 @@ paths: example: f57db65d3f933b5316d398057a36176831451a35 - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk requestBody: required: true content: @@ -7526,6 +7601,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -7624,6 +7700,7 @@ paths: example: f57db65d3f933b5316d398057a36176831451a35 - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk requestBody: required: true content: @@ -7648,6 +7725,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -7752,6 +7830,7 @@ paths: parameters: - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk responses: '200': description: 'successful operation' @@ -7764,6 +7843,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -7864,6 +7944,7 @@ paths: parameters: - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk responses: '200': description: 'successful operation' @@ -7876,6 +7957,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -7975,6 +8057,7 @@ paths: parameters: - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk responses: '200': description: 'successful operation' @@ -7987,6 +8070,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -8081,6 +8165,7 @@ paths: example: fa5c8a0b0f492d768749333ad6fcc214c111e967 - $ref: '#/components/parameters/IdempotencyKey' + x-hideOn: sdk requestBody: required: true content: @@ -8102,6 +8187,7 @@ paths: $ref: '#/components/headers/X-Ratelimit-Reset' Idempotent-Replayed: $ref: '#/components/headers/Idempotent-Replayed' + x-hideOn: sdk content: application/json: schema: @@ -14442,6 +14528,7 @@ components: type: string maxLength: 255 minLength: 1 + x-hideOn: sdk examples: AccountCreateRequest: summary: 'Default Example' @@ -15207,6 +15294,7 @@ components: type: boolean enum: - true + x-hideOn: sdk securitySchemes: api_key: type: http diff --git a/openapi-sdk.yaml b/openapi-sdk.yaml index 70cf5f824..c9efc2f8f 100644 --- a/openapi-sdk.yaml +++ b/openapi-sdk.yaml @@ -31,9 +31,6 @@ paths: $ref: '#/components/examples/AccountCreateRequest' oauth_example: $ref: '#/components/examples/AccountCreateRequestOAuth' - parameters: - - - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -44,8 +41,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -246,9 +241,6 @@ paths: examples: example: $ref: '#/components/examples/AccountUpdateRequest' - parameters: - - - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -259,8 +251,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -351,9 +341,6 @@ paths: examples: example: $ref: '#/components/examples/AccountVerifyRequest' - parameters: - - - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -364,8 +351,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -459,9 +444,6 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/ApiAppCreateRequest' - parameters: - - - $ref: '#/components/parameters/IdempotencyKey' responses: '201': description: 'successful operation' @@ -472,8 +454,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -663,8 +643,6 @@ paths: schema: type: string example: 0dd3b823a682527788c4e40cb7b6f7e9 - - - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -687,8 +665,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -1193,9 +1169,6 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/DocumentFieldDetectionRequest' - parameters: - - - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -1206,8 +1179,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -1296,8 +1267,6 @@ paths: schema: type: string example: f57db65d3f933b5316d398057a36176831451a35 - - - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -1317,8 +1286,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -1794,9 +1761,6 @@ paths: examples: example: $ref: '#/components/examples/FaxLineAddUserRequest' - parameters: - - - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -1807,8 +1771,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -2079,9 +2041,6 @@ paths: examples: example: $ref: '#/components/examples/FaxLineCreateRequest' - parameters: - - - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -2092,8 +2051,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -2485,9 +2442,6 @@ paths: examples: example: $ref: '#/components/examples/FaxLineRemoveUserRequest' - parameters: - - - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -2498,8 +2452,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -2696,9 +2648,6 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/FaxSendRequest' - parameters: - - - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -2709,8 +2658,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -2995,9 +2942,6 @@ paths: examples: example: $ref: '#/components/examples/ReportCreateRequest' - parameters: - - - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -3008,8 +2952,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -3101,9 +3043,6 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/SignatureRequestBulkCreateEmbeddedWithTemplateRequest' - parameters: - - - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -3114,8 +3053,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -3211,9 +3148,6 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/SignatureRequestBulkSendWithTemplateRequest' - parameters: - - - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -3224,8 +3158,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -3326,8 +3258,6 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 - - - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -3338,8 +3268,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: {} '4XX': @@ -3435,9 +3363,6 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/SignatureRequestCreateEmbeddedRequest' - parameters: - - - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -3448,8 +3373,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -3543,9 +3466,6 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/SignatureRequestCreateEmbeddedWithTemplateRequest' - parameters: - - - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -3556,8 +3476,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -3651,8 +3569,6 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 - - - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -3677,8 +3593,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -3775,8 +3689,6 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 - - - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -3801,8 +3713,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -3898,8 +3808,6 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 - - - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -3922,8 +3830,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -4019,8 +3925,6 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 - - - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -4043,8 +3947,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -4707,8 +4609,6 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 - - - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -4719,8 +4619,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -4814,8 +4712,6 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 - - - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -4835,8 +4731,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -4937,8 +4831,6 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 - - - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -4949,8 +4841,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: {} '4XX': @@ -5042,9 +4932,6 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/SignatureRequestSendRequest' - parameters: - - - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -5055,8 +4942,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -5151,9 +5036,6 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/SignatureRequestSendWithTemplateRequest' - parameters: - - - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -5164,8 +5046,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -5260,8 +5140,6 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 - - - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -5281,8 +5159,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -5375,8 +5251,6 @@ paths: schema: type: string example: 4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c - - - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -5398,8 +5272,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -5490,9 +5362,6 @@ paths: examples: example: $ref: '#/components/examples/TeamCreateRequest' - parameters: - - - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -5503,8 +5372,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -5765,9 +5632,6 @@ paths: examples: example: $ref: '#/components/examples/TeamUpdateRequest' - parameters: - - - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -5778,8 +5642,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -6184,9 +6046,6 @@ paths: $ref: '#/components/examples/TeamRemoveMemberRequest' account_id_example: $ref: '#/components/examples/TeamRemoveMemberRequestAccountId' - parameters: - - - $ref: '#/components/parameters/IdempotencyKey' responses: '201': description: 'successful operation' @@ -6197,8 +6056,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -6405,8 +6262,6 @@ paths: schema: type: string example: f57db65d3f933b5316d398057a36176831451a35 - - - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -6426,8 +6281,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -6532,9 +6385,6 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/TemplateCreateRequest' - parameters: - - - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -6545,8 +6395,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -6648,9 +6496,6 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/TemplateCreateEmbeddedDraftRequest' - parameters: - - - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -6661,8 +6506,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -6755,8 +6598,6 @@ paths: schema: type: string example: f57db65d3f933b5316d398057a36176831451a35 - - - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -6767,8 +6608,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: {} '4XX': @@ -7418,8 +7257,6 @@ paths: schema: type: string example: f57db65d3f933b5316d398057a36176831451a35 - - - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -7439,8 +7276,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -7543,8 +7378,6 @@ paths: schema: type: string example: f57db65d3f933b5316d398057a36176831451a35 - - - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -7567,8 +7400,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -7670,9 +7501,6 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/UnclaimedDraftCreateRequest' - parameters: - - - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -7683,8 +7511,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -7785,9 +7611,6 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/UnclaimedDraftCreateEmbeddedRequest' - parameters: - - - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -7798,8 +7621,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -7899,9 +7720,6 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/UnclaimedDraftCreateEmbeddedWithTemplateRequest' - parameters: - - - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: 'successful operation' @@ -7912,8 +7730,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -8009,8 +7825,6 @@ paths: schema: type: string example: fa5c8a0b0f492d768749333ad6fcc214c111e967 - - - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: @@ -8030,8 +7844,6 @@ paths: $ref: '#/components/headers/X-RateLimit-Remaining' X-Ratelimit-Reset: $ref: '#/components/headers/X-Ratelimit-Reset' - Idempotent-Replayed: - $ref: '#/components/headers/Idempotent-Replayed' content: application/json: schema: @@ -14309,16 +14121,6 @@ components: default: 'Hello API Event Received' x-fern-audiences: - events - parameters: - IdempotencyKey: - name: Idempotency-Key - in: header - description: 'Reuse the same key when retrying the same request. Must be 1 to 255 characters.' - required: false - schema: - type: string - maxLength: 255 - minLength: 1 examples: AccountCreateRequest: summary: 'Default Example' @@ -15074,13 +14876,6 @@ components: type: integer format: int64 example: 1430170900 - Idempotent-Replayed: - description: 'Present and true when replaying a stored response.' - required: false - schema: - type: boolean - enum: - - true securitySchemes: api_key: type: http diff --git a/sdks/dotnet/docs/AccountApi.md b/sdks/dotnet/docs/AccountApi.md index 5ebd88885..f62f83365 100644 --- a/sdks/dotnet/docs/AccountApi.md +++ b/sdks/dotnet/docs/AccountApi.md @@ -11,7 +11,7 @@ All URIs are relative to *https://api.hellosign.com/v3* # **AccountCreate** -> AccountCreateResponse AccountCreate (AccountCreateRequest accountCreateRequest, string? idempotencyKey = null) +> AccountCreateResponse AccountCreate (AccountCreateRequest accountCreateRequest) Create Account @@ -68,7 +68,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Create Account - ApiResponse response = apiInstance.AccountCreateWithHttpInfo(accountCreateRequest, idempotencyKey); + ApiResponse response = apiInstance.AccountCreateWithHttpInfo(accountCreateRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -86,7 +86,6 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **accountCreateRequest** | [**AccountCreateRequest**](AccountCreateRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -105,7 +104,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -207,7 +206,7 @@ catch (ApiException e) # **AccountUpdate** -> AccountGetResponse AccountUpdate (AccountUpdateRequest accountUpdateRequest, string? idempotencyKey = null) +> AccountGetResponse AccountUpdate (AccountUpdateRequest accountUpdateRequest) Update Account @@ -265,7 +264,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Update Account - ApiResponse response = apiInstance.AccountUpdateWithHttpInfo(accountUpdateRequest, idempotencyKey); + ApiResponse response = apiInstance.AccountUpdateWithHttpInfo(accountUpdateRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -283,7 +282,6 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **accountUpdateRequest** | [**AccountUpdateRequest**](AccountUpdateRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -302,14 +300,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **AccountVerify** -> AccountVerifyResponse AccountVerify (AccountVerifyRequest accountVerifyRequest, string? idempotencyKey = null) +> AccountVerifyResponse AccountVerify (AccountVerifyRequest accountVerifyRequest) Verify Account @@ -366,7 +364,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Verify Account - ApiResponse response = apiInstance.AccountVerifyWithHttpInfo(accountVerifyRequest, idempotencyKey); + ApiResponse response = apiInstance.AccountVerifyWithHttpInfo(accountVerifyRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -384,7 +382,6 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **accountVerifyRequest** | [**AccountVerifyRequest**](AccountVerifyRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -403,7 +400,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/dotnet/docs/ApiAppApi.md b/sdks/dotnet/docs/ApiAppApi.md index 84dfb9ca5..e94d26a30 100644 --- a/sdks/dotnet/docs/ApiAppApi.md +++ b/sdks/dotnet/docs/ApiAppApi.md @@ -12,7 +12,7 @@ All URIs are relative to *https://api.hellosign.com/v3* # **ApiAppCreate** -> ApiAppGetResponse ApiAppCreate (ApiAppCreateRequest apiAppCreateRequest, string? idempotencyKey = null) +> ApiAppGetResponse ApiAppCreate (ApiAppCreateRequest apiAppCreateRequest) Create API App @@ -91,7 +91,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Create API App - ApiResponse response = apiInstance.ApiAppCreateWithHttpInfo(apiAppCreateRequest, idempotencyKey); + ApiResponse response = apiInstance.ApiAppCreateWithHttpInfo(apiAppCreateRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -109,7 +109,6 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **apiAppCreateRequest** | [**ApiAppCreateRequest**](ApiAppCreateRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -128,7 +127,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **201** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **201** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -420,7 +419,7 @@ catch (ApiException e) # **ApiAppUpdate** -> ApiAppGetResponse ApiAppUpdate (string clientId, ApiAppUpdateRequest apiAppUpdateRequest, string? idempotencyKey = null) +> ApiAppGetResponse ApiAppUpdate (string clientId, ApiAppUpdateRequest apiAppUpdateRequest) Update API App @@ -501,7 +500,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Update API App - ApiResponse response = apiInstance.ApiAppUpdateWithHttpInfo(clientId, apiAppUpdateRequest, idempotencyKey); + ApiResponse response = apiInstance.ApiAppUpdateWithHttpInfo(clientId, apiAppUpdateRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -520,7 +519,6 @@ catch (ApiException e) |------|------|-------------|-------| | **clientId** | **string** | The client id of the API App to update. | | | **apiAppUpdateRequest** | [**ApiAppUpdateRequest**](ApiAppUpdateRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -539,7 +537,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/dotnet/docs/DocumentApi.md b/sdks/dotnet/docs/DocumentApi.md index 72a13b8ec..6b2fe15dd 100644 --- a/sdks/dotnet/docs/DocumentApi.md +++ b/sdks/dotnet/docs/DocumentApi.md @@ -8,7 +8,7 @@ All URIs are relative to *https://api.hellosign.com/v3* # **DocumentDetectFields** -> DocumentFieldDetectionResponse DocumentDetectFields (DocumentFieldDetectionRequest documentFieldDetectionRequest, string? idempotencyKey = null) +> DocumentFieldDetectionResponse DocumentDetectFields (DocumentFieldDetectionRequest documentFieldDetectionRequest) Detect Document Fields @@ -70,7 +70,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Detect Document Fields - ApiResponse response = apiInstance.DocumentDetectFieldsWithHttpInfo(documentFieldDetectionRequest, idempotencyKey); + ApiResponse response = apiInstance.DocumentDetectFieldsWithHttpInfo(documentFieldDetectionRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -88,7 +88,6 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **documentFieldDetectionRequest** | [**DocumentFieldDetectionRequest**](DocumentFieldDetectionRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -107,7 +106,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/dotnet/docs/EmbeddedApi.md b/sdks/dotnet/docs/EmbeddedApi.md index 66aee8108..473f3dfaf 100644 --- a/sdks/dotnet/docs/EmbeddedApi.md +++ b/sdks/dotnet/docs/EmbeddedApi.md @@ -9,7 +9,7 @@ All URIs are relative to *https://api.hellosign.com/v3* # **EmbeddedEditUrl** -> EmbeddedEditUrlResponse EmbeddedEditUrl (string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, string? idempotencyKey = null) +> EmbeddedEditUrlResponse EmbeddedEditUrl (string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest) Get Embedded Template Edit URL @@ -72,7 +72,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Get Embedded Template Edit URL - ApiResponse response = apiInstance.EmbeddedEditUrlWithHttpInfo(templateId, embeddedEditUrlRequest, idempotencyKey); + ApiResponse response = apiInstance.EmbeddedEditUrlWithHttpInfo(templateId, embeddedEditUrlRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -91,7 +91,6 @@ catch (ApiException e) |------|------|-------------|-------| | **templateId** | **string** | The id of the template to edit. | | | **embeddedEditUrlRequest** | [**EmbeddedEditUrlRequest**](EmbeddedEditUrlRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -110,7 +109,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/dotnet/docs/FaxApi.md b/sdks/dotnet/docs/FaxApi.md index e618bddbd..41349a481 100644 --- a/sdks/dotnet/docs/FaxApi.md +++ b/sdks/dotnet/docs/FaxApi.md @@ -391,7 +391,7 @@ catch (ApiException e) # **FaxSend** -> FaxGetResponse FaxSend (FaxSendRequest faxSendRequest, string? idempotencyKey = null) +> FaxGetResponse FaxSend (FaxSendRequest faxSendRequest) Send Fax @@ -460,7 +460,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Send Fax - ApiResponse response = apiInstance.FaxSendWithHttpInfo(faxSendRequest, idempotencyKey); + ApiResponse response = apiInstance.FaxSendWithHttpInfo(faxSendRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -478,7 +478,6 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **faxSendRequest** | [**FaxSendRequest**](FaxSendRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -497,7 +496,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/dotnet/docs/FaxLineApi.md b/sdks/dotnet/docs/FaxLineApi.md index b3b81e224..42ebfe88b 100644 --- a/sdks/dotnet/docs/FaxLineApi.md +++ b/sdks/dotnet/docs/FaxLineApi.md @@ -14,7 +14,7 @@ All URIs are relative to *https://api.hellosign.com/v3* # **FaxLineAddUser** -> FaxLineResponse FaxLineAddUser (FaxLineAddUserRequest faxLineAddUserRequest, string? idempotencyKey = null) +> FaxLineResponse FaxLineAddUser (FaxLineAddUserRequest faxLineAddUserRequest) Add Fax Line User @@ -71,7 +71,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Add Fax Line User - ApiResponse response = apiInstance.FaxLineAddUserWithHttpInfo(faxLineAddUserRequest, idempotencyKey); + ApiResponse response = apiInstance.FaxLineAddUserWithHttpInfo(faxLineAddUserRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -89,7 +89,6 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **faxLineAddUserRequest** | [**FaxLineAddUserRequest**](FaxLineAddUserRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -108,7 +107,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -213,7 +212,7 @@ catch (ApiException e) # **FaxLineCreate** -> FaxLineResponse FaxLineCreate (FaxLineCreateRequest faxLineCreateRequest, string? idempotencyKey = null) +> FaxLineResponse FaxLineCreate (FaxLineCreateRequest faxLineCreateRequest) Purchase Fax Line @@ -270,7 +269,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Purchase Fax Line - ApiResponse response = apiInstance.FaxLineCreateWithHttpInfo(faxLineCreateRequest, idempotencyKey); + ApiResponse response = apiInstance.FaxLineCreateWithHttpInfo(faxLineCreateRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -288,7 +287,6 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **faxLineCreateRequest** | [**FaxLineCreateRequest**](FaxLineCreateRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -307,7 +305,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -603,7 +601,7 @@ catch (ApiException e) # **FaxLineRemoveUser** -> FaxLineResponse FaxLineRemoveUser (FaxLineRemoveUserRequest faxLineRemoveUserRequest, string? idempotencyKey = null) +> FaxLineResponse FaxLineRemoveUser (FaxLineRemoveUserRequest faxLineRemoveUserRequest) Remove Fax Line Access @@ -660,7 +658,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Remove Fax Line Access - ApiResponse response = apiInstance.FaxLineRemoveUserWithHttpInfo(faxLineRemoveUserRequest, idempotencyKey); + ApiResponse response = apiInstance.FaxLineRemoveUserWithHttpInfo(faxLineRemoveUserRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -678,7 +676,6 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **faxLineRemoveUserRequest** | [**FaxLineRemoveUserRequest**](FaxLineRemoveUserRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -697,7 +694,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/dotnet/docs/ReportApi.md b/sdks/dotnet/docs/ReportApi.md index 714ea5ee4..324902c65 100644 --- a/sdks/dotnet/docs/ReportApi.md +++ b/sdks/dotnet/docs/ReportApi.md @@ -8,7 +8,7 @@ All URIs are relative to *https://api.hellosign.com/v3* # **ReportCreate** -> ReportCreateResponse ReportCreate (ReportCreateRequest reportCreateRequest, string? idempotencyKey = null) +> ReportCreateResponse ReportCreate (ReportCreateRequest reportCreateRequest) Create Report @@ -69,7 +69,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Create Report - ApiResponse response = apiInstance.ReportCreateWithHttpInfo(reportCreateRequest, idempotencyKey); + ApiResponse response = apiInstance.ReportCreateWithHttpInfo(reportCreateRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -87,7 +87,6 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **reportCreateRequest** | [**ReportCreateRequest**](ReportCreateRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -106,7 +105,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/dotnet/docs/SignatureRequestApi.md b/sdks/dotnet/docs/SignatureRequestApi.md index 5a08da116..68b0c2f0a 100644 --- a/sdks/dotnet/docs/SignatureRequestApi.md +++ b/sdks/dotnet/docs/SignatureRequestApi.md @@ -27,7 +27,7 @@ All URIs are relative to *https://api.hellosign.com/v3* # **SignatureRequestBulkCreateEmbeddedWithTemplate** -> BulkSendJobSendResponse SignatureRequestBulkCreateEmbeddedWithTemplate (SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, string? idempotencyKey = null) +> BulkSendJobSendResponse SignatureRequestBulkCreateEmbeddedWithTemplate (SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest) Embedded Bulk Send with Template @@ -161,7 +161,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Embedded Bulk Send with Template - ApiResponse response = apiInstance.SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestBulkCreateEmbeddedWithTemplateRequest, idempotencyKey); + ApiResponse response = apiInstance.SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestBulkCreateEmbeddedWithTemplateRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -179,7 +179,6 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **signatureRequestBulkCreateEmbeddedWithTemplateRequest** | [**SignatureRequestBulkCreateEmbeddedWithTemplateRequest**](SignatureRequestBulkCreateEmbeddedWithTemplateRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -198,14 +197,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **SignatureRequestBulkSendWithTemplate** -> BulkSendJobSendResponse SignatureRequestBulkSendWithTemplate (SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, string? idempotencyKey = null) +> BulkSendJobSendResponse SignatureRequestBulkSendWithTemplate (SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest) Bulk Send with Template @@ -339,7 +338,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Bulk Send with Template - ApiResponse response = apiInstance.SignatureRequestBulkSendWithTemplateWithHttpInfo(signatureRequestBulkSendWithTemplateRequest, idempotencyKey); + ApiResponse response = apiInstance.SignatureRequestBulkSendWithTemplateWithHttpInfo(signatureRequestBulkSendWithTemplateRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -357,7 +356,6 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **signatureRequestBulkSendWithTemplateRequest** | [**SignatureRequestBulkSendWithTemplateRequest**](SignatureRequestBulkSendWithTemplateRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -376,14 +374,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **SignatureRequestCancel** -> void SignatureRequestCancel (string signatureRequestId, string? idempotencyKey = null) +> void SignatureRequestCancel (string signatureRequestId) Cancel Incomplete Signature Request @@ -434,7 +432,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Cancel Incomplete Signature Request - apiInstance.SignatureRequestCancelWithHttpInfo(signatureRequestId, idempotencyKey); + apiInstance.SignatureRequestCancelWithHttpInfo(signatureRequestId); } catch (ApiException e) { @@ -449,7 +447,6 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **signatureRequestId** | **string** | The id of the incomplete SignatureRequest to cancel. | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -468,14 +465,14 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **SignatureRequestCreateEmbedded** -> SignatureRequestGetResponse SignatureRequestCreateEmbedded (SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, string? idempotencyKey = null) +> SignatureRequestGetResponse SignatureRequestCreateEmbedded (SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest) Create Embedded Signature Request @@ -576,7 +573,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Create Embedded Signature Request - ApiResponse response = apiInstance.SignatureRequestCreateEmbeddedWithHttpInfo(signatureRequestCreateEmbeddedRequest, idempotencyKey); + ApiResponse response = apiInstance.SignatureRequestCreateEmbeddedWithHttpInfo(signatureRequestCreateEmbeddedRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -594,7 +591,6 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **signatureRequestCreateEmbeddedRequest** | [**SignatureRequestCreateEmbeddedRequest**](SignatureRequestCreateEmbeddedRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -613,14 +609,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **SignatureRequestCreateEmbeddedWithTemplate** -> SignatureRequestGetResponse SignatureRequestCreateEmbeddedWithTemplate (SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, string? idempotencyKey = null) +> SignatureRequestGetResponse SignatureRequestCreateEmbeddedWithTemplate (SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest) Create Embedded Signature Request with Template @@ -705,7 +701,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Create Embedded Signature Request with Template - ApiResponse response = apiInstance.SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestCreateEmbeddedWithTemplateRequest, idempotencyKey); + ApiResponse response = apiInstance.SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestCreateEmbeddedWithTemplateRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -723,7 +719,6 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **signatureRequestCreateEmbeddedWithTemplateRequest** | [**SignatureRequestCreateEmbeddedWithTemplateRequest**](SignatureRequestCreateEmbeddedWithTemplateRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -742,14 +737,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **SignatureRequestEdit** -> SignatureRequestGetResponse SignatureRequestEdit (string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, string? idempotencyKey = null) +> SignatureRequestGetResponse SignatureRequestEdit (string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest) Edit Signature Request @@ -860,7 +855,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Edit Signature Request - ApiResponse response = apiInstance.SignatureRequestEditWithHttpInfo(signatureRequestId, signatureRequestEditRequest, idempotencyKey); + ApiResponse response = apiInstance.SignatureRequestEditWithHttpInfo(signatureRequestId, signatureRequestEditRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -879,7 +874,6 @@ catch (ApiException e) |------|------|-------------|-------| | **signatureRequestId** | **string** | The id of the SignatureRequest to edit. | | | **signatureRequestEditRequest** | [**SignatureRequestEditRequest**](SignatureRequestEditRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -898,14 +892,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **SignatureRequestEditEmbedded** -> SignatureRequestGetResponse SignatureRequestEditEmbedded (string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, string? idempotencyKey = null) +> SignatureRequestGetResponse SignatureRequestEditEmbedded (string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest) Edit Embedded Signature Request @@ -1006,7 +1000,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Edit Embedded Signature Request - ApiResponse response = apiInstance.SignatureRequestEditEmbeddedWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedRequest, idempotencyKey); + ApiResponse response = apiInstance.SignatureRequestEditEmbeddedWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -1025,7 +1019,6 @@ catch (ApiException e) |------|------|-------------|-------| | **signatureRequestId** | **string** | The id of the SignatureRequest to edit. | | | **signatureRequestEditEmbeddedRequest** | [**SignatureRequestEditEmbeddedRequest**](SignatureRequestEditEmbeddedRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1044,14 +1037,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **SignatureRequestEditEmbeddedWithTemplate** -> SignatureRequestGetResponse SignatureRequestEditEmbeddedWithTemplate (string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, string? idempotencyKey = null) +> SignatureRequestGetResponse SignatureRequestEditEmbeddedWithTemplate (string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest) Edit Embedded Signature Request with Template @@ -1136,7 +1129,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Edit Embedded Signature Request with Template - ApiResponse response = apiInstance.SignatureRequestEditEmbeddedWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest, idempotencyKey); + ApiResponse response = apiInstance.SignatureRequestEditEmbeddedWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -1155,7 +1148,6 @@ catch (ApiException e) |------|------|-------------|-------| | **signatureRequestId** | **string** | The id of the SignatureRequest to edit. | | | **signatureRequestEditEmbeddedWithTemplateRequest** | [**SignatureRequestEditEmbeddedWithTemplateRequest**](SignatureRequestEditEmbeddedWithTemplateRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1174,14 +1166,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **SignatureRequestEditWithTemplate** -> SignatureRequestGetResponse SignatureRequestEditWithTemplate (string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, string? idempotencyKey = null) +> SignatureRequestGetResponse SignatureRequestEditWithTemplate (string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest) Edit Signature Request With Template @@ -1289,7 +1281,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Edit Signature Request With Template - ApiResponse response = apiInstance.SignatureRequestEditWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditWithTemplateRequest, idempotencyKey); + ApiResponse response = apiInstance.SignatureRequestEditWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditWithTemplateRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -1308,7 +1300,6 @@ catch (ApiException e) |------|------|-------------|-------| | **signatureRequestId** | **string** | The id of the SignatureRequest to edit. | | | **signatureRequestEditWithTemplateRequest** | [**SignatureRequestEditWithTemplateRequest**](SignatureRequestEditWithTemplateRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1327,7 +1318,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1824,7 +1815,7 @@ catch (ApiException e) # **SignatureRequestReleaseHold** -> SignatureRequestGetResponse SignatureRequestReleaseHold (string signatureRequestId, string? idempotencyKey = null) +> SignatureRequestGetResponse SignatureRequestReleaseHold (string signatureRequestId) Release On-Hold Signature Request @@ -1877,7 +1868,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Release On-Hold Signature Request - ApiResponse response = apiInstance.SignatureRequestReleaseHoldWithHttpInfo(signatureRequestId, idempotencyKey); + ApiResponse response = apiInstance.SignatureRequestReleaseHoldWithHttpInfo(signatureRequestId); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -1895,7 +1886,6 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **signatureRequestId** | **string** | The id of the SignatureRequest to release. | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1914,14 +1904,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **SignatureRequestRemind** -> SignatureRequestGetResponse SignatureRequestRemind (string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, string? idempotencyKey = null) +> SignatureRequestGetResponse SignatureRequestRemind (string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest) Send Request Reminder @@ -1979,7 +1969,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Send Request Reminder - ApiResponse response = apiInstance.SignatureRequestRemindWithHttpInfo(signatureRequestId, signatureRequestRemindRequest, idempotencyKey); + ApiResponse response = apiInstance.SignatureRequestRemindWithHttpInfo(signatureRequestId, signatureRequestRemindRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -1998,7 +1988,6 @@ catch (ApiException e) |------|------|-------------|-------| | **signatureRequestId** | **string** | The id of the SignatureRequest to send a reminder for. | | | **signatureRequestRemindRequest** | [**SignatureRequestRemindRequest**](SignatureRequestRemindRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -2017,14 +2006,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **SignatureRequestRemove** -> void SignatureRequestRemove (string signatureRequestId, string? idempotencyKey = null) +> void SignatureRequestRemove (string signatureRequestId) Remove Signature Request Access @@ -2074,7 +2063,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Remove Signature Request Access - apiInstance.SignatureRequestRemoveWithHttpInfo(signatureRequestId, idempotencyKey); + apiInstance.SignatureRequestRemoveWithHttpInfo(signatureRequestId); } catch (ApiException e) { @@ -2089,7 +2078,6 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **signatureRequestId** | **string** | The id of the SignatureRequest to remove. | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -2108,14 +2096,14 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **SignatureRequestSend** -> SignatureRequestGetResponse SignatureRequestSend (SignatureRequestSendRequest signatureRequestSendRequest, string? idempotencyKey = null) +> SignatureRequestGetResponse SignatureRequestSend (SignatureRequestSendRequest signatureRequestSendRequest) Send Signature Request @@ -2226,7 +2214,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Send Signature Request - ApiResponse response = apiInstance.SignatureRequestSendWithHttpInfo(signatureRequestSendRequest, idempotencyKey); + ApiResponse response = apiInstance.SignatureRequestSendWithHttpInfo(signatureRequestSendRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -2244,7 +2232,6 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **signatureRequestSendRequest** | [**SignatureRequestSendRequest**](SignatureRequestSendRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -2263,14 +2250,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **SignatureRequestSendWithTemplate** -> SignatureRequestGetResponse SignatureRequestSendWithTemplate (SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, string? idempotencyKey = null) +> SignatureRequestGetResponse SignatureRequestSendWithTemplate (SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest) Send with Template @@ -2378,7 +2365,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Send with Template - ApiResponse response = apiInstance.SignatureRequestSendWithTemplateWithHttpInfo(signatureRequestSendWithTemplateRequest, idempotencyKey); + ApiResponse response = apiInstance.SignatureRequestSendWithTemplateWithHttpInfo(signatureRequestSendWithTemplateRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -2396,7 +2383,6 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **signatureRequestSendWithTemplateRequest** | [**SignatureRequestSendWithTemplateRequest**](SignatureRequestSendWithTemplateRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -2415,14 +2401,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **SignatureRequestUpdate** -> SignatureRequestGetResponse SignatureRequestUpdate (string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, string? idempotencyKey = null) +> SignatureRequestGetResponse SignatureRequestUpdate (string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest) Update Signature Request @@ -2481,7 +2467,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Update Signature Request - ApiResponse response = apiInstance.SignatureRequestUpdateWithHttpInfo(signatureRequestId, signatureRequestUpdateRequest, idempotencyKey); + ApiResponse response = apiInstance.SignatureRequestUpdateWithHttpInfo(signatureRequestId, signatureRequestUpdateRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -2500,7 +2486,6 @@ catch (ApiException e) |------|------|-------------|-------| | **signatureRequestId** | **string** | The id of the SignatureRequest to update. | | | **signatureRequestUpdateRequest** | [**SignatureRequestUpdateRequest**](SignatureRequestUpdateRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -2519,7 +2504,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/dotnet/docs/TeamApi.md b/sdks/dotnet/docs/TeamApi.md index 84ea68714..2e5e8784f 100644 --- a/sdks/dotnet/docs/TeamApi.md +++ b/sdks/dotnet/docs/TeamApi.md @@ -17,7 +17,7 @@ All URIs are relative to *https://api.hellosign.com/v3* # **TeamAddMember** -> TeamGetResponse TeamAddMember (TeamAddMemberRequest teamAddMemberRequest, string? teamId = null, string? idempotencyKey = null) +> TeamGetResponse TeamAddMember (TeamAddMemberRequest teamAddMemberRequest, string? teamId = null) Add User to Team @@ -75,7 +75,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Add User to Team - ApiResponse response = apiInstance.TeamAddMemberWithHttpInfo(teamAddMemberRequest, teamId, idempotencyKey); + ApiResponse response = apiInstance.TeamAddMemberWithHttpInfo(teamAddMemberRequest, teamId); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -94,7 +94,6 @@ catch (ApiException e) |------|------|-------------|-------| | **teamAddMemberRequest** | [**TeamAddMemberRequest**](TeamAddMemberRequest.md) | | | | **teamId** | **string?** | The id of the team. | [optional] | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -113,14 +112,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **TeamCreate** -> TeamGetResponse TeamCreate (TeamCreateRequest teamCreateRequest, string? idempotencyKey = null) +> TeamGetResponse TeamCreate (TeamCreateRequest teamCreateRequest) Create Team @@ -177,7 +176,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Create Team - ApiResponse response = apiInstance.TeamCreateWithHttpInfo(teamCreateRequest, idempotencyKey); + ApiResponse response = apiInstance.TeamCreateWithHttpInfo(teamCreateRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -195,7 +194,6 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **teamCreateRequest** | [**TeamCreateRequest**](TeamCreateRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -214,7 +212,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -686,7 +684,7 @@ catch (ApiException e) # **TeamRemoveMember** -> TeamGetResponse TeamRemoveMember (TeamRemoveMemberRequest teamRemoveMemberRequest, string? idempotencyKey = null) +> TeamGetResponse TeamRemoveMember (TeamRemoveMemberRequest teamRemoveMemberRequest) Remove User from Team @@ -744,7 +742,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Remove User from Team - ApiResponse response = apiInstance.TeamRemoveMemberWithHttpInfo(teamRemoveMemberRequest, idempotencyKey); + ApiResponse response = apiInstance.TeamRemoveMemberWithHttpInfo(teamRemoveMemberRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -762,7 +760,6 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **teamRemoveMemberRequest** | [**TeamRemoveMemberRequest**](TeamRemoveMemberRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -781,7 +778,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **201** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **201** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -888,7 +885,7 @@ catch (ApiException e) # **TeamUpdate** -> TeamGetResponse TeamUpdate (TeamUpdateRequest teamUpdateRequest, string? idempotencyKey = null) +> TeamGetResponse TeamUpdate (TeamUpdateRequest teamUpdateRequest) Update Team @@ -945,7 +942,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Update Team - ApiResponse response = apiInstance.TeamUpdateWithHttpInfo(teamUpdateRequest, idempotencyKey); + ApiResponse response = apiInstance.TeamUpdateWithHttpInfo(teamUpdateRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -963,7 +960,6 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **teamUpdateRequest** | [**TeamUpdateRequest**](TeamUpdateRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -982,7 +978,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/dotnet/docs/TemplateApi.md b/sdks/dotnet/docs/TemplateApi.md index 1acd6e1e8..133b641e6 100644 --- a/sdks/dotnet/docs/TemplateApi.md +++ b/sdks/dotnet/docs/TemplateApi.md @@ -18,7 +18,7 @@ All URIs are relative to *https://api.hellosign.com/v3* # **TemplateAddUser** -> TemplateGetResponse TemplateAddUser (string templateId, TemplateAddUserRequest templateAddUserRequest, string? idempotencyKey = null) +> TemplateGetResponse TemplateAddUser (string templateId, TemplateAddUserRequest templateAddUserRequest) Add User to Template @@ -76,7 +76,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Add User to Template - ApiResponse response = apiInstance.TemplateAddUserWithHttpInfo(templateId, templateAddUserRequest, idempotencyKey); + ApiResponse response = apiInstance.TemplateAddUserWithHttpInfo(templateId, templateAddUserRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -95,7 +95,6 @@ catch (ApiException e) |------|------|-------------|-------| | **templateId** | **string** | The id of the Template to give the Account access to. | | | **templateAddUserRequest** | [**TemplateAddUserRequest**](TemplateAddUserRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -114,14 +113,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **TemplateCreate** -> TemplateCreateResponse TemplateCreate (TemplateCreateRequest templateCreateRequest, string? idempotencyKey = null) +> TemplateCreateResponse TemplateCreate (TemplateCreateRequest templateCreateRequest) Create Template @@ -268,7 +267,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Create Template - ApiResponse response = apiInstance.TemplateCreateWithHttpInfo(templateCreateRequest, idempotencyKey); + ApiResponse response = apiInstance.TemplateCreateWithHttpInfo(templateCreateRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -286,7 +285,6 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **templateCreateRequest** | [**TemplateCreateRequest**](TemplateCreateRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -305,14 +303,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **TemplateCreateEmbeddedDraft** -> TemplateCreateEmbeddedDraftResponse TemplateCreateEmbeddedDraft (TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, string? idempotencyKey = null) +> TemplateCreateEmbeddedDraftResponse TemplateCreateEmbeddedDraft (TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest) Create Embedded Template Draft @@ -422,7 +420,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Create Embedded Template Draft - ApiResponse response = apiInstance.TemplateCreateEmbeddedDraftWithHttpInfo(templateCreateEmbeddedDraftRequest, idempotencyKey); + ApiResponse response = apiInstance.TemplateCreateEmbeddedDraftWithHttpInfo(templateCreateEmbeddedDraftRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -440,7 +438,6 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **templateCreateEmbeddedDraftRequest** | [**TemplateCreateEmbeddedDraftRequest**](TemplateCreateEmbeddedDraftRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -459,14 +456,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **TemplateDelete** -> void TemplateDelete (string templateId, string? idempotencyKey = null) +> void TemplateDelete (string templateId) Delete Template @@ -517,7 +514,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Delete Template - apiInstance.TemplateDeleteWithHttpInfo(templateId, idempotencyKey); + apiInstance.TemplateDeleteWithHttpInfo(templateId); } catch (ApiException e) { @@ -532,7 +529,6 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **templateId** | **string** | The id of the Template to delete. | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -551,7 +547,7 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1047,7 +1043,7 @@ catch (ApiException e) # **TemplateRemoveUser** -> TemplateGetResponse TemplateRemoveUser (string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, string? idempotencyKey = null) +> TemplateGetResponse TemplateRemoveUser (string templateId, TemplateRemoveUserRequest templateRemoveUserRequest) Remove User from Template @@ -1105,7 +1101,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Remove User from Template - ApiResponse response = apiInstance.TemplateRemoveUserWithHttpInfo(templateId, templateRemoveUserRequest, idempotencyKey); + ApiResponse response = apiInstance.TemplateRemoveUserWithHttpInfo(templateId, templateRemoveUserRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -1124,7 +1120,6 @@ catch (ApiException e) |------|------|-------------|-------| | **templateId** | **string** | The id of the Template to remove the Account's access to. | | | **templateRemoveUserRequest** | [**TemplateRemoveUserRequest**](TemplateRemoveUserRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1143,14 +1138,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **TemplateUpdateFiles** -> TemplateUpdateFilesResponse TemplateUpdateFiles (string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, string? idempotencyKey = null) +> TemplateUpdateFilesResponse TemplateUpdateFiles (string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest) Update Template Files @@ -1214,7 +1209,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Update Template Files - ApiResponse response = apiInstance.TemplateUpdateFilesWithHttpInfo(templateId, templateUpdateFilesRequest, idempotencyKey); + ApiResponse response = apiInstance.TemplateUpdateFilesWithHttpInfo(templateId, templateUpdateFilesRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -1233,7 +1228,6 @@ catch (ApiException e) |------|------|-------------|-------| | **templateId** | **string** | The ID of the template whose files to update. | | | **templateUpdateFilesRequest** | [**TemplateUpdateFilesRequest**](TemplateUpdateFilesRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1252,7 +1246,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/dotnet/docs/UnclaimedDraftApi.md b/sdks/dotnet/docs/UnclaimedDraftApi.md index e385fc60a..3bd6eda05 100644 --- a/sdks/dotnet/docs/UnclaimedDraftApi.md +++ b/sdks/dotnet/docs/UnclaimedDraftApi.md @@ -11,7 +11,7 @@ All URIs are relative to *https://api.hellosign.com/v3* # **UnclaimedDraftCreate** -> UnclaimedDraftCreateResponse UnclaimedDraftCreate (UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, string? idempotencyKey = null) +> UnclaimedDraftCreateResponse UnclaimedDraftCreate (UnclaimedDraftCreateRequest unclaimedDraftCreateRequest) Create Unclaimed Draft @@ -88,7 +88,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Create Unclaimed Draft - ApiResponse response = apiInstance.UnclaimedDraftCreateWithHttpInfo(unclaimedDraftCreateRequest, idempotencyKey); + ApiResponse response = apiInstance.UnclaimedDraftCreateWithHttpInfo(unclaimedDraftCreateRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -106,7 +106,6 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **unclaimedDraftCreateRequest** | [**UnclaimedDraftCreateRequest**](UnclaimedDraftCreateRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -125,14 +124,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **UnclaimedDraftCreateEmbedded** -> UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbedded (UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, string? idempotencyKey = null) +> UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbedded (UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest) Create Embedded Unclaimed Draft @@ -198,7 +197,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Create Embedded Unclaimed Draft - ApiResponse response = apiInstance.UnclaimedDraftCreateEmbeddedWithHttpInfo(unclaimedDraftCreateEmbeddedRequest, idempotencyKey); + ApiResponse response = apiInstance.UnclaimedDraftCreateEmbeddedWithHttpInfo(unclaimedDraftCreateEmbeddedRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -216,7 +215,6 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **unclaimedDraftCreateEmbeddedRequest** | [**UnclaimedDraftCreateEmbeddedRequest**](UnclaimedDraftCreateEmbeddedRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -235,14 +233,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **UnclaimedDraftCreateEmbeddedWithTemplate** -> UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbeddedWithTemplate (UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, string? idempotencyKey = null) +> UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbeddedWithTemplate (UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest) Create Embedded Unclaimed Draft with Template @@ -327,7 +325,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Create Embedded Unclaimed Draft with Template - ApiResponse response = apiInstance.UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(unclaimedDraftCreateEmbeddedWithTemplateRequest, idempotencyKey); + ApiResponse response = apiInstance.UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(unclaimedDraftCreateEmbeddedWithTemplateRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -345,7 +343,6 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **unclaimedDraftCreateEmbeddedWithTemplateRequest** | [**UnclaimedDraftCreateEmbeddedWithTemplateRequest**](UnclaimedDraftCreateEmbeddedWithTemplateRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -364,14 +361,14 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **UnclaimedDraftEditAndResend** -> UnclaimedDraftCreateResponse UnclaimedDraftEditAndResend (string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, string? idempotencyKey = null) +> UnclaimedDraftCreateResponse UnclaimedDraftEditAndResend (string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest) Edit and Resend Unclaimed Draft @@ -430,7 +427,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Edit and Resend Unclaimed Draft - ApiResponse response = apiInstance.UnclaimedDraftEditAndResendWithHttpInfo(signatureRequestId, unclaimedDraftEditAndResendRequest, idempotencyKey); + ApiResponse response = apiInstance.UnclaimedDraftEditAndResendWithHttpInfo(signatureRequestId, unclaimedDraftEditAndResendRequest); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -449,7 +446,6 @@ catch (ApiException e) |------|------|-------------|-------| | **signatureRequestId** | **string** | The ID of the signature request to edit and resend. | | | **unclaimedDraftEditAndResendRequest** | [**UnclaimedDraftEditAndResendRequest**](UnclaimedDraftEditAndResendRequest.md) | | | -| **idempotencyKey** | **string?** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -468,7 +464,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/AccountApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/AccountApi.cs index 8fae6e0d6..1a06b0003 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/AccountApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/AccountApi.cs @@ -36,10 +36,9 @@ public interface IAccountApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// AccountCreateResponse - AccountCreateResponse AccountCreate(AccountCreateRequest accountCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + AccountCreateResponse AccountCreate(AccountCreateRequest accountCreateRequest, int operationIndex = 0); /// /// Create Account @@ -50,10 +49,9 @@ public interface IAccountApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of AccountCreateResponse - ApiResponse AccountCreateWithHttpInfo(AccountCreateRequest accountCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse AccountCreateWithHttpInfo(AccountCreateRequest accountCreateRequest, int operationIndex = 0); /// /// Get Account /// @@ -90,10 +88,9 @@ public interface IAccountApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountUpdateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// AccountGetResponse - AccountGetResponse AccountUpdate(AccountUpdateRequest accountUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + AccountGetResponse AccountUpdate(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0); /// /// Update Account @@ -104,10 +101,9 @@ public interface IAccountApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountUpdateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of AccountGetResponse - ApiResponse AccountUpdateWithHttpInfo(AccountUpdateRequest accountUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse AccountUpdateWithHttpInfo(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0); /// /// Verify Account /// @@ -117,10 +113,9 @@ public interface IAccountApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountVerifyExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// AccountVerifyResponse - AccountVerifyResponse AccountVerify(AccountVerifyRequest accountVerifyRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + AccountVerifyResponse AccountVerify(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0); /// /// Verify Account @@ -131,10 +126,9 @@ public interface IAccountApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountVerifyExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of AccountVerifyResponse - ApiResponse AccountVerifyWithHttpInfo(AccountVerifyRequest accountVerifyRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse AccountVerifyWithHttpInfo(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0); #endregion Synchronous Operations } @@ -153,11 +147,10 @@ public interface IAccountApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountCreateResponse - System.Threading.Tasks.Task AccountCreateAsync(AccountCreateRequest accountCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task AccountCreateAsync(AccountCreateRequest accountCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Account @@ -168,11 +161,10 @@ public interface IAccountApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountCreateResponse) - System.Threading.Tasks.Task> AccountCreateWithHttpInfoAsync(AccountCreateRequest accountCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> AccountCreateWithHttpInfoAsync(AccountCreateRequest accountCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Account /// @@ -211,11 +203,10 @@ public interface IAccountApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountUpdateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountGetResponse - System.Threading.Tasks.Task AccountUpdateAsync(AccountUpdateRequest accountUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task AccountUpdateAsync(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update Account @@ -226,11 +217,10 @@ public interface IAccountApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountUpdateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountGetResponse) - System.Threading.Tasks.Task> AccountUpdateWithHttpInfoAsync(AccountUpdateRequest accountUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> AccountUpdateWithHttpInfoAsync(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Verify Account /// @@ -240,11 +230,10 @@ public interface IAccountApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountVerifyExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountVerifyResponse - System.Threading.Tasks.Task AccountVerifyAsync(AccountVerifyRequest accountVerifyRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task AccountVerifyAsync(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Verify Account @@ -255,11 +244,10 @@ public interface IAccountApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountVerifyExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountVerifyResponse) - System.Threading.Tasks.Task> AccountVerifyWithHttpInfoAsync(AccountVerifyRequest accountVerifyRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> AccountVerifyWithHttpInfoAsync(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -386,12 +374,11 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// AccountCreateResponse - public AccountCreateResponse AccountCreate(AccountCreateRequest accountCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public AccountCreateResponse AccountCreate(AccountCreateRequest accountCreateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = AccountCreateWithHttpInfo(accountCreateRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = AccountCreateWithHttpInfo(accountCreateRequest); return localVarResponse.Data; } @@ -401,10 +388,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of AccountCreateResponse - public Dropbox.Sign.Client.ApiResponse AccountCreateWithHttpInfo(AccountCreateRequest accountCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse AccountCreateWithHttpInfo(AccountCreateRequest accountCreateRequest, int operationIndex = 0) { // verify the required parameter 'accountCreateRequest' is set if (accountCreateRequest == null) @@ -443,10 +429,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "AccountApi.AccountCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -484,13 +466,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountCreateResponse - public async System.Threading.Tasks.Task AccountCreateAsync(AccountCreateRequest accountCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task AccountCreateAsync(AccountCreateRequest accountCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await AccountCreateWithHttpInfoAsync(accountCreateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await AccountCreateWithHttpInfoAsync(accountCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -500,11 +481,10 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountCreateResponse) - public async System.Threading.Tasks.Task> AccountCreateWithHttpInfoAsync(AccountCreateRequest accountCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> AccountCreateWithHttpInfoAsync(AccountCreateRequest accountCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'accountCreateRequest' is set if (accountCreateRequest == null) @@ -544,10 +524,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "AccountApi.AccountCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -764,12 +740,11 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountUpdateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// AccountGetResponse - public AccountGetResponse AccountUpdate(AccountUpdateRequest accountUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public AccountGetResponse AccountUpdate(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = AccountUpdateWithHttpInfo(accountUpdateRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = AccountUpdateWithHttpInfo(accountUpdateRequest); return localVarResponse.Data; } @@ -779,10 +754,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountUpdateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of AccountGetResponse - public Dropbox.Sign.Client.ApiResponse AccountUpdateWithHttpInfo(AccountUpdateRequest accountUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse AccountUpdateWithHttpInfo(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0) { // verify the required parameter 'accountUpdateRequest' is set if (accountUpdateRequest == null) @@ -821,10 +795,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "AccountApi.AccountUpdate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -862,13 +832,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountUpdateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountGetResponse - public async System.Threading.Tasks.Task AccountUpdateAsync(AccountUpdateRequest accountUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task AccountUpdateAsync(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await AccountUpdateWithHttpInfoAsync(accountUpdateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await AccountUpdateWithHttpInfoAsync(accountUpdateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -878,11 +847,10 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountUpdateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountGetResponse) - public async System.Threading.Tasks.Task> AccountUpdateWithHttpInfoAsync(AccountUpdateRequest accountUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> AccountUpdateWithHttpInfoAsync(AccountUpdateRequest accountUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'accountUpdateRequest' is set if (accountUpdateRequest == null) @@ -922,10 +890,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "AccountApi.AccountUpdate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -964,12 +928,11 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountVerifyExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// AccountVerifyResponse - public AccountVerifyResponse AccountVerify(AccountVerifyRequest accountVerifyRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public AccountVerifyResponse AccountVerify(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = AccountVerifyWithHttpInfo(accountVerifyRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = AccountVerifyWithHttpInfo(accountVerifyRequest); return localVarResponse.Data; } @@ -979,10 +942,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountVerifyExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of AccountVerifyResponse - public Dropbox.Sign.Client.ApiResponse AccountVerifyWithHttpInfo(AccountVerifyRequest accountVerifyRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse AccountVerifyWithHttpInfo(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0) { // verify the required parameter 'accountVerifyRequest' is set if (accountVerifyRequest == null) @@ -1021,10 +983,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "AccountApi.AccountVerify"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1062,13 +1020,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountVerifyExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of AccountVerifyResponse - public async System.Threading.Tasks.Task AccountVerifyAsync(AccountVerifyRequest accountVerifyRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task AccountVerifyAsync(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await AccountVerifyWithHttpInfoAsync(accountVerifyRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await AccountVerifyWithHttpInfoAsync(accountVerifyRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1078,11 +1035,10 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/AccountVerifyExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (AccountVerifyResponse) - public async System.Threading.Tasks.Task> AccountVerifyWithHttpInfoAsync(AccountVerifyRequest accountVerifyRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> AccountVerifyWithHttpInfoAsync(AccountVerifyRequest accountVerifyRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'accountVerifyRequest' is set if (accountVerifyRequest == null) @@ -1122,10 +1078,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "AccountApi.AccountVerify"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/ApiAppApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/ApiAppApi.cs index f6d18a46e..10610c791 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/ApiAppApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/ApiAppApi.cs @@ -36,10 +36,9 @@ public interface IApiAppApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/ApiAppCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiAppGetResponse - ApiAppGetResponse ApiAppCreate(ApiAppCreateRequest apiAppCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiAppGetResponse ApiAppCreate(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0); /// /// Create API App @@ -50,10 +49,9 @@ public interface IApiAppApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/ApiAppCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of ApiAppGetResponse - ApiResponse ApiAppCreateWithHttpInfo(ApiAppCreateRequest apiAppCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse ApiAppCreateWithHttpInfo(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0); /// /// Delete API App /// @@ -141,10 +139,9 @@ public interface IApiAppApiSync : IApiAccessor /// Thrown when fails to make API call /// The client id of the API App to update. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiAppGetResponse - ApiAppGetResponse ApiAppUpdate(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiAppGetResponse ApiAppUpdate(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0); /// /// Update API App @@ -156,10 +153,9 @@ public interface IApiAppApiSync : IApiAccessor /// Thrown when fails to make API call /// The client id of the API App to update. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of ApiAppGetResponse - ApiResponse ApiAppUpdateWithHttpInfo(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse ApiAppUpdateWithHttpInfo(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0); #endregion Synchronous Operations } @@ -178,11 +174,10 @@ public interface IApiAppApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/ApiAppCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiAppGetResponse - System.Threading.Tasks.Task ApiAppCreateAsync(ApiAppCreateRequest apiAppCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiAppCreateAsync(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create API App @@ -193,11 +188,10 @@ public interface IApiAppApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/ApiAppCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiAppGetResponse) - System.Threading.Tasks.Task> ApiAppCreateWithHttpInfoAsync(ApiAppCreateRequest apiAppCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ApiAppCreateWithHttpInfoAsync(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Delete API App /// @@ -291,11 +285,10 @@ public interface IApiAppApiAsync : IApiAccessor /// Thrown when fails to make API call /// The client id of the API App to update. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiAppGetResponse - System.Threading.Tasks.Task ApiAppUpdateAsync(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiAppUpdateAsync(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update API App @@ -307,11 +300,10 @@ public interface IApiAppApiAsync : IApiAccessor /// Thrown when fails to make API call /// The client id of the API App to update. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiAppGetResponse) - System.Threading.Tasks.Task> ApiAppUpdateWithHttpInfoAsync(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ApiAppUpdateWithHttpInfoAsync(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -438,12 +430,11 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/ApiAppCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiAppGetResponse - public ApiAppGetResponse ApiAppCreate(ApiAppCreateRequest apiAppCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public ApiAppGetResponse ApiAppCreate(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = ApiAppCreateWithHttpInfo(apiAppCreateRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = ApiAppCreateWithHttpInfo(apiAppCreateRequest); return localVarResponse.Data; } @@ -453,10 +444,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/ApiAppCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of ApiAppGetResponse - public Dropbox.Sign.Client.ApiResponse ApiAppCreateWithHttpInfo(ApiAppCreateRequest apiAppCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse ApiAppCreateWithHttpInfo(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0) { // verify the required parameter 'apiAppCreateRequest' is set if (apiAppCreateRequest == null) @@ -495,10 +485,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "ApiAppApi.ApiAppCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -536,13 +522,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/ApiAppCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiAppGetResponse - public async System.Threading.Tasks.Task ApiAppCreateAsync(ApiAppCreateRequest apiAppCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiAppCreateAsync(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await ApiAppCreateWithHttpInfoAsync(apiAppCreateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await ApiAppCreateWithHttpInfoAsync(apiAppCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -552,11 +537,10 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/ApiAppCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiAppGetResponse) - public async System.Threading.Tasks.Task> ApiAppCreateWithHttpInfoAsync(ApiAppCreateRequest apiAppCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ApiAppCreateWithHttpInfoAsync(ApiAppCreateRequest apiAppCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'apiAppCreateRequest' is set if (apiAppCreateRequest == null) @@ -596,10 +580,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "ApiAppApi.ApiAppCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1159,12 +1139,11 @@ public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( /// Thrown when fails to make API call /// The client id of the API App to update. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiAppGetResponse - public ApiAppGetResponse ApiAppUpdate(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public ApiAppGetResponse ApiAppUpdate(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = ApiAppUpdateWithHttpInfo(clientId, apiAppUpdateRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = ApiAppUpdateWithHttpInfo(clientId, apiAppUpdateRequest); return localVarResponse.Data; } @@ -1175,10 +1154,9 @@ public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( /// Thrown when fails to make API call /// The client id of the API App to update. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of ApiAppGetResponse - public Dropbox.Sign.Client.ApiResponse ApiAppUpdateWithHttpInfo(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse ApiAppUpdateWithHttpInfo(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0) { // verify the required parameter 'clientId' is set if (clientId == null) @@ -1224,10 +1202,6 @@ public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( } localVarRequestOptions.PathParameters.Add("client_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId)); // path parameter - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "ApiAppApi.ApiAppUpdate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1266,13 +1240,12 @@ public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( /// Thrown when fails to make API call /// The client id of the API App to update. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiAppGetResponse - public async System.Threading.Tasks.Task ApiAppUpdateAsync(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiAppUpdateAsync(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await ApiAppUpdateWithHttpInfoAsync(clientId, apiAppUpdateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await ApiAppUpdateWithHttpInfoAsync(clientId, apiAppUpdateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1283,11 +1256,10 @@ public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( /// Thrown when fails to make API call /// The client id of the API App to update. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiAppGetResponse) - public async System.Threading.Tasks.Task> ApiAppUpdateWithHttpInfoAsync(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ApiAppUpdateWithHttpInfoAsync(string clientId, ApiAppUpdateRequest apiAppUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'clientId' is set if (clientId == null) @@ -1334,10 +1306,6 @@ public Dropbox.Sign.Client.ApiResponse ApiAppGetWithHttpInfo( } localVarRequestOptions.PathParameters.Add("client_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(clientId)); // path parameter - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "ApiAppApi.ApiAppUpdate"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/DocumentApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/DocumentApi.cs index a29ed5d94..3bd7a700a 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/DocumentApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/DocumentApi.cs @@ -36,10 +36,9 @@ public interface IDocumentApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/DocumentDetectFieldsExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// DocumentFieldDetectionResponse - DocumentFieldDetectionResponse DocumentDetectFields(DocumentFieldDetectionRequest documentFieldDetectionRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + DocumentFieldDetectionResponse DocumentDetectFields(DocumentFieldDetectionRequest documentFieldDetectionRequest, int operationIndex = 0); /// /// Detect Document Fields @@ -50,10 +49,9 @@ public interface IDocumentApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/DocumentDetectFieldsExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of DocumentFieldDetectionResponse - ApiResponse DocumentDetectFieldsWithHttpInfo(DocumentFieldDetectionRequest documentFieldDetectionRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse DocumentDetectFieldsWithHttpInfo(DocumentFieldDetectionRequest documentFieldDetectionRequest, int operationIndex = 0); #endregion Synchronous Operations } @@ -72,11 +70,10 @@ public interface IDocumentApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/DocumentDetectFieldsExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of DocumentFieldDetectionResponse - System.Threading.Tasks.Task DocumentDetectFieldsAsync(DocumentFieldDetectionRequest documentFieldDetectionRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task DocumentDetectFieldsAsync(DocumentFieldDetectionRequest documentFieldDetectionRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Detect Document Fields @@ -87,11 +84,10 @@ public interface IDocumentApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/DocumentDetectFieldsExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (DocumentFieldDetectionResponse) - System.Threading.Tasks.Task> DocumentDetectFieldsWithHttpInfoAsync(DocumentFieldDetectionRequest documentFieldDetectionRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> DocumentDetectFieldsWithHttpInfoAsync(DocumentFieldDetectionRequest documentFieldDetectionRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -218,12 +214,11 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/DocumentDetectFieldsExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// DocumentFieldDetectionResponse - public DocumentFieldDetectionResponse DocumentDetectFields(DocumentFieldDetectionRequest documentFieldDetectionRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public DocumentFieldDetectionResponse DocumentDetectFields(DocumentFieldDetectionRequest documentFieldDetectionRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = DocumentDetectFieldsWithHttpInfo(documentFieldDetectionRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = DocumentDetectFieldsWithHttpInfo(documentFieldDetectionRequest); return localVarResponse.Data; } @@ -233,10 +228,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/DocumentDetectFieldsExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of DocumentFieldDetectionResponse - public Dropbox.Sign.Client.ApiResponse DocumentDetectFieldsWithHttpInfo(DocumentFieldDetectionRequest documentFieldDetectionRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse DocumentDetectFieldsWithHttpInfo(DocumentFieldDetectionRequest documentFieldDetectionRequest, int operationIndex = 0) { // verify the required parameter 'documentFieldDetectionRequest' is set if (documentFieldDetectionRequest == null) @@ -275,10 +269,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "DocumentApi.DocumentDetectFields"; localVarRequestOptions.OperationIndex = operationIndex; @@ -316,13 +306,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/DocumentDetectFieldsExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of DocumentFieldDetectionResponse - public async System.Threading.Tasks.Task DocumentDetectFieldsAsync(DocumentFieldDetectionRequest documentFieldDetectionRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DocumentDetectFieldsAsync(DocumentFieldDetectionRequest documentFieldDetectionRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await DocumentDetectFieldsWithHttpInfoAsync(documentFieldDetectionRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await DocumentDetectFieldsWithHttpInfoAsync(documentFieldDetectionRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -332,11 +321,10 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/DocumentDetectFieldsExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (DocumentFieldDetectionResponse) - public async System.Threading.Tasks.Task> DocumentDetectFieldsWithHttpInfoAsync(DocumentFieldDetectionRequest documentFieldDetectionRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> DocumentDetectFieldsWithHttpInfoAsync(DocumentFieldDetectionRequest documentFieldDetectionRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'documentFieldDetectionRequest' is set if (documentFieldDetectionRequest == null) @@ -376,10 +364,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "DocumentApi.DocumentDetectFields"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/EmbeddedApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/EmbeddedApi.cs index 2630e9aa4..85ab285a4 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/EmbeddedApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/EmbeddedApi.cs @@ -37,10 +37,9 @@ public interface IEmbeddedApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the template to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// EmbeddedEditUrlResponse - EmbeddedEditUrlResponse EmbeddedEditUrl(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + EmbeddedEditUrlResponse EmbeddedEditUrl(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0); /// /// Get Embedded Template Edit URL @@ -52,10 +51,9 @@ public interface IEmbeddedApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the template to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of EmbeddedEditUrlResponse - ApiResponse EmbeddedEditUrlWithHttpInfo(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse EmbeddedEditUrlWithHttpInfo(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0); /// /// Get Embedded Sign URL /// @@ -100,11 +98,10 @@ public interface IEmbeddedApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the template to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of EmbeddedEditUrlResponse - System.Threading.Tasks.Task EmbeddedEditUrlAsync(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task EmbeddedEditUrlAsync(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Embedded Template Edit URL @@ -116,11 +113,10 @@ public interface IEmbeddedApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the template to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (EmbeddedEditUrlResponse) - System.Threading.Tasks.Task> EmbeddedEditUrlWithHttpInfoAsync(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> EmbeddedEditUrlWithHttpInfoAsync(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Embedded Sign URL /// @@ -275,12 +271,11 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// The id of the template to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// EmbeddedEditUrlResponse - public EmbeddedEditUrlResponse EmbeddedEditUrl(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public EmbeddedEditUrlResponse EmbeddedEditUrl(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = EmbeddedEditUrlWithHttpInfo(templateId, embeddedEditUrlRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = EmbeddedEditUrlWithHttpInfo(templateId, embeddedEditUrlRequest); return localVarResponse.Data; } @@ -291,10 +286,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// The id of the template to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of EmbeddedEditUrlResponse - public Dropbox.Sign.Client.ApiResponse EmbeddedEditUrlWithHttpInfo(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse EmbeddedEditUrlWithHttpInfo(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0) { // verify the required parameter 'templateId' is set if (templateId == null) @@ -340,10 +334,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "EmbeddedApi.EmbeddedEditUrl"; localVarRequestOptions.OperationIndex = operationIndex; @@ -382,13 +372,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// The id of the template to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of EmbeddedEditUrlResponse - public async System.Threading.Tasks.Task EmbeddedEditUrlAsync(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task EmbeddedEditUrlAsync(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await EmbeddedEditUrlWithHttpInfoAsync(templateId, embeddedEditUrlRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await EmbeddedEditUrlWithHttpInfoAsync(templateId, embeddedEditUrlRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -399,11 +388,10 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// The id of the template to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (EmbeddedEditUrlResponse) - public async System.Threading.Tasks.Task> EmbeddedEditUrlWithHttpInfoAsync(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> EmbeddedEditUrlWithHttpInfoAsync(string templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'templateId' is set if (templateId == null) @@ -450,10 +438,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "EmbeddedApi.EmbeddedEditUrl"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/FaxApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/FaxApi.cs index 03ff6263e..faa75bbde 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/FaxApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/FaxApi.cs @@ -138,10 +138,9 @@ public interface IFaxApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxSendExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// FaxGetResponse - FaxGetResponse FaxSend(FaxSendRequest faxSendRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + FaxGetResponse FaxSend(FaxSendRequest faxSendRequest, int operationIndex = 0); /// /// Send Fax @@ -152,10 +151,9 @@ public interface IFaxApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxSendExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of FaxGetResponse - ApiResponse FaxSendWithHttpInfo(FaxSendRequest faxSendRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse FaxSendWithHttpInfo(FaxSendRequest faxSendRequest, int operationIndex = 0); #endregion Synchronous Operations } @@ -284,11 +282,10 @@ public interface IFaxApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxSendExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxGetResponse - System.Threading.Tasks.Task FaxSendAsync(FaxSendRequest faxSendRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task FaxSendAsync(FaxSendRequest faxSendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Send Fax @@ -299,11 +296,10 @@ public interface IFaxApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxSendExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxGetResponse) - System.Threading.Tasks.Task> FaxSendWithHttpInfoAsync(FaxSendRequest faxSendRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FaxSendWithHttpInfoAsync(FaxSendRequest faxSendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -1076,12 +1072,11 @@ public Dropbox.Sign.Client.ApiResponse FaxGetWithHttpInfo(string /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxSendExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// FaxGetResponse - public FaxGetResponse FaxSend(FaxSendRequest faxSendRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public FaxGetResponse FaxSend(FaxSendRequest faxSendRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = FaxSendWithHttpInfo(faxSendRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = FaxSendWithHttpInfo(faxSendRequest); return localVarResponse.Data; } @@ -1091,10 +1086,9 @@ public Dropbox.Sign.Client.ApiResponse FaxGetWithHttpInfo(string /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxSendExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of FaxGetResponse - public Dropbox.Sign.Client.ApiResponse FaxSendWithHttpInfo(FaxSendRequest faxSendRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse FaxSendWithHttpInfo(FaxSendRequest faxSendRequest, int operationIndex = 0) { // verify the required parameter 'faxSendRequest' is set if (faxSendRequest == null) @@ -1133,10 +1127,6 @@ public Dropbox.Sign.Client.ApiResponse FaxGetWithHttpInfo(string localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "FaxApi.FaxSend"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1168,13 +1158,12 @@ public Dropbox.Sign.Client.ApiResponse FaxGetWithHttpInfo(string /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxSendExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxGetResponse - public async System.Threading.Tasks.Task FaxSendAsync(FaxSendRequest faxSendRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FaxSendAsync(FaxSendRequest faxSendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxSendWithHttpInfoAsync(faxSendRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxSendWithHttpInfoAsync(faxSendRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1184,11 +1173,10 @@ public Dropbox.Sign.Client.ApiResponse FaxGetWithHttpInfo(string /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxSendExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxGetResponse) - public async System.Threading.Tasks.Task> FaxSendWithHttpInfoAsync(FaxSendRequest faxSendRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FaxSendWithHttpInfoAsync(FaxSendRequest faxSendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'faxSendRequest' is set if (faxSendRequest == null) @@ -1228,10 +1216,6 @@ public Dropbox.Sign.Client.ApiResponse FaxGetWithHttpInfo(string localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "FaxApi.FaxSend"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/FaxLineApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/FaxLineApi.cs index f090170ec..e756a48f5 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/FaxLineApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/FaxLineApi.cs @@ -36,10 +36,9 @@ public interface IFaxLineApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineAddUserExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// FaxLineResponse - FaxLineResponse FaxLineAddUser(FaxLineAddUserRequest faxLineAddUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + FaxLineResponse FaxLineAddUser(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0); /// /// Add Fax Line User @@ -50,10 +49,9 @@ public interface IFaxLineApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineAddUserExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of FaxLineResponse - ApiResponse FaxLineAddUserWithHttpInfo(FaxLineAddUserRequest faxLineAddUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse FaxLineAddUserWithHttpInfo(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0); /// /// Get Available Fax Line Area Codes /// @@ -94,10 +92,9 @@ public interface IFaxLineApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// FaxLineResponse - FaxLineResponse FaxLineCreate(FaxLineCreateRequest faxLineCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + FaxLineResponse FaxLineCreate(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0); /// /// Purchase Fax Line @@ -108,10 +105,9 @@ public interface IFaxLineApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of FaxLineResponse - ApiResponse FaxLineCreateWithHttpInfo(FaxLineCreateRequest faxLineCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse FaxLineCreateWithHttpInfo(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0); /// /// Delete Fax Line /// @@ -202,10 +198,9 @@ public interface IFaxLineApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineRemoveUserExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// FaxLineResponse - FaxLineResponse FaxLineRemoveUser(FaxLineRemoveUserRequest faxLineRemoveUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + FaxLineResponse FaxLineRemoveUser(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0); /// /// Remove Fax Line Access @@ -216,10 +211,9 @@ public interface IFaxLineApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineRemoveUserExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of FaxLineResponse - ApiResponse FaxLineRemoveUserWithHttpInfo(FaxLineRemoveUserRequest faxLineRemoveUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse FaxLineRemoveUserWithHttpInfo(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0); #endregion Synchronous Operations } @@ -238,11 +232,10 @@ public interface IFaxLineApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineAddUserExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - System.Threading.Tasks.Task FaxLineAddUserAsync(FaxLineAddUserRequest faxLineAddUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task FaxLineAddUserAsync(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Add Fax Line User @@ -253,11 +246,10 @@ public interface IFaxLineApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineAddUserExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - System.Threading.Tasks.Task> FaxLineAddUserWithHttpInfoAsync(FaxLineAddUserRequest faxLineAddUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FaxLineAddUserWithHttpInfoAsync(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Available Fax Line Area Codes /// @@ -300,11 +292,10 @@ public interface IFaxLineApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - System.Threading.Tasks.Task FaxLineCreateAsync(FaxLineCreateRequest faxLineCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task FaxLineCreateAsync(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Purchase Fax Line @@ -315,11 +306,10 @@ public interface IFaxLineApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - System.Threading.Tasks.Task> FaxLineCreateWithHttpInfoAsync(FaxLineCreateRequest faxLineCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FaxLineCreateWithHttpInfoAsync(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Delete Fax Line /// @@ -416,11 +406,10 @@ public interface IFaxLineApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineRemoveUserExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - System.Threading.Tasks.Task FaxLineRemoveUserAsync(FaxLineRemoveUserRequest faxLineRemoveUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task FaxLineRemoveUserAsync(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Remove Fax Line Access @@ -431,11 +420,10 @@ public interface IFaxLineApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineRemoveUserExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - System.Threading.Tasks.Task> FaxLineRemoveUserWithHttpInfoAsync(FaxLineRemoveUserRequest faxLineRemoveUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FaxLineRemoveUserWithHttpInfoAsync(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -562,12 +550,11 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineAddUserExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// FaxLineResponse - public FaxLineResponse FaxLineAddUser(FaxLineAddUserRequest faxLineAddUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public FaxLineResponse FaxLineAddUser(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = FaxLineAddUserWithHttpInfo(faxLineAddUserRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = FaxLineAddUserWithHttpInfo(faxLineAddUserRequest); return localVarResponse.Data; } @@ -577,10 +564,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineAddUserExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of FaxLineResponse - public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpInfo(FaxLineAddUserRequest faxLineAddUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse FaxLineAddUserWithHttpInfo(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0) { // verify the required parameter 'faxLineAddUserRequest' is set if (faxLineAddUserRequest == null) @@ -619,10 +605,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "FaxLineApi.FaxLineAddUser"; localVarRequestOptions.OperationIndex = operationIndex; @@ -654,13 +636,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineAddUserExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - public async System.Threading.Tasks.Task FaxLineAddUserAsync(FaxLineAddUserRequest faxLineAddUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FaxLineAddUserAsync(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxLineAddUserWithHttpInfoAsync(faxLineAddUserRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxLineAddUserWithHttpInfoAsync(faxLineAddUserRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -670,11 +651,10 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineAddUserExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - public async System.Threading.Tasks.Task> FaxLineAddUserWithHttpInfoAsync(FaxLineAddUserRequest faxLineAddUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FaxLineAddUserWithHttpInfoAsync(FaxLineAddUserRequest faxLineAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'faxLineAddUserRequest' is set if (faxLineAddUserRequest == null) @@ -714,10 +694,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "FaxLineApi.FaxLineAddUser"; localVarRequestOptions.OperationIndex = operationIndex; @@ -946,12 +922,11 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// FaxLineResponse - public FaxLineResponse FaxLineCreate(FaxLineCreateRequest faxLineCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public FaxLineResponse FaxLineCreate(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = FaxLineCreateWithHttpInfo(faxLineCreateRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = FaxLineCreateWithHttpInfo(faxLineCreateRequest); return localVarResponse.Data; } @@ -961,10 +936,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of FaxLineResponse - public Dropbox.Sign.Client.ApiResponse FaxLineCreateWithHttpInfo(FaxLineCreateRequest faxLineCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse FaxLineCreateWithHttpInfo(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0) { // verify the required parameter 'faxLineCreateRequest' is set if (faxLineCreateRequest == null) @@ -1003,10 +977,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "FaxLineApi.FaxLineCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1038,13 +1008,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - public async System.Threading.Tasks.Task FaxLineCreateAsync(FaxLineCreateRequest faxLineCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FaxLineCreateAsync(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxLineCreateWithHttpInfoAsync(faxLineCreateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxLineCreateWithHttpInfoAsync(faxLineCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1054,11 +1023,10 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - public async System.Threading.Tasks.Task> FaxLineCreateWithHttpInfoAsync(FaxLineCreateRequest faxLineCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FaxLineCreateWithHttpInfoAsync(FaxLineCreateRequest faxLineCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'faxLineCreateRequest' is set if (faxLineCreateRequest == null) @@ -1098,10 +1066,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "FaxLineApi.FaxLineCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1658,12 +1622,11 @@ public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo(s /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineRemoveUserExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// FaxLineResponse - public FaxLineResponse FaxLineRemoveUser(FaxLineRemoveUserRequest faxLineRemoveUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public FaxLineResponse FaxLineRemoveUser(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = FaxLineRemoveUserWithHttpInfo(faxLineRemoveUserRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = FaxLineRemoveUserWithHttpInfo(faxLineRemoveUserRequest); return localVarResponse.Data; } @@ -1673,10 +1636,9 @@ public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo(s /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineRemoveUserExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of FaxLineResponse - public Dropbox.Sign.Client.ApiResponse FaxLineRemoveUserWithHttpInfo(FaxLineRemoveUserRequest faxLineRemoveUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse FaxLineRemoveUserWithHttpInfo(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0) { // verify the required parameter 'faxLineRemoveUserRequest' is set if (faxLineRemoveUserRequest == null) @@ -1715,10 +1677,6 @@ public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo(s localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "FaxLineApi.FaxLineRemoveUser"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1750,13 +1708,12 @@ public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo(s /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineRemoveUserExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of FaxLineResponse - public async System.Threading.Tasks.Task FaxLineRemoveUserAsync(FaxLineRemoveUserRequest faxLineRemoveUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FaxLineRemoveUserAsync(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxLineRemoveUserWithHttpInfoAsync(faxLineRemoveUserRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await FaxLineRemoveUserWithHttpInfoAsync(faxLineRemoveUserRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1766,11 +1723,10 @@ public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo(s /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/FaxLineRemoveUserExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (FaxLineResponse) - public async System.Threading.Tasks.Task> FaxLineRemoveUserWithHttpInfoAsync(FaxLineRemoveUserRequest faxLineRemoveUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FaxLineRemoveUserWithHttpInfoAsync(FaxLineRemoveUserRequest faxLineRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'faxLineRemoveUserRequest' is set if (faxLineRemoveUserRequest == null) @@ -1810,10 +1766,6 @@ public Dropbox.Sign.Client.ApiResponse FaxLineGetWithHttpInfo(s localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "FaxLineApi.FaxLineRemoveUser"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/ReportApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/ReportApi.cs index a32731387..0e075a0e3 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/ReportApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/ReportApi.cs @@ -36,10 +36,9 @@ public interface IReportApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/ReportCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ReportCreateResponse - ReportCreateResponse ReportCreate(ReportCreateRequest reportCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ReportCreateResponse ReportCreate(ReportCreateRequest reportCreateRequest, int operationIndex = 0); /// /// Create Report @@ -50,10 +49,9 @@ public interface IReportApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/ReportCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of ReportCreateResponse - ApiResponse ReportCreateWithHttpInfo(ReportCreateRequest reportCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse ReportCreateWithHttpInfo(ReportCreateRequest reportCreateRequest, int operationIndex = 0); #endregion Synchronous Operations } @@ -72,11 +70,10 @@ public interface IReportApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/ReportCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ReportCreateResponse - System.Threading.Tasks.Task ReportCreateAsync(ReportCreateRequest reportCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task ReportCreateAsync(ReportCreateRequest reportCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Report @@ -87,11 +84,10 @@ public interface IReportApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/ReportCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ReportCreateResponse) - System.Threading.Tasks.Task> ReportCreateWithHttpInfoAsync(ReportCreateRequest reportCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ReportCreateWithHttpInfoAsync(ReportCreateRequest reportCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -218,12 +214,11 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/ReportCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ReportCreateResponse - public ReportCreateResponse ReportCreate(ReportCreateRequest reportCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public ReportCreateResponse ReportCreate(ReportCreateRequest reportCreateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = ReportCreateWithHttpInfo(reportCreateRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = ReportCreateWithHttpInfo(reportCreateRequest); return localVarResponse.Data; } @@ -233,10 +228,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/ReportCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of ReportCreateResponse - public Dropbox.Sign.Client.ApiResponse ReportCreateWithHttpInfo(ReportCreateRequest reportCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse ReportCreateWithHttpInfo(ReportCreateRequest reportCreateRequest, int operationIndex = 0) { // verify the required parameter 'reportCreateRequest' is set if (reportCreateRequest == null) @@ -275,10 +269,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "ReportApi.ReportCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -310,13 +300,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/ReportCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ReportCreateResponse - public async System.Threading.Tasks.Task ReportCreateAsync(ReportCreateRequest reportCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ReportCreateAsync(ReportCreateRequest reportCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await ReportCreateWithHttpInfoAsync(reportCreateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await ReportCreateWithHttpInfoAsync(reportCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -326,11 +315,10 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/ReportCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ReportCreateResponse) - public async System.Threading.Tasks.Task> ReportCreateWithHttpInfoAsync(ReportCreateRequest reportCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ReportCreateWithHttpInfoAsync(ReportCreateRequest reportCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'reportCreateRequest' is set if (reportCreateRequest == null) @@ -370,10 +358,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "ReportApi.ReportCreate"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/SignatureRequestApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/SignatureRequestApi.cs index 4d58762f8..05be3bf6d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/SignatureRequestApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/SignatureRequestApi.cs @@ -36,10 +36,9 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// BulkSendJobSendResponse - BulkSendJobSendResponse SignatureRequestBulkCreateEmbeddedWithTemplate(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + BulkSendJobSendResponse SignatureRequestBulkCreateEmbeddedWithTemplate(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0); /// /// Embedded Bulk Send with Template @@ -50,10 +49,9 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of BulkSendJobSendResponse - ApiResponse SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0); /// /// Bulk Send with Template /// @@ -63,10 +61,9 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// BulkSendJobSendResponse - BulkSendJobSendResponse SignatureRequestBulkSendWithTemplate(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + BulkSendJobSendResponse SignatureRequestBulkSendWithTemplate(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0); /// /// Bulk Send with Template @@ -77,10 +74,9 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of BulkSendJobSendResponse - ApiResponse SignatureRequestBulkSendWithTemplateWithHttpInfo(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse SignatureRequestBulkSendWithTemplateWithHttpInfo(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0); /// /// Cancel Incomplete Signature Request /// @@ -90,10 +86,9 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCancelExample.cs /// Thrown when fails to make API call /// The id of the incomplete SignatureRequest to cancel. - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// - void SignatureRequestCancel(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0); + void SignatureRequestCancel(string signatureRequestId, int operationIndex = 0); /// /// Cancel Incomplete Signature Request @@ -104,10 +99,9 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCancelExample.cs /// Thrown when fails to make API call /// The id of the incomplete SignatureRequest to cancel. - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse SignatureRequestCancelWithHttpInfo(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse SignatureRequestCancelWithHttpInfo(string signatureRequestId, int operationIndex = 0); /// /// Create Embedded Signature Request /// @@ -117,10 +111,9 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCreateEmbeddedExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestCreateEmbedded(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + SignatureRequestGetResponse SignatureRequestCreateEmbedded(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0); /// /// Create Embedded Signature Request @@ -131,10 +124,9 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCreateEmbeddedExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestCreateEmbeddedWithHttpInfo(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse SignatureRequestCreateEmbeddedWithHttpInfo(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0); /// /// Create Embedded Signature Request with Template /// @@ -144,10 +136,9 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestCreateEmbeddedWithTemplate(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + SignatureRequestGetResponse SignatureRequestCreateEmbeddedWithTemplate(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0); /// /// Create Embedded Signature Request with Template @@ -158,10 +149,9 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0); /// /// Edit Signature Request /// @@ -172,10 +162,9 @@ public interface ISignatureRequestApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestEdit(string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + SignatureRequestGetResponse SignatureRequestEdit(string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, int operationIndex = 0); /// /// Edit Signature Request @@ -187,10 +176,9 @@ public interface ISignatureRequestApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestEditWithHttpInfo(string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse SignatureRequestEditWithHttpInfo(string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, int operationIndex = 0); /// /// Edit Embedded Signature Request /// @@ -201,10 +189,9 @@ public interface ISignatureRequestApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestEditEmbedded(string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + SignatureRequestGetResponse SignatureRequestEditEmbedded(string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, int operationIndex = 0); /// /// Edit Embedded Signature Request @@ -216,10 +203,9 @@ public interface ISignatureRequestApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestEditEmbeddedWithHttpInfo(string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse SignatureRequestEditEmbeddedWithHttpInfo(string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, int operationIndex = 0); /// /// Edit Embedded Signature Request with Template /// @@ -230,10 +216,9 @@ public interface ISignatureRequestApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestEditEmbeddedWithTemplate(string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + SignatureRequestGetResponse SignatureRequestEditEmbeddedWithTemplate(string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, int operationIndex = 0); /// /// Edit Embedded Signature Request with Template @@ -245,10 +230,9 @@ public interface ISignatureRequestApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestEditEmbeddedWithTemplateWithHttpInfo(string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse SignatureRequestEditEmbeddedWithTemplateWithHttpInfo(string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, int operationIndex = 0); /// /// Edit Signature Request With Template /// @@ -259,10 +243,9 @@ public interface ISignatureRequestApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestEditWithTemplate(string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + SignatureRequestGetResponse SignatureRequestEditWithTemplate(string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, int operationIndex = 0); /// /// Edit Signature Request With Template @@ -274,10 +257,9 @@ public interface ISignatureRequestApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestEditWithTemplateWithHttpInfo(string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse SignatureRequestEditWithTemplateWithHttpInfo(string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, int operationIndex = 0); /// /// Download Files /// @@ -422,10 +404,9 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestReleaseHoldExample.cs /// Thrown when fails to make API call /// The id of the SignatureRequest to release. - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestReleaseHold(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0); + SignatureRequestGetResponse SignatureRequestReleaseHold(string signatureRequestId, int operationIndex = 0); /// /// Release On-Hold Signature Request @@ -436,10 +417,9 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestReleaseHoldExample.cs /// Thrown when fails to make API call /// The id of the SignatureRequest to release. - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestReleaseHoldWithHttpInfo(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse SignatureRequestReleaseHoldWithHttpInfo(string signatureRequestId, int operationIndex = 0); /// /// Send Request Reminder /// @@ -450,10 +430,9 @@ public interface ISignatureRequestApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to send a reminder for. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestRemind(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + SignatureRequestGetResponse SignatureRequestRemind(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0); /// /// Send Request Reminder @@ -465,10 +444,9 @@ public interface ISignatureRequestApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to send a reminder for. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestRemindWithHttpInfo(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse SignatureRequestRemindWithHttpInfo(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0); /// /// Remove Signature Request Access /// @@ -478,10 +456,9 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestRemoveExample.cs /// Thrown when fails to make API call /// The id of the SignatureRequest to remove. - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// - void SignatureRequestRemove(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0); + void SignatureRequestRemove(string signatureRequestId, int operationIndex = 0); /// /// Remove Signature Request Access @@ -492,10 +469,9 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestRemoveExample.cs /// Thrown when fails to make API call /// The id of the SignatureRequest to remove. - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse SignatureRequestRemoveWithHttpInfo(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse SignatureRequestRemoveWithHttpInfo(string signatureRequestId, int operationIndex = 0); /// /// Send Signature Request /// @@ -505,10 +481,9 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestSendExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestSend(SignatureRequestSendRequest signatureRequestSendRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + SignatureRequestGetResponse SignatureRequestSend(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0); /// /// Send Signature Request @@ -519,10 +494,9 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestSendExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestSendWithHttpInfo(SignatureRequestSendRequest signatureRequestSendRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse SignatureRequestSendWithHttpInfo(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0); /// /// Send with Template /// @@ -532,10 +506,9 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestSendWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestSendWithTemplate(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + SignatureRequestGetResponse SignatureRequestSendWithTemplate(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0); /// /// Send with Template @@ -546,10 +519,9 @@ public interface ISignatureRequestApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestSendWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestSendWithTemplateWithHttpInfo(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse SignatureRequestSendWithTemplateWithHttpInfo(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0); /// /// Update Signature Request /// @@ -560,10 +532,9 @@ public interface ISignatureRequestApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to update. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - SignatureRequestGetResponse SignatureRequestUpdate(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + SignatureRequestGetResponse SignatureRequestUpdate(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0); /// /// Update Signature Request @@ -575,10 +546,9 @@ public interface ISignatureRequestApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to update. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - ApiResponse SignatureRequestUpdateWithHttpInfo(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse SignatureRequestUpdateWithHttpInfo(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0); #endregion Synchronous Operations } @@ -597,11 +567,10 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of BulkSendJobSendResponse - System.Threading.Tasks.Task SignatureRequestBulkCreateEmbeddedWithTemplateAsync(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestBulkCreateEmbeddedWithTemplateAsync(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Embedded Bulk Send with Template @@ -612,11 +581,10 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (BulkSendJobSendResponse) - System.Threading.Tasks.Task> SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfoAsync(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfoAsync(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Bulk Send with Template /// @@ -626,11 +594,10 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of BulkSendJobSendResponse - System.Threading.Tasks.Task SignatureRequestBulkSendWithTemplateAsync(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestBulkSendWithTemplateAsync(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Bulk Send with Template @@ -641,11 +608,10 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (BulkSendJobSendResponse) - System.Threading.Tasks.Task> SignatureRequestBulkSendWithTemplateWithHttpInfoAsync(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestBulkSendWithTemplateWithHttpInfoAsync(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Cancel Incomplete Signature Request /// @@ -655,11 +621,10 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCancelExample.cs /// Thrown when fails to make API call /// The id of the incomplete SignatureRequest to cancel. - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task SignatureRequestCancelAsync(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestCancelAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Cancel Incomplete Signature Request @@ -670,11 +635,10 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCancelExample.cs /// Thrown when fails to make API call /// The id of the incomplete SignatureRequest to cancel. - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> SignatureRequestCancelWithHttpInfoAsync(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestCancelWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Embedded Signature Request /// @@ -684,11 +648,10 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCreateEmbeddedExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestCreateEmbeddedAsync(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestCreateEmbeddedAsync(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Embedded Signature Request @@ -699,11 +662,10 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCreateEmbeddedExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithHttpInfoAsync(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithHttpInfoAsync(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Embedded Signature Request with Template /// @@ -713,11 +675,10 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestCreateEmbeddedWithTemplateAsync(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestCreateEmbeddedWithTemplateAsync(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Embedded Signature Request with Template @@ -728,11 +689,10 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithTemplateWithHttpInfoAsync(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithTemplateWithHttpInfoAsync(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Edit Signature Request /// @@ -743,11 +703,10 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestEditAsync(string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestEditAsync(string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Edit Signature Request @@ -759,11 +718,10 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestEditWithHttpInfoAsync(string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestEditWithHttpInfoAsync(string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Edit Embedded Signature Request /// @@ -774,11 +732,10 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestEditEmbeddedAsync(string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestEditEmbeddedAsync(string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Edit Embedded Signature Request @@ -790,11 +747,10 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestEditEmbeddedWithHttpInfoAsync(string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestEditEmbeddedWithHttpInfoAsync(string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Edit Embedded Signature Request with Template /// @@ -805,11 +761,10 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestEditEmbeddedWithTemplateAsync(string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestEditEmbeddedWithTemplateAsync(string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Edit Embedded Signature Request with Template @@ -821,11 +776,10 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestEditEmbeddedWithTemplateWithHttpInfoAsync(string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestEditEmbeddedWithTemplateWithHttpInfoAsync(string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Edit Signature Request With Template /// @@ -836,11 +790,10 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestEditWithTemplateAsync(string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestEditWithTemplateAsync(string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Edit Signature Request With Template @@ -852,11 +805,10 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestEditWithTemplateWithHttpInfoAsync(string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestEditWithTemplateWithHttpInfoAsync(string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Download Files /// @@ -1011,11 +963,10 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestReleaseHoldExample.cs /// Thrown when fails to make API call /// The id of the SignatureRequest to release. - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestReleaseHoldAsync(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestReleaseHoldAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Release On-Hold Signature Request @@ -1026,11 +977,10 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestReleaseHoldExample.cs /// Thrown when fails to make API call /// The id of the SignatureRequest to release. - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestReleaseHoldWithHttpInfoAsync(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestReleaseHoldWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Send Request Reminder /// @@ -1041,11 +991,10 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to send a reminder for. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestRemindAsync(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestRemindAsync(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Send Request Reminder @@ -1057,11 +1006,10 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to send a reminder for. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestRemindWithHttpInfoAsync(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestRemindWithHttpInfoAsync(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Remove Signature Request Access /// @@ -1071,11 +1019,10 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestRemoveExample.cs /// Thrown when fails to make API call /// The id of the SignatureRequest to remove. - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task SignatureRequestRemoveAsync(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestRemoveAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Remove Signature Request Access @@ -1086,11 +1033,10 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestRemoveExample.cs /// Thrown when fails to make API call /// The id of the SignatureRequest to remove. - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> SignatureRequestRemoveWithHttpInfoAsync(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestRemoveWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Send Signature Request /// @@ -1100,11 +1046,10 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestSendExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestSendAsync(SignatureRequestSendRequest signatureRequestSendRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestSendAsync(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Send Signature Request @@ -1115,11 +1060,10 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestSendExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestSendWithHttpInfoAsync(SignatureRequestSendRequest signatureRequestSendRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestSendWithHttpInfoAsync(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Send with Template /// @@ -1129,11 +1073,10 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestSendWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestSendWithTemplateAsync(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestSendWithTemplateAsync(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Send with Template @@ -1144,11 +1087,10 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestSendWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestSendWithTemplateWithHttpInfoAsync(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestSendWithTemplateWithHttpInfoAsync(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update Signature Request /// @@ -1159,11 +1101,10 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to update. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - System.Threading.Tasks.Task SignatureRequestUpdateAsync(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task SignatureRequestUpdateAsync(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update Signature Request @@ -1175,11 +1116,10 @@ public interface ISignatureRequestApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the SignatureRequest to update. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - System.Threading.Tasks.Task> SignatureRequestUpdateWithHttpInfoAsync(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SignatureRequestUpdateWithHttpInfoAsync(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -1306,12 +1246,11 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// BulkSendJobSendResponse - public BulkSendJobSendResponse SignatureRequestBulkCreateEmbeddedWithTemplate(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public BulkSendJobSendResponse SignatureRequestBulkCreateEmbeddedWithTemplate(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestBulkCreateEmbeddedWithTemplateRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestBulkCreateEmbeddedWithTemplateRequest); return localVarResponse.Data; } @@ -1321,10 +1260,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of BulkSendJobSendResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0) { // verify the required parameter 'signatureRequestBulkCreateEmbeddedWithTemplateRequest' is set if (signatureRequestBulkCreateEmbeddedWithTemplateRequest == null) @@ -1363,10 +1301,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestBulkCreateEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1398,13 +1332,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of BulkSendJobSendResponse - public async System.Threading.Tasks.Task SignatureRequestBulkCreateEmbeddedWithTemplateAsync(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestBulkCreateEmbeddedWithTemplateAsync(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfoAsync(signatureRequestBulkCreateEmbeddedWithTemplateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfoAsync(signatureRequestBulkCreateEmbeddedWithTemplateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1414,11 +1347,10 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (BulkSendJobSendResponse) - public async System.Threading.Tasks.Task> SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfoAsync(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfoAsync(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestBulkCreateEmbeddedWithTemplateRequest' is set if (signatureRequestBulkCreateEmbeddedWithTemplateRequest == null) @@ -1458,10 +1390,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestBulkCreateEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1494,12 +1422,11 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// BulkSendJobSendResponse - public BulkSendJobSendResponse SignatureRequestBulkSendWithTemplate(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public BulkSendJobSendResponse SignatureRequestBulkSendWithTemplate(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestBulkSendWithTemplateWithHttpInfo(signatureRequestBulkSendWithTemplateRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestBulkSendWithTemplateWithHttpInfo(signatureRequestBulkSendWithTemplateRequest); return localVarResponse.Data; } @@ -1509,10 +1436,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of BulkSendJobSendResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestBulkSendWithTemplateWithHttpInfo(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestBulkSendWithTemplateWithHttpInfo(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0) { // verify the required parameter 'signatureRequestBulkSendWithTemplateRequest' is set if (signatureRequestBulkSendWithTemplateRequest == null) @@ -1551,10 +1477,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestBulkSendWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1592,13 +1514,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of BulkSendJobSendResponse - public async System.Threading.Tasks.Task SignatureRequestBulkSendWithTemplateAsync(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestBulkSendWithTemplateAsync(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestBulkSendWithTemplateWithHttpInfoAsync(signatureRequestBulkSendWithTemplateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestBulkSendWithTemplateWithHttpInfoAsync(signatureRequestBulkSendWithTemplateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1608,11 +1529,10 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (BulkSendJobSendResponse) - public async System.Threading.Tasks.Task> SignatureRequestBulkSendWithTemplateWithHttpInfoAsync(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestBulkSendWithTemplateWithHttpInfoAsync(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestBulkSendWithTemplateRequest' is set if (signatureRequestBulkSendWithTemplateRequest == null) @@ -1652,10 +1572,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestBulkSendWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1694,12 +1610,11 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCancelExample.cs /// Thrown when fails to make API call /// The id of the incomplete SignatureRequest to cancel. - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// - public void SignatureRequestCancel(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0) + public void SignatureRequestCancel(string signatureRequestId, int operationIndex = 0) { - SignatureRequestCancelWithHttpInfo(signatureRequestId, idempotencyKey); + SignatureRequestCancelWithHttpInfo(signatureRequestId); } /// @@ -1708,10 +1623,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCancelExample.cs /// Thrown when fails to make API call /// The id of the incomplete SignatureRequest to cancel. - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Dropbox.Sign.Client.ApiResponse SignatureRequestCancelWithHttpInfo(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestCancelWithHttpInfo(string signatureRequestId, int operationIndex = 0) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -1742,10 +1656,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestCancel"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1783,13 +1693,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCancelExample.cs /// Thrown when fails to make API call /// The id of the incomplete SignatureRequest to cancel. - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task SignatureRequestCancelAsync(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestCancelAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - await SignatureRequestCancelWithHttpInfoAsync(signatureRequestId, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + await SignatureRequestCancelWithHttpInfoAsync(signatureRequestId, operationIndex, cancellationToken).ConfigureAwait(false); } /// @@ -1798,11 +1707,10 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCancelExample.cs /// Thrown when fails to make API call /// The id of the incomplete SignatureRequest to cancel. - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> SignatureRequestCancelWithHttpInfoAsync(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestCancelWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -1834,10 +1742,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestCancel"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1876,12 +1780,11 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCreateEmbeddedExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestCreateEmbedded(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public SignatureRequestGetResponse SignatureRequestCreateEmbedded(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestCreateEmbeddedWithHttpInfo(signatureRequestCreateEmbeddedRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestCreateEmbeddedWithHttpInfo(signatureRequestCreateEmbeddedRequest); return localVarResponse.Data; } @@ -1891,10 +1794,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCreateEmbeddedExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestCreateEmbeddedWithHttpInfo(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestCreateEmbeddedWithHttpInfo(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0) { // verify the required parameter 'signatureRequestCreateEmbeddedRequest' is set if (signatureRequestCreateEmbeddedRequest == null) @@ -1933,10 +1835,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestCreateEmbedded"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1974,13 +1872,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCreateEmbeddedExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestCreateEmbeddedAsync(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestCreateEmbeddedAsync(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestCreateEmbeddedWithHttpInfoAsync(signatureRequestCreateEmbeddedRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestCreateEmbeddedWithHttpInfoAsync(signatureRequestCreateEmbeddedRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1990,11 +1887,10 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCreateEmbeddedExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithHttpInfoAsync(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithHttpInfoAsync(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestCreateEmbeddedRequest' is set if (signatureRequestCreateEmbeddedRequest == null) @@ -2034,10 +1930,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestCreateEmbedded"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2076,12 +1968,11 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestCreateEmbeddedWithTemplate(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public SignatureRequestGetResponse SignatureRequestCreateEmbeddedWithTemplate(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestCreateEmbeddedWithTemplateRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestCreateEmbeddedWithTemplateRequest); return localVarResponse.Data; } @@ -2091,10 +1982,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0) { // verify the required parameter 'signatureRequestCreateEmbeddedWithTemplateRequest' is set if (signatureRequestCreateEmbeddedWithTemplateRequest == null) @@ -2133,10 +2023,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestCreateEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2174,13 +2060,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestCreateEmbeddedWithTemplateAsync(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestCreateEmbeddedWithTemplateAsync(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestCreateEmbeddedWithTemplateWithHttpInfoAsync(signatureRequestCreateEmbeddedWithTemplateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestCreateEmbeddedWithTemplateWithHttpInfoAsync(signatureRequestCreateEmbeddedWithTemplateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2190,11 +2075,10 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithTemplateWithHttpInfoAsync(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestCreateEmbeddedWithTemplateWithHttpInfoAsync(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestCreateEmbeddedWithTemplateRequest' is set if (signatureRequestCreateEmbeddedWithTemplateRequest == null) @@ -2234,10 +2118,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestCreateEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2277,12 +2157,11 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestEdit(string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public SignatureRequestGetResponse SignatureRequestEdit(string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestEditWithHttpInfo(signatureRequestId, signatureRequestEditRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestEditWithHttpInfo(signatureRequestId, signatureRequestEditRequest); return localVarResponse.Data; } @@ -2293,10 +2172,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestEditWithHttpInfo(string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestEditWithHttpInfo(string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, int operationIndex = 0) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -2342,10 +2220,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestEdit"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2384,13 +2258,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestEditAsync(string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestEditAsync(string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestEditWithHttpInfoAsync(signatureRequestId, signatureRequestEditRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestEditWithHttpInfoAsync(signatureRequestId, signatureRequestEditRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2401,11 +2274,10 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestEditWithHttpInfoAsync(string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestEditWithHttpInfoAsync(string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -2452,10 +2324,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestEdit"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2495,12 +2363,11 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestEditEmbedded(string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public SignatureRequestGetResponse SignatureRequestEditEmbedded(string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestEditEmbeddedWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestEditEmbeddedWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedRequest); return localVarResponse.Data; } @@ -2511,10 +2378,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestEditEmbeddedWithHttpInfo(string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestEditEmbeddedWithHttpInfo(string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, int operationIndex = 0) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -2560,10 +2426,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestEditEmbedded"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2602,13 +2464,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestEditEmbeddedAsync(string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestEditEmbeddedAsync(string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestEditEmbeddedWithHttpInfoAsync(signatureRequestId, signatureRequestEditEmbeddedRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestEditEmbeddedWithHttpInfoAsync(signatureRequestId, signatureRequestEditEmbeddedRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2619,11 +2480,10 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestEditEmbeddedWithHttpInfoAsync(string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestEditEmbeddedWithHttpInfoAsync(string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -2670,10 +2530,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestEditEmbedded"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2713,12 +2569,11 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestEditEmbeddedWithTemplate(string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public SignatureRequestGetResponse SignatureRequestEditEmbeddedWithTemplate(string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestEditEmbeddedWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestEditEmbeddedWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest); return localVarResponse.Data; } @@ -2729,10 +2584,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestEditEmbeddedWithTemplateWithHttpInfo(string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestEditEmbeddedWithTemplateWithHttpInfo(string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, int operationIndex = 0) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -2778,10 +2632,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestEditEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2820,13 +2670,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestEditEmbeddedWithTemplateAsync(string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestEditEmbeddedWithTemplateAsync(string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestEditEmbeddedWithTemplateWithHttpInfoAsync(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestEditEmbeddedWithTemplateWithHttpInfoAsync(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2837,11 +2686,10 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestEditEmbeddedWithTemplateWithHttpInfoAsync(string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestEditEmbeddedWithTemplateWithHttpInfoAsync(string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -2888,10 +2736,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestEditEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2931,12 +2775,11 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestEditWithTemplate(string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public SignatureRequestGetResponse SignatureRequestEditWithTemplate(string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestEditWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditWithTemplateRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestEditWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditWithTemplateRequest); return localVarResponse.Data; } @@ -2947,10 +2790,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestEditWithTemplateWithHttpInfo(string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestEditWithTemplateWithHttpInfo(string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, int operationIndex = 0) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -2996,10 +2838,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestEditWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -3038,13 +2876,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestEditWithTemplateAsync(string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestEditWithTemplateAsync(string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestEditWithTemplateWithHttpInfoAsync(signatureRequestId, signatureRequestEditWithTemplateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestEditWithTemplateWithHttpInfoAsync(signatureRequestId, signatureRequestEditWithTemplateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -3055,11 +2892,10 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// The id of the SignatureRequest to edit. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestEditWithTemplateWithHttpInfoAsync(string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestEditWithTemplateWithHttpInfoAsync(string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -3106,10 +2942,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestEditWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -4066,12 +3898,11 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestReleaseHoldExample.cs /// Thrown when fails to make API call /// The id of the SignatureRequest to release. - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestReleaseHold(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0) + public SignatureRequestGetResponse SignatureRequestReleaseHold(string signatureRequestId, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestReleaseHoldWithHttpInfo(signatureRequestId, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestReleaseHoldWithHttpInfo(signatureRequestId); return localVarResponse.Data; } @@ -4081,10 +3912,9 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestReleaseHoldExample.cs /// Thrown when fails to make API call /// The id of the SignatureRequest to release. - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestReleaseHoldWithHttpInfo(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestReleaseHoldWithHttpInfo(string signatureRequestId, int operationIndex = 0) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -4115,10 +3945,6 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestReleaseHold"; localVarRequestOptions.OperationIndex = operationIndex; @@ -4156,13 +3982,12 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestReleaseHoldExample.cs /// Thrown when fails to make API call /// The id of the SignatureRequest to release. - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestReleaseHoldAsync(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestReleaseHoldAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestReleaseHoldWithHttpInfoAsync(signatureRequestId, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestReleaseHoldWithHttpInfoAsync(signatureRequestId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -4172,11 +3997,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestReleaseHoldExample.cs /// Thrown when fails to make API call /// The id of the SignatureRequest to release. - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestReleaseHoldWithHttpInfoAsync(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestReleaseHoldWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -4208,10 +4032,6 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestReleaseHold"; localVarRequestOptions.OperationIndex = operationIndex; @@ -4251,12 +4071,11 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Thrown when fails to make API call /// The id of the SignatureRequest to send a reminder for. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestRemind(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public SignatureRequestGetResponse SignatureRequestRemind(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestRemindWithHttpInfo(signatureRequestId, signatureRequestRemindRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestRemindWithHttpInfo(signatureRequestId, signatureRequestRemindRequest); return localVarResponse.Data; } @@ -4267,10 +4086,9 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Thrown when fails to make API call /// The id of the SignatureRequest to send a reminder for. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestRemindWithHttpInfo(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestRemindWithHttpInfo(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -4316,10 +4134,6 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestRemind"; localVarRequestOptions.OperationIndex = operationIndex; @@ -4358,13 +4172,12 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Thrown when fails to make API call /// The id of the SignatureRequest to send a reminder for. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestRemindAsync(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestRemindAsync(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestRemindWithHttpInfoAsync(signatureRequestId, signatureRequestRemindRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestRemindWithHttpInfoAsync(signatureRequestId, signatureRequestRemindRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -4375,11 +4188,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Thrown when fails to make API call /// The id of the SignatureRequest to send a reminder for. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestRemindWithHttpInfoAsync(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestRemindWithHttpInfoAsync(string signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -4426,10 +4238,6 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestRemind"; localVarRequestOptions.OperationIndex = operationIndex; @@ -4468,12 +4276,11 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestRemoveExample.cs /// Thrown when fails to make API call /// The id of the SignatureRequest to remove. - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// - public void SignatureRequestRemove(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0) + public void SignatureRequestRemove(string signatureRequestId, int operationIndex = 0) { - SignatureRequestRemoveWithHttpInfo(signatureRequestId, idempotencyKey); + SignatureRequestRemoveWithHttpInfo(signatureRequestId); } /// @@ -4482,10 +4289,9 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestRemoveExample.cs /// Thrown when fails to make API call /// The id of the SignatureRequest to remove. - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Dropbox.Sign.Client.ApiResponse SignatureRequestRemoveWithHttpInfo(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestRemoveWithHttpInfo(string signatureRequestId, int operationIndex = 0) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -4516,10 +4322,6 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestRemove"; localVarRequestOptions.OperationIndex = operationIndex; @@ -4551,13 +4353,12 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestRemoveExample.cs /// Thrown when fails to make API call /// The id of the SignatureRequest to remove. - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task SignatureRequestRemoveAsync(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestRemoveAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - await SignatureRequestRemoveWithHttpInfoAsync(signatureRequestId, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + await SignatureRequestRemoveWithHttpInfoAsync(signatureRequestId, operationIndex, cancellationToken).ConfigureAwait(false); } /// @@ -4566,11 +4367,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestRemoveExample.cs /// Thrown when fails to make API call /// The id of the SignatureRequest to remove. - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> SignatureRequestRemoveWithHttpInfoAsync(string signatureRequestId, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestRemoveWithHttpInfoAsync(string signatureRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -4602,10 +4402,6 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestRemove"; localVarRequestOptions.OperationIndex = operationIndex; @@ -4638,12 +4434,11 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestSendExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestSend(SignatureRequestSendRequest signatureRequestSendRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public SignatureRequestGetResponse SignatureRequestSend(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestSendWithHttpInfo(signatureRequestSendRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestSendWithHttpInfo(signatureRequestSendRequest); return localVarResponse.Data; } @@ -4653,10 +4448,9 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestSendExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestSendWithHttpInfo(SignatureRequestSendRequest signatureRequestSendRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestSendWithHttpInfo(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0) { // verify the required parameter 'signatureRequestSendRequest' is set if (signatureRequestSendRequest == null) @@ -4695,10 +4489,6 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestSend"; localVarRequestOptions.OperationIndex = operationIndex; @@ -4736,13 +4526,12 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestSendExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestSendAsync(SignatureRequestSendRequest signatureRequestSendRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestSendAsync(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestSendWithHttpInfoAsync(signatureRequestSendRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestSendWithHttpInfoAsync(signatureRequestSendRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -4752,11 +4541,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestSendExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestSendWithHttpInfoAsync(SignatureRequestSendRequest signatureRequestSendRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestSendWithHttpInfoAsync(SignatureRequestSendRequest signatureRequestSendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestSendRequest' is set if (signatureRequestSendRequest == null) @@ -4796,10 +4584,6 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestSend"; localVarRequestOptions.OperationIndex = operationIndex; @@ -4838,12 +4622,11 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestSendWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestSendWithTemplate(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public SignatureRequestGetResponse SignatureRequestSendWithTemplate(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestSendWithTemplateWithHttpInfo(signatureRequestSendWithTemplateRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestSendWithTemplateWithHttpInfo(signatureRequestSendWithTemplateRequest); return localVarResponse.Data; } @@ -4853,10 +4636,9 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestSendWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestSendWithTemplateWithHttpInfo(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestSendWithTemplateWithHttpInfo(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0) { // verify the required parameter 'signatureRequestSendWithTemplateRequest' is set if (signatureRequestSendWithTemplateRequest == null) @@ -4895,10 +4677,6 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestSendWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -4936,13 +4714,12 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestSendWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestSendWithTemplateAsync(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestSendWithTemplateAsync(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestSendWithTemplateWithHttpInfoAsync(signatureRequestSendWithTemplateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestSendWithTemplateWithHttpInfoAsync(signatureRequestSendWithTemplateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -4952,11 +4729,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/SignatureRequestSendWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestSendWithTemplateWithHttpInfoAsync(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestSendWithTemplateWithHttpInfoAsync(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestSendWithTemplateRequest' is set if (signatureRequestSendWithTemplateRequest == null) @@ -4996,10 +4772,6 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestSendWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -5039,12 +4811,11 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Thrown when fails to make API call /// The id of the SignatureRequest to update. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// SignatureRequestGetResponse - public SignatureRequestGetResponse SignatureRequestUpdate(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public SignatureRequestGetResponse SignatureRequestUpdate(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestUpdateWithHttpInfo(signatureRequestId, signatureRequestUpdateRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = SignatureRequestUpdateWithHttpInfo(signatureRequestId, signatureRequestUpdateRequest); return localVarResponse.Data; } @@ -5055,10 +4826,9 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Thrown when fails to make API call /// The id of the SignatureRequest to update. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of SignatureRequestGetResponse - public Dropbox.Sign.Client.ApiResponse SignatureRequestUpdateWithHttpInfo(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse SignatureRequestUpdateWithHttpInfo(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -5104,10 +4874,6 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestUpdate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -5146,13 +4912,12 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Thrown when fails to make API call /// The id of the SignatureRequest to update. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of SignatureRequestGetResponse - public async System.Threading.Tasks.Task SignatureRequestUpdateAsync(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SignatureRequestUpdateAsync(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestUpdateWithHttpInfoAsync(signatureRequestId, signatureRequestUpdateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await SignatureRequestUpdateWithHttpInfoAsync(signatureRequestId, signatureRequestUpdateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -5163,11 +4928,10 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq /// Thrown when fails to make API call /// The id of the SignatureRequest to update. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SignatureRequestGetResponse) - public async System.Threading.Tasks.Task> SignatureRequestUpdateWithHttpInfoAsync(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SignatureRequestUpdateWithHttpInfoAsync(string signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -5214,10 +4978,6 @@ public Dropbox.Sign.Client.ApiResponse SignatureReq } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "SignatureRequestApi.SignatureRequestUpdate"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/TeamApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/TeamApi.cs index 9d1293378..fd94530dd 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/TeamApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/TeamApi.cs @@ -37,10 +37,9 @@ public interface ITeamApiSync : IApiAccessor /// Thrown when fails to make API call /// /// The id of the team. (optional) - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TeamGetResponse - TeamGetResponse TeamAddMember(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), string? idempotencyKey = default(string?), int operationIndex = 0); + TeamGetResponse TeamAddMember(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0); /// /// Add User to Team @@ -52,10 +51,9 @@ public interface ITeamApiSync : IApiAccessor /// Thrown when fails to make API call /// /// The id of the team. (optional) - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TeamGetResponse - ApiResponse TeamAddMemberWithHttpInfo(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse TeamAddMemberWithHttpInfo(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0); /// /// Create Team /// @@ -65,10 +63,9 @@ public interface ITeamApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TeamGetResponse - TeamGetResponse TeamCreate(TeamCreateRequest teamCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + TeamGetResponse TeamCreate(TeamCreateRequest teamCreateRequest, int operationIndex = 0); /// /// Create Team @@ -79,10 +76,9 @@ public interface ITeamApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TeamGetResponse - ApiResponse TeamCreateWithHttpInfo(TeamCreateRequest teamCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse TeamCreateWithHttpInfo(TeamCreateRequest teamCreateRequest, int operationIndex = 0); /// /// Delete Team /// @@ -217,10 +213,9 @@ public interface ITeamApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamRemoveMemberExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TeamGetResponse - TeamGetResponse TeamRemoveMember(TeamRemoveMemberRequest teamRemoveMemberRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + TeamGetResponse TeamRemoveMember(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0); /// /// Remove User from Team @@ -231,10 +226,9 @@ public interface ITeamApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamRemoveMemberExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TeamGetResponse - ApiResponse TeamRemoveMemberWithHttpInfo(TeamRemoveMemberRequest teamRemoveMemberRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse TeamRemoveMemberWithHttpInfo(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0); /// /// List Sub Teams /// @@ -273,10 +267,9 @@ public interface ITeamApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamUpdateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TeamGetResponse - TeamGetResponse TeamUpdate(TeamUpdateRequest teamUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + TeamGetResponse TeamUpdate(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0); /// /// Update Team @@ -287,10 +280,9 @@ public interface ITeamApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamUpdateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TeamGetResponse - ApiResponse TeamUpdateWithHttpInfo(TeamUpdateRequest teamUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse TeamUpdateWithHttpInfo(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0); #endregion Synchronous Operations } @@ -310,11 +302,10 @@ public interface ITeamApiAsync : IApiAccessor /// Thrown when fails to make API call /// /// The id of the team. (optional) - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - System.Threading.Tasks.Task TeamAddMemberAsync(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TeamAddMemberAsync(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Add User to Team @@ -326,11 +317,10 @@ public interface ITeamApiAsync : IApiAccessor /// Thrown when fails to make API call /// /// The id of the team. (optional) - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - System.Threading.Tasks.Task> TeamAddMemberWithHttpInfoAsync(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TeamAddMemberWithHttpInfoAsync(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Team /// @@ -340,11 +330,10 @@ public interface ITeamApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - System.Threading.Tasks.Task TeamCreateAsync(TeamCreateRequest teamCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TeamCreateAsync(TeamCreateRequest teamCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Team @@ -355,11 +344,10 @@ public interface ITeamApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - System.Threading.Tasks.Task> TeamCreateWithHttpInfoAsync(TeamCreateRequest teamCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TeamCreateWithHttpInfoAsync(TeamCreateRequest teamCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Delete Team /// @@ -504,11 +492,10 @@ public interface ITeamApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamRemoveMemberExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - System.Threading.Tasks.Task TeamRemoveMemberAsync(TeamRemoveMemberRequest teamRemoveMemberRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TeamRemoveMemberAsync(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Remove User from Team @@ -519,11 +506,10 @@ public interface ITeamApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamRemoveMemberExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - System.Threading.Tasks.Task> TeamRemoveMemberWithHttpInfoAsync(TeamRemoveMemberRequest teamRemoveMemberRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TeamRemoveMemberWithHttpInfoAsync(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// List Sub Teams /// @@ -564,11 +550,10 @@ public interface ITeamApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamUpdateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - System.Threading.Tasks.Task TeamUpdateAsync(TeamUpdateRequest teamUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TeamUpdateAsync(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update Team @@ -579,11 +564,10 @@ public interface ITeamApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamUpdateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - System.Threading.Tasks.Task> TeamUpdateWithHttpInfoAsync(TeamUpdateRequest teamUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TeamUpdateWithHttpInfoAsync(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -711,12 +695,11 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// /// The id of the team. (optional) - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TeamGetResponse - public TeamGetResponse TeamAddMember(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), string? idempotencyKey = default(string?), int operationIndex = 0) + public TeamGetResponse TeamAddMember(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TeamAddMemberWithHttpInfo(teamAddMemberRequest, teamId, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = TeamAddMemberWithHttpInfo(teamAddMemberRequest, teamId); return localVarResponse.Data; } @@ -727,10 +710,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// /// The id of the team. (optional) - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TeamGetResponse - public Dropbox.Sign.Client.ApiResponse TeamAddMemberWithHttpInfo(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TeamAddMemberWithHttpInfo(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0) { // verify the required parameter 'teamAddMemberRequest' is set if (teamAddMemberRequest == null) @@ -773,10 +755,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "team_id", teamId)); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "TeamApi.TeamAddMember"; localVarRequestOptions.OperationIndex = operationIndex; @@ -815,13 +793,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// /// The id of the team. (optional) - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - public async System.Threading.Tasks.Task TeamAddMemberAsync(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TeamAddMemberAsync(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamAddMemberWithHttpInfoAsync(teamAddMemberRequest, teamId, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamAddMemberWithHttpInfoAsync(teamAddMemberRequest, teamId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -832,11 +809,10 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// /// The id of the team. (optional) - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - public async System.Threading.Tasks.Task> TeamAddMemberWithHttpInfoAsync(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TeamAddMemberWithHttpInfoAsync(TeamAddMemberRequest teamAddMemberRequest, string? teamId = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'teamAddMemberRequest' is set if (teamAddMemberRequest == null) @@ -880,10 +856,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Dropbox.Sign.Client.ClientUtils.ParameterToMultiMap("", "team_id", teamId)); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "TeamApi.TeamAddMember"; localVarRequestOptions.OperationIndex = operationIndex; @@ -922,12 +894,11 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TeamGetResponse - public TeamGetResponse TeamCreate(TeamCreateRequest teamCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public TeamGetResponse TeamCreate(TeamCreateRequest teamCreateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TeamCreateWithHttpInfo(teamCreateRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = TeamCreateWithHttpInfo(teamCreateRequest); return localVarResponse.Data; } @@ -937,10 +908,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TeamGetResponse - public Dropbox.Sign.Client.ApiResponse TeamCreateWithHttpInfo(TeamCreateRequest teamCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TeamCreateWithHttpInfo(TeamCreateRequest teamCreateRequest, int operationIndex = 0) { // verify the required parameter 'teamCreateRequest' is set if (teamCreateRequest == null) @@ -979,10 +949,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "TeamApi.TeamCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1020,13 +986,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - public async System.Threading.Tasks.Task TeamCreateAsync(TeamCreateRequest teamCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TeamCreateAsync(TeamCreateRequest teamCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamCreateWithHttpInfoAsync(teamCreateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamCreateWithHttpInfoAsync(teamCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1036,11 +1001,10 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - public async System.Threading.Tasks.Task> TeamCreateWithHttpInfoAsync(TeamCreateRequest teamCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TeamCreateWithHttpInfoAsync(TeamCreateRequest teamCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'teamCreateRequest' is set if (teamCreateRequest == null) @@ -1080,10 +1044,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "TeamApi.TeamCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1956,12 +1916,11 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamRemoveMemberExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TeamGetResponse - public TeamGetResponse TeamRemoveMember(TeamRemoveMemberRequest teamRemoveMemberRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public TeamGetResponse TeamRemoveMember(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TeamRemoveMemberWithHttpInfo(teamRemoveMemberRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = TeamRemoveMemberWithHttpInfo(teamRemoveMemberRequest); return localVarResponse.Data; } @@ -1971,10 +1930,9 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamRemoveMemberExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TeamGetResponse - public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttpInfo(TeamRemoveMemberRequest teamRemoveMemberRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TeamRemoveMemberWithHttpInfo(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0) { // verify the required parameter 'teamRemoveMemberRequest' is set if (teamRemoveMemberRequest == null) @@ -2013,10 +1971,6 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "TeamApi.TeamRemoveMember"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2054,13 +2008,12 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamRemoveMemberExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - public async System.Threading.Tasks.Task TeamRemoveMemberAsync(TeamRemoveMemberRequest teamRemoveMemberRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TeamRemoveMemberAsync(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamRemoveMemberWithHttpInfoAsync(teamRemoveMemberRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamRemoveMemberWithHttpInfoAsync(teamRemoveMemberRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2070,11 +2023,10 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamRemoveMemberExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - public async System.Threading.Tasks.Task> TeamRemoveMemberWithHttpInfoAsync(TeamRemoveMemberRequest teamRemoveMemberRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TeamRemoveMemberWithHttpInfoAsync(TeamRemoveMemberRequest teamRemoveMemberRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'teamRemoveMemberRequest' is set if (teamRemoveMemberRequest == null) @@ -2114,10 +2066,6 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "TeamApi.TeamRemoveMember"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2352,12 +2300,11 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamUpdateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TeamGetResponse - public TeamGetResponse TeamUpdate(TeamUpdateRequest teamUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public TeamGetResponse TeamUpdate(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TeamUpdateWithHttpInfo(teamUpdateRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = TeamUpdateWithHttpInfo(teamUpdateRequest); return localVarResponse.Data; } @@ -2367,10 +2314,9 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamUpdateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TeamGetResponse - public Dropbox.Sign.Client.ApiResponse TeamUpdateWithHttpInfo(TeamUpdateRequest teamUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TeamUpdateWithHttpInfo(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0) { // verify the required parameter 'teamUpdateRequest' is set if (teamUpdateRequest == null) @@ -2409,10 +2355,6 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "TeamApi.TeamUpdate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2450,13 +2392,12 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamUpdateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TeamGetResponse - public async System.Threading.Tasks.Task TeamUpdateAsync(TeamUpdateRequest teamUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TeamUpdateAsync(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamUpdateWithHttpInfoAsync(teamUpdateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TeamUpdateWithHttpInfoAsync(teamUpdateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2466,11 +2407,10 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TeamUpdateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TeamGetResponse) - public async System.Threading.Tasks.Task> TeamUpdateWithHttpInfoAsync(TeamUpdateRequest teamUpdateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TeamUpdateWithHttpInfoAsync(TeamUpdateRequest teamUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'teamUpdateRequest' is set if (teamUpdateRequest == null) @@ -2510,10 +2450,6 @@ public Dropbox.Sign.Client.ApiResponse TeamGetWithHttpInfo(int localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "TeamApi.TeamUpdate"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/TemplateApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/TemplateApi.cs index 41dfd4f7c..b80bdffd5 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/TemplateApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/TemplateApi.cs @@ -37,10 +37,9 @@ public interface ITemplateApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the Template to give the Account access to. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TemplateGetResponse - TemplateGetResponse TemplateAddUser(string templateId, TemplateAddUserRequest templateAddUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + TemplateGetResponse TemplateAddUser(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0); /// /// Add User to Template @@ -52,10 +51,9 @@ public interface ITemplateApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the Template to give the Account access to. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TemplateGetResponse - ApiResponse TemplateAddUserWithHttpInfo(string templateId, TemplateAddUserRequest templateAddUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse TemplateAddUserWithHttpInfo(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0); /// /// Create Template /// @@ -65,10 +63,9 @@ public interface ITemplateApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TemplateCreateResponse - TemplateCreateResponse TemplateCreate(TemplateCreateRequest templateCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + TemplateCreateResponse TemplateCreate(TemplateCreateRequest templateCreateRequest, int operationIndex = 0); /// /// Create Template @@ -79,10 +76,9 @@ public interface ITemplateApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TemplateCreateResponse - ApiResponse TemplateCreateWithHttpInfo(TemplateCreateRequest templateCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse TemplateCreateWithHttpInfo(TemplateCreateRequest templateCreateRequest, int operationIndex = 0); /// /// Create Embedded Template Draft /// @@ -92,10 +88,9 @@ public interface ITemplateApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateCreateEmbeddedDraftExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TemplateCreateEmbeddedDraftResponse - TemplateCreateEmbeddedDraftResponse TemplateCreateEmbeddedDraft(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + TemplateCreateEmbeddedDraftResponse TemplateCreateEmbeddedDraft(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0); /// /// Create Embedded Template Draft @@ -106,10 +101,9 @@ public interface ITemplateApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateCreateEmbeddedDraftExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TemplateCreateEmbeddedDraftResponse - ApiResponse TemplateCreateEmbeddedDraftWithHttpInfo(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse TemplateCreateEmbeddedDraftWithHttpInfo(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0); /// /// Delete Template /// @@ -119,10 +113,9 @@ public interface ITemplateApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateDeleteExample.cs /// Thrown when fails to make API call /// The id of the Template to delete. - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// - void TemplateDelete(string templateId, string? idempotencyKey = default(string?), int operationIndex = 0); + void TemplateDelete(string templateId, int operationIndex = 0); /// /// Delete Template @@ -133,10 +126,9 @@ public interface ITemplateApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateDeleteExample.cs /// Thrown when fails to make API call /// The id of the Template to delete. - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse TemplateDeleteWithHttpInfo(string templateId, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse TemplateDeleteWithHttpInfo(string templateId, int operationIndex = 0); /// /// Get Template Files /// @@ -282,10 +274,9 @@ public interface ITemplateApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the Template to remove the Account's access to. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TemplateGetResponse - TemplateGetResponse TemplateRemoveUser(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + TemplateGetResponse TemplateRemoveUser(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0); /// /// Remove User from Template @@ -297,10 +288,9 @@ public interface ITemplateApiSync : IApiAccessor /// Thrown when fails to make API call /// The id of the Template to remove the Account's access to. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TemplateGetResponse - ApiResponse TemplateRemoveUserWithHttpInfo(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse TemplateRemoveUserWithHttpInfo(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0); /// /// Update Template Files /// @@ -311,10 +301,9 @@ public interface ITemplateApiSync : IApiAccessor /// Thrown when fails to make API call /// The ID of the template whose files to update. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TemplateUpdateFilesResponse - TemplateUpdateFilesResponse TemplateUpdateFiles(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + TemplateUpdateFilesResponse TemplateUpdateFiles(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0); /// /// Update Template Files @@ -326,10 +315,9 @@ public interface ITemplateApiSync : IApiAccessor /// Thrown when fails to make API call /// The ID of the template whose files to update. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TemplateUpdateFilesResponse - ApiResponse TemplateUpdateFilesWithHttpInfo(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse TemplateUpdateFilesWithHttpInfo(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0); #endregion Synchronous Operations } @@ -349,11 +337,10 @@ public interface ITemplateApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the Template to give the Account access to. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateGetResponse - System.Threading.Tasks.Task TemplateAddUserAsync(string templateId, TemplateAddUserRequest templateAddUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateAddUserAsync(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Add User to Template @@ -365,11 +352,10 @@ public interface ITemplateApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the Template to give the Account access to. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateGetResponse) - System.Threading.Tasks.Task> TemplateAddUserWithHttpInfoAsync(string templateId, TemplateAddUserRequest templateAddUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TemplateAddUserWithHttpInfoAsync(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Template /// @@ -379,11 +365,10 @@ public interface ITemplateApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateCreateResponse - System.Threading.Tasks.Task TemplateCreateAsync(TemplateCreateRequest templateCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateCreateAsync(TemplateCreateRequest templateCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Template @@ -394,11 +379,10 @@ public interface ITemplateApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateCreateResponse) - System.Threading.Tasks.Task> TemplateCreateWithHttpInfoAsync(TemplateCreateRequest templateCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TemplateCreateWithHttpInfoAsync(TemplateCreateRequest templateCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Embedded Template Draft /// @@ -408,11 +392,10 @@ public interface ITemplateApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateCreateEmbeddedDraftExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateCreateEmbeddedDraftResponse - System.Threading.Tasks.Task TemplateCreateEmbeddedDraftAsync(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateCreateEmbeddedDraftAsync(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Embedded Template Draft @@ -423,11 +406,10 @@ public interface ITemplateApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateCreateEmbeddedDraftExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateCreateEmbeddedDraftResponse) - System.Threading.Tasks.Task> TemplateCreateEmbeddedDraftWithHttpInfoAsync(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TemplateCreateEmbeddedDraftWithHttpInfoAsync(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Delete Template /// @@ -437,11 +419,10 @@ public interface ITemplateApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateDeleteExample.cs /// Thrown when fails to make API call /// The id of the Template to delete. - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task TemplateDeleteAsync(string templateId, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateDeleteAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Delete Template @@ -452,11 +433,10 @@ public interface ITemplateApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateDeleteExample.cs /// Thrown when fails to make API call /// The id of the Template to delete. - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> TemplateDeleteWithHttpInfoAsync(string templateId, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TemplateDeleteWithHttpInfoAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get Template Files /// @@ -612,11 +592,10 @@ public interface ITemplateApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the Template to remove the Account's access to. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateGetResponse - System.Threading.Tasks.Task TemplateRemoveUserAsync(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateRemoveUserAsync(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Remove User from Template @@ -628,11 +607,10 @@ public interface ITemplateApiAsync : IApiAccessor /// Thrown when fails to make API call /// The id of the Template to remove the Account's access to. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateGetResponse) - System.Threading.Tasks.Task> TemplateRemoveUserWithHttpInfoAsync(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TemplateRemoveUserWithHttpInfoAsync(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update Template Files /// @@ -643,11 +621,10 @@ public interface ITemplateApiAsync : IApiAccessor /// Thrown when fails to make API call /// The ID of the template whose files to update. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateUpdateFilesResponse - System.Threading.Tasks.Task TemplateUpdateFilesAsync(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TemplateUpdateFilesAsync(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update Template Files @@ -659,11 +636,10 @@ public interface ITemplateApiAsync : IApiAccessor /// Thrown when fails to make API call /// The ID of the template whose files to update. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateUpdateFilesResponse) - System.Threading.Tasks.Task> TemplateUpdateFilesWithHttpInfoAsync(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TemplateUpdateFilesWithHttpInfoAsync(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -791,12 +767,11 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// The id of the Template to give the Account access to. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TemplateGetResponse - public TemplateGetResponse TemplateAddUser(string templateId, TemplateAddUserRequest templateAddUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public TemplateGetResponse TemplateAddUser(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateAddUserWithHttpInfo(templateId, templateAddUserRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateAddUserWithHttpInfo(templateId, templateAddUserRequest); return localVarResponse.Data; } @@ -807,10 +782,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// The id of the Template to give the Account access to. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TemplateGetResponse - public Dropbox.Sign.Client.ApiResponse TemplateAddUserWithHttpInfo(string templateId, TemplateAddUserRequest templateAddUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TemplateAddUserWithHttpInfo(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0) { // verify the required parameter 'templateId' is set if (templateId == null) @@ -856,10 +830,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "TemplateApi.TemplateAddUser"; localVarRequestOptions.OperationIndex = operationIndex; @@ -898,13 +868,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// The id of the Template to give the Account access to. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateGetResponse - public async System.Threading.Tasks.Task TemplateAddUserAsync(string templateId, TemplateAddUserRequest templateAddUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateAddUserAsync(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateAddUserWithHttpInfoAsync(templateId, templateAddUserRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateAddUserWithHttpInfoAsync(templateId, templateAddUserRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -915,11 +884,10 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// The id of the Template to give the Account access to. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateGetResponse) - public async System.Threading.Tasks.Task> TemplateAddUserWithHttpInfoAsync(string templateId, TemplateAddUserRequest templateAddUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateAddUserWithHttpInfoAsync(string templateId, TemplateAddUserRequest templateAddUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'templateId' is set if (templateId == null) @@ -966,10 +934,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "TemplateApi.TemplateAddUser"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1008,12 +972,11 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TemplateCreateResponse - public TemplateCreateResponse TemplateCreate(TemplateCreateRequest templateCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public TemplateCreateResponse TemplateCreate(TemplateCreateRequest templateCreateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateCreateWithHttpInfo(templateCreateRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateCreateWithHttpInfo(templateCreateRequest); return localVarResponse.Data; } @@ -1023,10 +986,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TemplateCreateResponse - public Dropbox.Sign.Client.ApiResponse TemplateCreateWithHttpInfo(TemplateCreateRequest templateCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TemplateCreateWithHttpInfo(TemplateCreateRequest templateCreateRequest, int operationIndex = 0) { // verify the required parameter 'templateCreateRequest' is set if (templateCreateRequest == null) @@ -1065,10 +1027,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "TemplateApi.TemplateCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1106,13 +1064,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateCreateResponse - public async System.Threading.Tasks.Task TemplateCreateAsync(TemplateCreateRequest templateCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateCreateAsync(TemplateCreateRequest templateCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateCreateWithHttpInfoAsync(templateCreateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateCreateWithHttpInfoAsync(templateCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1122,11 +1079,10 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateCreateResponse) - public async System.Threading.Tasks.Task> TemplateCreateWithHttpInfoAsync(TemplateCreateRequest templateCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateCreateWithHttpInfoAsync(TemplateCreateRequest templateCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'templateCreateRequest' is set if (templateCreateRequest == null) @@ -1166,10 +1122,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "TemplateApi.TemplateCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1208,12 +1160,11 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateCreateEmbeddedDraftExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TemplateCreateEmbeddedDraftResponse - public TemplateCreateEmbeddedDraftResponse TemplateCreateEmbeddedDraft(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public TemplateCreateEmbeddedDraftResponse TemplateCreateEmbeddedDraft(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateCreateEmbeddedDraftWithHttpInfo(templateCreateEmbeddedDraftRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateCreateEmbeddedDraftWithHttpInfo(templateCreateEmbeddedDraftRequest); return localVarResponse.Data; } @@ -1223,10 +1174,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateCreateEmbeddedDraftExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TemplateCreateEmbeddedDraftResponse - public Dropbox.Sign.Client.ApiResponse TemplateCreateEmbeddedDraftWithHttpInfo(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TemplateCreateEmbeddedDraftWithHttpInfo(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0) { // verify the required parameter 'templateCreateEmbeddedDraftRequest' is set if (templateCreateEmbeddedDraftRequest == null) @@ -1265,10 +1215,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "TemplateApi.TemplateCreateEmbeddedDraft"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1306,13 +1252,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateCreateEmbeddedDraftExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateCreateEmbeddedDraftResponse - public async System.Threading.Tasks.Task TemplateCreateEmbeddedDraftAsync(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateCreateEmbeddedDraftAsync(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateCreateEmbeddedDraftWithHttpInfoAsync(templateCreateEmbeddedDraftRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateCreateEmbeddedDraftWithHttpInfoAsync(templateCreateEmbeddedDraftRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1322,11 +1267,10 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateCreateEmbeddedDraftExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateCreateEmbeddedDraftResponse) - public async System.Threading.Tasks.Task> TemplateCreateEmbeddedDraftWithHttpInfoAsync(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateCreateEmbeddedDraftWithHttpInfoAsync(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'templateCreateEmbeddedDraftRequest' is set if (templateCreateEmbeddedDraftRequest == null) @@ -1366,10 +1310,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "TemplateApi.TemplateCreateEmbeddedDraft"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1408,12 +1348,11 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateDeleteExample.cs /// Thrown when fails to make API call /// The id of the Template to delete. - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// - public void TemplateDelete(string templateId, string? idempotencyKey = default(string?), int operationIndex = 0) + public void TemplateDelete(string templateId, int operationIndex = 0) { - TemplateDeleteWithHttpInfo(templateId, idempotencyKey); + TemplateDeleteWithHttpInfo(templateId); } /// @@ -1422,10 +1361,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateDeleteExample.cs /// Thrown when fails to make API call /// The id of the Template to delete. - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo(string templateId, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TemplateDeleteWithHttpInfo(string templateId, int operationIndex = 0) { // verify the required parameter 'templateId' is set if (templateId == null) @@ -1456,10 +1394,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "TemplateApi.TemplateDelete"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1497,13 +1431,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateDeleteExample.cs /// Thrown when fails to make API call /// The id of the Template to delete. - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task TemplateDeleteAsync(string templateId, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateDeleteAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - await TemplateDeleteWithHttpInfoAsync(templateId, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + await TemplateDeleteWithHttpInfoAsync(templateId, operationIndex, cancellationToken).ConfigureAwait(false); } /// @@ -1512,11 +1445,10 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/TemplateDeleteExample.cs /// Thrown when fails to make API call /// The id of the Template to delete. - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TemplateDeleteWithHttpInfoAsync(string templateId, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateDeleteWithHttpInfoAsync(string templateId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'templateId' is set if (templateId == null) @@ -1548,10 +1480,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "TemplateApi.TemplateDelete"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2509,12 +2437,11 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI /// Thrown when fails to make API call /// The id of the Template to remove the Account's access to. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TemplateGetResponse - public TemplateGetResponse TemplateRemoveUser(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public TemplateGetResponse TemplateRemoveUser(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateRemoveUserWithHttpInfo(templateId, templateRemoveUserRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateRemoveUserWithHttpInfo(templateId, templateRemoveUserRequest); return localVarResponse.Data; } @@ -2525,10 +2452,9 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI /// Thrown when fails to make API call /// The id of the Template to remove the Account's access to. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TemplateGetResponse - public Dropbox.Sign.Client.ApiResponse TemplateRemoveUserWithHttpInfo(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TemplateRemoveUserWithHttpInfo(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0) { // verify the required parameter 'templateId' is set if (templateId == null) @@ -2574,10 +2500,6 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "TemplateApi.TemplateRemoveUser"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2616,13 +2538,12 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI /// Thrown when fails to make API call /// The id of the Template to remove the Account's access to. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateGetResponse - public async System.Threading.Tasks.Task TemplateRemoveUserAsync(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateRemoveUserAsync(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateRemoveUserWithHttpInfoAsync(templateId, templateRemoveUserRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateRemoveUserWithHttpInfoAsync(templateId, templateRemoveUserRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2633,11 +2554,10 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI /// Thrown when fails to make API call /// The id of the Template to remove the Account's access to. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateGetResponse) - public async System.Threading.Tasks.Task> TemplateRemoveUserWithHttpInfoAsync(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateRemoveUserWithHttpInfoAsync(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'templateId' is set if (templateId == null) @@ -2684,10 +2604,6 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "TemplateApi.TemplateRemoveUser"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2727,12 +2643,11 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI /// Thrown when fails to make API call /// The ID of the template whose files to update. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// TemplateUpdateFilesResponse - public TemplateUpdateFilesResponse TemplateUpdateFiles(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public TemplateUpdateFilesResponse TemplateUpdateFiles(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateUpdateFilesWithHttpInfo(templateId, templateUpdateFilesRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = TemplateUpdateFilesWithHttpInfo(templateId, templateUpdateFilesRequest); return localVarResponse.Data; } @@ -2743,10 +2658,9 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI /// Thrown when fails to make API call /// The ID of the template whose files to update. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of TemplateUpdateFilesResponse - public Dropbox.Sign.Client.ApiResponse TemplateUpdateFilesWithHttpInfo(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse TemplateUpdateFilesWithHttpInfo(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0) { // verify the required parameter 'templateId' is set if (templateId == null) @@ -2792,10 +2706,6 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "TemplateApi.TemplateUpdateFiles"; localVarRequestOptions.OperationIndex = operationIndex; @@ -2834,13 +2744,12 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI /// Thrown when fails to make API call /// The ID of the template whose files to update. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TemplateUpdateFilesResponse - public async System.Threading.Tasks.Task TemplateUpdateFilesAsync(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TemplateUpdateFilesAsync(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateUpdateFilesWithHttpInfoAsync(templateId, templateUpdateFilesRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await TemplateUpdateFilesWithHttpInfoAsync(templateId, templateUpdateFilesRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2851,11 +2760,10 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI /// Thrown when fails to make API call /// The ID of the template whose files to update. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TemplateUpdateFilesResponse) - public async System.Threading.Tasks.Task> TemplateUpdateFilesWithHttpInfoAsync(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TemplateUpdateFilesWithHttpInfoAsync(string templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'templateId' is set if (templateId == null) @@ -2902,10 +2810,6 @@ public Dropbox.Sign.Client.ApiResponse TemplateGetWithHttpI } localVarRequestOptions.PathParameters.Add("template_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(templateId)); // path parameter - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "TemplateApi.TemplateUpdateFiles"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/dotnet/src/Dropbox.Sign/Api/UnclaimedDraftApi.cs b/sdks/dotnet/src/Dropbox.Sign/Api/UnclaimedDraftApi.cs index 86c7373e6..a41df498f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Api/UnclaimedDraftApi.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Api/UnclaimedDraftApi.cs @@ -36,10 +36,9 @@ public interface IUnclaimedDraftApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// UnclaimedDraftCreateResponse - UnclaimedDraftCreateResponse UnclaimedDraftCreate(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + UnclaimedDraftCreateResponse UnclaimedDraftCreate(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0); /// /// Create Unclaimed Draft @@ -50,10 +49,9 @@ public interface IUnclaimedDraftApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of UnclaimedDraftCreateResponse - ApiResponse UnclaimedDraftCreateWithHttpInfo(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse UnclaimedDraftCreateWithHttpInfo(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0); /// /// Create Embedded Unclaimed Draft /// @@ -63,10 +61,9 @@ public interface IUnclaimedDraftApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// UnclaimedDraftCreateResponse - UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbedded(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbedded(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0); /// /// Create Embedded Unclaimed Draft @@ -77,10 +74,9 @@ public interface IUnclaimedDraftApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of UnclaimedDraftCreateResponse - ApiResponse UnclaimedDraftCreateEmbeddedWithHttpInfo(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse UnclaimedDraftCreateEmbeddedWithHttpInfo(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0); /// /// Create Embedded Unclaimed Draft with Template /// @@ -90,10 +86,9 @@ public interface IUnclaimedDraftApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// UnclaimedDraftCreateResponse - UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbeddedWithTemplate(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbeddedWithTemplate(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0); /// /// Create Embedded Unclaimed Draft with Template @@ -104,10 +99,9 @@ public interface IUnclaimedDraftApiSync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of UnclaimedDraftCreateResponse - ApiResponse UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0); /// /// Edit and Resend Unclaimed Draft /// @@ -118,10 +112,9 @@ public interface IUnclaimedDraftApiSync : IApiAccessor /// Thrown when fails to make API call /// The ID of the signature request to edit and resend. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// UnclaimedDraftCreateResponse - UnclaimedDraftCreateResponse UnclaimedDraftEditAndResend(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + UnclaimedDraftCreateResponse UnclaimedDraftEditAndResend(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0); /// /// Edit and Resend Unclaimed Draft @@ -133,10 +126,9 @@ public interface IUnclaimedDraftApiSync : IApiAccessor /// Thrown when fails to make API call /// The ID of the signature request to edit and resend. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of UnclaimedDraftCreateResponse - ApiResponse UnclaimedDraftEditAndResendWithHttpInfo(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, string? idempotencyKey = default(string?), int operationIndex = 0); + ApiResponse UnclaimedDraftEditAndResendWithHttpInfo(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0); #endregion Synchronous Operations } @@ -155,11 +147,10 @@ public interface IUnclaimedDraftApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - System.Threading.Tasks.Task UnclaimedDraftCreateAsync(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UnclaimedDraftCreateAsync(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Unclaimed Draft @@ -170,11 +161,10 @@ public interface IUnclaimedDraftApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - System.Threading.Tasks.Task> UnclaimedDraftCreateWithHttpInfoAsync(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UnclaimedDraftCreateWithHttpInfoAsync(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Embedded Unclaimed Draft /// @@ -184,11 +174,10 @@ public interface IUnclaimedDraftApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedAsync(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedAsync(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Embedded Unclaimed Draft @@ -199,11 +188,10 @@ public interface IUnclaimedDraftApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithHttpInfoAsync(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithHttpInfoAsync(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Embedded Unclaimed Draft with Template /// @@ -213,11 +201,10 @@ public interface IUnclaimedDraftApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedWithTemplateAsync(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedWithTemplateAsync(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create Embedded Unclaimed Draft with Template @@ -228,11 +215,10 @@ public interface IUnclaimedDraftApiAsync : IApiAccessor /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfoAsync(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfoAsync(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Edit and Resend Unclaimed Draft /// @@ -243,11 +229,10 @@ public interface IUnclaimedDraftApiAsync : IApiAccessor /// Thrown when fails to make API call /// The ID of the signature request to edit and resend. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - System.Threading.Tasks.Task UnclaimedDraftEditAndResendAsync(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UnclaimedDraftEditAndResendAsync(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Edit and Resend Unclaimed Draft @@ -259,11 +244,10 @@ public interface IUnclaimedDraftApiAsync : IApiAccessor /// Thrown when fails to make API call /// The ID of the signature request to edit and resend. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - System.Threading.Tasks.Task> UnclaimedDraftEditAndResendWithHttpInfoAsync(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UnclaimedDraftEditAndResendWithHttpInfoAsync(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -390,12 +374,11 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// UnclaimedDraftCreateResponse - public UnclaimedDraftCreateResponse UnclaimedDraftCreate(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public UnclaimedDraftCreateResponse UnclaimedDraftCreate(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = UnclaimedDraftCreateWithHttpInfo(unclaimedDraftCreateRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = UnclaimedDraftCreateWithHttpInfo(unclaimedDraftCreateRequest); return localVarResponse.Data; } @@ -405,10 +388,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of UnclaimedDraftCreateResponse - public Dropbox.Sign.Client.ApiResponse UnclaimedDraftCreateWithHttpInfo(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse UnclaimedDraftCreateWithHttpInfo(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0) { // verify the required parameter 'unclaimedDraftCreateRequest' is set if (unclaimedDraftCreateRequest == null) @@ -447,10 +429,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -488,13 +466,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - public async System.Threading.Tasks.Task UnclaimedDraftCreateAsync(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UnclaimedDraftCreateAsync(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await UnclaimedDraftCreateWithHttpInfoAsync(unclaimedDraftCreateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await UnclaimedDraftCreateWithHttpInfoAsync(unclaimedDraftCreateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -504,11 +481,10 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - public async System.Threading.Tasks.Task> UnclaimedDraftCreateWithHttpInfoAsync(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UnclaimedDraftCreateWithHttpInfoAsync(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'unclaimedDraftCreateRequest' is set if (unclaimedDraftCreateRequest == null) @@ -548,10 +524,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftCreate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -590,12 +562,11 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// UnclaimedDraftCreateResponse - public UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbedded(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbedded(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = UnclaimedDraftCreateEmbeddedWithHttpInfo(unclaimedDraftCreateEmbeddedRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = UnclaimedDraftCreateEmbeddedWithHttpInfo(unclaimedDraftCreateEmbeddedRequest); return localVarResponse.Data; } @@ -605,10 +576,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of UnclaimedDraftCreateResponse - public Dropbox.Sign.Client.ApiResponse UnclaimedDraftCreateEmbeddedWithHttpInfo(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse UnclaimedDraftCreateEmbeddedWithHttpInfo(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0) { // verify the required parameter 'unclaimedDraftCreateEmbeddedRequest' is set if (unclaimedDraftCreateEmbeddedRequest == null) @@ -647,10 +617,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftCreateEmbedded"; localVarRequestOptions.OperationIndex = operationIndex; @@ -688,13 +654,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - public async System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedAsync(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedAsync(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await UnclaimedDraftCreateEmbeddedWithHttpInfoAsync(unclaimedDraftCreateEmbeddedRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await UnclaimedDraftCreateEmbeddedWithHttpInfoAsync(unclaimedDraftCreateEmbeddedRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -704,11 +669,10 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - public async System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithHttpInfoAsync(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithHttpInfoAsync(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'unclaimedDraftCreateEmbeddedRequest' is set if (unclaimedDraftCreateEmbeddedRequest == null) @@ -748,10 +712,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftCreateEmbedded"; localVarRequestOptions.OperationIndex = operationIndex; @@ -790,12 +750,11 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// UnclaimedDraftCreateResponse - public UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbeddedWithTemplate(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public UnclaimedDraftCreateResponse UnclaimedDraftCreateEmbeddedWithTemplate(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(unclaimedDraftCreateEmbeddedWithTemplateRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(unclaimedDraftCreateEmbeddedWithTemplateRequest); return localVarResponse.Data; } @@ -805,10 +764,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of UnclaimedDraftCreateResponse - public Dropbox.Sign.Client.ApiResponse UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0) { // verify the required parameter 'unclaimedDraftCreateEmbeddedWithTemplateRequest' is set if (unclaimedDraftCreateEmbeddedWithTemplateRequest == null) @@ -847,10 +805,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftCreateEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -888,13 +842,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - public async System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedWithTemplateAsync(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UnclaimedDraftCreateEmbeddedWithTemplateAsync(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfoAsync(unclaimedDraftCreateEmbeddedWithTemplateRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfoAsync(unclaimedDraftCreateEmbeddedWithTemplateRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -904,11 +857,10 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// https://github.com/hellosign/dropbox-sign-dotnet/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.cs /// Thrown when fails to make API call /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - public async System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfoAsync(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UnclaimedDraftCreateEmbeddedWithTemplateWithHttpInfoAsync(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'unclaimedDraftCreateEmbeddedWithTemplateRequest' is set if (unclaimedDraftCreateEmbeddedWithTemplateRequest == null) @@ -948,10 +900,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftCreateEmbeddedWithTemplate"; localVarRequestOptions.OperationIndex = operationIndex; @@ -991,12 +939,11 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// The ID of the signature request to edit and resend. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// UnclaimedDraftCreateResponse - public UnclaimedDraftCreateResponse UnclaimedDraftEditAndResend(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public UnclaimedDraftCreateResponse UnclaimedDraftEditAndResend(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0) { - Dropbox.Sign.Client.ApiResponse localVarResponse = UnclaimedDraftEditAndResendWithHttpInfo(signatureRequestId, unclaimedDraftEditAndResendRequest, idempotencyKey); + Dropbox.Sign.Client.ApiResponse localVarResponse = UnclaimedDraftEditAndResendWithHttpInfo(signatureRequestId, unclaimedDraftEditAndResendRequest); return localVarResponse.Data; } @@ -1007,10 +954,9 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// The ID of the signature request to edit and resend. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// ApiResponse of UnclaimedDraftCreateResponse - public Dropbox.Sign.Client.ApiResponse UnclaimedDraftEditAndResendWithHttpInfo(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, string? idempotencyKey = default(string?), int operationIndex = 0) + public Dropbox.Sign.Client.ApiResponse UnclaimedDraftEditAndResendWithHttpInfo(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -1056,10 +1002,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftEditAndResend"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1098,13 +1040,12 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// The ID of the signature request to edit and resend. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UnclaimedDraftCreateResponse - public async System.Threading.Tasks.Task UnclaimedDraftEditAndResendAsync(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UnclaimedDraftEditAndResendAsync(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Dropbox.Sign.Client.ApiResponse localVarResponse = await UnclaimedDraftEditAndResendWithHttpInfoAsync(signatureRequestId, unclaimedDraftEditAndResendRequest, idempotencyKey, operationIndex, cancellationToken).ConfigureAwait(false); + Dropbox.Sign.Client.ApiResponse localVarResponse = await UnclaimedDraftEditAndResendWithHttpInfoAsync(signatureRequestId, unclaimedDraftEditAndResendRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1115,11 +1056,10 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// The ID of the signature request to edit and resend. /// - /// Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UnclaimedDraftCreateResponse) - public async System.Threading.Tasks.Task> UnclaimedDraftEditAndResendWithHttpInfoAsync(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, string? idempotencyKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UnclaimedDraftEditAndResendWithHttpInfoAsync(string signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'signatureRequestId' is set if (signatureRequestId == null) @@ -1166,10 +1106,6 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory } localVarRequestOptions.PathParameters.Add("signature_request_id", Dropbox.Sign.Client.ClientUtils.ParameterToString(signatureRequestId)); // path parameter - if (idempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("Idempotency-Key", Dropbox.Sign.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - } localVarRequestOptions.Operation = "UnclaimedDraftApi.UnclaimedDraftEditAndResend"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/sdks/java-v1/bin/generate-overload-methods.php b/sdks/java-v1/bin/generate-overload-methods.php index 7d9150696..e700bd265 100755 --- a/sdks/java-v1/bin/generate-overload-methods.php +++ b/sdks/java-v1/bin/generate-overload-methods.php @@ -178,28 +178,20 @@ private function template( $typeList = implode(', ', $typeList); $setters = implode("\n ", $setters); - // OpenAPI Generator emits an empty returnType for void operations. - $isVoid = $returnType === '' || $returnType === 'void'; - $methodReturnType = $isVoid ? 'void' : $returnType; - $httpReturnType = $isVoid ? 'Void' : $returnType; - $methodCall = $isVoid - ? "{$method}WithHttpInfo({$paramList});" - : "return {$method}WithHttpInfo({$paramList}).getData();"; - return << {$method}WithHttpInfo({$methodSignature}) throws ApiException { + public ApiResponse<{$returnType}> {$method}WithHttpInfo({$methodSignature}) throws ApiException { {$setters} return {$method}WithHttpInfo({$paramList}); diff --git a/sdks/java-v1/docs/AccountApi.md b/sdks/java-v1/docs/AccountApi.md index e253448a3..e638f559d 100644 --- a/sdks/java-v1/docs/AccountApi.md +++ b/sdks/java-v1/docs/AccountApi.md @@ -13,7 +13,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## accountCreate -> AccountCreateResponse accountCreate(accountCreateRequest, idempotencyKey) +> AccountCreateResponse accountCreate(accountCreateRequest) Create Account @@ -75,7 +75,6 @@ public class AccountCreateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **accountCreateRequest** | [**AccountCreateRequest**](AccountCreateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -93,7 +92,7 @@ public class AccountCreateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | @@ -183,7 +182,7 @@ public class AccountGetExample ## accountUpdate -> AccountGetResponse accountUpdate(accountUpdateRequest, idempotencyKey) +> AccountGetResponse accountUpdate(accountUpdateRequest) Update Account @@ -246,7 +245,6 @@ public class AccountUpdateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **accountUpdateRequest** | [**AccountUpdateRequest**](AccountUpdateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -264,13 +262,13 @@ public class AccountUpdateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## accountVerify -> AccountVerifyResponse accountVerify(accountVerifyRequest, idempotencyKey) +> AccountVerifyResponse accountVerify(accountVerifyRequest) Verify Account @@ -332,7 +330,6 @@ public class AccountVerifyExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **accountVerifyRequest** | [**AccountVerifyRequest**](AccountVerifyRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -350,6 +347,6 @@ public class AccountVerifyExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v1/docs/ApiAppApi.md b/sdks/java-v1/docs/ApiAppApi.md index 8b31761bf..c9e5fd615 100644 --- a/sdks/java-v1/docs/ApiAppApi.md +++ b/sdks/java-v1/docs/ApiAppApi.md @@ -14,7 +14,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## apiAppCreate -> ApiAppGetResponse apiAppCreate(apiAppCreateRequest, idempotencyKey) +> ApiAppGetResponse apiAppCreate(apiAppCreateRequest) Create API App @@ -93,7 +93,6 @@ public class ApiAppCreateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **apiAppCreateRequest** | [**ApiAppCreateRequest**](ApiAppCreateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -111,7 +110,7 @@ public class ApiAppCreateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **201** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **201** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | @@ -363,7 +362,7 @@ public class ApiAppListExample ## apiAppUpdate -> ApiAppGetResponse apiAppUpdate(clientId, apiAppUpdateRequest, idempotencyKey) +> ApiAppGetResponse apiAppUpdate(clientId, apiAppUpdateRequest) Update API App @@ -445,7 +444,6 @@ public class ApiAppUpdateExample |------------- | ------------- | ------------- | -------------| **clientId** | **String**| The client id of the API App to update. | **apiAppUpdateRequest** | [**ApiAppUpdateRequest**](ApiAppUpdateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -463,6 +461,6 @@ public class ApiAppUpdateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v1/docs/DocumentApi.md b/sdks/java-v1/docs/DocumentApi.md index 6500739bc..c72d11a30 100644 --- a/sdks/java-v1/docs/DocumentApi.md +++ b/sdks/java-v1/docs/DocumentApi.md @@ -10,7 +10,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## documentDetectFields -> DocumentFieldDetectionResponse documentDetectFields(documentFieldDetectionRequest, idempotencyKey) +> DocumentFieldDetectionResponse documentDetectFields(documentFieldDetectionRequest) Detect Document Fields @@ -74,7 +74,6 @@ public class DocumentDetectFieldsExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **documentFieldDetectionRequest** | [**DocumentFieldDetectionRequest**](DocumentFieldDetectionRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -92,6 +91,6 @@ public class DocumentDetectFieldsExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v1/docs/EmbeddedApi.md b/sdks/java-v1/docs/EmbeddedApi.md index d5dd0b75e..416c319ee 100644 --- a/sdks/java-v1/docs/EmbeddedApi.md +++ b/sdks/java-v1/docs/EmbeddedApi.md @@ -11,7 +11,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## embeddedEditUrl -> EmbeddedEditUrlResponse embeddedEditUrl(templateId, embeddedEditUrlRequest, idempotencyKey) +> EmbeddedEditUrlResponse embeddedEditUrl(templateId, embeddedEditUrlRequest) Get Embedded Template Edit URL @@ -80,7 +80,6 @@ public class EmbeddedEditUrlExample |------------- | ------------- | ------------- | -------------| **templateId** | **String**| The id of the template to edit. | **embeddedEditUrlRequest** | [**EmbeddedEditUrlRequest**](EmbeddedEditUrlRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -98,7 +97,7 @@ public class EmbeddedEditUrlExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v1/docs/FaxApi.md b/sdks/java-v1/docs/FaxApi.md index 31a62d42a..7ee47ff0e 100644 --- a/sdks/java-v1/docs/FaxApi.md +++ b/sdks/java-v1/docs/FaxApi.md @@ -337,7 +337,7 @@ public class FaxListExample ## faxSend -> FaxGetResponse faxSend(faxSendRequest, idempotencyKey) +> FaxGetResponse faxSend(faxSendRequest) Send Fax @@ -407,7 +407,6 @@ public class FaxSendExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **faxSendRequest** | [**FaxSendRequest**](FaxSendRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -425,6 +424,6 @@ public class FaxSendExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v1/docs/FaxLineApi.md b/sdks/java-v1/docs/FaxLineApi.md index 8e98aeae7..79ccf8b93 100644 --- a/sdks/java-v1/docs/FaxLineApi.md +++ b/sdks/java-v1/docs/FaxLineApi.md @@ -16,7 +16,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## faxLineAddUser -> FaxLineResponse faxLineAddUser(faxLineAddUserRequest, idempotencyKey) +> FaxLineResponse faxLineAddUser(faxLineAddUserRequest) Add Fax Line User @@ -78,7 +78,6 @@ public class FaxLineAddUserExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **faxLineAddUserRequest** | [**FaxLineAddUserRequest**](FaxLineAddUserRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -96,7 +95,7 @@ public class FaxLineAddUserExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | @@ -189,7 +188,7 @@ public class FaxLineAreaCodeGetExample ## faxLineCreate -> FaxLineResponse faxLineCreate(faxLineCreateRequest, idempotencyKey) +> FaxLineResponse faxLineCreate(faxLineCreateRequest) Purchase Fax Line @@ -251,7 +250,6 @@ public class FaxLineCreateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **faxLineCreateRequest** | [**FaxLineCreateRequest**](FaxLineCreateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -269,7 +267,7 @@ public class FaxLineCreateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | @@ -525,7 +523,7 @@ public class FaxLineListExample ## faxLineRemoveUser -> FaxLineResponse faxLineRemoveUser(faxLineRemoveUserRequest, idempotencyKey) +> FaxLineResponse faxLineRemoveUser(faxLineRemoveUserRequest) Remove Fax Line Access @@ -587,7 +585,6 @@ public class FaxLineRemoveUserExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **faxLineRemoveUserRequest** | [**FaxLineRemoveUserRequest**](FaxLineRemoveUserRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -605,6 +602,6 @@ public class FaxLineRemoveUserExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v1/docs/ReportApi.md b/sdks/java-v1/docs/ReportApi.md index e0368b4c9..cadac49ae 100644 --- a/sdks/java-v1/docs/ReportApi.md +++ b/sdks/java-v1/docs/ReportApi.md @@ -10,7 +10,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## reportCreate -> ReportCreateResponse reportCreate(reportCreateRequest, idempotencyKey) +> ReportCreateResponse reportCreate(reportCreateRequest) Create Report @@ -78,7 +78,6 @@ public class ReportCreateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **reportCreateRequest** | [**ReportCreateRequest**](ReportCreateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -96,6 +95,6 @@ public class ReportCreateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v1/docs/SignatureRequestApi.md b/sdks/java-v1/docs/SignatureRequestApi.md index e8665a90a..bf16f02c0 100644 --- a/sdks/java-v1/docs/SignatureRequestApi.md +++ b/sdks/java-v1/docs/SignatureRequestApi.md @@ -29,7 +29,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## signatureRequestBulkCreateEmbeddedWithTemplate -> BulkSendJobSendResponse signatureRequestBulkCreateEmbeddedWithTemplate(signatureRequestBulkCreateEmbeddedWithTemplateRequest, idempotencyKey) +> BulkSendJobSendResponse signatureRequestBulkCreateEmbeddedWithTemplate(signatureRequestBulkCreateEmbeddedWithTemplateRequest) Embedded Bulk Send with Template @@ -157,7 +157,6 @@ public class SignatureRequestBulkCreateEmbeddedWithTemplateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestBulkCreateEmbeddedWithTemplateRequest** | [**SignatureRequestBulkCreateEmbeddedWithTemplateRequest**](SignatureRequestBulkCreateEmbeddedWithTemplateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -175,13 +174,13 @@ public class SignatureRequestBulkCreateEmbeddedWithTemplateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## signatureRequestBulkSendWithTemplate -> BulkSendJobSendResponse signatureRequestBulkSendWithTemplate(signatureRequestBulkSendWithTemplateRequest, idempotencyKey) +> BulkSendJobSendResponse signatureRequestBulkSendWithTemplate(signatureRequestBulkSendWithTemplateRequest) Bulk Send with Template @@ -309,7 +308,6 @@ public class SignatureRequestBulkSendWithTemplateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestBulkSendWithTemplateRequest** | [**SignatureRequestBulkSendWithTemplateRequest**](SignatureRequestBulkSendWithTemplateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -327,13 +325,13 @@ public class SignatureRequestBulkSendWithTemplateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## signatureRequestCancel -> signatureRequestCancel(signatureRequestId, idempotencyKey) +> signatureRequestCancel(signatureRequestId) Cancel Incomplete Signature Request @@ -398,7 +396,6 @@ public class SignatureRequestCancelExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the incomplete SignatureRequest to cancel. | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -416,13 +413,13 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## signatureRequestCreateEmbedded -> SignatureRequestGetResponse signatureRequestCreateEmbedded(signatureRequestCreateEmbeddedRequest, idempotencyKey) +> SignatureRequestGetResponse signatureRequestCreateEmbedded(signatureRequestCreateEmbeddedRequest) Create Embedded Signature Request @@ -520,7 +517,6 @@ public class SignatureRequestCreateEmbeddedExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestCreateEmbeddedRequest** | [**SignatureRequestCreateEmbeddedRequest**](SignatureRequestCreateEmbeddedRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -538,13 +534,13 @@ public class SignatureRequestCreateEmbeddedExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## signatureRequestCreateEmbeddedWithTemplate -> SignatureRequestGetResponse signatureRequestCreateEmbeddedWithTemplate(signatureRequestCreateEmbeddedWithTemplateRequest, idempotencyKey) +> SignatureRequestGetResponse signatureRequestCreateEmbeddedWithTemplate(signatureRequestCreateEmbeddedWithTemplateRequest) Create Embedded Signature Request with Template @@ -631,7 +627,6 @@ public class SignatureRequestCreateEmbeddedWithTemplateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestCreateEmbeddedWithTemplateRequest** | [**SignatureRequestCreateEmbeddedWithTemplateRequest**](SignatureRequestCreateEmbeddedWithTemplateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -649,13 +644,13 @@ public class SignatureRequestCreateEmbeddedWithTemplateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## signatureRequestEdit -> SignatureRequestGetResponse signatureRequestEdit(signatureRequestId, signatureRequestEditRequest, idempotencyKey) +> SignatureRequestGetResponse signatureRequestEdit(signatureRequestId, signatureRequestEditRequest) Edit Signature Request @@ -765,7 +760,6 @@ public class SignatureRequestEditExample |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the SignatureRequest to edit. | **signatureRequestEditRequest** | [**SignatureRequestEditRequest**](SignatureRequestEditRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -783,13 +777,13 @@ public class SignatureRequestEditExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## signatureRequestEditEmbedded -> SignatureRequestGetResponse signatureRequestEditEmbedded(signatureRequestId, signatureRequestEditEmbeddedRequest, idempotencyKey) +> SignatureRequestGetResponse signatureRequestEditEmbedded(signatureRequestId, signatureRequestEditEmbeddedRequest) Edit Embedded Signature Request @@ -890,7 +884,6 @@ public class SignatureRequestEditEmbeddedExample |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the SignatureRequest to edit. | **signatureRequestEditEmbeddedRequest** | [**SignatureRequestEditEmbeddedRequest**](SignatureRequestEditEmbeddedRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -908,13 +901,13 @@ public class SignatureRequestEditEmbeddedExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## signatureRequestEditEmbeddedWithTemplate -> SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest, idempotencyKey) +> SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest) Edit Embedded Signature Request with Template @@ -1004,7 +997,6 @@ public class SignatureRequestEditEmbeddedWithTemplateExample |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the SignatureRequest to edit. | **signatureRequestEditEmbeddedWithTemplateRequest** | [**SignatureRequestEditEmbeddedWithTemplateRequest**](SignatureRequestEditEmbeddedWithTemplateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -1022,13 +1014,13 @@ public class SignatureRequestEditEmbeddedWithTemplateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## signatureRequestEditWithTemplate -> SignatureRequestGetResponse signatureRequestEditWithTemplate(signatureRequestId, signatureRequestEditWithTemplateRequest, idempotencyKey) +> SignatureRequestGetResponse signatureRequestEditWithTemplate(signatureRequestId, signatureRequestEditWithTemplateRequest) Edit Signature Request With Template @@ -1137,7 +1129,6 @@ public class SignatureRequestEditWithTemplateExample |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the SignatureRequest to edit. | **signatureRequestEditWithTemplateRequest** | [**SignatureRequestEditWithTemplateRequest**](SignatureRequestEditWithTemplateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -1155,7 +1146,7 @@ public class SignatureRequestEditWithTemplateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | @@ -1588,7 +1579,7 @@ public class SignatureRequestListExample ## signatureRequestReleaseHold -> SignatureRequestGetResponse signatureRequestReleaseHold(signatureRequestId, idempotencyKey) +> SignatureRequestGetResponse signatureRequestReleaseHold(signatureRequestId) Release On-Hold Signature Request @@ -1647,7 +1638,6 @@ public class SignatureRequestReleaseHoldExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the SignatureRequest to release. | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -1665,13 +1655,13 @@ public class SignatureRequestReleaseHoldExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## signatureRequestRemind -> SignatureRequestGetResponse signatureRequestRemind(signatureRequestId, signatureRequestRemindRequest, idempotencyKey) +> SignatureRequestGetResponse signatureRequestRemind(signatureRequestId, signatureRequestRemindRequest) Send Request Reminder @@ -1737,7 +1727,6 @@ public class SignatureRequestRemindExample |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the SignatureRequest to send a reminder for. | **signatureRequestRemindRequest** | [**SignatureRequestRemindRequest**](SignatureRequestRemindRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -1755,13 +1744,13 @@ public class SignatureRequestRemindExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## signatureRequestRemove -> signatureRequestRemove(signatureRequestId, idempotencyKey) +> signatureRequestRemove(signatureRequestId) Remove Signature Request Access @@ -1821,7 +1810,6 @@ public class SignatureRequestRemoveExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the SignatureRequest to remove. | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -1839,13 +1827,13 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## signatureRequestSend -> SignatureRequestGetResponse signatureRequestSend(signatureRequestSendRequest, idempotencyKey) +> SignatureRequestGetResponse signatureRequestSend(signatureRequestSendRequest) Send Signature Request @@ -1952,7 +1940,6 @@ public class SignatureRequestSendExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestSendRequest** | [**SignatureRequestSendRequest**](SignatureRequestSendRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -1970,13 +1957,13 @@ public class SignatureRequestSendExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## signatureRequestSendWithTemplate -> SignatureRequestGetResponse signatureRequestSendWithTemplate(signatureRequestSendWithTemplateRequest, idempotencyKey) +> SignatureRequestGetResponse signatureRequestSendWithTemplate(signatureRequestSendWithTemplateRequest) Send with Template @@ -2082,7 +2069,6 @@ public class SignatureRequestSendWithTemplateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestSendWithTemplateRequest** | [**SignatureRequestSendWithTemplateRequest**](SignatureRequestSendWithTemplateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -2100,13 +2086,13 @@ public class SignatureRequestSendWithTemplateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## signatureRequestUpdate -> SignatureRequestGetResponse signatureRequestUpdate(signatureRequestId, signatureRequestUpdateRequest, idempotencyKey) +> SignatureRequestGetResponse signatureRequestUpdate(signatureRequestId, signatureRequestUpdateRequest) Update Signature Request @@ -2175,7 +2161,6 @@ public class SignatureRequestUpdateExample |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the SignatureRequest to update. | **signatureRequestUpdateRequest** | [**SignatureRequestUpdateRequest**](SignatureRequestUpdateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -2193,6 +2178,6 @@ public class SignatureRequestUpdateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v1/docs/TeamApi.md b/sdks/java-v1/docs/TeamApi.md index 981b1f0ec..abb3f1ee0 100644 --- a/sdks/java-v1/docs/TeamApi.md +++ b/sdks/java-v1/docs/TeamApi.md @@ -19,7 +19,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## teamAddMember -> TeamGetResponse teamAddMember(teamAddMemberRequest, teamId, idempotencyKey) +> TeamGetResponse teamAddMember(teamAddMemberRequest, teamId) Add User to Team @@ -83,7 +83,6 @@ public class TeamAddMemberExample |------------- | ------------- | ------------- | -------------| **teamAddMemberRequest** | [**TeamAddMemberRequest**](TeamAddMemberRequest.md)| | **teamId** | **String**| The id of the team. | [optional] - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -101,13 +100,13 @@ public class TeamAddMemberExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## teamCreate -> TeamGetResponse teamCreate(teamCreateRequest, idempotencyKey) +> TeamGetResponse teamCreate(teamCreateRequest) Create Team @@ -169,7 +168,6 @@ public class TeamCreateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **teamCreateRequest** | [**TeamCreateRequest**](TeamCreateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -187,7 +185,7 @@ public class TeamCreateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | @@ -595,7 +593,7 @@ public class TeamMembersExample ## teamRemoveMember -> TeamGetResponse teamRemoveMember(teamRemoveMemberRequest, idempotencyKey) +> TeamGetResponse teamRemoveMember(teamRemoveMemberRequest) Remove User from Team @@ -658,7 +656,6 @@ public class TeamRemoveMemberExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **teamRemoveMemberRequest** | [**TeamRemoveMemberRequest**](TeamRemoveMemberRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -676,7 +673,7 @@ public class TeamRemoveMemberExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **201** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **201** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | @@ -768,7 +765,7 @@ public class TeamSubTeamsExample ## teamUpdate -> TeamGetResponse teamUpdate(teamUpdateRequest, idempotencyKey) +> TeamGetResponse teamUpdate(teamUpdateRequest) Update Team @@ -830,7 +827,6 @@ public class TeamUpdateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **teamUpdateRequest** | [**TeamUpdateRequest**](TeamUpdateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -848,6 +844,6 @@ public class TeamUpdateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v1/docs/TemplateApi.md b/sdks/java-v1/docs/TemplateApi.md index 56963b69b..e9233865f 100644 --- a/sdks/java-v1/docs/TemplateApi.md +++ b/sdks/java-v1/docs/TemplateApi.md @@ -20,7 +20,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## templateAddUser -> TemplateGetResponse templateAddUser(templateId, templateAddUserRequest, idempotencyKey) +> TemplateGetResponse templateAddUser(templateId, templateAddUserRequest) Add User to Template @@ -84,7 +84,6 @@ public class TemplateAddUserExample |------------- | ------------- | ------------- | -------------| **templateId** | **String**| The id of the Template to give the Account access to. | **templateAddUserRequest** | [**TemplateAddUserRequest**](TemplateAddUserRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -102,13 +101,13 @@ public class TemplateAddUserExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## templateCreate -> TemplateCreateResponse templateCreate(templateCreateRequest, idempotencyKey) +> TemplateCreateResponse templateCreate(templateCreateRequest) Create Template @@ -250,7 +249,6 @@ public class TemplateCreateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **templateCreateRequest** | [**TemplateCreateRequest**](TemplateCreateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -268,13 +266,13 @@ public class TemplateCreateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## templateCreateEmbeddedDraft -> TemplateCreateEmbeddedDraftResponse templateCreateEmbeddedDraft(templateCreateEmbeddedDraftRequest, idempotencyKey) +> TemplateCreateEmbeddedDraftResponse templateCreateEmbeddedDraft(templateCreateEmbeddedDraftRequest) Create Embedded Template Draft @@ -378,7 +376,6 @@ public class TemplateCreateEmbeddedDraftExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **templateCreateEmbeddedDraftRequest** | [**TemplateCreateEmbeddedDraftRequest**](TemplateCreateEmbeddedDraftRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -396,13 +393,13 @@ public class TemplateCreateEmbeddedDraftExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## templateDelete -> templateDelete(templateId, idempotencyKey) +> templateDelete(templateId) Delete Template @@ -459,7 +456,6 @@ public class TemplateDeleteExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **templateId** | **String**| The id of the Template to delete. | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -477,7 +473,7 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | @@ -910,7 +906,7 @@ public class TemplateListExample ## templateRemoveUser -> TemplateGetResponse templateRemoveUser(templateId, templateRemoveUserRequest, idempotencyKey) +> TemplateGetResponse templateRemoveUser(templateId, templateRemoveUserRequest) Remove User from Template @@ -974,7 +970,6 @@ public class TemplateRemoveUserExample |------------- | ------------- | ------------- | -------------| **templateId** | **String**| The id of the Template to remove the Account's access to. | **templateRemoveUserRequest** | [**TemplateRemoveUserRequest**](TemplateRemoveUserRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -992,13 +987,13 @@ public class TemplateRemoveUserExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## templateUpdateFiles -> TemplateUpdateFilesResponse templateUpdateFiles(templateId, templateUpdateFilesRequest, idempotencyKey) +> TemplateUpdateFilesResponse templateUpdateFiles(templateId, templateUpdateFilesRequest) Update Template Files @@ -1075,7 +1070,6 @@ public class TemplateUpdateFilesExample |------------- | ------------- | ------------- | -------------| **templateId** | **String**| The ID of the template whose files to update. | **templateUpdateFilesRequest** | [**TemplateUpdateFilesRequest**](TemplateUpdateFilesRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -1093,6 +1087,6 @@ public class TemplateUpdateFilesExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v1/docs/UnclaimedDraftApi.md b/sdks/java-v1/docs/UnclaimedDraftApi.md index f7816f232..3f4dadabd 100644 --- a/sdks/java-v1/docs/UnclaimedDraftApi.md +++ b/sdks/java-v1/docs/UnclaimedDraftApi.md @@ -13,7 +13,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## unclaimedDraftCreate -> UnclaimedDraftCreateResponse unclaimedDraftCreate(unclaimedDraftCreateRequest, idempotencyKey) +> UnclaimedDraftCreateResponse unclaimedDraftCreate(unclaimedDraftCreateRequest) Create Unclaimed Draft @@ -89,7 +89,6 @@ public class UnclaimedDraftCreateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **unclaimedDraftCreateRequest** | [**UnclaimedDraftCreateRequest**](UnclaimedDraftCreateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -107,13 +106,13 @@ public class UnclaimedDraftCreateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## unclaimedDraftCreateEmbedded -> UnclaimedDraftCreateResponse unclaimedDraftCreateEmbedded(unclaimedDraftCreateEmbeddedRequest, idempotencyKey) +> UnclaimedDraftCreateResponse unclaimedDraftCreateEmbedded(unclaimedDraftCreateEmbeddedRequest) Create Embedded Unclaimed Draft @@ -182,7 +181,6 @@ public class UnclaimedDraftCreateEmbeddedExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **unclaimedDraftCreateEmbeddedRequest** | [**UnclaimedDraftCreateEmbeddedRequest**](UnclaimedDraftCreateEmbeddedRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -200,13 +198,13 @@ public class UnclaimedDraftCreateEmbeddedExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## unclaimedDraftCreateEmbeddedWithTemplate -> UnclaimedDraftCreateResponse unclaimedDraftCreateEmbeddedWithTemplate(unclaimedDraftCreateEmbeddedWithTemplateRequest, idempotencyKey) +> UnclaimedDraftCreateResponse unclaimedDraftCreateEmbeddedWithTemplate(unclaimedDraftCreateEmbeddedWithTemplateRequest) Create Embedded Unclaimed Draft with Template @@ -294,7 +292,6 @@ public class UnclaimedDraftCreateEmbeddedWithTemplateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **unclaimedDraftCreateEmbeddedWithTemplateRequest** | [**UnclaimedDraftCreateEmbeddedWithTemplateRequest**](UnclaimedDraftCreateEmbeddedWithTemplateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -312,13 +309,13 @@ public class UnclaimedDraftCreateEmbeddedWithTemplateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## unclaimedDraftEditAndResend -> UnclaimedDraftCreateResponse unclaimedDraftEditAndResend(signatureRequestId, unclaimedDraftEditAndResendRequest, idempotencyKey) +> UnclaimedDraftCreateResponse unclaimedDraftEditAndResend(signatureRequestId, unclaimedDraftEditAndResendRequest) Edit and Resend Unclaimed Draft @@ -385,7 +382,6 @@ public class UnclaimedDraftEditAndResendExample |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The ID of the signature request to edit and resend. | **unclaimedDraftEditAndResendRequest** | [**UnclaimedDraftEditAndResendRequest**](UnclaimedDraftEditAndResendRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -403,6 +399,6 @@ public class UnclaimedDraftEditAndResendExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/AccountApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/AccountApi.java index 8cfef09c3..836bd4bf4 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/AccountApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/AccountApi.java @@ -55,41 +55,19 @@ public void setApiClient(ApiClient apiClient) { * `email_address`. * * @param accountCreateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return AccountCreateResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public AccountCreateResponse accountCreate( - AccountCreateRequest accountCreateRequest, String idempotencyKey) throws ApiException { - return accountCreateWithHttpInfo(accountCreateRequest, idempotencyKey).getData(); - } - - /** - * @see AccountApi#accountCreate(AccountCreateRequest, String) - */ public AccountCreateResponse accountCreate(AccountCreateRequest accountCreateRequest) throws ApiException { - String idempotencyKey = null; - - return accountCreateWithHttpInfo(accountCreateRequest, idempotencyKey).getData(); - } - - /** - * @see AccountApi#accountCreateWithHttpInfo(AccountCreateRequest, String) - */ - public ApiResponse accountCreateWithHttpInfo( - AccountCreateRequest accountCreateRequest) throws ApiException { - String idempotencyKey = null; - - return accountCreateWithHttpInfo(accountCreateRequest, idempotencyKey); + return accountCreateWithHttpInfo(accountCreateRequest).getData(); } /** @@ -97,20 +75,18 @@ public ApiResponse accountCreateWithHttpInfo( * `email_address`. * * @param accountCreateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<AccountCreateResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse accountCreateWithHttpInfo( - AccountCreateRequest accountCreateRequest, String idempotencyKey) throws ApiException { + AccountCreateRequest accountCreateRequest) throws ApiException { // Check required parameters if (accountCreateRequest == null) { @@ -120,13 +96,6 @@ public ApiResponse accountCreateWithHttpInfo( + " accountCreate"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = accountCreateRequest.createFormData(); @@ -144,7 +113,7 @@ public ApiResponse accountCreateWithHttpInfo( "POST", new ArrayList<>(), isFileTypeFound ? null : accountCreateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -270,41 +239,19 @@ public ApiResponse accountGetWithHttpInfo( * updates to the [Callback URL](/api/reference/tag/Callbacks-and-Events) and locale. * * @param accountUpdateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return AccountGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public AccountGetResponse accountUpdate( - AccountUpdateRequest accountUpdateRequest, String idempotencyKey) throws ApiException { - return accountUpdateWithHttpInfo(accountUpdateRequest, idempotencyKey).getData(); - } - - /** - * @see AccountApi#accountUpdate(AccountUpdateRequest, String) - */ public AccountGetResponse accountUpdate(AccountUpdateRequest accountUpdateRequest) throws ApiException { - String idempotencyKey = null; - - return accountUpdateWithHttpInfo(accountUpdateRequest, idempotencyKey).getData(); - } - - /** - * @see AccountApi#accountUpdateWithHttpInfo(AccountUpdateRequest, String) - */ - public ApiResponse accountUpdateWithHttpInfo( - AccountUpdateRequest accountUpdateRequest) throws ApiException { - String idempotencyKey = null; - - return accountUpdateWithHttpInfo(accountUpdateRequest, idempotencyKey); + return accountUpdateWithHttpInfo(accountUpdateRequest).getData(); } /** @@ -312,20 +259,18 @@ public ApiResponse accountUpdateWithHttpInfo( * updates to the [Callback URL](/api/reference/tag/Callbacks-and-Events) and locale. * * @param accountUpdateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<AccountGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse accountUpdateWithHttpInfo( - AccountUpdateRequest accountUpdateRequest, String idempotencyKey) throws ApiException { + AccountUpdateRequest accountUpdateRequest) throws ApiException { // Check required parameters if (accountUpdateRequest == null) { @@ -335,13 +280,6 @@ public ApiResponse accountUpdateWithHttpInfo( + " accountUpdate"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = accountUpdateRequest.createFormData(); @@ -359,7 +297,7 @@ public ApiResponse accountUpdateWithHttpInfo( "PUT", new ArrayList<>(), isFileTypeFound ? null : accountUpdateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -373,61 +311,37 @@ public ApiResponse accountUpdateWithHttpInfo( * Verify Account Verifies whether an Dropbox Sign Account exists for the given email address. * * @param accountVerifyRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return AccountVerifyResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public AccountVerifyResponse accountVerify( - AccountVerifyRequest accountVerifyRequest, String idempotencyKey) throws ApiException { - return accountVerifyWithHttpInfo(accountVerifyRequest, idempotencyKey).getData(); - } - - /** - * @see AccountApi#accountVerify(AccountVerifyRequest, String) - */ public AccountVerifyResponse accountVerify(AccountVerifyRequest accountVerifyRequest) throws ApiException { - String idempotencyKey = null; - - return accountVerifyWithHttpInfo(accountVerifyRequest, idempotencyKey).getData(); - } - - /** - * @see AccountApi#accountVerifyWithHttpInfo(AccountVerifyRequest, String) - */ - public ApiResponse accountVerifyWithHttpInfo( - AccountVerifyRequest accountVerifyRequest) throws ApiException { - String idempotencyKey = null; - - return accountVerifyWithHttpInfo(accountVerifyRequest, idempotencyKey); + return accountVerifyWithHttpInfo(accountVerifyRequest).getData(); } /** * Verify Account Verifies whether an Dropbox Sign Account exists for the given email address. * * @param accountVerifyRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<AccountVerifyResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse accountVerifyWithHttpInfo( - AccountVerifyRequest accountVerifyRequest, String idempotencyKey) throws ApiException { + AccountVerifyRequest accountVerifyRequest) throws ApiException { // Check required parameters if (accountVerifyRequest == null) { @@ -437,13 +351,6 @@ public ApiResponse accountVerifyWithHttpInfo( + " accountVerify"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = accountVerifyRequest.createFormData(); @@ -461,7 +368,7 @@ public ApiResponse accountVerifyWithHttpInfo( "POST", new ArrayList<>(), isFileTypeFound ? null : accountVerifyRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/ApiAppApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/ApiAppApi.java index 3f92bca67..b74007e35 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/ApiAppApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/ApiAppApi.java @@ -52,61 +52,37 @@ public void setApiClient(ApiClient apiClient) { * Create API App Creates a new API App. * * @param apiAppCreateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiAppGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiAppGetResponse apiAppCreate( - ApiAppCreateRequest apiAppCreateRequest, String idempotencyKey) throws ApiException { - return apiAppCreateWithHttpInfo(apiAppCreateRequest, idempotencyKey).getData(); - } - - /** - * @see ApiAppApi#apiAppCreate(ApiAppCreateRequest, String) - */ public ApiAppGetResponse apiAppCreate(ApiAppCreateRequest apiAppCreateRequest) throws ApiException { - String idempotencyKey = null; - - return apiAppCreateWithHttpInfo(apiAppCreateRequest, idempotencyKey).getData(); - } - - /** - * @see ApiAppApi#apiAppCreateWithHttpInfo(ApiAppCreateRequest, String) - */ - public ApiResponse apiAppCreateWithHttpInfo( - ApiAppCreateRequest apiAppCreateRequest) throws ApiException { - String idempotencyKey = null; - - return apiAppCreateWithHttpInfo(apiAppCreateRequest, idempotencyKey); + return apiAppCreateWithHttpInfo(apiAppCreateRequest).getData(); } /** * Create API App Creates a new API App. * * @param apiAppCreateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<ApiAppGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse apiAppCreateWithHttpInfo( - ApiAppCreateRequest apiAppCreateRequest, String idempotencyKey) throws ApiException { + ApiAppCreateRequest apiAppCreateRequest) throws ApiException { // Check required parameters if (apiAppCreateRequest == null) { @@ -116,13 +92,6 @@ public ApiResponse apiAppCreateWithHttpInfo( + " apiAppCreate"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = apiAppCreateRequest.createFormData(); @@ -140,7 +109,7 @@ public ApiResponse apiAppCreateWithHttpInfo( "POST", new ArrayList<>(), isFileTypeFound ? null : apiAppCreateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -412,42 +381,19 @@ public ApiResponse apiAppListWithHttpInfo(Integer page, Inte * * @param clientId The client id of the API App to update. (required) * @param apiAppUpdateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiAppGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiAppGetResponse apiAppUpdate( - String clientId, ApiAppUpdateRequest apiAppUpdateRequest, String idempotencyKey) - throws ApiException { - return apiAppUpdateWithHttpInfo(clientId, apiAppUpdateRequest, idempotencyKey).getData(); - } - - /** - * @see ApiAppApi#apiAppUpdate(String, ApiAppUpdateRequest, String) - */ public ApiAppGetResponse apiAppUpdate(String clientId, ApiAppUpdateRequest apiAppUpdateRequest) throws ApiException { - String idempotencyKey = null; - - return apiAppUpdateWithHttpInfo(clientId, apiAppUpdateRequest, idempotencyKey).getData(); - } - - /** - * @see ApiAppApi#apiAppUpdateWithHttpInfo(String, ApiAppUpdateRequest, String) - */ - public ApiResponse apiAppUpdateWithHttpInfo( - String clientId, ApiAppUpdateRequest apiAppUpdateRequest) throws ApiException { - String idempotencyKey = null; - - return apiAppUpdateWithHttpInfo(clientId, apiAppUpdateRequest, idempotencyKey); + return apiAppUpdateWithHttpInfo(clientId, apiAppUpdateRequest).getData(); } /** @@ -457,21 +403,18 @@ public ApiResponse apiAppUpdateWithHttpInfo( * * @param clientId The client id of the API App to update. (required) * @param apiAppUpdateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<ApiAppGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse apiAppUpdateWithHttpInfo( - String clientId, ApiAppUpdateRequest apiAppUpdateRequest, String idempotencyKey) - throws ApiException { + String clientId, ApiAppUpdateRequest apiAppUpdateRequest) throws ApiException { // Check required parameters if (clientId == null) { @@ -490,13 +433,6 @@ public ApiResponse apiAppUpdateWithHttpInfo( "/api_app/{client_id}" .replaceAll("\\{client_id}", apiClient.escapeString(clientId.toString())); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = apiAppUpdateRequest.createFormData(); @@ -514,7 +450,7 @@ public ApiResponse apiAppUpdateWithHttpInfo( "PUT", new ArrayList<>(), isFileTypeFound ? null : apiAppUpdateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/DocumentApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/DocumentApi.java index 133e81159..ccb577536 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/DocumentApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/DocumentApi.java @@ -48,44 +48,19 @@ public void setApiClient(ApiClient apiClient) { * annotations or Dropbox Sign text tags. * * @param documentFieldDetectionRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return DocumentFieldDetectionResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public DocumentFieldDetectionResponse documentDetectFields( - DocumentFieldDetectionRequest documentFieldDetectionRequest, String idempotencyKey) - throws ApiException { - return documentDetectFieldsWithHttpInfo(documentFieldDetectionRequest, idempotencyKey) - .getData(); - } - - /** - * @see DocumentApi#documentDetectFields(DocumentFieldDetectionRequest, String) - */ public DocumentFieldDetectionResponse documentDetectFields( DocumentFieldDetectionRequest documentFieldDetectionRequest) throws ApiException { - String idempotencyKey = null; - - return documentDetectFieldsWithHttpInfo(documentFieldDetectionRequest, idempotencyKey) - .getData(); - } - - /** - * @see DocumentApi#documentDetectFieldsWithHttpInfo(DocumentFieldDetectionRequest, String) - */ - public ApiResponse documentDetectFieldsWithHttpInfo( - DocumentFieldDetectionRequest documentFieldDetectionRequest) throws ApiException { - String idempotencyKey = null; - - return documentDetectFieldsWithHttpInfo(documentFieldDetectionRequest, idempotencyKey); + return documentDetectFieldsWithHttpInfo(documentFieldDetectionRequest).getData(); } /** @@ -93,21 +68,18 @@ public ApiResponse documentDetectFieldsWithHttpI * annotations or Dropbox Sign text tags. * * @param documentFieldDetectionRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<DocumentFieldDetectionResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse documentDetectFieldsWithHttpInfo( - DocumentFieldDetectionRequest documentFieldDetectionRequest, String idempotencyKey) - throws ApiException { + DocumentFieldDetectionRequest documentFieldDetectionRequest) throws ApiException { // Check required parameters if (documentFieldDetectionRequest == null) { @@ -117,13 +89,6 @@ public ApiResponse documentDetectFieldsWithHttpI + " documentDetectFields"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = documentFieldDetectionRequest.createFormData(); @@ -142,7 +107,7 @@ public ApiResponse documentDetectFieldsWithHttpI "POST", new ArrayList<>(), isFileTypeFound ? null : documentFieldDetectionRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/EmbeddedApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/EmbeddedApi.java index cfe2d6d95..e89671c3d 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/EmbeddedApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/EmbeddedApi.java @@ -52,44 +52,19 @@ public void setApiClient(ApiClient apiClient) { * * @param templateId The id of the template to edit. (required) * @param embeddedEditUrlRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return EmbeddedEditUrlResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public EmbeddedEditUrlResponse embeddedEditUrl( - String templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, String idempotencyKey) - throws ApiException { - return embeddedEditUrlWithHttpInfo(templateId, embeddedEditUrlRequest, idempotencyKey) - .getData(); - } - - /** - * @see EmbeddedApi#embeddedEditUrl(String, EmbeddedEditUrlRequest, String) - */ public EmbeddedEditUrlResponse embeddedEditUrl( String templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest) throws ApiException { - String idempotencyKey = null; - - return embeddedEditUrlWithHttpInfo(templateId, embeddedEditUrlRequest, idempotencyKey) - .getData(); - } - - /** - * @see EmbeddedApi#embeddedEditUrlWithHttpInfo(String, EmbeddedEditUrlRequest, String) - */ - public ApiResponse embeddedEditUrlWithHttpInfo( - String templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest) throws ApiException { - String idempotencyKey = null; - - return embeddedEditUrlWithHttpInfo(templateId, embeddedEditUrlRequest, idempotencyKey); + return embeddedEditUrlWithHttpInfo(templateId, embeddedEditUrlRequest).getData(); } /** @@ -99,21 +74,18 @@ public ApiResponse embeddedEditUrlWithHttpInfo( * * @param templateId The id of the template to edit. (required) * @param embeddedEditUrlRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<EmbeddedEditUrlResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse embeddedEditUrlWithHttpInfo( - String templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, String idempotencyKey) - throws ApiException { + String templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest) throws ApiException { // Check required parameters if (templateId == null) { @@ -134,13 +106,6 @@ public ApiResponse embeddedEditUrlWithHttpInfo( .replaceAll( "\\{template_id}", apiClient.escapeString(templateId.toString())); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = embeddedEditUrlRequest.createFormData(); @@ -158,7 +123,7 @@ public ApiResponse embeddedEditUrlWithHttpInfo( "POST", new ArrayList<>(), isFileTypeFound ? null : embeddedEditUrlRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/FaxApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/FaxApi.java index e0436c37d..259f1117d 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/FaxApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/FaxApi.java @@ -369,60 +369,36 @@ public ApiResponse faxListWithHttpInfo(Integer page, Integer pa * Send Fax Creates and sends a new Fax with the submitted file(s) * * @param faxSendRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return FaxGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public FaxGetResponse faxSend(FaxSendRequest faxSendRequest, String idempotencyKey) - throws ApiException { - return faxSendWithHttpInfo(faxSendRequest, idempotencyKey).getData(); - } - - /** - * @see FaxApi#faxSend(FaxSendRequest, String) - */ public FaxGetResponse faxSend(FaxSendRequest faxSendRequest) throws ApiException { - String idempotencyKey = null; - - return faxSendWithHttpInfo(faxSendRequest, idempotencyKey).getData(); - } - - /** - * @see FaxApi#faxSendWithHttpInfo(FaxSendRequest, String) - */ - public ApiResponse faxSendWithHttpInfo(FaxSendRequest faxSendRequest) - throws ApiException { - String idempotencyKey = null; - - return faxSendWithHttpInfo(faxSendRequest, idempotencyKey); + return faxSendWithHttpInfo(faxSendRequest).getData(); } /** * Send Fax Creates and sends a new Fax with the submitted file(s) * * @param faxSendRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<FaxGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse faxSendWithHttpInfo( - FaxSendRequest faxSendRequest, String idempotencyKey) throws ApiException { + public ApiResponse faxSendWithHttpInfo(FaxSendRequest faxSendRequest) + throws ApiException { // Check required parameters if (faxSendRequest == null) { @@ -430,13 +406,6 @@ public ApiResponse faxSendWithHttpInfo( 400, "Missing the required parameter 'faxSendRequest' when calling faxSend"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = faxSendRequest.createFormData(); @@ -454,7 +423,7 @@ public ApiResponse faxSendWithHttpInfo( "POST", new ArrayList<>(), isFileTypeFound ? null : faxSendRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/FaxLineApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/FaxLineApi.java index e6ef4af7e..346232fe7 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/FaxLineApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/FaxLineApi.java @@ -55,63 +55,37 @@ public void setApiClient(ApiClient apiClient) { * Add Fax Line User Grants a user access to the specified Fax Line. * * @param faxLineAddUserRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return FaxLineResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public FaxLineResponse faxLineAddUser( - FaxLineAddUserRequest faxLineAddUserRequest, String idempotencyKey) - throws ApiException { - return faxLineAddUserWithHttpInfo(faxLineAddUserRequest, idempotencyKey).getData(); - } - - /** - * @see FaxLineApi#faxLineAddUser(FaxLineAddUserRequest, String) - */ public FaxLineResponse faxLineAddUser(FaxLineAddUserRequest faxLineAddUserRequest) throws ApiException { - String idempotencyKey = null; - - return faxLineAddUserWithHttpInfo(faxLineAddUserRequest, idempotencyKey).getData(); - } - - /** - * @see FaxLineApi#faxLineAddUserWithHttpInfo(FaxLineAddUserRequest, String) - */ - public ApiResponse faxLineAddUserWithHttpInfo( - FaxLineAddUserRequest faxLineAddUserRequest) throws ApiException { - String idempotencyKey = null; - - return faxLineAddUserWithHttpInfo(faxLineAddUserRequest, idempotencyKey); + return faxLineAddUserWithHttpInfo(faxLineAddUserRequest).getData(); } /** * Add Fax Line User Grants a user access to the specified Fax Line. * * @param faxLineAddUserRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<FaxLineResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse faxLineAddUserWithHttpInfo( - FaxLineAddUserRequest faxLineAddUserRequest, String idempotencyKey) - throws ApiException { + FaxLineAddUserRequest faxLineAddUserRequest) throws ApiException { // Check required parameters if (faxLineAddUserRequest == null) { @@ -121,13 +95,6 @@ public ApiResponse faxLineAddUserWithHttpInfo( + " faxLineAddUser"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = faxLineAddUserRequest.createFormData(); @@ -144,7 +111,7 @@ public ApiResponse faxLineAddUserWithHttpInfo( "PUT", new ArrayList<>(), isFileTypeFound ? null : faxLineAddUserRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -306,61 +273,37 @@ public ApiResponse faxLineAreaCodeGetWithHttpInfo( * Purchase Fax Line Purchases a new Fax Line * * @param faxLineCreateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return FaxLineResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public FaxLineResponse faxLineCreate( - FaxLineCreateRequest faxLineCreateRequest, String idempotencyKey) throws ApiException { - return faxLineCreateWithHttpInfo(faxLineCreateRequest, idempotencyKey).getData(); - } - - /** - * @see FaxLineApi#faxLineCreate(FaxLineCreateRequest, String) - */ public FaxLineResponse faxLineCreate(FaxLineCreateRequest faxLineCreateRequest) throws ApiException { - String idempotencyKey = null; - - return faxLineCreateWithHttpInfo(faxLineCreateRequest, idempotencyKey).getData(); - } - - /** - * @see FaxLineApi#faxLineCreateWithHttpInfo(FaxLineCreateRequest, String) - */ - public ApiResponse faxLineCreateWithHttpInfo( - FaxLineCreateRequest faxLineCreateRequest) throws ApiException { - String idempotencyKey = null; - - return faxLineCreateWithHttpInfo(faxLineCreateRequest, idempotencyKey); + return faxLineCreateWithHttpInfo(faxLineCreateRequest).getData(); } /** * Purchase Fax Line Purchases a new Fax Line * * @param faxLineCreateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<FaxLineResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse faxLineCreateWithHttpInfo( - FaxLineCreateRequest faxLineCreateRequest, String idempotencyKey) throws ApiException { + FaxLineCreateRequest faxLineCreateRequest) throws ApiException { // Check required parameters if (faxLineCreateRequest == null) { @@ -370,13 +313,6 @@ public ApiResponse faxLineCreateWithHttpInfo( + " faxLineCreate"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = faxLineCreateRequest.createFormData(); @@ -393,7 +329,7 @@ public ApiResponse faxLineCreateWithHttpInfo( "POST", new ArrayList<>(), isFileTypeFound ? null : faxLineCreateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -717,63 +653,37 @@ public ApiResponse faxLineListWithHttpInfo( * Remove Fax Line Access Removes a user's access to the specified Fax Line * * @param faxLineRemoveUserRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return FaxLineResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public FaxLineResponse faxLineRemoveUser( - FaxLineRemoveUserRequest faxLineRemoveUserRequest, String idempotencyKey) - throws ApiException { - return faxLineRemoveUserWithHttpInfo(faxLineRemoveUserRequest, idempotencyKey).getData(); - } - - /** - * @see FaxLineApi#faxLineRemoveUser(FaxLineRemoveUserRequest, String) - */ public FaxLineResponse faxLineRemoveUser(FaxLineRemoveUserRequest faxLineRemoveUserRequest) throws ApiException { - String idempotencyKey = null; - - return faxLineRemoveUserWithHttpInfo(faxLineRemoveUserRequest, idempotencyKey).getData(); - } - - /** - * @see FaxLineApi#faxLineRemoveUserWithHttpInfo(FaxLineRemoveUserRequest, String) - */ - public ApiResponse faxLineRemoveUserWithHttpInfo( - FaxLineRemoveUserRequest faxLineRemoveUserRequest) throws ApiException { - String idempotencyKey = null; - - return faxLineRemoveUserWithHttpInfo(faxLineRemoveUserRequest, idempotencyKey); + return faxLineRemoveUserWithHttpInfo(faxLineRemoveUserRequest).getData(); } /** * Remove Fax Line Access Removes a user's access to the specified Fax Line * * @param faxLineRemoveUserRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<FaxLineResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse faxLineRemoveUserWithHttpInfo( - FaxLineRemoveUserRequest faxLineRemoveUserRequest, String idempotencyKey) - throws ApiException { + FaxLineRemoveUserRequest faxLineRemoveUserRequest) throws ApiException { // Check required parameters if (faxLineRemoveUserRequest == null) { @@ -783,13 +693,6 @@ public ApiResponse faxLineRemoveUserWithHttpInfo( + " faxLineRemoveUser"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = faxLineRemoveUserRequest.createFormData(); @@ -806,7 +709,7 @@ public ApiResponse faxLineRemoveUserWithHttpInfo( "PUT", new ArrayList<>(), isFileTypeFound ? null : faxLineRemoveUserRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/ReportApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/ReportApi.java index 4ba7662aa..32c6bea91 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/ReportApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/ReportApi.java @@ -50,41 +50,19 @@ public void setApiClient(ApiClient apiClient) { * duration, and `start_date` must not be more than 10 years in the past. * * @param reportCreateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ReportCreateResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ReportCreateResponse reportCreate( - ReportCreateRequest reportCreateRequest, String idempotencyKey) throws ApiException { - return reportCreateWithHttpInfo(reportCreateRequest, idempotencyKey).getData(); - } - - /** - * @see ReportApi#reportCreate(ReportCreateRequest, String) - */ public ReportCreateResponse reportCreate(ReportCreateRequest reportCreateRequest) throws ApiException { - String idempotencyKey = null; - - return reportCreateWithHttpInfo(reportCreateRequest, idempotencyKey).getData(); - } - - /** - * @see ReportApi#reportCreateWithHttpInfo(ReportCreateRequest, String) - */ - public ApiResponse reportCreateWithHttpInfo( - ReportCreateRequest reportCreateRequest) throws ApiException { - String idempotencyKey = null; - - return reportCreateWithHttpInfo(reportCreateRequest, idempotencyKey); + return reportCreateWithHttpInfo(reportCreateRequest).getData(); } /** @@ -94,20 +72,18 @@ public ApiResponse reportCreateWithHttpInfo( * duration, and `start_date` must not be more than 10 years in the past. * * @param reportCreateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<ReportCreateResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse reportCreateWithHttpInfo( - ReportCreateRequest reportCreateRequest, String idempotencyKey) throws ApiException { + ReportCreateRequest reportCreateRequest) throws ApiException { // Check required parameters if (reportCreateRequest == null) { @@ -117,13 +93,6 @@ public ApiResponse reportCreateWithHttpInfo( + " reportCreate"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = reportCreateRequest.createFormData(); @@ -141,7 +110,7 @@ public ApiResponse reportCreateWithHttpInfo( "POST", new ArrayList<>(), isFileTypeFound ? null : reportCreateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/SignatureRequestApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/SignatureRequestApi.java index 964b794d9..acda9a05e 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/SignatureRequestApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/SignatureRequestApi.java @@ -70,60 +70,25 @@ public void setApiClient(ApiClient apiClient) { * Sign. **NOTE:** Only available for Standard plan and higher. * * @param signatureRequestBulkCreateEmbeddedWithTemplateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return BulkSendJobSendResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public BulkSendJobSendResponse signatureRequestBulkCreateEmbeddedWithTemplate( - SignatureRequestBulkCreateEmbeddedWithTemplateRequest - signatureRequestBulkCreateEmbeddedWithTemplateRequest, - String idempotencyKey) - throws ApiException { - return signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo( - signatureRequestBulkCreateEmbeddedWithTemplateRequest, idempotencyKey) - .getData(); - } - - /** - * @see - * SignatureRequestApi#signatureRequestBulkCreateEmbeddedWithTemplate(SignatureRequestBulkCreateEmbeddedWithTemplateRequest, - * String) - */ public BulkSendJobSendResponse signatureRequestBulkCreateEmbeddedWithTemplate( SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest) throws ApiException { - String idempotencyKey = null; - return signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo( - signatureRequestBulkCreateEmbeddedWithTemplateRequest, idempotencyKey) + signatureRequestBulkCreateEmbeddedWithTemplateRequest) .getData(); } - /** - * @see - * SignatureRequestApi#signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestBulkCreateEmbeddedWithTemplateRequest, - * String) - */ - public ApiResponse - signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo( - SignatureRequestBulkCreateEmbeddedWithTemplateRequest - signatureRequestBulkCreateEmbeddedWithTemplateRequest) - throws ApiException { - String idempotencyKey = null; - - return signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo( - signatureRequestBulkCreateEmbeddedWithTemplateRequest, idempotencyKey); - } - /** * Embedded Bulk Send with Template Creates BulkSendJob which sends up to 250 SignatureRequests * in bulk based off of the provided Template(s) specified with the `template_ids` @@ -132,23 +97,20 @@ public BulkSendJobSendResponse signatureRequestBulkCreateEmbeddedWithTemplate( * Sign. **NOTE:** Only available for Standard plan and higher. * * @param signatureRequestBulkCreateEmbeddedWithTemplateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<BulkSendJobSendResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo( SignatureRequestBulkCreateEmbeddedWithTemplateRequest - signatureRequestBulkCreateEmbeddedWithTemplateRequest, - String idempotencyKey) + signatureRequestBulkCreateEmbeddedWithTemplateRequest) throws ApiException { // Check required parameters @@ -160,13 +122,6 @@ public BulkSendJobSendResponse signatureRequestBulkCreateEmbeddedWithTemplate( + " signatureRequestBulkCreateEmbeddedWithTemplate"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestBulkCreateEmbeddedWithTemplateRequest.createFormData(); @@ -185,7 +140,7 @@ public BulkSendJobSendResponse signatureRequestBulkCreateEmbeddedWithTemplate( "POST", new ArrayList<>(), isFileTypeFound ? null : signatureRequestBulkCreateEmbeddedWithTemplateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -201,77 +156,42 @@ public BulkSendJobSendResponse signatureRequestBulkCreateEmbeddedWithTemplate( * **NOTE:** Only available for Standard plan and higher. * * @param signatureRequestBulkSendWithTemplateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return BulkSendJobSendResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public BulkSendJobSendResponse signatureRequestBulkSendWithTemplate( - SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, - String idempotencyKey) - throws ApiException { - return signatureRequestBulkSendWithTemplateWithHttpInfo( - signatureRequestBulkSendWithTemplateRequest, idempotencyKey) - .getData(); - } - - /** - * @see - * SignatureRequestApi#signatureRequestBulkSendWithTemplate(SignatureRequestBulkSendWithTemplateRequest, - * String) - */ public BulkSendJobSendResponse signatureRequestBulkSendWithTemplate( SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest) throws ApiException { - String idempotencyKey = null; - return signatureRequestBulkSendWithTemplateWithHttpInfo( - signatureRequestBulkSendWithTemplateRequest, idempotencyKey) + signatureRequestBulkSendWithTemplateRequest) .getData(); } - /** - * @see - * SignatureRequestApi#signatureRequestBulkSendWithTemplateWithHttpInfo(SignatureRequestBulkSendWithTemplateRequest, - * String) - */ - public ApiResponse signatureRequestBulkSendWithTemplateWithHttpInfo( - SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest) - throws ApiException { - String idempotencyKey = null; - - return signatureRequestBulkSendWithTemplateWithHttpInfo( - signatureRequestBulkSendWithTemplateRequest, idempotencyKey); - } - /** * Bulk Send with Template Creates BulkSendJob which sends up to 250 SignatureRequests in bulk * based off of the provided Template(s) specified with the `template_ids` parameter. * **NOTE:** Only available for Standard plan and higher. * * @param signatureRequestBulkSendWithTemplateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<BulkSendJobSendResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse signatureRequestBulkSendWithTemplateWithHttpInfo( - SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, - String idempotencyKey) + SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest) throws ApiException { // Check required parameters @@ -282,13 +202,6 @@ public ApiResponse signatureRequestBulkSendWithTemplate + " when calling signatureRequestBulkSendWithTemplate"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestBulkSendWithTemplateRequest.createFormData(); @@ -307,7 +220,7 @@ public ApiResponse signatureRequestBulkSendWithTemplate "POST", new ArrayList<>(), isFileTypeFound ? null : signatureRequestBulkSendWithTemplateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -338,39 +251,17 @@ public ApiResponse signatureRequestBulkSendWithTemplate * endpoint: `POST /signature_request/remove/[:signature_request_id]`. * * @param signatureRequestId The id of the incomplete SignatureRequest to cancel. (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public void signatureRequestCancel(String signatureRequestId, String idempotencyKey) - throws ApiException { - signatureRequestCancelWithHttpInfo(signatureRequestId, idempotencyKey); - } - - /** - * @see SignatureRequestApi#signatureRequestCancel(String, String) - */ public void signatureRequestCancel(String signatureRequestId) throws ApiException { - String idempotencyKey = null; - - signatureRequestCancelWithHttpInfo(signatureRequestId, idempotencyKey); - } - - /** - * @see SignatureRequestApi#signatureRequestCancelWithHttpInfo(String, String) - */ - public ApiResponse signatureRequestCancelWithHttpInfo(String signatureRequestId) - throws ApiException { - String idempotencyKey = null; - - return signatureRequestCancelWithHttpInfo(signatureRequestId, idempotencyKey); + signatureRequestCancelWithHttpInfo(signatureRequestId); } /** @@ -394,20 +285,18 @@ public ApiResponse signatureRequestCancelWithHttpInfo(String signatureRequ * endpoint: `POST /signature_request/remove/[:signature_request_id]`. * * @param signatureRequestId The id of the incomplete SignatureRequest to cancel. (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse signatureRequestCancelWithHttpInfo( - String signatureRequestId, String idempotencyKey) throws ApiException { + public ApiResponse signatureRequestCancelWithHttpInfo(String signatureRequestId) + throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -424,13 +313,6 @@ public ApiResponse signatureRequestCancelWithHttpInfo( "\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = new HashMap(); @@ -444,7 +326,7 @@ public ApiResponse signatureRequestCancelWithHttpInfo( "POST", new ArrayList<>(), null, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -463,56 +345,23 @@ public ApiResponse signatureRequestCancelWithHttpInfo( * Sign. * * @param signatureRequestCreateEmbeddedRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public SignatureRequestGetResponse signatureRequestCreateEmbedded( - SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, - String idempotencyKey) - throws ApiException { - return signatureRequestCreateEmbeddedWithHttpInfo( - signatureRequestCreateEmbeddedRequest, idempotencyKey) - .getData(); - } - - /** - * @see - * SignatureRequestApi#signatureRequestCreateEmbedded(SignatureRequestCreateEmbeddedRequest, - * String) - */ public SignatureRequestGetResponse signatureRequestCreateEmbedded( SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest) throws ApiException { - String idempotencyKey = null; - - return signatureRequestCreateEmbeddedWithHttpInfo( - signatureRequestCreateEmbeddedRequest, idempotencyKey) + return signatureRequestCreateEmbeddedWithHttpInfo(signatureRequestCreateEmbeddedRequest) .getData(); } - /** - * @see - * SignatureRequestApi#signatureRequestCreateEmbeddedWithHttpInfo(SignatureRequestCreateEmbeddedRequest, - * String) - */ - public ApiResponse signatureRequestCreateEmbeddedWithHttpInfo( - SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest) - throws ApiException { - String idempotencyKey = null; - - return signatureRequestCreateEmbeddedWithHttpInfo( - signatureRequestCreateEmbeddedRequest, idempotencyKey); - } - /** * Create Embedded Signature Request Creates a new SignatureRequest with the submitted documents * to be signed in an embedded iFrame. If form_fields_per_document is not specified, a signature @@ -522,21 +371,18 @@ public ApiResponse signatureRequestCreateEmbeddedWi * Sign. * * @param signatureRequestCreateEmbeddedRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse signatureRequestCreateEmbeddedWithHttpInfo( - SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, - String idempotencyKey) + SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest) throws ApiException { // Check required parameters @@ -547,13 +393,6 @@ public ApiResponse signatureRequestCreateEmbeddedWi + " calling signatureRequestCreateEmbedded"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestCreateEmbeddedRequest.createFormData(); @@ -572,7 +411,7 @@ public ApiResponse signatureRequestCreateEmbeddedWi "POST", new ArrayList<>(), isFileTypeFound ? null : signatureRequestCreateEmbeddedRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -589,60 +428,25 @@ public ApiResponse signatureRequestCreateEmbeddedWi * on Dropbox Sign. * * @param signatureRequestCreateEmbeddedWithTemplateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public SignatureRequestGetResponse signatureRequestCreateEmbeddedWithTemplate( - SignatureRequestCreateEmbeddedWithTemplateRequest - signatureRequestCreateEmbeddedWithTemplateRequest, - String idempotencyKey) - throws ApiException { - return signatureRequestCreateEmbeddedWithTemplateWithHttpInfo( - signatureRequestCreateEmbeddedWithTemplateRequest, idempotencyKey) - .getData(); - } - - /** - * @see - * SignatureRequestApi#signatureRequestCreateEmbeddedWithTemplate(SignatureRequestCreateEmbeddedWithTemplateRequest, - * String) - */ public SignatureRequestGetResponse signatureRequestCreateEmbeddedWithTemplate( SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest) throws ApiException { - String idempotencyKey = null; - return signatureRequestCreateEmbeddedWithTemplateWithHttpInfo( - signatureRequestCreateEmbeddedWithTemplateRequest, idempotencyKey) + signatureRequestCreateEmbeddedWithTemplateRequest) .getData(); } - /** - * @see - * SignatureRequestApi#signatureRequestCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestCreateEmbeddedWithTemplateRequest, - * String) - */ - public ApiResponse - signatureRequestCreateEmbeddedWithTemplateWithHttpInfo( - SignatureRequestCreateEmbeddedWithTemplateRequest - signatureRequestCreateEmbeddedWithTemplateRequest) - throws ApiException { - String idempotencyKey = null; - - return signatureRequestCreateEmbeddedWithTemplateWithHttpInfo( - signatureRequestCreateEmbeddedWithTemplateRequest, idempotencyKey); - } - /** * Create Embedded Signature Request with Template Creates a new SignatureRequest based on the * given Template(s) to be signed in an embedded iFrame. Note that embedded signature requests @@ -650,23 +454,20 @@ public SignatureRequestGetResponse signatureRequestCreateEmbeddedWithTemplate( * on Dropbox Sign. * * @param signatureRequestCreateEmbeddedWithTemplateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse signatureRequestCreateEmbeddedWithTemplateWithHttpInfo( SignatureRequestCreateEmbeddedWithTemplateRequest - signatureRequestCreateEmbeddedWithTemplateRequest, - String idempotencyKey) + signatureRequestCreateEmbeddedWithTemplateRequest) throws ApiException { // Check required parameters @@ -678,13 +479,6 @@ public SignatureRequestGetResponse signatureRequestCreateEmbeddedWithTemplate( + " signatureRequestCreateEmbeddedWithTemplate"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestCreateEmbeddedWithTemplateRequest.createFormData(); @@ -703,7 +497,7 @@ public SignatureRequestGetResponse signatureRequestCreateEmbeddedWithTemplate( "POST", new ArrayList<>(), isFileTypeFound ? null : signatureRequestCreateEmbeddedWithTemplateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -721,54 +515,23 @@ public SignatureRequestGetResponse signatureRequestCreateEmbeddedWithTemplate( * * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public SignatureRequestGetResponse signatureRequestEdit( - String signatureRequestId, - SignatureRequestEditRequest signatureRequestEditRequest, - String idempotencyKey) - throws ApiException { - return signatureRequestEditWithHttpInfo( - signatureRequestId, signatureRequestEditRequest, idempotencyKey) - .getData(); - } - - /** - * @see SignatureRequestApi#signatureRequestEdit(String, SignatureRequestEditRequest, String) - */ public SignatureRequestGetResponse signatureRequestEdit( String signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest) throws ApiException { - String idempotencyKey = null; - - return signatureRequestEditWithHttpInfo( - signatureRequestId, signatureRequestEditRequest, idempotencyKey) + return signatureRequestEditWithHttpInfo(signatureRequestId, signatureRequestEditRequest) .getData(); } - /** - * @see SignatureRequestApi#signatureRequestEditWithHttpInfo(String, - * SignatureRequestEditRequest, String) - */ - public ApiResponse signatureRequestEditWithHttpInfo( - String signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest) - throws ApiException { - String idempotencyKey = null; - - return signatureRequestEditWithHttpInfo( - signatureRequestId, signatureRequestEditRequest, idempotencyKey); - } - /** * Edit Signature Request Edits and sends a SignatureRequest with the submitted documents. If * `form_fields_per_document` is not specified, a signature page will be affixed where @@ -777,22 +540,18 @@ public ApiResponse signatureRequestEditWithHttpInfo * * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse signatureRequestEditWithHttpInfo( - String signatureRequestId, - SignatureRequestEditRequest signatureRequestEditRequest, - String idempotencyKey) + String signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest) throws ApiException { // Check required parameters @@ -816,13 +575,6 @@ public ApiResponse signatureRequestEditWithHttpInfo "\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestEditRequest.createFormData(); @@ -841,7 +593,7 @@ public ApiResponse signatureRequestEditWithHttpInfo "PUT", new ArrayList<>(), isFileTypeFound ? null : signatureRequestEditRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -861,57 +613,25 @@ public ApiResponse signatureRequestEditWithHttpInfo * * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditEmbeddedRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public SignatureRequestGetResponse signatureRequestEditEmbedded( - String signatureRequestId, - SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, - String idempotencyKey) - throws ApiException { - return signatureRequestEditEmbeddedWithHttpInfo( - signatureRequestId, signatureRequestEditEmbeddedRequest, idempotencyKey) - .getData(); - } - - /** - * @see SignatureRequestApi#signatureRequestEditEmbedded(String, - * SignatureRequestEditEmbeddedRequest, String) - */ public SignatureRequestGetResponse signatureRequestEditEmbedded( String signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest) throws ApiException { - String idempotencyKey = null; - return signatureRequestEditEmbeddedWithHttpInfo( - signatureRequestId, signatureRequestEditEmbeddedRequest, idempotencyKey) + signatureRequestId, signatureRequestEditEmbeddedRequest) .getData(); } - /** - * @see SignatureRequestApi#signatureRequestEditEmbeddedWithHttpInfo(String, - * SignatureRequestEditEmbeddedRequest, String) - */ - public ApiResponse signatureRequestEditEmbeddedWithHttpInfo( - String signatureRequestId, - SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest) - throws ApiException { - String idempotencyKey = null; - - return signatureRequestEditEmbeddedWithHttpInfo( - signatureRequestId, signatureRequestEditEmbeddedRequest, idempotencyKey); - } - /** * Edit Embedded Signature Request Edits a SignatureRequest with the submitted documents to be * signed in an embedded iFrame. If form_fields_per_document is not specified, a signature page @@ -922,22 +642,19 @@ public ApiResponse signatureRequestEditEmbeddedWith * * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditEmbeddedRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse signatureRequestEditEmbeddedWithHttpInfo( String signatureRequestId, - SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, - String idempotencyKey) + SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest) throws ApiException { // Check required parameters @@ -961,13 +678,6 @@ public ApiResponse signatureRequestEditEmbeddedWith "\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestEditEmbeddedRequest.createFormData(); @@ -986,7 +696,7 @@ public ApiResponse signatureRequestEditEmbeddedWith "PUT", new ArrayList<>(), isFileTypeFound ? null : signatureRequestEditEmbeddedRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -1004,67 +714,26 @@ public ApiResponse signatureRequestEditEmbeddedWith * * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditEmbeddedWithTemplateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate( - String signatureRequestId, - SignatureRequestEditEmbeddedWithTemplateRequest - signatureRequestEditEmbeddedWithTemplateRequest, - String idempotencyKey) - throws ApiException { - return signatureRequestEditEmbeddedWithTemplateWithHttpInfo( - signatureRequestId, - signatureRequestEditEmbeddedWithTemplateRequest, - idempotencyKey) - .getData(); - } - - /** - * @see SignatureRequestApi#signatureRequestEditEmbeddedWithTemplate(String, - * SignatureRequestEditEmbeddedWithTemplateRequest, String) - */ public SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate( String signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest) throws ApiException { - String idempotencyKey = null; - return signatureRequestEditEmbeddedWithTemplateWithHttpInfo( - signatureRequestId, - signatureRequestEditEmbeddedWithTemplateRequest, - idempotencyKey) + signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest) .getData(); } - /** - * @see SignatureRequestApi#signatureRequestEditEmbeddedWithTemplateWithHttpInfo(String, - * SignatureRequestEditEmbeddedWithTemplateRequest, String) - */ - public ApiResponse - signatureRequestEditEmbeddedWithTemplateWithHttpInfo( - String signatureRequestId, - SignatureRequestEditEmbeddedWithTemplateRequest - signatureRequestEditEmbeddedWithTemplateRequest) - throws ApiException { - String idempotencyKey = null; - - return signatureRequestEditEmbeddedWithTemplateWithHttpInfo( - signatureRequestId, - signatureRequestEditEmbeddedWithTemplateRequest, - idempotencyKey); - } - /** * Edit Embedded Signature Request with Template Edits a SignatureRequest based on the given * Template(s) to be signed in an embedded iFrame. Note that embedded signature requests can @@ -1073,15 +742,13 @@ public SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate( * * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditEmbeddedWithTemplateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ @@ -1089,8 +756,7 @@ public SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate( signatureRequestEditEmbeddedWithTemplateWithHttpInfo( String signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest - signatureRequestEditEmbeddedWithTemplateRequest, - String idempotencyKey) + signatureRequestEditEmbeddedWithTemplateRequest) throws ApiException { // Check required parameters @@ -1115,13 +781,6 @@ public SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate( "\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestEditEmbeddedWithTemplateRequest.createFormData(); @@ -1140,7 +799,7 @@ public SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate( "PUT", new ArrayList<>(), isFileTypeFound ? null : signatureRequestEditEmbeddedWithTemplateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -1157,57 +816,25 @@ public SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate( * * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditWithTemplateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public SignatureRequestGetResponse signatureRequestEditWithTemplate( - String signatureRequestId, - SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, - String idempotencyKey) - throws ApiException { - return signatureRequestEditWithTemplateWithHttpInfo( - signatureRequestId, signatureRequestEditWithTemplateRequest, idempotencyKey) - .getData(); - } - - /** - * @see SignatureRequestApi#signatureRequestEditWithTemplate(String, - * SignatureRequestEditWithTemplateRequest, String) - */ public SignatureRequestGetResponse signatureRequestEditWithTemplate( String signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest) throws ApiException { - String idempotencyKey = null; - return signatureRequestEditWithTemplateWithHttpInfo( - signatureRequestId, signatureRequestEditWithTemplateRequest, idempotencyKey) + signatureRequestId, signatureRequestEditWithTemplateRequest) .getData(); } - /** - * @see SignatureRequestApi#signatureRequestEditWithTemplateWithHttpInfo(String, - * SignatureRequestEditWithTemplateRequest, String) - */ - public ApiResponse signatureRequestEditWithTemplateWithHttpInfo( - String signatureRequestId, - SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest) - throws ApiException { - String idempotencyKey = null; - - return signatureRequestEditWithTemplateWithHttpInfo( - signatureRequestId, signatureRequestEditWithTemplateRequest, idempotencyKey); - } - /** * Edit Signature Request With Template Edits and sends a SignatureRequest based off of the * Template(s) specified with the template_ids parameter. **NOTE:** Edit and resend *will* @@ -1215,22 +842,19 @@ public ApiResponse signatureRequestEditWithTemplate * * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditWithTemplateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse signatureRequestEditWithTemplateWithHttpInfo( String signatureRequestId, - SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, - String idempotencyKey) + SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest) throws ApiException { // Check required parameters @@ -1254,13 +878,6 @@ public ApiResponse signatureRequestEditWithTemplate "\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestEditWithTemplateRequest.createFormData(); @@ -1279,7 +896,7 @@ public ApiResponse signatureRequestEditWithTemplate "PUT", new ArrayList<>(), isFileTypeFound ? null : signatureRequestEditWithTemplateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -1867,43 +1484,19 @@ public ApiResponse signatureRequestListWithHttpInf * held. Releasing the SignatureRequest will send requests to all signers. * * @param signatureRequestId The id of the SignatureRequest to release. (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public SignatureRequestGetResponse signatureRequestReleaseHold( - String signatureRequestId, String idempotencyKey) throws ApiException { - return signatureRequestReleaseHoldWithHttpInfo(signatureRequestId, idempotencyKey) - .getData(); - } - - /** - * @see SignatureRequestApi#signatureRequestReleaseHold(String, String) - */ public SignatureRequestGetResponse signatureRequestReleaseHold(String signatureRequestId) throws ApiException { - String idempotencyKey = null; - - return signatureRequestReleaseHoldWithHttpInfo(signatureRequestId, idempotencyKey) - .getData(); - } - - /** - * @see SignatureRequestApi#signatureRequestReleaseHoldWithHttpInfo(String, String) - */ - public ApiResponse signatureRequestReleaseHoldWithHttpInfo( - String signatureRequestId) throws ApiException { - String idempotencyKey = null; - - return signatureRequestReleaseHoldWithHttpInfo(signatureRequestId, idempotencyKey); + return signatureRequestReleaseHoldWithHttpInfo(signatureRequestId).getData(); } /** @@ -1913,20 +1506,18 @@ public ApiResponse signatureRequestReleaseHoldWithH * held. Releasing the SignatureRequest will send requests to all signers. * * @param signatureRequestId The id of the SignatureRequest to release. (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse signatureRequestReleaseHoldWithHttpInfo( - String signatureRequestId, String idempotencyKey) throws ApiException { + String signatureRequestId) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -1943,13 +1534,6 @@ public ApiResponse signatureRequestReleaseHoldWithH "\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = new HashMap(); @@ -1965,7 +1549,7 @@ public ApiResponse signatureRequestReleaseHoldWithH "POST", new ArrayList<>(), null, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -1983,55 +1567,23 @@ public ApiResponse signatureRequestReleaseHoldWithH * * @param signatureRequestId The id of the SignatureRequest to send a reminder for. (required) * @param signatureRequestRemindRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public SignatureRequestGetResponse signatureRequestRemind( - String signatureRequestId, - SignatureRequestRemindRequest signatureRequestRemindRequest, - String idempotencyKey) - throws ApiException { - return signatureRequestRemindWithHttpInfo( - signatureRequestId, signatureRequestRemindRequest, idempotencyKey) - .getData(); - } - - /** - * @see SignatureRequestApi#signatureRequestRemind(String, SignatureRequestRemindRequest, - * String) - */ public SignatureRequestGetResponse signatureRequestRemind( String signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest) throws ApiException { - String idempotencyKey = null; - - return signatureRequestRemindWithHttpInfo( - signatureRequestId, signatureRequestRemindRequest, idempotencyKey) + return signatureRequestRemindWithHttpInfo(signatureRequestId, signatureRequestRemindRequest) .getData(); } - /** - * @see SignatureRequestApi#signatureRequestRemindWithHttpInfo(String, - * SignatureRequestRemindRequest, String) - */ - public ApiResponse signatureRequestRemindWithHttpInfo( - String signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest) - throws ApiException { - String idempotencyKey = null; - - return signatureRequestRemindWithHttpInfo( - signatureRequestId, signatureRequestRemindRequest, idempotencyKey); - } - /** * Send Request Reminder Sends an email to the signer reminding them to sign the signature * request. You cannot send a reminder within 1 hour of the last reminder that was sent. This @@ -2040,22 +1592,18 @@ public ApiResponse signatureRequestRemindWithHttpIn * * @param signatureRequestId The id of the SignatureRequest to send a reminder for. (required) * @param signatureRequestRemindRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse signatureRequestRemindWithHttpInfo( - String signatureRequestId, - SignatureRequestRemindRequest signatureRequestRemindRequest, - String idempotencyKey) + String signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest) throws ApiException { // Check required parameters @@ -2079,13 +1627,6 @@ public ApiResponse signatureRequestRemindWithHttpIn "\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestRemindRequest.createFormData(); @@ -2103,7 +1644,7 @@ public ApiResponse signatureRequestRemindWithHttpIn "POST", new ArrayList<>(), isFileTypeFound ? null : signatureRequestRemindRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -2122,39 +1663,17 @@ public ApiResponse signatureRequestRemindWithHttpIn * return a 200 OK response. * * @param signatureRequestId The id of the SignatureRequest to remove. (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public void signatureRequestRemove(String signatureRequestId, String idempotencyKey) - throws ApiException { - signatureRequestRemoveWithHttpInfo(signatureRequestId, idempotencyKey); - } - - /** - * @see SignatureRequestApi#signatureRequestRemove(String, String) - */ public void signatureRequestRemove(String signatureRequestId) throws ApiException { - String idempotencyKey = null; - - signatureRequestRemoveWithHttpInfo(signatureRequestId, idempotencyKey); - } - - /** - * @see SignatureRequestApi#signatureRequestRemoveWithHttpInfo(String, String) - */ - public ApiResponse signatureRequestRemoveWithHttpInfo(String signatureRequestId) - throws ApiException { - String idempotencyKey = null; - - return signatureRequestRemoveWithHttpInfo(signatureRequestId, idempotencyKey); + signatureRequestRemoveWithHttpInfo(signatureRequestId); } /** @@ -2166,20 +1685,18 @@ public ApiResponse signatureRequestRemoveWithHttpInfo(String signatureRequ * return a 200 OK response. * * @param signatureRequestId The id of the SignatureRequest to remove. (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse signatureRequestRemoveWithHttpInfo( - String signatureRequestId, String idempotencyKey) throws ApiException { + public ApiResponse signatureRequestRemoveWithHttpInfo(String signatureRequestId) + throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -2196,13 +1713,6 @@ public ApiResponse signatureRequestRemoveWithHttpInfo( "\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = new HashMap(); @@ -2216,7 +1726,7 @@ public ApiResponse signatureRequestRemoveWithHttpInfo( "POST", new ArrayList<>(), null, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -2233,45 +1743,19 @@ public ApiResponse signatureRequestRemoveWithHttpInfo( * contained documents. * * @param signatureRequestSendRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public SignatureRequestGetResponse signatureRequestSend( - SignatureRequestSendRequest signatureRequestSendRequest, String idempotencyKey) - throws ApiException { - return signatureRequestSendWithHttpInfo(signatureRequestSendRequest, idempotencyKey) - .getData(); - } - - /** - * @see SignatureRequestApi#signatureRequestSend(SignatureRequestSendRequest, String) - */ - public SignatureRequestGetResponse signatureRequestSend( - SignatureRequestSendRequest signatureRequestSendRequest) throws ApiException { - String idempotencyKey = null; - - return signatureRequestSendWithHttpInfo(signatureRequestSendRequest, idempotencyKey) - .getData(); - } - - /** - * @see SignatureRequestApi#signatureRequestSendWithHttpInfo(SignatureRequestSendRequest, - * String) - */ - public ApiResponse signatureRequestSendWithHttpInfo( SignatureRequestSendRequest signatureRequestSendRequest) throws ApiException { - String idempotencyKey = null; - - return signatureRequestSendWithHttpInfo(signatureRequestSendRequest, idempotencyKey); + return signatureRequestSendWithHttpInfo(signatureRequestSendRequest).getData(); } /** @@ -2281,21 +1765,18 @@ public ApiResponse signatureRequestSendWithHttpInfo * contained documents. * * @param signatureRequestSendRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse signatureRequestSendWithHttpInfo( - SignatureRequestSendRequest signatureRequestSendRequest, String idempotencyKey) - throws ApiException { + SignatureRequestSendRequest signatureRequestSendRequest) throws ApiException { // Check required parameters if (signatureRequestSendRequest == null) { @@ -2305,13 +1786,6 @@ public ApiResponse signatureRequestSendWithHttpInfo + " signatureRequestSend"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestSendRequest.createFormData(); @@ -2330,7 +1804,7 @@ public ApiResponse signatureRequestSendWithHttpInfo "POST", new ArrayList<>(), isFileTypeFound ? null : signatureRequestSendRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -2345,76 +1819,40 @@ public ApiResponse signatureRequestSendWithHttpInfo * specified with the `template_ids` parameter. * * @param signatureRequestSendWithTemplateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public SignatureRequestGetResponse signatureRequestSendWithTemplate( - SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, - String idempotencyKey) - throws ApiException { - return signatureRequestSendWithTemplateWithHttpInfo( - signatureRequestSendWithTemplateRequest, idempotencyKey) - .getData(); - } - - /** - * @see - * SignatureRequestApi#signatureRequestSendWithTemplate(SignatureRequestSendWithTemplateRequest, - * String) - */ public SignatureRequestGetResponse signatureRequestSendWithTemplate( SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest) throws ApiException { - String idempotencyKey = null; - - return signatureRequestSendWithTemplateWithHttpInfo( - signatureRequestSendWithTemplateRequest, idempotencyKey) + return signatureRequestSendWithTemplateWithHttpInfo(signatureRequestSendWithTemplateRequest) .getData(); } - /** - * @see - * SignatureRequestApi#signatureRequestSendWithTemplateWithHttpInfo(SignatureRequestSendWithTemplateRequest, - * String) - */ - public ApiResponse signatureRequestSendWithTemplateWithHttpInfo( - SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest) - throws ApiException { - String idempotencyKey = null; - - return signatureRequestSendWithTemplateWithHttpInfo( - signatureRequestSendWithTemplateRequest, idempotencyKey); - } - /** * Send with Template Creates and sends a new SignatureRequest based off of the Template(s) * specified with the `template_ids` parameter. * * @param signatureRequestSendWithTemplateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse signatureRequestSendWithTemplateWithHttpInfo( - SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, - String idempotencyKey) + SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest) throws ApiException { // Check required parameters @@ -2425,13 +1863,6 @@ public ApiResponse signatureRequestSendWithTemplate + " calling signatureRequestSendWithTemplate"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestSendWithTemplateRequest.createFormData(); @@ -2450,7 +1881,7 @@ public ApiResponse signatureRequestSendWithTemplate "POST", new ArrayList<>(), isFileTypeFound ? null : signatureRequestSendWithTemplateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -2469,55 +1900,23 @@ public ApiResponse signatureRequestSendWithTemplate * * @param signatureRequestId The id of the SignatureRequest to update. (required) * @param signatureRequestUpdateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public SignatureRequestGetResponse signatureRequestUpdate( - String signatureRequestId, - SignatureRequestUpdateRequest signatureRequestUpdateRequest, - String idempotencyKey) - throws ApiException { - return signatureRequestUpdateWithHttpInfo( - signatureRequestId, signatureRequestUpdateRequest, idempotencyKey) - .getData(); - } - - /** - * @see SignatureRequestApi#signatureRequestUpdate(String, SignatureRequestUpdateRequest, - * String) - */ public SignatureRequestGetResponse signatureRequestUpdate( String signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest) throws ApiException { - String idempotencyKey = null; - - return signatureRequestUpdateWithHttpInfo( - signatureRequestId, signatureRequestUpdateRequest, idempotencyKey) + return signatureRequestUpdateWithHttpInfo(signatureRequestId, signatureRequestUpdateRequest) .getData(); } - /** - * @see SignatureRequestApi#signatureRequestUpdateWithHttpInfo(String, - * SignatureRequestUpdateRequest, String) - */ - public ApiResponse signatureRequestUpdateWithHttpInfo( - String signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest) - throws ApiException { - String idempotencyKey = null; - - return signatureRequestUpdateWithHttpInfo( - signatureRequestId, signatureRequestUpdateRequest, idempotencyKey); - } - /** * Update Signature Request Updates the email address and/or the name for a given signer on a * signature request. You can listen for the `signature_request_email_bounce` event on @@ -2527,22 +1926,18 @@ public ApiResponse signatureRequestUpdateWithHttpIn * * @param signatureRequestId The id of the SignatureRequest to update. (required) * @param signatureRequestUpdateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse signatureRequestUpdateWithHttpInfo( - String signatureRequestId, - SignatureRequestUpdateRequest signatureRequestUpdateRequest, - String idempotencyKey) + String signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest) throws ApiException { // Check required parameters @@ -2566,13 +1961,6 @@ public ApiResponse signatureRequestUpdateWithHttpIn "\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestUpdateRequest.createFormData(); @@ -2590,7 +1978,7 @@ public ApiResponse signatureRequestUpdateWithHttpIn "POST", new ArrayList<>(), isFileTypeFound ? null : signatureRequestUpdateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/TeamApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/TeamApi.java index 895a5dd26..7ccffdb6d 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/TeamApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/TeamApi.java @@ -61,64 +61,39 @@ public void setApiClient(ApiClient apiClient) { * * @param teamAddMemberRequest (required) * @param teamId The id of the team. (optional) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return TeamGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public TeamGetResponse teamAddMember( - TeamAddMemberRequest teamAddMemberRequest, String teamId, String idempotencyKey) + public TeamGetResponse teamAddMember(TeamAddMemberRequest teamAddMemberRequest, String teamId) throws ApiException { - return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId, idempotencyKey).getData(); + return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId).getData(); } /** - * @see TeamApi#teamAddMember(TeamAddMemberRequest, String, String) + * @see TeamApi#teamAddMember(TeamAddMemberRequest, String) */ public TeamGetResponse teamAddMember(TeamAddMemberRequest teamAddMemberRequest) throws ApiException { String teamId = null; - String idempotencyKey = null; - return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId, idempotencyKey).getData(); + return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId).getData(); } /** - * @see TeamApi#teamAddMemberWithHttpInfo(TeamAddMemberRequest, String, String) + * @see TeamApi#teamAddMemberWithHttpInfo(TeamAddMemberRequest, String) */ public ApiResponse teamAddMemberWithHttpInfo( TeamAddMemberRequest teamAddMemberRequest) throws ApiException { String teamId = null; - String idempotencyKey = null; - - return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId, idempotencyKey); - } - - /** - * @see TeamApi#teamAddMember(TeamAddMemberRequest, String, String) - */ - public TeamGetResponse teamAddMember(TeamAddMemberRequest teamAddMemberRequest, String teamId) - throws ApiException { - String idempotencyKey = null; - - return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId, idempotencyKey).getData(); - } - - /** - * @see TeamApi#teamAddMemberWithHttpInfo(TeamAddMemberRequest, String, String) - */ - public ApiResponse teamAddMemberWithHttpInfo( - TeamAddMemberRequest teamAddMemberRequest, String teamId) throws ApiException { - String idempotencyKey = null; - return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId, idempotencyKey); + return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId); } /** @@ -129,21 +104,18 @@ public ApiResponse teamAddMemberWithHttpInfo( * * @param teamAddMemberRequest (required) * @param teamId The id of the team. (optional) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<TeamGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse teamAddMemberWithHttpInfo( - TeamAddMemberRequest teamAddMemberRequest, String teamId, String idempotencyKey) - throws ApiException { + TeamAddMemberRequest teamAddMemberRequest, String teamId) throws ApiException { // Check required parameters if (teamAddMemberRequest == null) { @@ -157,13 +129,6 @@ public ApiResponse teamAddMemberWithHttpInfo( List localVarQueryParams = new ArrayList<>(apiClient.parameterToPairs("", "team_id", teamId)); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = teamAddMemberRequest.createFormData(); @@ -180,7 +145,7 @@ public ApiResponse teamAddMemberWithHttpInfo( "PUT", localVarQueryParams, isFileTypeFound ? null : teamAddMemberRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -195,40 +160,18 @@ public ApiResponse teamAddMemberWithHttpInfo( * Team to invoke. * * @param teamCreateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return TeamGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public TeamGetResponse teamCreate(TeamCreateRequest teamCreateRequest, String idempotencyKey) - throws ApiException { - return teamCreateWithHttpInfo(teamCreateRequest, idempotencyKey).getData(); - } - - /** - * @see TeamApi#teamCreate(TeamCreateRequest, String) - */ public TeamGetResponse teamCreate(TeamCreateRequest teamCreateRequest) throws ApiException { - String idempotencyKey = null; - - return teamCreateWithHttpInfo(teamCreateRequest, idempotencyKey).getData(); - } - - /** - * @see TeamApi#teamCreateWithHttpInfo(TeamCreateRequest, String) - */ - public ApiResponse teamCreateWithHttpInfo(TeamCreateRequest teamCreateRequest) - throws ApiException { - String idempotencyKey = null; - - return teamCreateWithHttpInfo(teamCreateRequest, idempotencyKey); + return teamCreateWithHttpInfo(teamCreateRequest).getData(); } /** @@ -236,20 +179,18 @@ public ApiResponse teamCreateWithHttpInfo(TeamCreateRequest tea * Team to invoke. * * @param teamCreateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<TeamGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse teamCreateWithHttpInfo( - TeamCreateRequest teamCreateRequest, String idempotencyKey) throws ApiException { + public ApiResponse teamCreateWithHttpInfo(TeamCreateRequest teamCreateRequest) + throws ApiException { // Check required parameters if (teamCreateRequest == null) { @@ -258,13 +199,6 @@ public ApiResponse teamCreateWithHttpInfo( "Missing the required parameter 'teamCreateRequest' when calling teamCreate"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = teamCreateRequest.createFormData(); @@ -281,7 +215,7 @@ public ApiResponse teamCreateWithHttpInfo( "POST", new ArrayList<>(), isFileTypeFound ? null : teamCreateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -711,42 +645,19 @@ public ApiResponse teamMembersWithHttpInfo( * fully executed. * * @param teamRemoveMemberRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return TeamGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public TeamGetResponse teamRemoveMember( - TeamRemoveMemberRequest teamRemoveMemberRequest, String idempotencyKey) - throws ApiException { - return teamRemoveMemberWithHttpInfo(teamRemoveMemberRequest, idempotencyKey).getData(); - } - - /** - * @see TeamApi#teamRemoveMember(TeamRemoveMemberRequest, String) - */ public TeamGetResponse teamRemoveMember(TeamRemoveMemberRequest teamRemoveMemberRequest) throws ApiException { - String idempotencyKey = null; - - return teamRemoveMemberWithHttpInfo(teamRemoveMemberRequest, idempotencyKey).getData(); - } - - /** - * @see TeamApi#teamRemoveMemberWithHttpInfo(TeamRemoveMemberRequest, String) - */ - public ApiResponse teamRemoveMemberWithHttpInfo( - TeamRemoveMemberRequest teamRemoveMemberRequest) throws ApiException { - String idempotencyKey = null; - - return teamRemoveMemberWithHttpInfo(teamRemoveMemberRequest, idempotencyKey); + return teamRemoveMemberWithHttpInfo(teamRemoveMemberRequest).getData(); } /** @@ -758,21 +669,18 @@ public ApiResponse teamRemoveMemberWithHttpInfo( * fully executed. * * @param teamRemoveMemberRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<TeamGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse teamRemoveMemberWithHttpInfo( - TeamRemoveMemberRequest teamRemoveMemberRequest, String idempotencyKey) - throws ApiException { + TeamRemoveMemberRequest teamRemoveMemberRequest) throws ApiException { // Check required parameters if (teamRemoveMemberRequest == null) { @@ -782,13 +690,6 @@ public ApiResponse teamRemoveMemberWithHttpInfo( + " teamRemoveMember"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = teamRemoveMemberRequest.createFormData(); @@ -805,7 +706,7 @@ public ApiResponse teamRemoveMemberWithHttpInfo( "POST", new ArrayList<>(), isFileTypeFound ? null : teamRemoveMemberRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -950,60 +851,36 @@ public ApiResponse teamSubTeamsWithHttpInfo( * Update Team Updates the name of your Team. * * @param teamUpdateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return TeamGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public TeamGetResponse teamUpdate(TeamUpdateRequest teamUpdateRequest, String idempotencyKey) - throws ApiException { - return teamUpdateWithHttpInfo(teamUpdateRequest, idempotencyKey).getData(); - } - - /** - * @see TeamApi#teamUpdate(TeamUpdateRequest, String) - */ public TeamGetResponse teamUpdate(TeamUpdateRequest teamUpdateRequest) throws ApiException { - String idempotencyKey = null; - - return teamUpdateWithHttpInfo(teamUpdateRequest, idempotencyKey).getData(); - } - - /** - * @see TeamApi#teamUpdateWithHttpInfo(TeamUpdateRequest, String) - */ - public ApiResponse teamUpdateWithHttpInfo(TeamUpdateRequest teamUpdateRequest) - throws ApiException { - String idempotencyKey = null; - - return teamUpdateWithHttpInfo(teamUpdateRequest, idempotencyKey); + return teamUpdateWithHttpInfo(teamUpdateRequest).getData(); } /** * Update Team Updates the name of your Team. * * @param teamUpdateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<TeamGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse teamUpdateWithHttpInfo( - TeamUpdateRequest teamUpdateRequest, String idempotencyKey) throws ApiException { + public ApiResponse teamUpdateWithHttpInfo(TeamUpdateRequest teamUpdateRequest) + throws ApiException { // Check required parameters if (teamUpdateRequest == null) { @@ -1012,13 +889,6 @@ public ApiResponse teamUpdateWithHttpInfo( "Missing the required parameter 'teamUpdateRequest' when calling teamUpdate"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = teamUpdateRequest.createFormData(); @@ -1035,7 +905,7 @@ public ApiResponse teamUpdateWithHttpInfo( "PUT", new ArrayList<>(), isFileTypeFound ? null : teamUpdateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/TemplateApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/TemplateApi.java index 0720f2e1c..f70c0134b 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/TemplateApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/TemplateApi.java @@ -63,44 +63,19 @@ public void setApiClient(ApiClient apiClient) { * * @param templateId The id of the Template to give the Account access to. (required) * @param templateAddUserRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return TemplateGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public TemplateGetResponse templateAddUser( - String templateId, TemplateAddUserRequest templateAddUserRequest, String idempotencyKey) - throws ApiException { - return templateAddUserWithHttpInfo(templateId, templateAddUserRequest, idempotencyKey) - .getData(); - } - - /** - * @see TemplateApi#templateAddUser(String, TemplateAddUserRequest, String) - */ public TemplateGetResponse templateAddUser( String templateId, TemplateAddUserRequest templateAddUserRequest) throws ApiException { - String idempotencyKey = null; - - return templateAddUserWithHttpInfo(templateId, templateAddUserRequest, idempotencyKey) - .getData(); - } - - /** - * @see TemplateApi#templateAddUserWithHttpInfo(String, TemplateAddUserRequest, String) - */ - public ApiResponse templateAddUserWithHttpInfo( - String templateId, TemplateAddUserRequest templateAddUserRequest) throws ApiException { - String idempotencyKey = null; - - return templateAddUserWithHttpInfo(templateId, templateAddUserRequest, idempotencyKey); + return templateAddUserWithHttpInfo(templateId, templateAddUserRequest).getData(); } /** @@ -109,21 +84,18 @@ public ApiResponse templateAddUserWithHttpInfo( * * @param templateId The id of the Template to give the Account access to. (required) * @param templateAddUserRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<TemplateGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse templateAddUserWithHttpInfo( - String templateId, TemplateAddUserRequest templateAddUserRequest, String idempotencyKey) - throws ApiException { + String templateId, TemplateAddUserRequest templateAddUserRequest) throws ApiException { // Check required parameters if (templateId == null) { @@ -144,13 +116,6 @@ public ApiResponse templateAddUserWithHttpInfo( .replaceAll( "\\{template_id}", apiClient.escapeString(templateId.toString())); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = templateAddUserRequest.createFormData(); @@ -168,7 +133,7 @@ public ApiResponse templateAddUserWithHttpInfo( "POST", new ArrayList<>(), isFileTypeFound ? null : templateAddUserRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -193,42 +158,19 @@ public ApiResponse templateAddUserWithHttpInfo( * the request if necessary. * * @param templateCreateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return TemplateCreateResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public TemplateCreateResponse templateCreate( - TemplateCreateRequest templateCreateRequest, String idempotencyKey) - throws ApiException { - return templateCreateWithHttpInfo(templateCreateRequest, idempotencyKey).getData(); - } - - /** - * @see TemplateApi#templateCreate(TemplateCreateRequest, String) - */ public TemplateCreateResponse templateCreate(TemplateCreateRequest templateCreateRequest) throws ApiException { - String idempotencyKey = null; - - return templateCreateWithHttpInfo(templateCreateRequest, idempotencyKey).getData(); - } - - /** - * @see TemplateApi#templateCreateWithHttpInfo(TemplateCreateRequest, String) - */ - public ApiResponse templateCreateWithHttpInfo( - TemplateCreateRequest templateCreateRequest) throws ApiException { - String idempotencyKey = null; - - return templateCreateWithHttpInfo(templateCreateRequest, idempotencyKey); + return templateCreateWithHttpInfo(templateCreateRequest).getData(); } /** @@ -246,21 +188,18 @@ public ApiResponse templateCreateWithHttpInfo( * the request if necessary. * * @param templateCreateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<TemplateCreateResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse templateCreateWithHttpInfo( - TemplateCreateRequest templateCreateRequest, String idempotencyKey) - throws ApiException { + TemplateCreateRequest templateCreateRequest) throws ApiException { // Check required parameters if (templateCreateRequest == null) { @@ -270,13 +209,6 @@ public ApiResponse templateCreateWithHttpInfo( + " templateCreate"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = templateCreateRequest.createFormData(); @@ -295,7 +227,7 @@ public ApiResponse templateCreateWithHttpInfo( "POST", new ArrayList<>(), isFileTypeFound ? null : templateCreateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -310,73 +242,40 @@ public ApiResponse templateCreateWithHttpInfo( * draft template that can then be further set up in the template 'edit' stage. * * @param templateCreateEmbeddedDraftRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return TemplateCreateEmbeddedDraftResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public TemplateCreateEmbeddedDraftResponse templateCreateEmbeddedDraft( - TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, - String idempotencyKey) - throws ApiException { - return templateCreateEmbeddedDraftWithHttpInfo( - templateCreateEmbeddedDraftRequest, idempotencyKey) - .getData(); - } - - /** - * @see TemplateApi#templateCreateEmbeddedDraft(TemplateCreateEmbeddedDraftRequest, String) - */ public TemplateCreateEmbeddedDraftResponse templateCreateEmbeddedDraft( TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest) throws ApiException { - String idempotencyKey = null; - - return templateCreateEmbeddedDraftWithHttpInfo( - templateCreateEmbeddedDraftRequest, idempotencyKey) + return templateCreateEmbeddedDraftWithHttpInfo(templateCreateEmbeddedDraftRequest) .getData(); } - /** - * @see TemplateApi#templateCreateEmbeddedDraftWithHttpInfo(TemplateCreateEmbeddedDraftRequest, - * String) - */ - public ApiResponse templateCreateEmbeddedDraftWithHttpInfo( - TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest) - throws ApiException { - String idempotencyKey = null; - - return templateCreateEmbeddedDraftWithHttpInfo( - templateCreateEmbeddedDraftRequest, idempotencyKey); - } - /** * Create Embedded Template Draft The first step in an embedded template workflow. Creates a * draft template that can then be further set up in the template 'edit' stage. * * @param templateCreateEmbeddedDraftRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<TemplateCreateEmbeddedDraftResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse templateCreateEmbeddedDraftWithHttpInfo( - TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, - String idempotencyKey) + TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest) throws ApiException { // Check required parameters @@ -387,13 +286,6 @@ public ApiResponse templateCreateEmbeddedDr + " calling templateCreateEmbeddedDraft"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = templateCreateEmbeddedDraftRequest.createFormData(); @@ -412,7 +304,7 @@ public ApiResponse templateCreateEmbeddedDr "POST", new ArrayList<>(), isFileTypeFound ? null : templateCreateEmbeddedDraftRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -426,57 +318,34 @@ public ApiResponse templateCreateEmbeddedDr * Delete Template Completely deletes the template specified from the account. * * @param templateId The id of the Template to delete. (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public void templateDelete(String templateId, String idempotencyKey) throws ApiException { - templateDeleteWithHttpInfo(templateId, idempotencyKey); - } - - /** - * @see TemplateApi#templateDelete(String, String) - */ public void templateDelete(String templateId) throws ApiException { - String idempotencyKey = null; - - templateDeleteWithHttpInfo(templateId, idempotencyKey); - } - - /** - * @see TemplateApi#templateDeleteWithHttpInfo(String, String) - */ - public ApiResponse templateDeleteWithHttpInfo(String templateId) throws ApiException { - String idempotencyKey = null; - - return templateDeleteWithHttpInfo(templateId, idempotencyKey); + templateDeleteWithHttpInfo(templateId); } /** * Delete Template Completely deletes the template specified from the account. * * @param templateId The id of the Template to delete. (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse templateDeleteWithHttpInfo(String templateId, String idempotencyKey) - throws ApiException { + public ApiResponse templateDeleteWithHttpInfo(String templateId) throws ApiException { // Check required parameters if (templateId == null) { @@ -490,13 +359,6 @@ public ApiResponse templateDeleteWithHttpInfo(String templateId, String id .replaceAll( "\\{template_id}", apiClient.escapeString(templateId.toString())); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = new HashMap(); @@ -510,7 +372,7 @@ public ApiResponse templateDeleteWithHttpInfo(String templateId, String id "POST", new ArrayList<>(), null, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -1075,49 +937,20 @@ public ApiResponse templateListWithHttpInfo( * * @param templateId The id of the Template to remove the Account's access to. (required) * @param templateRemoveUserRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return TemplateGetResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public TemplateGetResponse templateRemoveUser( - String templateId, - TemplateRemoveUserRequest templateRemoveUserRequest, - String idempotencyKey) - throws ApiException { - return templateRemoveUserWithHttpInfo(templateId, templateRemoveUserRequest, idempotencyKey) - .getData(); - } - - /** - * @see TemplateApi#templateRemoveUser(String, TemplateRemoveUserRequest, String) - */ - public TemplateGetResponse templateRemoveUser( - String templateId, TemplateRemoveUserRequest templateRemoveUserRequest) - throws ApiException { - String idempotencyKey = null; - - return templateRemoveUserWithHttpInfo(templateId, templateRemoveUserRequest, idempotencyKey) - .getData(); - } - - /** - * @see TemplateApi#templateRemoveUserWithHttpInfo(String, TemplateRemoveUserRequest, String) - */ - public ApiResponse templateRemoveUserWithHttpInfo( String templateId, TemplateRemoveUserRequest templateRemoveUserRequest) throws ApiException { - String idempotencyKey = null; - - return templateRemoveUserWithHttpInfo( - templateId, templateRemoveUserRequest, idempotencyKey); + return templateRemoveUserWithHttpInfo(templateId, templateRemoveUserRequest).getData(); } /** @@ -1126,22 +959,18 @@ public ApiResponse templateRemoveUserWithHttpInfo( * * @param templateId The id of the Template to remove the Account's access to. (required) * @param templateRemoveUserRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<TemplateGetResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse templateRemoveUserWithHttpInfo( - String templateId, - TemplateRemoveUserRequest templateRemoveUserRequest, - String idempotencyKey) + String templateId, TemplateRemoveUserRequest templateRemoveUserRequest) throws ApiException { // Check required parameters @@ -1163,13 +992,6 @@ public ApiResponse templateRemoveUserWithHttpInfo( .replaceAll( "\\{template_id}", apiClient.escapeString(templateId.toString())); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = templateRemoveUserRequest.createFormData(); @@ -1187,7 +1009,7 @@ public ApiResponse templateRemoveUserWithHttpInfo( "POST", new ArrayList<>(), isFileTypeFound ? null : templateRemoveUserRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -1215,51 +1037,20 @@ public ApiResponse templateRemoveUserWithHttpInfo( * * @param templateId The ID of the template whose files to update. (required) * @param templateUpdateFilesRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return TemplateUpdateFilesResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public TemplateUpdateFilesResponse templateUpdateFiles( - String templateId, - TemplateUpdateFilesRequest templateUpdateFilesRequest, - String idempotencyKey) - throws ApiException { - return templateUpdateFilesWithHttpInfo( - templateId, templateUpdateFilesRequest, idempotencyKey) - .getData(); - } - - /** - * @see TemplateApi#templateUpdateFiles(String, TemplateUpdateFilesRequest, String) - */ - public TemplateUpdateFilesResponse templateUpdateFiles( - String templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest) - throws ApiException { - String idempotencyKey = null; - - return templateUpdateFilesWithHttpInfo( - templateId, templateUpdateFilesRequest, idempotencyKey) - .getData(); - } - - /** - * @see TemplateApi#templateUpdateFilesWithHttpInfo(String, TemplateUpdateFilesRequest, String) - */ - public ApiResponse templateUpdateFilesWithHttpInfo( String templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest) throws ApiException { - String idempotencyKey = null; - - return templateUpdateFilesWithHttpInfo( - templateId, templateUpdateFilesRequest, idempotencyKey); + return templateUpdateFilesWithHttpInfo(templateId, templateUpdateFilesRequest).getData(); } /** @@ -1280,22 +1071,18 @@ public ApiResponse templateUpdateFilesWithHttpInfo( * * @param templateId The ID of the template whose files to update. (required) * @param templateUpdateFilesRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<TemplateUpdateFilesResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse templateUpdateFilesWithHttpInfo( - String templateId, - TemplateUpdateFilesRequest templateUpdateFilesRequest, - String idempotencyKey) + String templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest) throws ApiException { // Check required parameters @@ -1317,13 +1104,6 @@ public ApiResponse templateUpdateFilesWithHttpInfo( .replaceAll( "\\{template_id}", apiClient.escapeString(templateId.toString())); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = templateUpdateFilesRequest.createFormData(); @@ -1342,7 +1122,7 @@ public ApiResponse templateUpdateFilesWithHttpInfo( "POST", new ArrayList<>(), isFileTypeFound ? null : templateUpdateFilesRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/UnclaimedDraftApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/UnclaimedDraftApi.java index cc2954e5c..61289c29f 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/UnclaimedDraftApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/UnclaimedDraftApi.java @@ -53,44 +53,19 @@ public void setApiClient(ApiClient apiClient) { * loaded. Subsequent access to the claim URL will result in a 404. * * @param unclaimedDraftCreateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return UnclaimedDraftCreateResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public UnclaimedDraftCreateResponse unclaimedDraftCreate( - UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, String idempotencyKey) - throws ApiException { - return unclaimedDraftCreateWithHttpInfo(unclaimedDraftCreateRequest, idempotencyKey) - .getData(); - } - - /** - * @see UnclaimedDraftApi#unclaimedDraftCreate(UnclaimedDraftCreateRequest, String) - */ public UnclaimedDraftCreateResponse unclaimedDraftCreate( UnclaimedDraftCreateRequest unclaimedDraftCreateRequest) throws ApiException { - String idempotencyKey = null; - - return unclaimedDraftCreateWithHttpInfo(unclaimedDraftCreateRequest, idempotencyKey) - .getData(); - } - - /** - * @see UnclaimedDraftApi#unclaimedDraftCreateWithHttpInfo(UnclaimedDraftCreateRequest, String) - */ - public ApiResponse unclaimedDraftCreateWithHttpInfo( - UnclaimedDraftCreateRequest unclaimedDraftCreateRequest) throws ApiException { - String idempotencyKey = null; - - return unclaimedDraftCreateWithHttpInfo(unclaimedDraftCreateRequest, idempotencyKey); + return unclaimedDraftCreateWithHttpInfo(unclaimedDraftCreateRequest).getData(); } /** @@ -100,21 +75,18 @@ public ApiResponse unclaimedDraftCreateWithHttpInf * loaded. Subsequent access to the claim URL will result in a 404. * * @param unclaimedDraftCreateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<UnclaimedDraftCreateResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse unclaimedDraftCreateWithHttpInfo( - UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, String idempotencyKey) - throws ApiException { + UnclaimedDraftCreateRequest unclaimedDraftCreateRequest) throws ApiException { // Check required parameters if (unclaimedDraftCreateRequest == null) { @@ -124,13 +96,6 @@ public ApiResponse unclaimedDraftCreateWithHttpInf + " unclaimedDraftCreate"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = unclaimedDraftCreateRequest.createFormData(); @@ -149,7 +114,7 @@ public ApiResponse unclaimedDraftCreateWithHttpInf "POST", new ArrayList<>(), isFileTypeFound ? null : unclaimedDraftCreateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -169,55 +134,23 @@ public ApiResponse unclaimedDraftCreateWithHttpInf * accessed on Dropbox Sign. * * @param unclaimedDraftCreateEmbeddedRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return UnclaimedDraftCreateResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbedded( - UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, - String idempotencyKey) - throws ApiException { - return unclaimedDraftCreateEmbeddedWithHttpInfo( - unclaimedDraftCreateEmbeddedRequest, idempotencyKey) - .getData(); - } - - /** - * @see UnclaimedDraftApi#unclaimedDraftCreateEmbedded(UnclaimedDraftCreateEmbeddedRequest, - * String) - */ public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbedded( UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest) throws ApiException { - String idempotencyKey = null; - - return unclaimedDraftCreateEmbeddedWithHttpInfo( - unclaimedDraftCreateEmbeddedRequest, idempotencyKey) + return unclaimedDraftCreateEmbeddedWithHttpInfo(unclaimedDraftCreateEmbeddedRequest) .getData(); } - /** - * @see - * UnclaimedDraftApi#unclaimedDraftCreateEmbeddedWithHttpInfo(UnclaimedDraftCreateEmbeddedRequest, - * String) - */ - public ApiResponse unclaimedDraftCreateEmbeddedWithHttpInfo( - UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest) - throws ApiException { - String idempotencyKey = null; - - return unclaimedDraftCreateEmbeddedWithHttpInfo( - unclaimedDraftCreateEmbeddedRequest, idempotencyKey); - } - /** * Create Embedded Unclaimed Draft Creates a new Draft that can be claimed and used in an * embedded iFrame. The first authenticated user to access the URL will claim the Draft and will @@ -228,21 +161,18 @@ public ApiResponse unclaimedDraftCreateEmbeddedWit * accessed on Dropbox Sign. * * @param unclaimedDraftCreateEmbeddedRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<UnclaimedDraftCreateResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse unclaimedDraftCreateEmbeddedWithHttpInfo( - UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, - String idempotencyKey) + UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest) throws ApiException { // Check required parameters @@ -253,13 +183,6 @@ public ApiResponse unclaimedDraftCreateEmbeddedWit + " calling unclaimedDraftCreateEmbedded"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = unclaimedDraftCreateEmbeddedRequest.createFormData(); @@ -278,7 +201,7 @@ public ApiResponse unclaimedDraftCreateEmbeddedWit "POST", new ArrayList<>(), isFileTypeFound ? null : unclaimedDraftCreateEmbeddedRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -298,60 +221,25 @@ public ApiResponse unclaimedDraftCreateEmbeddedWit * whereas normal drafts can be used and accessed on Dropbox Sign. * * @param unclaimedDraftCreateEmbeddedWithTemplateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return UnclaimedDraftCreateResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbeddedWithTemplate( - UnclaimedDraftCreateEmbeddedWithTemplateRequest - unclaimedDraftCreateEmbeddedWithTemplateRequest, - String idempotencyKey) - throws ApiException { - return unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo( - unclaimedDraftCreateEmbeddedWithTemplateRequest, idempotencyKey) - .getData(); - } - - /** - * @see - * UnclaimedDraftApi#unclaimedDraftCreateEmbeddedWithTemplate(UnclaimedDraftCreateEmbeddedWithTemplateRequest, - * String) - */ public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbeddedWithTemplate( UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest) throws ApiException { - String idempotencyKey = null; - return unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo( - unclaimedDraftCreateEmbeddedWithTemplateRequest, idempotencyKey) + unclaimedDraftCreateEmbeddedWithTemplateRequest) .getData(); } - /** - * @see - * UnclaimedDraftApi#unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(UnclaimedDraftCreateEmbeddedWithTemplateRequest, - * String) - */ - public ApiResponse - unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo( - UnclaimedDraftCreateEmbeddedWithTemplateRequest - unclaimedDraftCreateEmbeddedWithTemplateRequest) - throws ApiException { - String idempotencyKey = null; - - return unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo( - unclaimedDraftCreateEmbeddedWithTemplateRequest, idempotencyKey); - } - /** * Create Embedded Unclaimed Draft with Template Creates a new Draft with a previously saved * template(s) that can be claimed and used in an embedded iFrame. The first authenticated user @@ -362,23 +250,20 @@ public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbeddedWithTemplate( * whereas normal drafts can be used and accessed on Dropbox Sign. * * @param unclaimedDraftCreateEmbeddedWithTemplateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<UnclaimedDraftCreateResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo( UnclaimedDraftCreateEmbeddedWithTemplateRequest - unclaimedDraftCreateEmbeddedWithTemplateRequest, - String idempotencyKey) + unclaimedDraftCreateEmbeddedWithTemplateRequest) throws ApiException { // Check required parameters @@ -390,13 +275,6 @@ public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbeddedWithTemplate( + " unclaimedDraftCreateEmbeddedWithTemplate"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = unclaimedDraftCreateEmbeddedWithTemplateRequest.createFormData(); @@ -415,7 +293,7 @@ public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbeddedWithTemplate( "POST", new ArrayList<>(), isFileTypeFound ? null : unclaimedDraftCreateEmbeddedWithTemplateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -435,57 +313,25 @@ public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbeddedWithTemplate( * * @param signatureRequestId The ID of the signature request to edit and resend. (required) * @param unclaimedDraftEditAndResendRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return UnclaimedDraftCreateResponse * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public UnclaimedDraftCreateResponse unclaimedDraftEditAndResend( - String signatureRequestId, - UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, - String idempotencyKey) - throws ApiException { - return unclaimedDraftEditAndResendWithHttpInfo( - signatureRequestId, unclaimedDraftEditAndResendRequest, idempotencyKey) - .getData(); - } - - /** - * @see UnclaimedDraftApi#unclaimedDraftEditAndResend(String, - * UnclaimedDraftEditAndResendRequest, String) - */ public UnclaimedDraftCreateResponse unclaimedDraftEditAndResend( String signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest) throws ApiException { - String idempotencyKey = null; - return unclaimedDraftEditAndResendWithHttpInfo( - signatureRequestId, unclaimedDraftEditAndResendRequest, idempotencyKey) + signatureRequestId, unclaimedDraftEditAndResendRequest) .getData(); } - /** - * @see UnclaimedDraftApi#unclaimedDraftEditAndResendWithHttpInfo(String, - * UnclaimedDraftEditAndResendRequest, String) - */ - public ApiResponse unclaimedDraftEditAndResendWithHttpInfo( - String signatureRequestId, - UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest) - throws ApiException { - String idempotencyKey = null; - - return unclaimedDraftEditAndResendWithHttpInfo( - signatureRequestId, unclaimedDraftEditAndResendRequest, idempotencyKey); - } - /** * Edit and Resend Unclaimed Draft Creates a new signature request from an embedded request that * can be edited prior to being sent to the recipients. Parameter `test_mode` can be @@ -496,22 +342,19 @@ public ApiResponse unclaimedDraftEditAndResendWith * * @param signatureRequestId The ID of the signature request to edit and resend. (required) * @param unclaimedDraftEditAndResendRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 - * characters. (optional) * @return ApiResponse<UnclaimedDraftCreateResponse> * @throws ApiException if fails to make API call * @http.response.details * * * - * + * * *
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ public ApiResponse unclaimedDraftEditAndResendWithHttpInfo( String signatureRequestId, - UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, - String idempotencyKey) + UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest) throws ApiException { // Check required parameters @@ -535,13 +378,6 @@ public ApiResponse unclaimedDraftEditAndResendWith "\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put( - "Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = unclaimedDraftEditAndResendRequest.createFormData(); @@ -559,7 +395,7 @@ public ApiResponse unclaimedDraftEditAndResendWith "POST", new ArrayList<>(), isFileTypeFound ? null : unclaimedDraftEditAndResendRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v2/bin/generate-overload-methods.php b/sdks/java-v2/bin/generate-overload-methods.php index 7d9150696..e700bd265 100755 --- a/sdks/java-v2/bin/generate-overload-methods.php +++ b/sdks/java-v2/bin/generate-overload-methods.php @@ -178,28 +178,20 @@ private function template( $typeList = implode(', ', $typeList); $setters = implode("\n ", $setters); - // OpenAPI Generator emits an empty returnType for void operations. - $isVoid = $returnType === '' || $returnType === 'void'; - $methodReturnType = $isVoid ? 'void' : $returnType; - $httpReturnType = $isVoid ? 'Void' : $returnType; - $methodCall = $isVoid - ? "{$method}WithHttpInfo({$paramList});" - : "return {$method}WithHttpInfo({$paramList}).getData();"; - return << {$method}WithHttpInfo({$methodSignature}) throws ApiException { + public ApiResponse<{$returnType}> {$method}WithHttpInfo({$methodSignature}) throws ApiException { {$setters} return {$method}WithHttpInfo({$paramList}); diff --git a/sdks/java-v2/docs/AccountApi.md b/sdks/java-v2/docs/AccountApi.md index e253448a3..e638f559d 100644 --- a/sdks/java-v2/docs/AccountApi.md +++ b/sdks/java-v2/docs/AccountApi.md @@ -13,7 +13,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## accountCreate -> AccountCreateResponse accountCreate(accountCreateRequest, idempotencyKey) +> AccountCreateResponse accountCreate(accountCreateRequest) Create Account @@ -75,7 +75,6 @@ public class AccountCreateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **accountCreateRequest** | [**AccountCreateRequest**](AccountCreateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -93,7 +92,7 @@ public class AccountCreateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | @@ -183,7 +182,7 @@ public class AccountGetExample ## accountUpdate -> AccountGetResponse accountUpdate(accountUpdateRequest, idempotencyKey) +> AccountGetResponse accountUpdate(accountUpdateRequest) Update Account @@ -246,7 +245,6 @@ public class AccountUpdateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **accountUpdateRequest** | [**AccountUpdateRequest**](AccountUpdateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -264,13 +262,13 @@ public class AccountUpdateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## accountVerify -> AccountVerifyResponse accountVerify(accountVerifyRequest, idempotencyKey) +> AccountVerifyResponse accountVerify(accountVerifyRequest) Verify Account @@ -332,7 +330,6 @@ public class AccountVerifyExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **accountVerifyRequest** | [**AccountVerifyRequest**](AccountVerifyRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -350,6 +347,6 @@ public class AccountVerifyExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v2/docs/ApiAppApi.md b/sdks/java-v2/docs/ApiAppApi.md index 8b31761bf..c9e5fd615 100644 --- a/sdks/java-v2/docs/ApiAppApi.md +++ b/sdks/java-v2/docs/ApiAppApi.md @@ -14,7 +14,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## apiAppCreate -> ApiAppGetResponse apiAppCreate(apiAppCreateRequest, idempotencyKey) +> ApiAppGetResponse apiAppCreate(apiAppCreateRequest) Create API App @@ -93,7 +93,6 @@ public class ApiAppCreateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **apiAppCreateRequest** | [**ApiAppCreateRequest**](ApiAppCreateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -111,7 +110,7 @@ public class ApiAppCreateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **201** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **201** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | @@ -363,7 +362,7 @@ public class ApiAppListExample ## apiAppUpdate -> ApiAppGetResponse apiAppUpdate(clientId, apiAppUpdateRequest, idempotencyKey) +> ApiAppGetResponse apiAppUpdate(clientId, apiAppUpdateRequest) Update API App @@ -445,7 +444,6 @@ public class ApiAppUpdateExample |------------- | ------------- | ------------- | -------------| **clientId** | **String**| The client id of the API App to update. | **apiAppUpdateRequest** | [**ApiAppUpdateRequest**](ApiAppUpdateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -463,6 +461,6 @@ public class ApiAppUpdateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v2/docs/DocumentApi.md b/sdks/java-v2/docs/DocumentApi.md index 6500739bc..c72d11a30 100644 --- a/sdks/java-v2/docs/DocumentApi.md +++ b/sdks/java-v2/docs/DocumentApi.md @@ -10,7 +10,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## documentDetectFields -> DocumentFieldDetectionResponse documentDetectFields(documentFieldDetectionRequest, idempotencyKey) +> DocumentFieldDetectionResponse documentDetectFields(documentFieldDetectionRequest) Detect Document Fields @@ -74,7 +74,6 @@ public class DocumentDetectFieldsExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **documentFieldDetectionRequest** | [**DocumentFieldDetectionRequest**](DocumentFieldDetectionRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -92,6 +91,6 @@ public class DocumentDetectFieldsExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v2/docs/EmbeddedApi.md b/sdks/java-v2/docs/EmbeddedApi.md index d5dd0b75e..416c319ee 100644 --- a/sdks/java-v2/docs/EmbeddedApi.md +++ b/sdks/java-v2/docs/EmbeddedApi.md @@ -11,7 +11,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## embeddedEditUrl -> EmbeddedEditUrlResponse embeddedEditUrl(templateId, embeddedEditUrlRequest, idempotencyKey) +> EmbeddedEditUrlResponse embeddedEditUrl(templateId, embeddedEditUrlRequest) Get Embedded Template Edit URL @@ -80,7 +80,6 @@ public class EmbeddedEditUrlExample |------------- | ------------- | ------------- | -------------| **templateId** | **String**| The id of the template to edit. | **embeddedEditUrlRequest** | [**EmbeddedEditUrlRequest**](EmbeddedEditUrlRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -98,7 +97,7 @@ public class EmbeddedEditUrlExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v2/docs/FaxApi.md b/sdks/java-v2/docs/FaxApi.md index 31a62d42a..7ee47ff0e 100644 --- a/sdks/java-v2/docs/FaxApi.md +++ b/sdks/java-v2/docs/FaxApi.md @@ -337,7 +337,7 @@ public class FaxListExample ## faxSend -> FaxGetResponse faxSend(faxSendRequest, idempotencyKey) +> FaxGetResponse faxSend(faxSendRequest) Send Fax @@ -407,7 +407,6 @@ public class FaxSendExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **faxSendRequest** | [**FaxSendRequest**](FaxSendRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -425,6 +424,6 @@ public class FaxSendExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v2/docs/FaxLineApi.md b/sdks/java-v2/docs/FaxLineApi.md index 8e98aeae7..79ccf8b93 100644 --- a/sdks/java-v2/docs/FaxLineApi.md +++ b/sdks/java-v2/docs/FaxLineApi.md @@ -16,7 +16,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## faxLineAddUser -> FaxLineResponse faxLineAddUser(faxLineAddUserRequest, idempotencyKey) +> FaxLineResponse faxLineAddUser(faxLineAddUserRequest) Add Fax Line User @@ -78,7 +78,6 @@ public class FaxLineAddUserExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **faxLineAddUserRequest** | [**FaxLineAddUserRequest**](FaxLineAddUserRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -96,7 +95,7 @@ public class FaxLineAddUserExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | @@ -189,7 +188,7 @@ public class FaxLineAreaCodeGetExample ## faxLineCreate -> FaxLineResponse faxLineCreate(faxLineCreateRequest, idempotencyKey) +> FaxLineResponse faxLineCreate(faxLineCreateRequest) Purchase Fax Line @@ -251,7 +250,6 @@ public class FaxLineCreateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **faxLineCreateRequest** | [**FaxLineCreateRequest**](FaxLineCreateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -269,7 +267,7 @@ public class FaxLineCreateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | @@ -525,7 +523,7 @@ public class FaxLineListExample ## faxLineRemoveUser -> FaxLineResponse faxLineRemoveUser(faxLineRemoveUserRequest, idempotencyKey) +> FaxLineResponse faxLineRemoveUser(faxLineRemoveUserRequest) Remove Fax Line Access @@ -587,7 +585,6 @@ public class FaxLineRemoveUserExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **faxLineRemoveUserRequest** | [**FaxLineRemoveUserRequest**](FaxLineRemoveUserRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -605,6 +602,6 @@ public class FaxLineRemoveUserExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v2/docs/ReportApi.md b/sdks/java-v2/docs/ReportApi.md index e0368b4c9..cadac49ae 100644 --- a/sdks/java-v2/docs/ReportApi.md +++ b/sdks/java-v2/docs/ReportApi.md @@ -10,7 +10,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## reportCreate -> ReportCreateResponse reportCreate(reportCreateRequest, idempotencyKey) +> ReportCreateResponse reportCreate(reportCreateRequest) Create Report @@ -78,7 +78,6 @@ public class ReportCreateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **reportCreateRequest** | [**ReportCreateRequest**](ReportCreateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -96,6 +95,6 @@ public class ReportCreateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v2/docs/SignatureRequestApi.md b/sdks/java-v2/docs/SignatureRequestApi.md index e8665a90a..bf16f02c0 100644 --- a/sdks/java-v2/docs/SignatureRequestApi.md +++ b/sdks/java-v2/docs/SignatureRequestApi.md @@ -29,7 +29,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## signatureRequestBulkCreateEmbeddedWithTemplate -> BulkSendJobSendResponse signatureRequestBulkCreateEmbeddedWithTemplate(signatureRequestBulkCreateEmbeddedWithTemplateRequest, idempotencyKey) +> BulkSendJobSendResponse signatureRequestBulkCreateEmbeddedWithTemplate(signatureRequestBulkCreateEmbeddedWithTemplateRequest) Embedded Bulk Send with Template @@ -157,7 +157,6 @@ public class SignatureRequestBulkCreateEmbeddedWithTemplateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestBulkCreateEmbeddedWithTemplateRequest** | [**SignatureRequestBulkCreateEmbeddedWithTemplateRequest**](SignatureRequestBulkCreateEmbeddedWithTemplateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -175,13 +174,13 @@ public class SignatureRequestBulkCreateEmbeddedWithTemplateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## signatureRequestBulkSendWithTemplate -> BulkSendJobSendResponse signatureRequestBulkSendWithTemplate(signatureRequestBulkSendWithTemplateRequest, idempotencyKey) +> BulkSendJobSendResponse signatureRequestBulkSendWithTemplate(signatureRequestBulkSendWithTemplateRequest) Bulk Send with Template @@ -309,7 +308,6 @@ public class SignatureRequestBulkSendWithTemplateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestBulkSendWithTemplateRequest** | [**SignatureRequestBulkSendWithTemplateRequest**](SignatureRequestBulkSendWithTemplateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -327,13 +325,13 @@ public class SignatureRequestBulkSendWithTemplateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## signatureRequestCancel -> signatureRequestCancel(signatureRequestId, idempotencyKey) +> signatureRequestCancel(signatureRequestId) Cancel Incomplete Signature Request @@ -398,7 +396,6 @@ public class SignatureRequestCancelExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the incomplete SignatureRequest to cancel. | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -416,13 +413,13 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## signatureRequestCreateEmbedded -> SignatureRequestGetResponse signatureRequestCreateEmbedded(signatureRequestCreateEmbeddedRequest, idempotencyKey) +> SignatureRequestGetResponse signatureRequestCreateEmbedded(signatureRequestCreateEmbeddedRequest) Create Embedded Signature Request @@ -520,7 +517,6 @@ public class SignatureRequestCreateEmbeddedExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestCreateEmbeddedRequest** | [**SignatureRequestCreateEmbeddedRequest**](SignatureRequestCreateEmbeddedRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -538,13 +534,13 @@ public class SignatureRequestCreateEmbeddedExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## signatureRequestCreateEmbeddedWithTemplate -> SignatureRequestGetResponse signatureRequestCreateEmbeddedWithTemplate(signatureRequestCreateEmbeddedWithTemplateRequest, idempotencyKey) +> SignatureRequestGetResponse signatureRequestCreateEmbeddedWithTemplate(signatureRequestCreateEmbeddedWithTemplateRequest) Create Embedded Signature Request with Template @@ -631,7 +627,6 @@ public class SignatureRequestCreateEmbeddedWithTemplateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestCreateEmbeddedWithTemplateRequest** | [**SignatureRequestCreateEmbeddedWithTemplateRequest**](SignatureRequestCreateEmbeddedWithTemplateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -649,13 +644,13 @@ public class SignatureRequestCreateEmbeddedWithTemplateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## signatureRequestEdit -> SignatureRequestGetResponse signatureRequestEdit(signatureRequestId, signatureRequestEditRequest, idempotencyKey) +> SignatureRequestGetResponse signatureRequestEdit(signatureRequestId, signatureRequestEditRequest) Edit Signature Request @@ -765,7 +760,6 @@ public class SignatureRequestEditExample |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the SignatureRequest to edit. | **signatureRequestEditRequest** | [**SignatureRequestEditRequest**](SignatureRequestEditRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -783,13 +777,13 @@ public class SignatureRequestEditExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## signatureRequestEditEmbedded -> SignatureRequestGetResponse signatureRequestEditEmbedded(signatureRequestId, signatureRequestEditEmbeddedRequest, idempotencyKey) +> SignatureRequestGetResponse signatureRequestEditEmbedded(signatureRequestId, signatureRequestEditEmbeddedRequest) Edit Embedded Signature Request @@ -890,7 +884,6 @@ public class SignatureRequestEditEmbeddedExample |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the SignatureRequest to edit. | **signatureRequestEditEmbeddedRequest** | [**SignatureRequestEditEmbeddedRequest**](SignatureRequestEditEmbeddedRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -908,13 +901,13 @@ public class SignatureRequestEditEmbeddedExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## signatureRequestEditEmbeddedWithTemplate -> SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest, idempotencyKey) +> SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest) Edit Embedded Signature Request with Template @@ -1004,7 +997,6 @@ public class SignatureRequestEditEmbeddedWithTemplateExample |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the SignatureRequest to edit. | **signatureRequestEditEmbeddedWithTemplateRequest** | [**SignatureRequestEditEmbeddedWithTemplateRequest**](SignatureRequestEditEmbeddedWithTemplateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -1022,13 +1014,13 @@ public class SignatureRequestEditEmbeddedWithTemplateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## signatureRequestEditWithTemplate -> SignatureRequestGetResponse signatureRequestEditWithTemplate(signatureRequestId, signatureRequestEditWithTemplateRequest, idempotencyKey) +> SignatureRequestGetResponse signatureRequestEditWithTemplate(signatureRequestId, signatureRequestEditWithTemplateRequest) Edit Signature Request With Template @@ -1137,7 +1129,6 @@ public class SignatureRequestEditWithTemplateExample |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the SignatureRequest to edit. | **signatureRequestEditWithTemplateRequest** | [**SignatureRequestEditWithTemplateRequest**](SignatureRequestEditWithTemplateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -1155,7 +1146,7 @@ public class SignatureRequestEditWithTemplateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | @@ -1588,7 +1579,7 @@ public class SignatureRequestListExample ## signatureRequestReleaseHold -> SignatureRequestGetResponse signatureRequestReleaseHold(signatureRequestId, idempotencyKey) +> SignatureRequestGetResponse signatureRequestReleaseHold(signatureRequestId) Release On-Hold Signature Request @@ -1647,7 +1638,6 @@ public class SignatureRequestReleaseHoldExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the SignatureRequest to release. | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -1665,13 +1655,13 @@ public class SignatureRequestReleaseHoldExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## signatureRequestRemind -> SignatureRequestGetResponse signatureRequestRemind(signatureRequestId, signatureRequestRemindRequest, idempotencyKey) +> SignatureRequestGetResponse signatureRequestRemind(signatureRequestId, signatureRequestRemindRequest) Send Request Reminder @@ -1737,7 +1727,6 @@ public class SignatureRequestRemindExample |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the SignatureRequest to send a reminder for. | **signatureRequestRemindRequest** | [**SignatureRequestRemindRequest**](SignatureRequestRemindRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -1755,13 +1744,13 @@ public class SignatureRequestRemindExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## signatureRequestRemove -> signatureRequestRemove(signatureRequestId, idempotencyKey) +> signatureRequestRemove(signatureRequestId) Remove Signature Request Access @@ -1821,7 +1810,6 @@ public class SignatureRequestRemoveExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the SignatureRequest to remove. | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -1839,13 +1827,13 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## signatureRequestSend -> SignatureRequestGetResponse signatureRequestSend(signatureRequestSendRequest, idempotencyKey) +> SignatureRequestGetResponse signatureRequestSend(signatureRequestSendRequest) Send Signature Request @@ -1952,7 +1940,6 @@ public class SignatureRequestSendExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestSendRequest** | [**SignatureRequestSendRequest**](SignatureRequestSendRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -1970,13 +1957,13 @@ public class SignatureRequestSendExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## signatureRequestSendWithTemplate -> SignatureRequestGetResponse signatureRequestSendWithTemplate(signatureRequestSendWithTemplateRequest, idempotencyKey) +> SignatureRequestGetResponse signatureRequestSendWithTemplate(signatureRequestSendWithTemplateRequest) Send with Template @@ -2082,7 +2069,6 @@ public class SignatureRequestSendWithTemplateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **signatureRequestSendWithTemplateRequest** | [**SignatureRequestSendWithTemplateRequest**](SignatureRequestSendWithTemplateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -2100,13 +2086,13 @@ public class SignatureRequestSendWithTemplateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## signatureRequestUpdate -> SignatureRequestGetResponse signatureRequestUpdate(signatureRequestId, signatureRequestUpdateRequest, idempotencyKey) +> SignatureRequestGetResponse signatureRequestUpdate(signatureRequestId, signatureRequestUpdateRequest) Update Signature Request @@ -2175,7 +2161,6 @@ public class SignatureRequestUpdateExample |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The id of the SignatureRequest to update. | **signatureRequestUpdateRequest** | [**SignatureRequestUpdateRequest**](SignatureRequestUpdateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -2193,6 +2178,6 @@ public class SignatureRequestUpdateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v2/docs/TeamApi.md b/sdks/java-v2/docs/TeamApi.md index 981b1f0ec..abb3f1ee0 100644 --- a/sdks/java-v2/docs/TeamApi.md +++ b/sdks/java-v2/docs/TeamApi.md @@ -19,7 +19,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## teamAddMember -> TeamGetResponse teamAddMember(teamAddMemberRequest, teamId, idempotencyKey) +> TeamGetResponse teamAddMember(teamAddMemberRequest, teamId) Add User to Team @@ -83,7 +83,6 @@ public class TeamAddMemberExample |------------- | ------------- | ------------- | -------------| **teamAddMemberRequest** | [**TeamAddMemberRequest**](TeamAddMemberRequest.md)| | **teamId** | **String**| The id of the team. | [optional] - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -101,13 +100,13 @@ public class TeamAddMemberExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## teamCreate -> TeamGetResponse teamCreate(teamCreateRequest, idempotencyKey) +> TeamGetResponse teamCreate(teamCreateRequest) Create Team @@ -169,7 +168,6 @@ public class TeamCreateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **teamCreateRequest** | [**TeamCreateRequest**](TeamCreateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -187,7 +185,7 @@ public class TeamCreateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | @@ -595,7 +593,7 @@ public class TeamMembersExample ## teamRemoveMember -> TeamGetResponse teamRemoveMember(teamRemoveMemberRequest, idempotencyKey) +> TeamGetResponse teamRemoveMember(teamRemoveMemberRequest) Remove User from Team @@ -658,7 +656,6 @@ public class TeamRemoveMemberExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **teamRemoveMemberRequest** | [**TeamRemoveMemberRequest**](TeamRemoveMemberRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -676,7 +673,7 @@ public class TeamRemoveMemberExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **201** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **201** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | @@ -768,7 +765,7 @@ public class TeamSubTeamsExample ## teamUpdate -> TeamGetResponse teamUpdate(teamUpdateRequest, idempotencyKey) +> TeamGetResponse teamUpdate(teamUpdateRequest) Update Team @@ -830,7 +827,6 @@ public class TeamUpdateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **teamUpdateRequest** | [**TeamUpdateRequest**](TeamUpdateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -848,6 +844,6 @@ public class TeamUpdateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v2/docs/TemplateApi.md b/sdks/java-v2/docs/TemplateApi.md index 56963b69b..e9233865f 100644 --- a/sdks/java-v2/docs/TemplateApi.md +++ b/sdks/java-v2/docs/TemplateApi.md @@ -20,7 +20,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## templateAddUser -> TemplateGetResponse templateAddUser(templateId, templateAddUserRequest, idempotencyKey) +> TemplateGetResponse templateAddUser(templateId, templateAddUserRequest) Add User to Template @@ -84,7 +84,6 @@ public class TemplateAddUserExample |------------- | ------------- | ------------- | -------------| **templateId** | **String**| The id of the Template to give the Account access to. | **templateAddUserRequest** | [**TemplateAddUserRequest**](TemplateAddUserRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -102,13 +101,13 @@ public class TemplateAddUserExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## templateCreate -> TemplateCreateResponse templateCreate(templateCreateRequest, idempotencyKey) +> TemplateCreateResponse templateCreate(templateCreateRequest) Create Template @@ -250,7 +249,6 @@ public class TemplateCreateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **templateCreateRequest** | [**TemplateCreateRequest**](TemplateCreateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -268,13 +266,13 @@ public class TemplateCreateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## templateCreateEmbeddedDraft -> TemplateCreateEmbeddedDraftResponse templateCreateEmbeddedDraft(templateCreateEmbeddedDraftRequest, idempotencyKey) +> TemplateCreateEmbeddedDraftResponse templateCreateEmbeddedDraft(templateCreateEmbeddedDraftRequest) Create Embedded Template Draft @@ -378,7 +376,6 @@ public class TemplateCreateEmbeddedDraftExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **templateCreateEmbeddedDraftRequest** | [**TemplateCreateEmbeddedDraftRequest**](TemplateCreateEmbeddedDraftRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -396,13 +393,13 @@ public class TemplateCreateEmbeddedDraftExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## templateDelete -> templateDelete(templateId, idempotencyKey) +> templateDelete(templateId) Delete Template @@ -459,7 +456,6 @@ public class TemplateDeleteExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **templateId** | **String**| The id of the Template to delete. | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -477,7 +473,7 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | @@ -910,7 +906,7 @@ public class TemplateListExample ## templateRemoveUser -> TemplateGetResponse templateRemoveUser(templateId, templateRemoveUserRequest, idempotencyKey) +> TemplateGetResponse templateRemoveUser(templateId, templateRemoveUserRequest) Remove User from Template @@ -974,7 +970,6 @@ public class TemplateRemoveUserExample |------------- | ------------- | ------------- | -------------| **templateId** | **String**| The id of the Template to remove the Account's access to. | **templateRemoveUserRequest** | [**TemplateRemoveUserRequest**](TemplateRemoveUserRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -992,13 +987,13 @@ public class TemplateRemoveUserExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## templateUpdateFiles -> TemplateUpdateFilesResponse templateUpdateFiles(templateId, templateUpdateFilesRequest, idempotencyKey) +> TemplateUpdateFilesResponse templateUpdateFiles(templateId, templateUpdateFilesRequest) Update Template Files @@ -1075,7 +1070,6 @@ public class TemplateUpdateFilesExample |------------- | ------------- | ------------- | -------------| **templateId** | **String**| The ID of the template whose files to update. | **templateUpdateFilesRequest** | [**TemplateUpdateFilesRequest**](TemplateUpdateFilesRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -1093,6 +1087,6 @@ public class TemplateUpdateFilesExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v2/docs/UnclaimedDraftApi.md b/sdks/java-v2/docs/UnclaimedDraftApi.md index f7816f232..3f4dadabd 100644 --- a/sdks/java-v2/docs/UnclaimedDraftApi.md +++ b/sdks/java-v2/docs/UnclaimedDraftApi.md @@ -13,7 +13,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## unclaimedDraftCreate -> UnclaimedDraftCreateResponse unclaimedDraftCreate(unclaimedDraftCreateRequest, idempotencyKey) +> UnclaimedDraftCreateResponse unclaimedDraftCreate(unclaimedDraftCreateRequest) Create Unclaimed Draft @@ -89,7 +89,6 @@ public class UnclaimedDraftCreateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **unclaimedDraftCreateRequest** | [**UnclaimedDraftCreateRequest**](UnclaimedDraftCreateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -107,13 +106,13 @@ public class UnclaimedDraftCreateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## unclaimedDraftCreateEmbedded -> UnclaimedDraftCreateResponse unclaimedDraftCreateEmbedded(unclaimedDraftCreateEmbeddedRequest, idempotencyKey) +> UnclaimedDraftCreateResponse unclaimedDraftCreateEmbedded(unclaimedDraftCreateEmbeddedRequest) Create Embedded Unclaimed Draft @@ -182,7 +181,6 @@ public class UnclaimedDraftCreateEmbeddedExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **unclaimedDraftCreateEmbeddedRequest** | [**UnclaimedDraftCreateEmbeddedRequest**](UnclaimedDraftCreateEmbeddedRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -200,13 +198,13 @@ public class UnclaimedDraftCreateEmbeddedExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## unclaimedDraftCreateEmbeddedWithTemplate -> UnclaimedDraftCreateResponse unclaimedDraftCreateEmbeddedWithTemplate(unclaimedDraftCreateEmbeddedWithTemplateRequest, idempotencyKey) +> UnclaimedDraftCreateResponse unclaimedDraftCreateEmbeddedWithTemplate(unclaimedDraftCreateEmbeddedWithTemplateRequest) Create Embedded Unclaimed Draft with Template @@ -294,7 +292,6 @@ public class UnclaimedDraftCreateEmbeddedWithTemplateExample | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| **unclaimedDraftCreateEmbeddedWithTemplateRequest** | [**UnclaimedDraftCreateEmbeddedWithTemplateRequest**](UnclaimedDraftCreateEmbeddedWithTemplateRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -312,13 +309,13 @@ public class UnclaimedDraftCreateEmbeddedWithTemplateExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | ## unclaimedDraftEditAndResend -> UnclaimedDraftCreateResponse unclaimedDraftEditAndResend(signatureRequestId, unclaimedDraftEditAndResendRequest, idempotencyKey) +> UnclaimedDraftCreateResponse unclaimedDraftEditAndResend(signatureRequestId, unclaimedDraftEditAndResendRequest) Edit and Resend Unclaimed Draft @@ -385,7 +382,6 @@ public class UnclaimedDraftEditAndResendExample |------------- | ------------- | ------------- | -------------| **signatureRequestId** | **String**| The ID of the signature request to edit and resend. | **unclaimedDraftEditAndResendRequest** | [**UnclaimedDraftEditAndResendRequest**](UnclaimedDraftEditAndResendRequest.md)| | - **idempotencyKey** | **String**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] ### Return type @@ -403,6 +399,6 @@ public class UnclaimedDraftEditAndResendExample ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| | **4XX** | failed_operation | - | diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/AccountApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/AccountApi.java index 29b3455d5..95a905691 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/AccountApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/AccountApi.java @@ -57,38 +57,18 @@ public void setApiClient(ApiClient apiClient) { * Creates a new Dropbox Sign Account that is associated with the specified `email_address`. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/AccountCreateExample.java * @param accountCreateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return AccountCreateResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public AccountCreateResponse accountCreate(AccountCreateRequest accountCreateRequest, String idempotencyKey) throws ApiException { - return accountCreateWithHttpInfo(accountCreateRequest, idempotencyKey).getData(); - } - - - /** - * @see AccountApi#accountCreate(AccountCreateRequest, String) - */ public AccountCreateResponse accountCreate(AccountCreateRequest accountCreateRequest) throws ApiException { - String idempotencyKey = null; - - return accountCreateWithHttpInfo(accountCreateRequest, idempotencyKey).getData(); - } - - /** - * @see AccountApi#accountCreateWithHttpInfo(AccountCreateRequest, String) - */ - public ApiResponse accountCreateWithHttpInfo(AccountCreateRequest accountCreateRequest) throws ApiException { - String idempotencyKey = null; - - return accountCreateWithHttpInfo(accountCreateRequest, idempotencyKey); + return accountCreateWithHttpInfo(accountCreateRequest).getData(); } @@ -97,30 +77,23 @@ public ApiResponse accountCreateWithHttpInfo(AccountCreat * Creates a new Dropbox Sign Account that is associated with the specified `email_address`. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/AccountCreateExample.java * @param accountCreateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<AccountCreateResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse accountCreateWithHttpInfo(AccountCreateRequest accountCreateRequest, String idempotencyKey) throws ApiException { + public ApiResponse accountCreateWithHttpInfo(AccountCreateRequest accountCreateRequest) throws ApiException { // Check required parameters if (accountCreateRequest == null) { throw new ApiException(400, "Missing the required parameter 'accountCreateRequest' when calling accountCreate"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = accountCreateRequest.createFormData(); @@ -134,7 +107,7 @@ public ApiResponse accountCreateWithHttpInfo(AccountCreat "POST", new ArrayList<>(), isFileTypeFound ? null : accountCreateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -256,38 +229,18 @@ public ApiResponse accountGetWithHttpInfo(String accountId, * Updates the properties and settings of your Account. Currently only allows for updates to the [Callback URL](/api/reference/tag/Callbacks-and-Events) and locale. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/AccountUpdateExample.java * @param accountUpdateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return AccountGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public AccountGetResponse accountUpdate(AccountUpdateRequest accountUpdateRequest, String idempotencyKey) throws ApiException { - return accountUpdateWithHttpInfo(accountUpdateRequest, idempotencyKey).getData(); - } - - - /** - * @see AccountApi#accountUpdate(AccountUpdateRequest, String) - */ public AccountGetResponse accountUpdate(AccountUpdateRequest accountUpdateRequest) throws ApiException { - String idempotencyKey = null; - - return accountUpdateWithHttpInfo(accountUpdateRequest, idempotencyKey).getData(); - } - - /** - * @see AccountApi#accountUpdateWithHttpInfo(AccountUpdateRequest, String) - */ - public ApiResponse accountUpdateWithHttpInfo(AccountUpdateRequest accountUpdateRequest) throws ApiException { - String idempotencyKey = null; - - return accountUpdateWithHttpInfo(accountUpdateRequest, idempotencyKey); + return accountUpdateWithHttpInfo(accountUpdateRequest).getData(); } @@ -296,30 +249,23 @@ public ApiResponse accountUpdateWithHttpInfo(AccountUpdateRe * Updates the properties and settings of your Account. Currently only allows for updates to the [Callback URL](/api/reference/tag/Callbacks-and-Events) and locale. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/AccountUpdateExample.java * @param accountUpdateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<AccountGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse accountUpdateWithHttpInfo(AccountUpdateRequest accountUpdateRequest, String idempotencyKey) throws ApiException { + public ApiResponse accountUpdateWithHttpInfo(AccountUpdateRequest accountUpdateRequest) throws ApiException { // Check required parameters if (accountUpdateRequest == null) { throw new ApiException(400, "Missing the required parameter 'accountUpdateRequest' when calling accountUpdate"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = accountUpdateRequest.createFormData(); @@ -333,7 +279,7 @@ public ApiResponse accountUpdateWithHttpInfo(AccountUpdateRe "PUT", new ArrayList<>(), isFileTypeFound ? null : accountUpdateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -348,38 +294,18 @@ public ApiResponse accountUpdateWithHttpInfo(AccountUpdateRe * Verifies whether an Dropbox Sign Account exists for the given email address. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/AccountVerifyExample.java * @param accountVerifyRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return AccountVerifyResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public AccountVerifyResponse accountVerify(AccountVerifyRequest accountVerifyRequest, String idempotencyKey) throws ApiException { - return accountVerifyWithHttpInfo(accountVerifyRequest, idempotencyKey).getData(); - } - - - /** - * @see AccountApi#accountVerify(AccountVerifyRequest, String) - */ public AccountVerifyResponse accountVerify(AccountVerifyRequest accountVerifyRequest) throws ApiException { - String idempotencyKey = null; - - return accountVerifyWithHttpInfo(accountVerifyRequest, idempotencyKey).getData(); - } - - /** - * @see AccountApi#accountVerifyWithHttpInfo(AccountVerifyRequest, String) - */ - public ApiResponse accountVerifyWithHttpInfo(AccountVerifyRequest accountVerifyRequest) throws ApiException { - String idempotencyKey = null; - - return accountVerifyWithHttpInfo(accountVerifyRequest, idempotencyKey); + return accountVerifyWithHttpInfo(accountVerifyRequest).getData(); } @@ -388,30 +314,23 @@ public ApiResponse accountVerifyWithHttpInfo(AccountVerif * Verifies whether an Dropbox Sign Account exists for the given email address. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/AccountVerifyExample.java * @param accountVerifyRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<AccountVerifyResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse accountVerifyWithHttpInfo(AccountVerifyRequest accountVerifyRequest, String idempotencyKey) throws ApiException { + public ApiResponse accountVerifyWithHttpInfo(AccountVerifyRequest accountVerifyRequest) throws ApiException { // Check required parameters if (accountVerifyRequest == null) { throw new ApiException(400, "Missing the required parameter 'accountVerifyRequest' when calling accountVerify"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = accountVerifyRequest.createFormData(); @@ -425,7 +344,7 @@ public ApiResponse accountVerifyWithHttpInfo(AccountVerif "POST", new ArrayList<>(), isFileTypeFound ? null : accountVerifyRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/ApiAppApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/ApiAppApi.java index 8cf1ba5e0..b30d6505b 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/ApiAppApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/ApiAppApi.java @@ -55,38 +55,18 @@ public void setApiClient(ApiClient apiClient) { * Creates a new API App. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/ApiAppCreateExample.java * @param apiAppCreateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiAppGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiAppGetResponse apiAppCreate(ApiAppCreateRequest apiAppCreateRequest, String idempotencyKey) throws ApiException { - return apiAppCreateWithHttpInfo(apiAppCreateRequest, idempotencyKey).getData(); - } - - - /** - * @see ApiAppApi#apiAppCreate(ApiAppCreateRequest, String) - */ public ApiAppGetResponse apiAppCreate(ApiAppCreateRequest apiAppCreateRequest) throws ApiException { - String idempotencyKey = null; - - return apiAppCreateWithHttpInfo(apiAppCreateRequest, idempotencyKey).getData(); - } - - /** - * @see ApiAppApi#apiAppCreateWithHttpInfo(ApiAppCreateRequest, String) - */ - public ApiResponse apiAppCreateWithHttpInfo(ApiAppCreateRequest apiAppCreateRequest) throws ApiException { - String idempotencyKey = null; - - return apiAppCreateWithHttpInfo(apiAppCreateRequest, idempotencyKey); + return apiAppCreateWithHttpInfo(apiAppCreateRequest).getData(); } @@ -95,30 +75,23 @@ public ApiResponse apiAppCreateWithHttpInfo(ApiAppCreateReque * Creates a new API App. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/ApiAppCreateExample.java * @param apiAppCreateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<ApiAppGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse apiAppCreateWithHttpInfo(ApiAppCreateRequest apiAppCreateRequest, String idempotencyKey) throws ApiException { + public ApiResponse apiAppCreateWithHttpInfo(ApiAppCreateRequest apiAppCreateRequest) throws ApiException { // Check required parameters if (apiAppCreateRequest == null) { throw new ApiException(400, "Missing the required parameter 'apiAppCreateRequest' when calling apiAppCreate"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = apiAppCreateRequest.createFormData(); @@ -132,7 +105,7 @@ public ApiResponse apiAppCreateWithHttpInfo(ApiAppCreateReque "POST", new ArrayList<>(), isFileTypeFound ? null : apiAppCreateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -397,38 +370,18 @@ public ApiResponse apiAppListWithHttpInfo(Integer page, Inte * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/ApiAppUpdateExample.java * @param clientId The client id of the API App to update. (required) * @param apiAppUpdateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiAppGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiAppGetResponse apiAppUpdate(String clientId, ApiAppUpdateRequest apiAppUpdateRequest, String idempotencyKey) throws ApiException { - return apiAppUpdateWithHttpInfo(clientId, apiAppUpdateRequest, idempotencyKey).getData(); - } - - - /** - * @see ApiAppApi#apiAppUpdate(String, ApiAppUpdateRequest, String) - */ public ApiAppGetResponse apiAppUpdate(String clientId, ApiAppUpdateRequest apiAppUpdateRequest) throws ApiException { - String idempotencyKey = null; - - return apiAppUpdateWithHttpInfo(clientId, apiAppUpdateRequest, idempotencyKey).getData(); - } - - /** - * @see ApiAppApi#apiAppUpdateWithHttpInfo(String, ApiAppUpdateRequest, String) - */ - public ApiResponse apiAppUpdateWithHttpInfo(String clientId, ApiAppUpdateRequest apiAppUpdateRequest) throws ApiException { - String idempotencyKey = null; - - return apiAppUpdateWithHttpInfo(clientId, apiAppUpdateRequest, idempotencyKey); + return apiAppUpdateWithHttpInfo(clientId, apiAppUpdateRequest).getData(); } @@ -438,18 +391,17 @@ public ApiResponse apiAppUpdateWithHttpInfo(String clientId, * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/ApiAppUpdateExample.java * @param clientId The client id of the API App to update. (required) * @param apiAppUpdateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<ApiAppGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse apiAppUpdateWithHttpInfo(String clientId, ApiAppUpdateRequest apiAppUpdateRequest, String idempotencyKey) throws ApiException { + public ApiResponse apiAppUpdateWithHttpInfo(String clientId, ApiAppUpdateRequest apiAppUpdateRequest) throws ApiException { // Check required parameters if (clientId == null) { @@ -463,12 +415,6 @@ public ApiResponse apiAppUpdateWithHttpInfo(String clientId, String localVarPath = "/api_app/{client_id}" .replaceAll("\\{client_id}", apiClient.escapeString(clientId.toString())); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = apiAppUpdateRequest.createFormData(); @@ -482,7 +428,7 @@ public ApiResponse apiAppUpdateWithHttpInfo(String clientId, "PUT", new ArrayList<>(), isFileTypeFound ? null : apiAppUpdateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/DocumentApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/DocumentApi.java index d0ae9761b..1bf68ca4c 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/DocumentApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/DocumentApi.java @@ -53,38 +53,18 @@ public void setApiClient(ApiClient apiClient) { * Detects form fields in a PDF document using either PDF form annotations or Dropbox Sign text tags. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/DocumentDetectFieldsExample.java * @param documentFieldDetectionRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return DocumentFieldDetectionResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public DocumentFieldDetectionResponse documentDetectFields(DocumentFieldDetectionRequest documentFieldDetectionRequest, String idempotencyKey) throws ApiException { - return documentDetectFieldsWithHttpInfo(documentFieldDetectionRequest, idempotencyKey).getData(); - } - - - /** - * @see DocumentApi#documentDetectFields(DocumentFieldDetectionRequest, String) - */ public DocumentFieldDetectionResponse documentDetectFields(DocumentFieldDetectionRequest documentFieldDetectionRequest) throws ApiException { - String idempotencyKey = null; - - return documentDetectFieldsWithHttpInfo(documentFieldDetectionRequest, idempotencyKey).getData(); - } - - /** - * @see DocumentApi#documentDetectFieldsWithHttpInfo(DocumentFieldDetectionRequest, String) - */ - public ApiResponse documentDetectFieldsWithHttpInfo(DocumentFieldDetectionRequest documentFieldDetectionRequest) throws ApiException { - String idempotencyKey = null; - - return documentDetectFieldsWithHttpInfo(documentFieldDetectionRequest, idempotencyKey); + return documentDetectFieldsWithHttpInfo(documentFieldDetectionRequest).getData(); } @@ -93,30 +73,23 @@ public ApiResponse documentDetectFieldsWithHttpI * Detects form fields in a PDF document using either PDF form annotations or Dropbox Sign text tags. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/DocumentDetectFieldsExample.java * @param documentFieldDetectionRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<DocumentFieldDetectionResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse documentDetectFieldsWithHttpInfo(DocumentFieldDetectionRequest documentFieldDetectionRequest, String idempotencyKey) throws ApiException { + public ApiResponse documentDetectFieldsWithHttpInfo(DocumentFieldDetectionRequest documentFieldDetectionRequest) throws ApiException { // Check required parameters if (documentFieldDetectionRequest == null) { throw new ApiException(400, "Missing the required parameter 'documentFieldDetectionRequest' when calling documentDetectFields"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = documentFieldDetectionRequest.createFormData(); @@ -130,7 +103,7 @@ public ApiResponse documentDetectFieldsWithHttpI "POST", new ArrayList<>(), isFileTypeFound ? null : documentFieldDetectionRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/EmbeddedApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/EmbeddedApi.java index 9406a9542..3cc198b87 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/EmbeddedApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/EmbeddedApi.java @@ -55,38 +55,18 @@ public void setApiClient(ApiClient apiClient) { * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/EmbeddedEditUrlExample.java * @param templateId The id of the template to edit. (required) * @param embeddedEditUrlRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return EmbeddedEditUrlResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public EmbeddedEditUrlResponse embeddedEditUrl(String templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, String idempotencyKey) throws ApiException { - return embeddedEditUrlWithHttpInfo(templateId, embeddedEditUrlRequest, idempotencyKey).getData(); - } - - - /** - * @see EmbeddedApi#embeddedEditUrl(String, EmbeddedEditUrlRequest, String) - */ public EmbeddedEditUrlResponse embeddedEditUrl(String templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest) throws ApiException { - String idempotencyKey = null; - - return embeddedEditUrlWithHttpInfo(templateId, embeddedEditUrlRequest, idempotencyKey).getData(); - } - - /** - * @see EmbeddedApi#embeddedEditUrlWithHttpInfo(String, EmbeddedEditUrlRequest, String) - */ - public ApiResponse embeddedEditUrlWithHttpInfo(String templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest) throws ApiException { - String idempotencyKey = null; - - return embeddedEditUrlWithHttpInfo(templateId, embeddedEditUrlRequest, idempotencyKey); + return embeddedEditUrlWithHttpInfo(templateId, embeddedEditUrlRequest).getData(); } @@ -96,18 +76,17 @@ public ApiResponse embeddedEditUrlWithHttpInfo(String t * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/EmbeddedEditUrlExample.java * @param templateId The id of the template to edit. (required) * @param embeddedEditUrlRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<EmbeddedEditUrlResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse embeddedEditUrlWithHttpInfo(String templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest, String idempotencyKey) throws ApiException { + public ApiResponse embeddedEditUrlWithHttpInfo(String templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest) throws ApiException { // Check required parameters if (templateId == null) { @@ -121,12 +100,6 @@ public ApiResponse embeddedEditUrlWithHttpInfo(String t String localVarPath = "/embedded/edit_url/{template_id}" .replaceAll("\\{template_id}", apiClient.escapeString(templateId.toString())); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = embeddedEditUrlRequest.createFormData(); @@ -140,7 +113,7 @@ public ApiResponse embeddedEditUrlWithHttpInfo(String t "POST", new ArrayList<>(), isFileTypeFound ? null : embeddedEditUrlRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/FaxApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/FaxApi.java index 33ae742ef..07aa92b07 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/FaxApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/FaxApi.java @@ -373,38 +373,18 @@ public ApiResponse faxListWithHttpInfo(Integer page, Integer pa * Creates and sends a new Fax with the submitted file(s) * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/FaxSendExample.java * @param faxSendRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return FaxGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public FaxGetResponse faxSend(FaxSendRequest faxSendRequest, String idempotencyKey) throws ApiException { - return faxSendWithHttpInfo(faxSendRequest, idempotencyKey).getData(); - } - - - /** - * @see FaxApi#faxSend(FaxSendRequest, String) - */ public FaxGetResponse faxSend(FaxSendRequest faxSendRequest) throws ApiException { - String idempotencyKey = null; - - return faxSendWithHttpInfo(faxSendRequest, idempotencyKey).getData(); - } - - /** - * @see FaxApi#faxSendWithHttpInfo(FaxSendRequest, String) - */ - public ApiResponse faxSendWithHttpInfo(FaxSendRequest faxSendRequest) throws ApiException { - String idempotencyKey = null; - - return faxSendWithHttpInfo(faxSendRequest, idempotencyKey); + return faxSendWithHttpInfo(faxSendRequest).getData(); } @@ -413,30 +393,23 @@ public ApiResponse faxSendWithHttpInfo(FaxSendRequest faxSendReq * Creates and sends a new Fax with the submitted file(s) * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/FaxSendExample.java * @param faxSendRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<FaxGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse faxSendWithHttpInfo(FaxSendRequest faxSendRequest, String idempotencyKey) throws ApiException { + public ApiResponse faxSendWithHttpInfo(FaxSendRequest faxSendRequest) throws ApiException { // Check required parameters if (faxSendRequest == null) { throw new ApiException(400, "Missing the required parameter 'faxSendRequest' when calling faxSend"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = faxSendRequest.createFormData(); @@ -450,7 +423,7 @@ public ApiResponse faxSendWithHttpInfo(FaxSendRequest faxSendReq "POST", new ArrayList<>(), isFileTypeFound ? null : faxSendRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/FaxLineApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/FaxLineApi.java index bc4dd865a..4980f9f75 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/FaxLineApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/FaxLineApi.java @@ -58,38 +58,18 @@ public void setApiClient(ApiClient apiClient) { * Grants a user access to the specified Fax Line. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/FaxLineAddUserExample.java * @param faxLineAddUserRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return FaxLineResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public FaxLineResponse faxLineAddUser(FaxLineAddUserRequest faxLineAddUserRequest, String idempotencyKey) throws ApiException { - return faxLineAddUserWithHttpInfo(faxLineAddUserRequest, idempotencyKey).getData(); - } - - - /** - * @see FaxLineApi#faxLineAddUser(FaxLineAddUserRequest, String) - */ public FaxLineResponse faxLineAddUser(FaxLineAddUserRequest faxLineAddUserRequest) throws ApiException { - String idempotencyKey = null; - - return faxLineAddUserWithHttpInfo(faxLineAddUserRequest, idempotencyKey).getData(); - } - - /** - * @see FaxLineApi#faxLineAddUserWithHttpInfo(FaxLineAddUserRequest, String) - */ - public ApiResponse faxLineAddUserWithHttpInfo(FaxLineAddUserRequest faxLineAddUserRequest) throws ApiException { - String idempotencyKey = null; - - return faxLineAddUserWithHttpInfo(faxLineAddUserRequest, idempotencyKey); + return faxLineAddUserWithHttpInfo(faxLineAddUserRequest).getData(); } @@ -98,30 +78,23 @@ public ApiResponse faxLineAddUserWithHttpInfo(FaxLineAddUserReq * Grants a user access to the specified Fax Line. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/FaxLineAddUserExample.java * @param faxLineAddUserRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<FaxLineResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse faxLineAddUserWithHttpInfo(FaxLineAddUserRequest faxLineAddUserRequest, String idempotencyKey) throws ApiException { + public ApiResponse faxLineAddUserWithHttpInfo(FaxLineAddUserRequest faxLineAddUserRequest) throws ApiException { // Check required parameters if (faxLineAddUserRequest == null) { throw new ApiException(400, "Missing the required parameter 'faxLineAddUserRequest' when calling faxLineAddUser"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = faxLineAddUserRequest.createFormData(); @@ -135,7 +108,7 @@ public ApiResponse faxLineAddUserWithHttpInfo(FaxLineAddUserReq "PUT", new ArrayList<>(), isFileTypeFound ? null : faxLineAddUserRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -290,38 +263,18 @@ public ApiResponse faxLineAreaCodeGetWithHttpInfo(St * Purchases a new Fax Line * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/FaxLineCreateExample.java * @param faxLineCreateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return FaxLineResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public FaxLineResponse faxLineCreate(FaxLineCreateRequest faxLineCreateRequest, String idempotencyKey) throws ApiException { - return faxLineCreateWithHttpInfo(faxLineCreateRequest, idempotencyKey).getData(); - } - - - /** - * @see FaxLineApi#faxLineCreate(FaxLineCreateRequest, String) - */ public FaxLineResponse faxLineCreate(FaxLineCreateRequest faxLineCreateRequest) throws ApiException { - String idempotencyKey = null; - - return faxLineCreateWithHttpInfo(faxLineCreateRequest, idempotencyKey).getData(); - } - - /** - * @see FaxLineApi#faxLineCreateWithHttpInfo(FaxLineCreateRequest, String) - */ - public ApiResponse faxLineCreateWithHttpInfo(FaxLineCreateRequest faxLineCreateRequest) throws ApiException { - String idempotencyKey = null; - - return faxLineCreateWithHttpInfo(faxLineCreateRequest, idempotencyKey); + return faxLineCreateWithHttpInfo(faxLineCreateRequest).getData(); } @@ -330,30 +283,23 @@ public ApiResponse faxLineCreateWithHttpInfo(FaxLineCreateReque * Purchases a new Fax Line * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/FaxLineCreateExample.java * @param faxLineCreateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<FaxLineResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse faxLineCreateWithHttpInfo(FaxLineCreateRequest faxLineCreateRequest, String idempotencyKey) throws ApiException { + public ApiResponse faxLineCreateWithHttpInfo(FaxLineCreateRequest faxLineCreateRequest) throws ApiException { // Check required parameters if (faxLineCreateRequest == null) { throw new ApiException(400, "Missing the required parameter 'faxLineCreateRequest' when calling faxLineCreate"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = faxLineCreateRequest.createFormData(); @@ -367,7 +313,7 @@ public ApiResponse faxLineCreateWithHttpInfo(FaxLineCreateReque "POST", new ArrayList<>(), isFileTypeFound ? null : faxLineCreateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -680,38 +626,18 @@ public ApiResponse faxLineListWithHttpInfo(String accountId * Removes a user's access to the specified Fax Line * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/FaxLineRemoveUserExample.java * @param faxLineRemoveUserRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return FaxLineResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public FaxLineResponse faxLineRemoveUser(FaxLineRemoveUserRequest faxLineRemoveUserRequest, String idempotencyKey) throws ApiException { - return faxLineRemoveUserWithHttpInfo(faxLineRemoveUserRequest, idempotencyKey).getData(); - } - - - /** - * @see FaxLineApi#faxLineRemoveUser(FaxLineRemoveUserRequest, String) - */ public FaxLineResponse faxLineRemoveUser(FaxLineRemoveUserRequest faxLineRemoveUserRequest) throws ApiException { - String idempotencyKey = null; - - return faxLineRemoveUserWithHttpInfo(faxLineRemoveUserRequest, idempotencyKey).getData(); - } - - /** - * @see FaxLineApi#faxLineRemoveUserWithHttpInfo(FaxLineRemoveUserRequest, String) - */ - public ApiResponse faxLineRemoveUserWithHttpInfo(FaxLineRemoveUserRequest faxLineRemoveUserRequest) throws ApiException { - String idempotencyKey = null; - - return faxLineRemoveUserWithHttpInfo(faxLineRemoveUserRequest, idempotencyKey); + return faxLineRemoveUserWithHttpInfo(faxLineRemoveUserRequest).getData(); } @@ -720,30 +646,23 @@ public ApiResponse faxLineRemoveUserWithHttpInfo(FaxLineRemoveU * Removes a user's access to the specified Fax Line * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/FaxLineRemoveUserExample.java * @param faxLineRemoveUserRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<FaxLineResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse faxLineRemoveUserWithHttpInfo(FaxLineRemoveUserRequest faxLineRemoveUserRequest, String idempotencyKey) throws ApiException { + public ApiResponse faxLineRemoveUserWithHttpInfo(FaxLineRemoveUserRequest faxLineRemoveUserRequest) throws ApiException { // Check required parameters if (faxLineRemoveUserRequest == null) { throw new ApiException(400, "Missing the required parameter 'faxLineRemoveUserRequest' when calling faxLineRemoveUser"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = faxLineRemoveUserRequest.createFormData(); @@ -757,7 +676,7 @@ public ApiResponse faxLineRemoveUserWithHttpInfo(FaxLineRemoveU "PUT", new ArrayList<>(), isFileTypeFound ? null : faxLineRemoveUserRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/ReportApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/ReportApi.java index 3ce505132..472111d66 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/ReportApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/ReportApi.java @@ -53,38 +53,18 @@ public void setApiClient(ApiClient apiClient) { * Request the creation of one or more report(s). When the report(s) have been generated, you will receive an email (one per requested report type) containing a link to download the report as a CSV file. The requested date range may be up to 12 months in duration, and `start_date` must not be more than 10 years in the past. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/ReportCreateExample.java * @param reportCreateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ReportCreateResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ReportCreateResponse reportCreate(ReportCreateRequest reportCreateRequest, String idempotencyKey) throws ApiException { - return reportCreateWithHttpInfo(reportCreateRequest, idempotencyKey).getData(); - } - - - /** - * @see ReportApi#reportCreate(ReportCreateRequest, String) - */ public ReportCreateResponse reportCreate(ReportCreateRequest reportCreateRequest) throws ApiException { - String idempotencyKey = null; - - return reportCreateWithHttpInfo(reportCreateRequest, idempotencyKey).getData(); - } - - /** - * @see ReportApi#reportCreateWithHttpInfo(ReportCreateRequest, String) - */ - public ApiResponse reportCreateWithHttpInfo(ReportCreateRequest reportCreateRequest) throws ApiException { - String idempotencyKey = null; - - return reportCreateWithHttpInfo(reportCreateRequest, idempotencyKey); + return reportCreateWithHttpInfo(reportCreateRequest).getData(); } @@ -93,30 +73,23 @@ public ApiResponse reportCreateWithHttpInfo(ReportCreateRe * Request the creation of one or more report(s). When the report(s) have been generated, you will receive an email (one per requested report type) containing a link to download the report as a CSV file. The requested date range may be up to 12 months in duration, and `start_date` must not be more than 10 years in the past. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/ReportCreateExample.java * @param reportCreateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<ReportCreateResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse reportCreateWithHttpInfo(ReportCreateRequest reportCreateRequest, String idempotencyKey) throws ApiException { + public ApiResponse reportCreateWithHttpInfo(ReportCreateRequest reportCreateRequest) throws ApiException { // Check required parameters if (reportCreateRequest == null) { throw new ApiException(400, "Missing the required parameter 'reportCreateRequest' when calling reportCreate"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = reportCreateRequest.createFormData(); @@ -130,7 +103,7 @@ public ApiResponse reportCreateWithHttpInfo(ReportCreateRe "POST", new ArrayList<>(), isFileTypeFound ? null : reportCreateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/SignatureRequestApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/SignatureRequestApi.java index 39c9bfc1f..539a8720c 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/SignatureRequestApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/SignatureRequestApi.java @@ -69,38 +69,18 @@ public void setApiClient(ApiClient apiClient) { * Creates BulkSendJob which sends up to 250 SignatureRequests in bulk based off of the provided Template(s) specified with the `template_ids` parameter to be signed in an embedded iFrame. These embedded signature requests can only be signed in embedded iFrames whereas normal signature requests can only be signed on Dropbox Sign. **NOTE:** Only available for Standard plan and higher. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.java * @param signatureRequestBulkCreateEmbeddedWithTemplateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return BulkSendJobSendResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public BulkSendJobSendResponse signatureRequestBulkCreateEmbeddedWithTemplate(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, String idempotencyKey) throws ApiException { - return signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestBulkCreateEmbeddedWithTemplateRequest, idempotencyKey).getData(); - } - - - /** - * @see SignatureRequestApi#signatureRequestBulkCreateEmbeddedWithTemplate(SignatureRequestBulkCreateEmbeddedWithTemplateRequest, String) - */ public BulkSendJobSendResponse signatureRequestBulkCreateEmbeddedWithTemplate(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest) throws ApiException { - String idempotencyKey = null; - - return signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestBulkCreateEmbeddedWithTemplateRequest, idempotencyKey).getData(); - } - - /** - * @see SignatureRequestApi#signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestBulkCreateEmbeddedWithTemplateRequest, String) - */ - public ApiResponse signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest) throws ApiException { - String idempotencyKey = null; - - return signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestBulkCreateEmbeddedWithTemplateRequest, idempotencyKey); + return signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestBulkCreateEmbeddedWithTemplateRequest).getData(); } @@ -109,30 +89,23 @@ public ApiResponse signatureRequestBulkCreateEmbeddedWi * Creates BulkSendJob which sends up to 250 SignatureRequests in bulk based off of the provided Template(s) specified with the `template_ids` parameter to be signed in an embedded iFrame. These embedded signature requests can only be signed in embedded iFrames whereas normal signature requests can only be signed on Dropbox Sign. **NOTE:** Only available for Standard plan and higher. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.java * @param signatureRequestBulkCreateEmbeddedWithTemplateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<BulkSendJobSendResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest, String idempotencyKey) throws ApiException { + public ApiResponse signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest) throws ApiException { // Check required parameters if (signatureRequestBulkCreateEmbeddedWithTemplateRequest == null) { throw new ApiException(400, "Missing the required parameter 'signatureRequestBulkCreateEmbeddedWithTemplateRequest' when calling signatureRequestBulkCreateEmbeddedWithTemplate"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestBulkCreateEmbeddedWithTemplateRequest.createFormData(); @@ -146,7 +119,7 @@ public ApiResponse signatureRequestBulkCreateEmbeddedWi "POST", new ArrayList<>(), isFileTypeFound ? null : signatureRequestBulkCreateEmbeddedWithTemplateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -161,38 +134,18 @@ public ApiResponse signatureRequestBulkCreateEmbeddedWi * Creates BulkSendJob which sends up to 250 SignatureRequests in bulk based off of the provided Template(s) specified with the `template_ids` parameter. **NOTE:** Only available for Standard plan and higher. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.java * @param signatureRequestBulkSendWithTemplateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return BulkSendJobSendResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public BulkSendJobSendResponse signatureRequestBulkSendWithTemplate(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, String idempotencyKey) throws ApiException { - return signatureRequestBulkSendWithTemplateWithHttpInfo(signatureRequestBulkSendWithTemplateRequest, idempotencyKey).getData(); - } - - - /** - * @see SignatureRequestApi#signatureRequestBulkSendWithTemplate(SignatureRequestBulkSendWithTemplateRequest, String) - */ public BulkSendJobSendResponse signatureRequestBulkSendWithTemplate(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest) throws ApiException { - String idempotencyKey = null; - - return signatureRequestBulkSendWithTemplateWithHttpInfo(signatureRequestBulkSendWithTemplateRequest, idempotencyKey).getData(); - } - - /** - * @see SignatureRequestApi#signatureRequestBulkSendWithTemplateWithHttpInfo(SignatureRequestBulkSendWithTemplateRequest, String) - */ - public ApiResponse signatureRequestBulkSendWithTemplateWithHttpInfo(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest) throws ApiException { - String idempotencyKey = null; - - return signatureRequestBulkSendWithTemplateWithHttpInfo(signatureRequestBulkSendWithTemplateRequest, idempotencyKey); + return signatureRequestBulkSendWithTemplateWithHttpInfo(signatureRequestBulkSendWithTemplateRequest).getData(); } @@ -201,30 +154,23 @@ public ApiResponse signatureRequestBulkSendWithTemplate * Creates BulkSendJob which sends up to 250 SignatureRequests in bulk based off of the provided Template(s) specified with the `template_ids` parameter. **NOTE:** Only available for Standard plan and higher. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.java * @param signatureRequestBulkSendWithTemplateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<BulkSendJobSendResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse signatureRequestBulkSendWithTemplateWithHttpInfo(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest, String idempotencyKey) throws ApiException { + public ApiResponse signatureRequestBulkSendWithTemplateWithHttpInfo(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest) throws ApiException { // Check required parameters if (signatureRequestBulkSendWithTemplateRequest == null) { throw new ApiException(400, "Missing the required parameter 'signatureRequestBulkSendWithTemplateRequest' when calling signatureRequestBulkSendWithTemplate"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestBulkSendWithTemplateRequest.createFormData(); @@ -238,7 +184,7 @@ public ApiResponse signatureRequestBulkSendWithTemplate "POST", new ArrayList<>(), isFileTypeFound ? null : signatureRequestBulkSendWithTemplateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -253,37 +199,17 @@ public ApiResponse signatureRequestBulkSendWithTemplate * Cancels an incomplete signature request. This action is **not reversible**. The request will be canceled and signers will no longer be able to sign. If they try to access the signature request they will receive a HTTP 410 status code indicating that the resource has been deleted. Cancelation is asynchronous and a successful call to this endpoint will return an empty 200 OK response if the signature request is eligible to be canceled and has been successfully queued. This 200 OK response does not indicate a successful cancelation of the signature request itself. The cancelation is confirmed via the `signature_request_canceled` event. It is recommended that a [callback handler](/api/reference/tag/Callbacks-and-Events) be implemented to listen for the `signature_request_canceled` event. This callback will be sent only when the cancelation has completed successfully. If a callback handler has been configured and the event has not been received within 60 minutes of making the call, check the status of the request in the [API Dashboard](https://app.hellosign.com/apidashboard) and retry the cancelation if necessary. To be eligible for cancelation, a signature request must have been sent successfully, must not yet have been signed by all signers, and you must either be the sender or own the API app under which it was sent. A partially signed signature request can be canceled. **NOTE:** To remove your access to a completed signature request, use the endpoint: `POST /signature_request/remove/[:signature_request_id]`. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestCancelExample.java * @param signatureRequestId The id of the incomplete SignatureRequest to cancel. (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public void signatureRequestCancel(String signatureRequestId, String idempotencyKey) throws ApiException { - signatureRequestCancelWithHttpInfo(signatureRequestId, idempotencyKey); - } - - - /** - * @see SignatureRequestApi#signatureRequestCancel(String, String) - */ public void signatureRequestCancel(String signatureRequestId) throws ApiException { - String idempotencyKey = null; - - signatureRequestCancelWithHttpInfo(signatureRequestId, idempotencyKey); - } - - /** - * @see SignatureRequestApi#signatureRequestCancelWithHttpInfo(String, String) - */ - public ApiResponse signatureRequestCancelWithHttpInfo(String signatureRequestId) throws ApiException { - String idempotencyKey = null; - - return signatureRequestCancelWithHttpInfo(signatureRequestId, idempotencyKey); + signatureRequestCancelWithHttpInfo(signatureRequestId); } @@ -292,18 +218,17 @@ public ApiResponse signatureRequestCancelWithHttpInfo(String signatureRequ * Cancels an incomplete signature request. This action is **not reversible**. The request will be canceled and signers will no longer be able to sign. If they try to access the signature request they will receive a HTTP 410 status code indicating that the resource has been deleted. Cancelation is asynchronous and a successful call to this endpoint will return an empty 200 OK response if the signature request is eligible to be canceled and has been successfully queued. This 200 OK response does not indicate a successful cancelation of the signature request itself. The cancelation is confirmed via the `signature_request_canceled` event. It is recommended that a [callback handler](/api/reference/tag/Callbacks-and-Events) be implemented to listen for the `signature_request_canceled` event. This callback will be sent only when the cancelation has completed successfully. If a callback handler has been configured and the event has not been received within 60 minutes of making the call, check the status of the request in the [API Dashboard](https://app.hellosign.com/apidashboard) and retry the cancelation if necessary. To be eligible for cancelation, a signature request must have been sent successfully, must not yet have been signed by all signers, and you must either be the sender or own the API app under which it was sent. A partially signed signature request can be canceled. **NOTE:** To remove your access to a completed signature request, use the endpoint: `POST /signature_request/remove/[:signature_request_id]`. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestCancelExample.java * @param signatureRequestId The id of the incomplete SignatureRequest to cancel. (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse signatureRequestCancelWithHttpInfo(String signatureRequestId, String idempotencyKey) throws ApiException { + public ApiResponse signatureRequestCancelWithHttpInfo(String signatureRequestId) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -314,12 +239,6 @@ public ApiResponse signatureRequestCancelWithHttpInfo(String signatureRequ String localVarPath = "/signature_request/cancel/{signature_request_id}" .replaceAll("\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = new HashMap(); @@ -332,7 +251,7 @@ public ApiResponse signatureRequestCancelWithHttpInfo(String signatureRequ "POST", new ArrayList<>(), null, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -347,38 +266,18 @@ public ApiResponse signatureRequestCancelWithHttpInfo(String signatureRequ * Creates a new SignatureRequest with the submitted documents to be signed in an embedded iFrame. If form_fields_per_document is not specified, a signature page will be affixed where all signers will be required to add their signature, signifying their agreement to all contained documents. Note that embedded signature requests can only be signed in embedded iFrames whereas normal signature requests can only be signed on Dropbox Sign. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestCreateEmbeddedExample.java * @param signatureRequestCreateEmbeddedRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public SignatureRequestGetResponse signatureRequestCreateEmbedded(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, String idempotencyKey) throws ApiException { - return signatureRequestCreateEmbeddedWithHttpInfo(signatureRequestCreateEmbeddedRequest, idempotencyKey).getData(); - } - - - /** - * @see SignatureRequestApi#signatureRequestCreateEmbedded(SignatureRequestCreateEmbeddedRequest, String) - */ public SignatureRequestGetResponse signatureRequestCreateEmbedded(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest) throws ApiException { - String idempotencyKey = null; - - return signatureRequestCreateEmbeddedWithHttpInfo(signatureRequestCreateEmbeddedRequest, idempotencyKey).getData(); - } - - /** - * @see SignatureRequestApi#signatureRequestCreateEmbeddedWithHttpInfo(SignatureRequestCreateEmbeddedRequest, String) - */ - public ApiResponse signatureRequestCreateEmbeddedWithHttpInfo(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest) throws ApiException { - String idempotencyKey = null; - - return signatureRequestCreateEmbeddedWithHttpInfo(signatureRequestCreateEmbeddedRequest, idempotencyKey); + return signatureRequestCreateEmbeddedWithHttpInfo(signatureRequestCreateEmbeddedRequest).getData(); } @@ -387,30 +286,23 @@ public ApiResponse signatureRequestCreateEmbeddedWi * Creates a new SignatureRequest with the submitted documents to be signed in an embedded iFrame. If form_fields_per_document is not specified, a signature page will be affixed where all signers will be required to add their signature, signifying their agreement to all contained documents. Note that embedded signature requests can only be signed in embedded iFrames whereas normal signature requests can only be signed on Dropbox Sign. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestCreateEmbeddedExample.java * @param signatureRequestCreateEmbeddedRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse signatureRequestCreateEmbeddedWithHttpInfo(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest, String idempotencyKey) throws ApiException { + public ApiResponse signatureRequestCreateEmbeddedWithHttpInfo(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest) throws ApiException { // Check required parameters if (signatureRequestCreateEmbeddedRequest == null) { throw new ApiException(400, "Missing the required parameter 'signatureRequestCreateEmbeddedRequest' when calling signatureRequestCreateEmbedded"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestCreateEmbeddedRequest.createFormData(); @@ -424,7 +316,7 @@ public ApiResponse signatureRequestCreateEmbeddedWi "POST", new ArrayList<>(), isFileTypeFound ? null : signatureRequestCreateEmbeddedRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -439,38 +331,18 @@ public ApiResponse signatureRequestCreateEmbeddedWi * Creates a new SignatureRequest based on the given Template(s) to be signed in an embedded iFrame. Note that embedded signature requests can only be signed in embedded iFrames whereas normal signature requests can only be signed on Dropbox Sign. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.java * @param signatureRequestCreateEmbeddedWithTemplateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public SignatureRequestGetResponse signatureRequestCreateEmbeddedWithTemplate(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, String idempotencyKey) throws ApiException { - return signatureRequestCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestCreateEmbeddedWithTemplateRequest, idempotencyKey).getData(); - } - - - /** - * @see SignatureRequestApi#signatureRequestCreateEmbeddedWithTemplate(SignatureRequestCreateEmbeddedWithTemplateRequest, String) - */ public SignatureRequestGetResponse signatureRequestCreateEmbeddedWithTemplate(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest) throws ApiException { - String idempotencyKey = null; - - return signatureRequestCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestCreateEmbeddedWithTemplateRequest, idempotencyKey).getData(); - } - - /** - * @see SignatureRequestApi#signatureRequestCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestCreateEmbeddedWithTemplateRequest, String) - */ - public ApiResponse signatureRequestCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest) throws ApiException { - String idempotencyKey = null; - - return signatureRequestCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestCreateEmbeddedWithTemplateRequest, idempotencyKey); + return signatureRequestCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestCreateEmbeddedWithTemplateRequest).getData(); } @@ -479,30 +351,23 @@ public ApiResponse signatureRequestCreateEmbeddedWi * Creates a new SignatureRequest based on the given Template(s) to be signed in an embedded iFrame. Note that embedded signature requests can only be signed in embedded iFrames whereas normal signature requests can only be signed on Dropbox Sign. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.java * @param signatureRequestCreateEmbeddedWithTemplateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse signatureRequestCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest, String idempotencyKey) throws ApiException { + public ApiResponse signatureRequestCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest) throws ApiException { // Check required parameters if (signatureRequestCreateEmbeddedWithTemplateRequest == null) { throw new ApiException(400, "Missing the required parameter 'signatureRequestCreateEmbeddedWithTemplateRequest' when calling signatureRequestCreateEmbeddedWithTemplate"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestCreateEmbeddedWithTemplateRequest.createFormData(); @@ -516,7 +381,7 @@ public ApiResponse signatureRequestCreateEmbeddedWi "POST", new ArrayList<>(), isFileTypeFound ? null : signatureRequestCreateEmbeddedWithTemplateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -532,38 +397,18 @@ public ApiResponse signatureRequestCreateEmbeddedWi * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestEditExample.java * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public SignatureRequestGetResponse signatureRequestEdit(String signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, String idempotencyKey) throws ApiException { - return signatureRequestEditWithHttpInfo(signatureRequestId, signatureRequestEditRequest, idempotencyKey).getData(); - } - - - /** - * @see SignatureRequestApi#signatureRequestEdit(String, SignatureRequestEditRequest, String) - */ public SignatureRequestGetResponse signatureRequestEdit(String signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest) throws ApiException { - String idempotencyKey = null; - - return signatureRequestEditWithHttpInfo(signatureRequestId, signatureRequestEditRequest, idempotencyKey).getData(); - } - - /** - * @see SignatureRequestApi#signatureRequestEditWithHttpInfo(String, SignatureRequestEditRequest, String) - */ - public ApiResponse signatureRequestEditWithHttpInfo(String signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest) throws ApiException { - String idempotencyKey = null; - - return signatureRequestEditWithHttpInfo(signatureRequestId, signatureRequestEditRequest, idempotencyKey); + return signatureRequestEditWithHttpInfo(signatureRequestId, signatureRequestEditRequest).getData(); } @@ -573,18 +418,17 @@ public ApiResponse signatureRequestEditWithHttpInfo * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestEditExample.java * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse signatureRequestEditWithHttpInfo(String signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest, String idempotencyKey) throws ApiException { + public ApiResponse signatureRequestEditWithHttpInfo(String signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -598,12 +442,6 @@ public ApiResponse signatureRequestEditWithHttpInfo String localVarPath = "/signature_request/edit/{signature_request_id}" .replaceAll("\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestEditRequest.createFormData(); @@ -617,7 +455,7 @@ public ApiResponse signatureRequestEditWithHttpInfo "PUT", new ArrayList<>(), isFileTypeFound ? null : signatureRequestEditRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -633,38 +471,18 @@ public ApiResponse signatureRequestEditWithHttpInfo * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestEditEmbeddedExample.java * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditEmbeddedRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public SignatureRequestGetResponse signatureRequestEditEmbedded(String signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, String idempotencyKey) throws ApiException { - return signatureRequestEditEmbeddedWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedRequest, idempotencyKey).getData(); - } - - - /** - * @see SignatureRequestApi#signatureRequestEditEmbedded(String, SignatureRequestEditEmbeddedRequest, String) - */ public SignatureRequestGetResponse signatureRequestEditEmbedded(String signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest) throws ApiException { - String idempotencyKey = null; - - return signatureRequestEditEmbeddedWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedRequest, idempotencyKey).getData(); - } - - /** - * @see SignatureRequestApi#signatureRequestEditEmbeddedWithHttpInfo(String, SignatureRequestEditEmbeddedRequest, String) - */ - public ApiResponse signatureRequestEditEmbeddedWithHttpInfo(String signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest) throws ApiException { - String idempotencyKey = null; - - return signatureRequestEditEmbeddedWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedRequest, idempotencyKey); + return signatureRequestEditEmbeddedWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedRequest).getData(); } @@ -674,18 +492,17 @@ public ApiResponse signatureRequestEditEmbeddedWith * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestEditEmbeddedExample.java * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditEmbeddedRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse signatureRequestEditEmbeddedWithHttpInfo(String signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest, String idempotencyKey) throws ApiException { + public ApiResponse signatureRequestEditEmbeddedWithHttpInfo(String signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -699,12 +516,6 @@ public ApiResponse signatureRequestEditEmbeddedWith String localVarPath = "/signature_request/edit_embedded/{signature_request_id}" .replaceAll("\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestEditEmbeddedRequest.createFormData(); @@ -718,7 +529,7 @@ public ApiResponse signatureRequestEditEmbeddedWith "PUT", new ArrayList<>(), isFileTypeFound ? null : signatureRequestEditEmbeddedRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -734,38 +545,18 @@ public ApiResponse signatureRequestEditEmbeddedWith * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestEditEmbeddedWithTemplateExample.java * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditEmbeddedWithTemplateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate(String signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, String idempotencyKey) throws ApiException { - return signatureRequestEditEmbeddedWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest, idempotencyKey).getData(); - } - - - /** - * @see SignatureRequestApi#signatureRequestEditEmbeddedWithTemplate(String, SignatureRequestEditEmbeddedWithTemplateRequest, String) - */ public SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate(String signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest) throws ApiException { - String idempotencyKey = null; - - return signatureRequestEditEmbeddedWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest, idempotencyKey).getData(); - } - - /** - * @see SignatureRequestApi#signatureRequestEditEmbeddedWithTemplateWithHttpInfo(String, SignatureRequestEditEmbeddedWithTemplateRequest, String) - */ - public ApiResponse signatureRequestEditEmbeddedWithTemplateWithHttpInfo(String signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest) throws ApiException { - String idempotencyKey = null; - - return signatureRequestEditEmbeddedWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest, idempotencyKey); + return signatureRequestEditEmbeddedWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest).getData(); } @@ -775,18 +566,17 @@ public ApiResponse signatureRequestEditEmbeddedWith * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestEditEmbeddedWithTemplateExample.java * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditEmbeddedWithTemplateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse signatureRequestEditEmbeddedWithTemplateWithHttpInfo(String signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest, String idempotencyKey) throws ApiException { + public ApiResponse signatureRequestEditEmbeddedWithTemplateWithHttpInfo(String signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -800,12 +590,6 @@ public ApiResponse signatureRequestEditEmbeddedWith String localVarPath = "/signature_request/edit_embedded_with_template/{signature_request_id}" .replaceAll("\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestEditEmbeddedWithTemplateRequest.createFormData(); @@ -819,7 +603,7 @@ public ApiResponse signatureRequestEditEmbeddedWith "PUT", new ArrayList<>(), isFileTypeFound ? null : signatureRequestEditEmbeddedWithTemplateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -835,38 +619,18 @@ public ApiResponse signatureRequestEditEmbeddedWith * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestEditWithTemplateExample.java * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditWithTemplateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public SignatureRequestGetResponse signatureRequestEditWithTemplate(String signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, String idempotencyKey) throws ApiException { - return signatureRequestEditWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditWithTemplateRequest, idempotencyKey).getData(); - } - - - /** - * @see SignatureRequestApi#signatureRequestEditWithTemplate(String, SignatureRequestEditWithTemplateRequest, String) - */ public SignatureRequestGetResponse signatureRequestEditWithTemplate(String signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest) throws ApiException { - String idempotencyKey = null; - - return signatureRequestEditWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditWithTemplateRequest, idempotencyKey).getData(); - } - - /** - * @see SignatureRequestApi#signatureRequestEditWithTemplateWithHttpInfo(String, SignatureRequestEditWithTemplateRequest, String) - */ - public ApiResponse signatureRequestEditWithTemplateWithHttpInfo(String signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest) throws ApiException { - String idempotencyKey = null; - - return signatureRequestEditWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditWithTemplateRequest, idempotencyKey); + return signatureRequestEditWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditWithTemplateRequest).getData(); } @@ -876,18 +640,17 @@ public ApiResponse signatureRequestEditWithTemplate * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestEditWithTemplateExample.java * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditWithTemplateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse signatureRequestEditWithTemplateWithHttpInfo(String signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest, String idempotencyKey) throws ApiException { + public ApiResponse signatureRequestEditWithTemplateWithHttpInfo(String signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -901,12 +664,6 @@ public ApiResponse signatureRequestEditWithTemplate String localVarPath = "/signature_request/edit_with_template/{signature_request_id}" .replaceAll("\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestEditWithTemplateRequest.createFormData(); @@ -920,7 +677,7 @@ public ApiResponse signatureRequestEditWithTemplate "PUT", new ArrayList<>(), isFileTypeFound ? null : signatureRequestEditWithTemplateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -1434,38 +1191,18 @@ public ApiResponse signatureRequestListWithHttpInf * Releases a held SignatureRequest that was claimed and prepared from an [UnclaimedDraft](/api/reference/tag/Unclaimed-Draft). The owner of the Draft must indicate at Draft creation that the SignatureRequest created from the Draft should be held. Releasing the SignatureRequest will send requests to all signers. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestReleaseHoldExample.java * @param signatureRequestId The id of the SignatureRequest to release. (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public SignatureRequestGetResponse signatureRequestReleaseHold(String signatureRequestId, String idempotencyKey) throws ApiException { - return signatureRequestReleaseHoldWithHttpInfo(signatureRequestId, idempotencyKey).getData(); - } - - - /** - * @see SignatureRequestApi#signatureRequestReleaseHold(String, String) - */ public SignatureRequestGetResponse signatureRequestReleaseHold(String signatureRequestId) throws ApiException { - String idempotencyKey = null; - - return signatureRequestReleaseHoldWithHttpInfo(signatureRequestId, idempotencyKey).getData(); - } - - /** - * @see SignatureRequestApi#signatureRequestReleaseHoldWithHttpInfo(String, String) - */ - public ApiResponse signatureRequestReleaseHoldWithHttpInfo(String signatureRequestId) throws ApiException { - String idempotencyKey = null; - - return signatureRequestReleaseHoldWithHttpInfo(signatureRequestId, idempotencyKey); + return signatureRequestReleaseHoldWithHttpInfo(signatureRequestId).getData(); } @@ -1474,18 +1211,17 @@ public ApiResponse signatureRequestReleaseHoldWithH * Releases a held SignatureRequest that was claimed and prepared from an [UnclaimedDraft](/api/reference/tag/Unclaimed-Draft). The owner of the Draft must indicate at Draft creation that the SignatureRequest created from the Draft should be held. Releasing the SignatureRequest will send requests to all signers. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestReleaseHoldExample.java * @param signatureRequestId The id of the SignatureRequest to release. (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse signatureRequestReleaseHoldWithHttpInfo(String signatureRequestId, String idempotencyKey) throws ApiException { + public ApiResponse signatureRequestReleaseHoldWithHttpInfo(String signatureRequestId) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -1496,12 +1232,6 @@ public ApiResponse signatureRequestReleaseHoldWithH String localVarPath = "/signature_request/release_hold/{signature_request_id}" .replaceAll("\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = new HashMap(); @@ -1515,7 +1245,7 @@ public ApiResponse signatureRequestReleaseHoldWithH "POST", new ArrayList<>(), null, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -1531,38 +1261,18 @@ public ApiResponse signatureRequestReleaseHoldWithH * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestRemindExample.java * @param signatureRequestId The id of the SignatureRequest to send a reminder for. (required) * @param signatureRequestRemindRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public SignatureRequestGetResponse signatureRequestRemind(String signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, String idempotencyKey) throws ApiException { - return signatureRequestRemindWithHttpInfo(signatureRequestId, signatureRequestRemindRequest, idempotencyKey).getData(); - } - - - /** - * @see SignatureRequestApi#signatureRequestRemind(String, SignatureRequestRemindRequest, String) - */ public SignatureRequestGetResponse signatureRequestRemind(String signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest) throws ApiException { - String idempotencyKey = null; - - return signatureRequestRemindWithHttpInfo(signatureRequestId, signatureRequestRemindRequest, idempotencyKey).getData(); - } - - /** - * @see SignatureRequestApi#signatureRequestRemindWithHttpInfo(String, SignatureRequestRemindRequest, String) - */ - public ApiResponse signatureRequestRemindWithHttpInfo(String signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest) throws ApiException { - String idempotencyKey = null; - - return signatureRequestRemindWithHttpInfo(signatureRequestId, signatureRequestRemindRequest, idempotencyKey); + return signatureRequestRemindWithHttpInfo(signatureRequestId, signatureRequestRemindRequest).getData(); } @@ -1572,18 +1282,17 @@ public ApiResponse signatureRequestRemindWithHttpIn * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestRemindExample.java * @param signatureRequestId The id of the SignatureRequest to send a reminder for. (required) * @param signatureRequestRemindRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse signatureRequestRemindWithHttpInfo(String signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest, String idempotencyKey) throws ApiException { + public ApiResponse signatureRequestRemindWithHttpInfo(String signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -1597,12 +1306,6 @@ public ApiResponse signatureRequestRemindWithHttpIn String localVarPath = "/signature_request/remind/{signature_request_id}" .replaceAll("\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestRemindRequest.createFormData(); @@ -1616,7 +1319,7 @@ public ApiResponse signatureRequestRemindWithHttpIn "POST", new ArrayList<>(), isFileTypeFound ? null : signatureRequestRemindRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -1631,37 +1334,17 @@ public ApiResponse signatureRequestRemindWithHttpIn * Removes your access to a completed signature request. This action is **not reversible**. The signature request must be fully executed by all parties (signed or declined to sign). Other parties will continue to maintain access to the completed signature request document(s). Unlike /signature_request/cancel, this endpoint is synchronous and your access will be immediately removed. Upon successful removal, this endpoint will return a 200 OK response. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestRemoveExample.java * @param signatureRequestId The id of the SignatureRequest to remove. (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public void signatureRequestRemove(String signatureRequestId, String idempotencyKey) throws ApiException { - signatureRequestRemoveWithHttpInfo(signatureRequestId, idempotencyKey); - } - - - /** - * @see SignatureRequestApi#signatureRequestRemove(String, String) - */ public void signatureRequestRemove(String signatureRequestId) throws ApiException { - String idempotencyKey = null; - - signatureRequestRemoveWithHttpInfo(signatureRequestId, idempotencyKey); - } - - /** - * @see SignatureRequestApi#signatureRequestRemoveWithHttpInfo(String, String) - */ - public ApiResponse signatureRequestRemoveWithHttpInfo(String signatureRequestId) throws ApiException { - String idempotencyKey = null; - - return signatureRequestRemoveWithHttpInfo(signatureRequestId, idempotencyKey); + signatureRequestRemoveWithHttpInfo(signatureRequestId); } @@ -1670,18 +1353,17 @@ public ApiResponse signatureRequestRemoveWithHttpInfo(String signatureRequ * Removes your access to a completed signature request. This action is **not reversible**. The signature request must be fully executed by all parties (signed or declined to sign). Other parties will continue to maintain access to the completed signature request document(s). Unlike /signature_request/cancel, this endpoint is synchronous and your access will be immediately removed. Upon successful removal, this endpoint will return a 200 OK response. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestRemoveExample.java * @param signatureRequestId The id of the SignatureRequest to remove. (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse signatureRequestRemoveWithHttpInfo(String signatureRequestId, String idempotencyKey) throws ApiException { + public ApiResponse signatureRequestRemoveWithHttpInfo(String signatureRequestId) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -1692,12 +1374,6 @@ public ApiResponse signatureRequestRemoveWithHttpInfo(String signatureRequ String localVarPath = "/signature_request/remove/{signature_request_id}" .replaceAll("\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = new HashMap(); @@ -1710,7 +1386,7 @@ public ApiResponse signatureRequestRemoveWithHttpInfo(String signatureRequ "POST", new ArrayList<>(), null, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -1725,38 +1401,18 @@ public ApiResponse signatureRequestRemoveWithHttpInfo(String signatureRequ * Creates and sends a new SignatureRequest with the submitted documents. If `form_fields_per_document` is not specified, a signature page will be affixed where all signers will be required to add their signature, signifying their agreement to all contained documents. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestSendExample.java * @param signatureRequestSendRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public SignatureRequestGetResponse signatureRequestSend(SignatureRequestSendRequest signatureRequestSendRequest, String idempotencyKey) throws ApiException { - return signatureRequestSendWithHttpInfo(signatureRequestSendRequest, idempotencyKey).getData(); - } - - - /** - * @see SignatureRequestApi#signatureRequestSend(SignatureRequestSendRequest, String) - */ public SignatureRequestGetResponse signatureRequestSend(SignatureRequestSendRequest signatureRequestSendRequest) throws ApiException { - String idempotencyKey = null; - - return signatureRequestSendWithHttpInfo(signatureRequestSendRequest, idempotencyKey).getData(); - } - - /** - * @see SignatureRequestApi#signatureRequestSendWithHttpInfo(SignatureRequestSendRequest, String) - */ - public ApiResponse signatureRequestSendWithHttpInfo(SignatureRequestSendRequest signatureRequestSendRequest) throws ApiException { - String idempotencyKey = null; - - return signatureRequestSendWithHttpInfo(signatureRequestSendRequest, idempotencyKey); + return signatureRequestSendWithHttpInfo(signatureRequestSendRequest).getData(); } @@ -1765,30 +1421,23 @@ public ApiResponse signatureRequestSendWithHttpInfo * Creates and sends a new SignatureRequest with the submitted documents. If `form_fields_per_document` is not specified, a signature page will be affixed where all signers will be required to add their signature, signifying their agreement to all contained documents. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestSendExample.java * @param signatureRequestSendRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse signatureRequestSendWithHttpInfo(SignatureRequestSendRequest signatureRequestSendRequest, String idempotencyKey) throws ApiException { + public ApiResponse signatureRequestSendWithHttpInfo(SignatureRequestSendRequest signatureRequestSendRequest) throws ApiException { // Check required parameters if (signatureRequestSendRequest == null) { throw new ApiException(400, "Missing the required parameter 'signatureRequestSendRequest' when calling signatureRequestSend"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestSendRequest.createFormData(); @@ -1802,7 +1451,7 @@ public ApiResponse signatureRequestSendWithHttpInfo "POST", new ArrayList<>(), isFileTypeFound ? null : signatureRequestSendRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -1817,38 +1466,18 @@ public ApiResponse signatureRequestSendWithHttpInfo * Creates and sends a new SignatureRequest based off of the Template(s) specified with the `template_ids` parameter. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestSendWithTemplateExample.java * @param signatureRequestSendWithTemplateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public SignatureRequestGetResponse signatureRequestSendWithTemplate(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, String idempotencyKey) throws ApiException { - return signatureRequestSendWithTemplateWithHttpInfo(signatureRequestSendWithTemplateRequest, idempotencyKey).getData(); - } - - - /** - * @see SignatureRequestApi#signatureRequestSendWithTemplate(SignatureRequestSendWithTemplateRequest, String) - */ public SignatureRequestGetResponse signatureRequestSendWithTemplate(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest) throws ApiException { - String idempotencyKey = null; - - return signatureRequestSendWithTemplateWithHttpInfo(signatureRequestSendWithTemplateRequest, idempotencyKey).getData(); - } - - /** - * @see SignatureRequestApi#signatureRequestSendWithTemplateWithHttpInfo(SignatureRequestSendWithTemplateRequest, String) - */ - public ApiResponse signatureRequestSendWithTemplateWithHttpInfo(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest) throws ApiException { - String idempotencyKey = null; - - return signatureRequestSendWithTemplateWithHttpInfo(signatureRequestSendWithTemplateRequest, idempotencyKey); + return signatureRequestSendWithTemplateWithHttpInfo(signatureRequestSendWithTemplateRequest).getData(); } @@ -1857,30 +1486,23 @@ public ApiResponse signatureRequestSendWithTemplate * Creates and sends a new SignatureRequest based off of the Template(s) specified with the `template_ids` parameter. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestSendWithTemplateExample.java * @param signatureRequestSendWithTemplateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse signatureRequestSendWithTemplateWithHttpInfo(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest, String idempotencyKey) throws ApiException { + public ApiResponse signatureRequestSendWithTemplateWithHttpInfo(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest) throws ApiException { // Check required parameters if (signatureRequestSendWithTemplateRequest == null) { throw new ApiException(400, "Missing the required parameter 'signatureRequestSendWithTemplateRequest' when calling signatureRequestSendWithTemplate"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestSendWithTemplateRequest.createFormData(); @@ -1894,7 +1516,7 @@ public ApiResponse signatureRequestSendWithTemplate "POST", new ArrayList<>(), isFileTypeFound ? null : signatureRequestSendWithTemplateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -1910,38 +1532,18 @@ public ApiResponse signatureRequestSendWithTemplate * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestUpdateExample.java * @param signatureRequestId The id of the SignatureRequest to update. (required) * @param signatureRequestUpdateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public SignatureRequestGetResponse signatureRequestUpdate(String signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, String idempotencyKey) throws ApiException { - return signatureRequestUpdateWithHttpInfo(signatureRequestId, signatureRequestUpdateRequest, idempotencyKey).getData(); - } - - - /** - * @see SignatureRequestApi#signatureRequestUpdate(String, SignatureRequestUpdateRequest, String) - */ public SignatureRequestGetResponse signatureRequestUpdate(String signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest) throws ApiException { - String idempotencyKey = null; - - return signatureRequestUpdateWithHttpInfo(signatureRequestId, signatureRequestUpdateRequest, idempotencyKey).getData(); - } - - /** - * @see SignatureRequestApi#signatureRequestUpdateWithHttpInfo(String, SignatureRequestUpdateRequest, String) - */ - public ApiResponse signatureRequestUpdateWithHttpInfo(String signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest) throws ApiException { - String idempotencyKey = null; - - return signatureRequestUpdateWithHttpInfo(signatureRequestId, signatureRequestUpdateRequest, idempotencyKey); + return signatureRequestUpdateWithHttpInfo(signatureRequestId, signatureRequestUpdateRequest).getData(); } @@ -1951,18 +1553,17 @@ public ApiResponse signatureRequestUpdateWithHttpIn * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/SignatureRequestUpdateExample.java * @param signatureRequestId The id of the SignatureRequest to update. (required) * @param signatureRequestUpdateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse signatureRequestUpdateWithHttpInfo(String signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest, String idempotencyKey) throws ApiException { + public ApiResponse signatureRequestUpdateWithHttpInfo(String signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -1976,12 +1577,6 @@ public ApiResponse signatureRequestUpdateWithHttpIn String localVarPath = "/signature_request/update/{signature_request_id}" .replaceAll("\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = signatureRequestUpdateRequest.createFormData(); @@ -1995,7 +1590,7 @@ public ApiResponse signatureRequestUpdateWithHttpIn "POST", new ArrayList<>(), isFileTypeFound ? null : signatureRequestUpdateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/TeamApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/TeamApi.java index db93089b8..a2d67bc45 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/TeamApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/TeamApi.java @@ -61,58 +61,37 @@ public void setApiClient(ApiClient apiClient) { * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TeamAddMemberExample.java * @param teamAddMemberRequest (required) * @param teamId The id of the team. (optional) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return TeamGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public TeamGetResponse teamAddMember(TeamAddMemberRequest teamAddMemberRequest, String teamId, String idempotencyKey) throws ApiException { - return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId, idempotencyKey).getData(); + public TeamGetResponse teamAddMember(TeamAddMemberRequest teamAddMemberRequest, String teamId) throws ApiException { + return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId).getData(); } /** - * @see TeamApi#teamAddMember(TeamAddMemberRequest, String, String) + * @see TeamApi#teamAddMember(TeamAddMemberRequest, String) */ public TeamGetResponse teamAddMember(TeamAddMemberRequest teamAddMemberRequest) throws ApiException { String teamId = null; - String idempotencyKey = null; - return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId, idempotencyKey).getData(); + return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId).getData(); } /** - * @see TeamApi#teamAddMemberWithHttpInfo(TeamAddMemberRequest, String, String) + * @see TeamApi#teamAddMemberWithHttpInfo(TeamAddMemberRequest, String) */ public ApiResponse teamAddMemberWithHttpInfo(TeamAddMemberRequest teamAddMemberRequest) throws ApiException { String teamId = null; - String idempotencyKey = null; - - return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId, idempotencyKey); - } - - /** - * @see TeamApi#teamAddMember(TeamAddMemberRequest, String, String) - */ - public TeamGetResponse teamAddMember(TeamAddMemberRequest teamAddMemberRequest, String teamId) throws ApiException { - String idempotencyKey = null; - - return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId, idempotencyKey).getData(); - } - - /** - * @see TeamApi#teamAddMemberWithHttpInfo(TeamAddMemberRequest, String, String) - */ - public ApiResponse teamAddMemberWithHttpInfo(TeamAddMemberRequest teamAddMemberRequest, String teamId) throws ApiException { - String idempotencyKey = null; - return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId, idempotencyKey); + return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId); } @@ -122,18 +101,17 @@ public ApiResponse teamAddMemberWithHttpInfo(TeamAddMemberReque * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TeamAddMemberExample.java * @param teamAddMemberRequest (required) * @param teamId The id of the team. (optional) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<TeamGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse teamAddMemberWithHttpInfo(TeamAddMemberRequest teamAddMemberRequest, String teamId, String idempotencyKey) throws ApiException { + public ApiResponse teamAddMemberWithHttpInfo(TeamAddMemberRequest teamAddMemberRequest, String teamId) throws ApiException { // Check required parameters if (teamAddMemberRequest == null) { @@ -145,12 +123,6 @@ public ApiResponse teamAddMemberWithHttpInfo(TeamAddMemberReque apiClient.parameterToPairs("", "team_id", teamId) ); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = teamAddMemberRequest.createFormData(); @@ -164,7 +136,7 @@ public ApiResponse teamAddMemberWithHttpInfo(TeamAddMemberReque "PUT", localVarQueryParams, isFileTypeFound ? null : teamAddMemberRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -179,38 +151,18 @@ public ApiResponse teamAddMemberWithHttpInfo(TeamAddMemberReque * Creates a new Team and makes you a member. You must not currently belong to a Team to invoke. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TeamCreateExample.java * @param teamCreateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return TeamGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public TeamGetResponse teamCreate(TeamCreateRequest teamCreateRequest, String idempotencyKey) throws ApiException { - return teamCreateWithHttpInfo(teamCreateRequest, idempotencyKey).getData(); - } - - - /** - * @see TeamApi#teamCreate(TeamCreateRequest, String) - */ public TeamGetResponse teamCreate(TeamCreateRequest teamCreateRequest) throws ApiException { - String idempotencyKey = null; - - return teamCreateWithHttpInfo(teamCreateRequest, idempotencyKey).getData(); - } - - /** - * @see TeamApi#teamCreateWithHttpInfo(TeamCreateRequest, String) - */ - public ApiResponse teamCreateWithHttpInfo(TeamCreateRequest teamCreateRequest) throws ApiException { - String idempotencyKey = null; - - return teamCreateWithHttpInfo(teamCreateRequest, idempotencyKey); + return teamCreateWithHttpInfo(teamCreateRequest).getData(); } @@ -219,30 +171,23 @@ public ApiResponse teamCreateWithHttpInfo(TeamCreateRequest tea * Creates a new Team and makes you a member. You must not currently belong to a Team to invoke. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TeamCreateExample.java * @param teamCreateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<TeamGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse teamCreateWithHttpInfo(TeamCreateRequest teamCreateRequest, String idempotencyKey) throws ApiException { + public ApiResponse teamCreateWithHttpInfo(TeamCreateRequest teamCreateRequest) throws ApiException { // Check required parameters if (teamCreateRequest == null) { throw new ApiException(400, "Missing the required parameter 'teamCreateRequest' when calling teamCreate"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = teamCreateRequest.createFormData(); @@ -256,7 +201,7 @@ public ApiResponse teamCreateWithHttpInfo(TeamCreateRequest tea "POST", new ArrayList<>(), isFileTypeFound ? null : teamCreateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -677,38 +622,18 @@ public ApiResponse teamMembersWithHttpInfo(String teamId, I * Removes the provided user Account from your Team. If the Account had an outstanding invitation to your Team, the invitation will be expired. If you choose to transfer documents from the removed Account to an Account provided in the `new_owner_email_address` parameter (available only for Enterprise plans), the response status code will be 201, which indicates that your request has been queued but not fully executed. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TeamRemoveMemberExample.java * @param teamRemoveMemberRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return TeamGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public TeamGetResponse teamRemoveMember(TeamRemoveMemberRequest teamRemoveMemberRequest, String idempotencyKey) throws ApiException { - return teamRemoveMemberWithHttpInfo(teamRemoveMemberRequest, idempotencyKey).getData(); - } - - - /** - * @see TeamApi#teamRemoveMember(TeamRemoveMemberRequest, String) - */ public TeamGetResponse teamRemoveMember(TeamRemoveMemberRequest teamRemoveMemberRequest) throws ApiException { - String idempotencyKey = null; - - return teamRemoveMemberWithHttpInfo(teamRemoveMemberRequest, idempotencyKey).getData(); - } - - /** - * @see TeamApi#teamRemoveMemberWithHttpInfo(TeamRemoveMemberRequest, String) - */ - public ApiResponse teamRemoveMemberWithHttpInfo(TeamRemoveMemberRequest teamRemoveMemberRequest) throws ApiException { - String idempotencyKey = null; - - return teamRemoveMemberWithHttpInfo(teamRemoveMemberRequest, idempotencyKey); + return teamRemoveMemberWithHttpInfo(teamRemoveMemberRequest).getData(); } @@ -717,30 +642,23 @@ public ApiResponse teamRemoveMemberWithHttpInfo(TeamRemoveMembe * Removes the provided user Account from your Team. If the Account had an outstanding invitation to your Team, the invitation will be expired. If you choose to transfer documents from the removed Account to an Account provided in the `new_owner_email_address` parameter (available only for Enterprise plans), the response status code will be 201, which indicates that your request has been queued but not fully executed. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TeamRemoveMemberExample.java * @param teamRemoveMemberRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<TeamGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse teamRemoveMemberWithHttpInfo(TeamRemoveMemberRequest teamRemoveMemberRequest, String idempotencyKey) throws ApiException { + public ApiResponse teamRemoveMemberWithHttpInfo(TeamRemoveMemberRequest teamRemoveMemberRequest) throws ApiException { // Check required parameters if (teamRemoveMemberRequest == null) { throw new ApiException(400, "Missing the required parameter 'teamRemoveMemberRequest' when calling teamRemoveMember"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = teamRemoveMemberRequest.createFormData(); @@ -754,7 +672,7 @@ public ApiResponse teamRemoveMemberWithHttpInfo(TeamRemoveMembe "POST", new ArrayList<>(), isFileTypeFound ? null : teamRemoveMemberRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -893,38 +811,18 @@ public ApiResponse teamSubTeamsWithHttpInfo(String teamId, * Updates the name of your Team. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TeamUpdateExample.java * @param teamUpdateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return TeamGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public TeamGetResponse teamUpdate(TeamUpdateRequest teamUpdateRequest, String idempotencyKey) throws ApiException { - return teamUpdateWithHttpInfo(teamUpdateRequest, idempotencyKey).getData(); - } - - - /** - * @see TeamApi#teamUpdate(TeamUpdateRequest, String) - */ public TeamGetResponse teamUpdate(TeamUpdateRequest teamUpdateRequest) throws ApiException { - String idempotencyKey = null; - - return teamUpdateWithHttpInfo(teamUpdateRequest, idempotencyKey).getData(); - } - - /** - * @see TeamApi#teamUpdateWithHttpInfo(TeamUpdateRequest, String) - */ - public ApiResponse teamUpdateWithHttpInfo(TeamUpdateRequest teamUpdateRequest) throws ApiException { - String idempotencyKey = null; - - return teamUpdateWithHttpInfo(teamUpdateRequest, idempotencyKey); + return teamUpdateWithHttpInfo(teamUpdateRequest).getData(); } @@ -933,30 +831,23 @@ public ApiResponse teamUpdateWithHttpInfo(TeamUpdateRequest tea * Updates the name of your Team. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TeamUpdateExample.java * @param teamUpdateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<TeamGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse teamUpdateWithHttpInfo(TeamUpdateRequest teamUpdateRequest, String idempotencyKey) throws ApiException { + public ApiResponse teamUpdateWithHttpInfo(TeamUpdateRequest teamUpdateRequest) throws ApiException { // Check required parameters if (teamUpdateRequest == null) { throw new ApiException(400, "Missing the required parameter 'teamUpdateRequest' when calling teamUpdate"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = teamUpdateRequest.createFormData(); @@ -970,7 +861,7 @@ public ApiResponse teamUpdateWithHttpInfo(TeamUpdateRequest tea "PUT", new ArrayList<>(), isFileTypeFound ? null : teamUpdateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/TemplateApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/TemplateApi.java index ca5a56865..b26de1c3a 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/TemplateApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/TemplateApi.java @@ -65,38 +65,18 @@ public void setApiClient(ApiClient apiClient) { * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TemplateAddUserExample.java * @param templateId The id of the Template to give the Account access to. (required) * @param templateAddUserRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return TemplateGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public TemplateGetResponse templateAddUser(String templateId, TemplateAddUserRequest templateAddUserRequest, String idempotencyKey) throws ApiException { - return templateAddUserWithHttpInfo(templateId, templateAddUserRequest, idempotencyKey).getData(); - } - - - /** - * @see TemplateApi#templateAddUser(String, TemplateAddUserRequest, String) - */ public TemplateGetResponse templateAddUser(String templateId, TemplateAddUserRequest templateAddUserRequest) throws ApiException { - String idempotencyKey = null; - - return templateAddUserWithHttpInfo(templateId, templateAddUserRequest, idempotencyKey).getData(); - } - - /** - * @see TemplateApi#templateAddUserWithHttpInfo(String, TemplateAddUserRequest, String) - */ - public ApiResponse templateAddUserWithHttpInfo(String templateId, TemplateAddUserRequest templateAddUserRequest) throws ApiException { - String idempotencyKey = null; - - return templateAddUserWithHttpInfo(templateId, templateAddUserRequest, idempotencyKey); + return templateAddUserWithHttpInfo(templateId, templateAddUserRequest).getData(); } @@ -106,18 +86,17 @@ public ApiResponse templateAddUserWithHttpInfo(String templ * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TemplateAddUserExample.java * @param templateId The id of the Template to give the Account access to. (required) * @param templateAddUserRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<TemplateGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse templateAddUserWithHttpInfo(String templateId, TemplateAddUserRequest templateAddUserRequest, String idempotencyKey) throws ApiException { + public ApiResponse templateAddUserWithHttpInfo(String templateId, TemplateAddUserRequest templateAddUserRequest) throws ApiException { // Check required parameters if (templateId == null) { @@ -131,12 +110,6 @@ public ApiResponse templateAddUserWithHttpInfo(String templ String localVarPath = "/template/add_user/{template_id}" .replaceAll("\\{template_id}", apiClient.escapeString(templateId.toString())); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = templateAddUserRequest.createFormData(); @@ -150,7 +123,7 @@ public ApiResponse templateAddUserWithHttpInfo(String templ "POST", new ArrayList<>(), isFileTypeFound ? null : templateAddUserRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -165,38 +138,18 @@ public ApiResponse templateAddUserWithHttpInfo(String templ * Creates a template that can be used in future signature requests. If `client_id` is provided, the template will be created as an embedded template. Embedded templates can be used for embedded signature requests and can be edited later by generating a new `edit_url` with [/embedded/edit_url/{template_id}](/api/reference/operation/embeddedEditUrl/). Template creation may complete asynchronously after the initial request is accepted. It is recommended that a callback be implemented to listen for the callback event. A `template_created` event indicates the template is ready to use, while a `template_error` event indicates there was a problem while creating the template. If a callback handler has been configured and the event has not been received within 60 minutes of making the call, check the status of the request in the API dashboard and retry the request if necessary. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TemplateCreateExample.java * @param templateCreateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return TemplateCreateResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public TemplateCreateResponse templateCreate(TemplateCreateRequest templateCreateRequest, String idempotencyKey) throws ApiException { - return templateCreateWithHttpInfo(templateCreateRequest, idempotencyKey).getData(); - } - - - /** - * @see TemplateApi#templateCreate(TemplateCreateRequest, String) - */ public TemplateCreateResponse templateCreate(TemplateCreateRequest templateCreateRequest) throws ApiException { - String idempotencyKey = null; - - return templateCreateWithHttpInfo(templateCreateRequest, idempotencyKey).getData(); - } - - /** - * @see TemplateApi#templateCreateWithHttpInfo(TemplateCreateRequest, String) - */ - public ApiResponse templateCreateWithHttpInfo(TemplateCreateRequest templateCreateRequest) throws ApiException { - String idempotencyKey = null; - - return templateCreateWithHttpInfo(templateCreateRequest, idempotencyKey); + return templateCreateWithHttpInfo(templateCreateRequest).getData(); } @@ -205,30 +158,23 @@ public ApiResponse templateCreateWithHttpInfo(TemplateCr * Creates a template that can be used in future signature requests. If `client_id` is provided, the template will be created as an embedded template. Embedded templates can be used for embedded signature requests and can be edited later by generating a new `edit_url` with [/embedded/edit_url/{template_id}](/api/reference/operation/embeddedEditUrl/). Template creation may complete asynchronously after the initial request is accepted. It is recommended that a callback be implemented to listen for the callback event. A `template_created` event indicates the template is ready to use, while a `template_error` event indicates there was a problem while creating the template. If a callback handler has been configured and the event has not been received within 60 minutes of making the call, check the status of the request in the API dashboard and retry the request if necessary. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TemplateCreateExample.java * @param templateCreateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<TemplateCreateResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse templateCreateWithHttpInfo(TemplateCreateRequest templateCreateRequest, String idempotencyKey) throws ApiException { + public ApiResponse templateCreateWithHttpInfo(TemplateCreateRequest templateCreateRequest) throws ApiException { // Check required parameters if (templateCreateRequest == null) { throw new ApiException(400, "Missing the required parameter 'templateCreateRequest' when calling templateCreate"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = templateCreateRequest.createFormData(); @@ -242,7 +188,7 @@ public ApiResponse templateCreateWithHttpInfo(TemplateCr "POST", new ArrayList<>(), isFileTypeFound ? null : templateCreateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -257,38 +203,18 @@ public ApiResponse templateCreateWithHttpInfo(TemplateCr * The first step in an embedded template workflow. Creates a draft template that can then be further set up in the template 'edit' stage. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TemplateCreateEmbeddedDraftExample.java * @param templateCreateEmbeddedDraftRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return TemplateCreateEmbeddedDraftResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public TemplateCreateEmbeddedDraftResponse templateCreateEmbeddedDraft(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, String idempotencyKey) throws ApiException { - return templateCreateEmbeddedDraftWithHttpInfo(templateCreateEmbeddedDraftRequest, idempotencyKey).getData(); - } - - - /** - * @see TemplateApi#templateCreateEmbeddedDraft(TemplateCreateEmbeddedDraftRequest, String) - */ public TemplateCreateEmbeddedDraftResponse templateCreateEmbeddedDraft(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest) throws ApiException { - String idempotencyKey = null; - - return templateCreateEmbeddedDraftWithHttpInfo(templateCreateEmbeddedDraftRequest, idempotencyKey).getData(); - } - - /** - * @see TemplateApi#templateCreateEmbeddedDraftWithHttpInfo(TemplateCreateEmbeddedDraftRequest, String) - */ - public ApiResponse templateCreateEmbeddedDraftWithHttpInfo(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest) throws ApiException { - String idempotencyKey = null; - - return templateCreateEmbeddedDraftWithHttpInfo(templateCreateEmbeddedDraftRequest, idempotencyKey); + return templateCreateEmbeddedDraftWithHttpInfo(templateCreateEmbeddedDraftRequest).getData(); } @@ -297,30 +223,23 @@ public ApiResponse templateCreateEmbeddedDr * The first step in an embedded template workflow. Creates a draft template that can then be further set up in the template 'edit' stage. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TemplateCreateEmbeddedDraftExample.java * @param templateCreateEmbeddedDraftRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<TemplateCreateEmbeddedDraftResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse templateCreateEmbeddedDraftWithHttpInfo(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest, String idempotencyKey) throws ApiException { + public ApiResponse templateCreateEmbeddedDraftWithHttpInfo(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest) throws ApiException { // Check required parameters if (templateCreateEmbeddedDraftRequest == null) { throw new ApiException(400, "Missing the required parameter 'templateCreateEmbeddedDraftRequest' when calling templateCreateEmbeddedDraft"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = templateCreateEmbeddedDraftRequest.createFormData(); @@ -334,7 +253,7 @@ public ApiResponse templateCreateEmbeddedDr "POST", new ArrayList<>(), isFileTypeFound ? null : templateCreateEmbeddedDraftRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -349,37 +268,17 @@ public ApiResponse templateCreateEmbeddedDr * Completely deletes the template specified from the account. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TemplateDeleteExample.java * @param templateId The id of the Template to delete. (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public void templateDelete(String templateId, String idempotencyKey) throws ApiException { - templateDeleteWithHttpInfo(templateId, idempotencyKey); - } - - - /** - * @see TemplateApi#templateDelete(String, String) - */ public void templateDelete(String templateId) throws ApiException { - String idempotencyKey = null; - - templateDeleteWithHttpInfo(templateId, idempotencyKey); - } - - /** - * @see TemplateApi#templateDeleteWithHttpInfo(String, String) - */ - public ApiResponse templateDeleteWithHttpInfo(String templateId) throws ApiException { - String idempotencyKey = null; - - return templateDeleteWithHttpInfo(templateId, idempotencyKey); + templateDeleteWithHttpInfo(templateId); } @@ -388,18 +287,17 @@ public ApiResponse templateDeleteWithHttpInfo(String templateId) throws Ap * Completely deletes the template specified from the account. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TemplateDeleteExample.java * @param templateId The id of the Template to delete. (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse templateDeleteWithHttpInfo(String templateId, String idempotencyKey) throws ApiException { + public ApiResponse templateDeleteWithHttpInfo(String templateId) throws ApiException { // Check required parameters if (templateId == null) { @@ -410,12 +308,6 @@ public ApiResponse templateDeleteWithHttpInfo(String templateId, String id String localVarPath = "/template/delete/{template_id}" .replaceAll("\\{template_id}", apiClient.escapeString(templateId.toString())); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = new HashMap(); @@ -428,7 +320,7 @@ public ApiResponse templateDeleteWithHttpInfo(String templateId, String id "POST", new ArrayList<>(), null, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -940,38 +832,18 @@ public ApiResponse templateListWithHttpInfo(String account * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TemplateRemoveUserExample.java * @param templateId The id of the Template to remove the Account's access to. (required) * @param templateRemoveUserRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return TemplateGetResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public TemplateGetResponse templateRemoveUser(String templateId, TemplateRemoveUserRequest templateRemoveUserRequest, String idempotencyKey) throws ApiException { - return templateRemoveUserWithHttpInfo(templateId, templateRemoveUserRequest, idempotencyKey).getData(); - } - - - /** - * @see TemplateApi#templateRemoveUser(String, TemplateRemoveUserRequest, String) - */ public TemplateGetResponse templateRemoveUser(String templateId, TemplateRemoveUserRequest templateRemoveUserRequest) throws ApiException { - String idempotencyKey = null; - - return templateRemoveUserWithHttpInfo(templateId, templateRemoveUserRequest, idempotencyKey).getData(); - } - - /** - * @see TemplateApi#templateRemoveUserWithHttpInfo(String, TemplateRemoveUserRequest, String) - */ - public ApiResponse templateRemoveUserWithHttpInfo(String templateId, TemplateRemoveUserRequest templateRemoveUserRequest) throws ApiException { - String idempotencyKey = null; - - return templateRemoveUserWithHttpInfo(templateId, templateRemoveUserRequest, idempotencyKey); + return templateRemoveUserWithHttpInfo(templateId, templateRemoveUserRequest).getData(); } @@ -981,18 +853,17 @@ public ApiResponse templateRemoveUserWithHttpInfo(String te * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TemplateRemoveUserExample.java * @param templateId The id of the Template to remove the Account's access to. (required) * @param templateRemoveUserRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<TemplateGetResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse templateRemoveUserWithHttpInfo(String templateId, TemplateRemoveUserRequest templateRemoveUserRequest, String idempotencyKey) throws ApiException { + public ApiResponse templateRemoveUserWithHttpInfo(String templateId, TemplateRemoveUserRequest templateRemoveUserRequest) throws ApiException { // Check required parameters if (templateId == null) { @@ -1006,12 +877,6 @@ public ApiResponse templateRemoveUserWithHttpInfo(String te String localVarPath = "/template/remove_user/{template_id}" .replaceAll("\\{template_id}", apiClient.escapeString(templateId.toString())); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = templateRemoveUserRequest.createFormData(); @@ -1025,7 +890,7 @@ public ApiResponse templateRemoveUserWithHttpInfo(String te "POST", new ArrayList<>(), isFileTypeFound ? null : templateRemoveUserRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -1041,38 +906,18 @@ public ApiResponse templateRemoveUserWithHttpInfo(String te * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TemplateUpdateFilesExample.java * @param templateId The ID of the template whose files to update. (required) * @param templateUpdateFilesRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return TemplateUpdateFilesResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public TemplateUpdateFilesResponse templateUpdateFiles(String templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, String idempotencyKey) throws ApiException { - return templateUpdateFilesWithHttpInfo(templateId, templateUpdateFilesRequest, idempotencyKey).getData(); - } - - - /** - * @see TemplateApi#templateUpdateFiles(String, TemplateUpdateFilesRequest, String) - */ public TemplateUpdateFilesResponse templateUpdateFiles(String templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest) throws ApiException { - String idempotencyKey = null; - - return templateUpdateFilesWithHttpInfo(templateId, templateUpdateFilesRequest, idempotencyKey).getData(); - } - - /** - * @see TemplateApi#templateUpdateFilesWithHttpInfo(String, TemplateUpdateFilesRequest, String) - */ - public ApiResponse templateUpdateFilesWithHttpInfo(String templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest) throws ApiException { - String idempotencyKey = null; - - return templateUpdateFilesWithHttpInfo(templateId, templateUpdateFilesRequest, idempotencyKey); + return templateUpdateFilesWithHttpInfo(templateId, templateUpdateFilesRequest).getData(); } @@ -1082,18 +927,17 @@ public ApiResponse templateUpdateFilesWithHttpInfo( * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/TemplateUpdateFilesExample.java * @param templateId The ID of the template whose files to update. (required) * @param templateUpdateFilesRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<TemplateUpdateFilesResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse templateUpdateFilesWithHttpInfo(String templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest, String idempotencyKey) throws ApiException { + public ApiResponse templateUpdateFilesWithHttpInfo(String templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest) throws ApiException { // Check required parameters if (templateId == null) { @@ -1107,12 +951,6 @@ public ApiResponse templateUpdateFilesWithHttpInfo( String localVarPath = "/template/update_files/{template_id}" .replaceAll("\\{template_id}", apiClient.escapeString(templateId.toString())); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = templateUpdateFilesRequest.createFormData(); @@ -1126,7 +964,7 @@ public ApiResponse templateUpdateFilesWithHttpInfo( "POST", new ArrayList<>(), isFileTypeFound ? null : templateUpdateFilesRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/UnclaimedDraftApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/UnclaimedDraftApi.java index 08d595c23..f2ce33706 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/UnclaimedDraftApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/UnclaimedDraftApi.java @@ -56,38 +56,18 @@ public void setApiClient(ApiClient apiClient) { * Creates a new Draft that can be claimed using the claim URL. The first authenticated user to access the URL will claim the Draft and will be shown either the \"Sign and send\" or the \"Request signature\" page with the Draft loaded. Subsequent access to the claim URL will result in a 404. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/UnclaimedDraftCreateExample.java * @param unclaimedDraftCreateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return UnclaimedDraftCreateResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public UnclaimedDraftCreateResponse unclaimedDraftCreate(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, String idempotencyKey) throws ApiException { - return unclaimedDraftCreateWithHttpInfo(unclaimedDraftCreateRequest, idempotencyKey).getData(); - } - - - /** - * @see UnclaimedDraftApi#unclaimedDraftCreate(UnclaimedDraftCreateRequest, String) - */ public UnclaimedDraftCreateResponse unclaimedDraftCreate(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest) throws ApiException { - String idempotencyKey = null; - - return unclaimedDraftCreateWithHttpInfo(unclaimedDraftCreateRequest, idempotencyKey).getData(); - } - - /** - * @see UnclaimedDraftApi#unclaimedDraftCreateWithHttpInfo(UnclaimedDraftCreateRequest, String) - */ - public ApiResponse unclaimedDraftCreateWithHttpInfo(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest) throws ApiException { - String idempotencyKey = null; - - return unclaimedDraftCreateWithHttpInfo(unclaimedDraftCreateRequest, idempotencyKey); + return unclaimedDraftCreateWithHttpInfo(unclaimedDraftCreateRequest).getData(); } @@ -96,30 +76,23 @@ public ApiResponse unclaimedDraftCreateWithHttpInf * Creates a new Draft that can be claimed using the claim URL. The first authenticated user to access the URL will claim the Draft and will be shown either the \"Sign and send\" or the \"Request signature\" page with the Draft loaded. Subsequent access to the claim URL will result in a 404. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/UnclaimedDraftCreateExample.java * @param unclaimedDraftCreateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<UnclaimedDraftCreateResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse unclaimedDraftCreateWithHttpInfo(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest, String idempotencyKey) throws ApiException { + public ApiResponse unclaimedDraftCreateWithHttpInfo(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest) throws ApiException { // Check required parameters if (unclaimedDraftCreateRequest == null) { throw new ApiException(400, "Missing the required parameter 'unclaimedDraftCreateRequest' when calling unclaimedDraftCreate"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = unclaimedDraftCreateRequest.createFormData(); @@ -133,7 +106,7 @@ public ApiResponse unclaimedDraftCreateWithHttpInf "POST", new ArrayList<>(), isFileTypeFound ? null : unclaimedDraftCreateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -148,38 +121,18 @@ public ApiResponse unclaimedDraftCreateWithHttpInf * Creates a new Draft that can be claimed and used in an embedded iFrame. The first authenticated user to access the URL will claim the Draft and will be shown the \"Request signature\" page with the Draft loaded. Subsequent access to the claim URL will result in a `404`. For this embedded endpoint the `requester_email_address` parameter is required. **NOTE:** Embedded unclaimed drafts can only be accessed in embedded iFrames whereas normal drafts can be used and accessed on Dropbox Sign. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.java * @param unclaimedDraftCreateEmbeddedRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return UnclaimedDraftCreateResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbedded(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, String idempotencyKey) throws ApiException { - return unclaimedDraftCreateEmbeddedWithHttpInfo(unclaimedDraftCreateEmbeddedRequest, idempotencyKey).getData(); - } - - - /** - * @see UnclaimedDraftApi#unclaimedDraftCreateEmbedded(UnclaimedDraftCreateEmbeddedRequest, String) - */ public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbedded(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest) throws ApiException { - String idempotencyKey = null; - - return unclaimedDraftCreateEmbeddedWithHttpInfo(unclaimedDraftCreateEmbeddedRequest, idempotencyKey).getData(); - } - - /** - * @see UnclaimedDraftApi#unclaimedDraftCreateEmbeddedWithHttpInfo(UnclaimedDraftCreateEmbeddedRequest, String) - */ - public ApiResponse unclaimedDraftCreateEmbeddedWithHttpInfo(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest) throws ApiException { - String idempotencyKey = null; - - return unclaimedDraftCreateEmbeddedWithHttpInfo(unclaimedDraftCreateEmbeddedRequest, idempotencyKey); + return unclaimedDraftCreateEmbeddedWithHttpInfo(unclaimedDraftCreateEmbeddedRequest).getData(); } @@ -188,30 +141,23 @@ public ApiResponse unclaimedDraftCreateEmbeddedWit * Creates a new Draft that can be claimed and used in an embedded iFrame. The first authenticated user to access the URL will claim the Draft and will be shown the \"Request signature\" page with the Draft loaded. Subsequent access to the claim URL will result in a `404`. For this embedded endpoint the `requester_email_address` parameter is required. **NOTE:** Embedded unclaimed drafts can only be accessed in embedded iFrames whereas normal drafts can be used and accessed on Dropbox Sign. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.java * @param unclaimedDraftCreateEmbeddedRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<UnclaimedDraftCreateResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse unclaimedDraftCreateEmbeddedWithHttpInfo(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest, String idempotencyKey) throws ApiException { + public ApiResponse unclaimedDraftCreateEmbeddedWithHttpInfo(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest) throws ApiException { // Check required parameters if (unclaimedDraftCreateEmbeddedRequest == null) { throw new ApiException(400, "Missing the required parameter 'unclaimedDraftCreateEmbeddedRequest' when calling unclaimedDraftCreateEmbedded"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = unclaimedDraftCreateEmbeddedRequest.createFormData(); @@ -225,7 +171,7 @@ public ApiResponse unclaimedDraftCreateEmbeddedWit "POST", new ArrayList<>(), isFileTypeFound ? null : unclaimedDraftCreateEmbeddedRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -240,38 +186,18 @@ public ApiResponse unclaimedDraftCreateEmbeddedWit * Creates a new Draft with a previously saved template(s) that can be claimed and used in an embedded iFrame. The first authenticated user to access the URL will claim the Draft and will be shown the \"Request signature\" page with the Draft loaded. Subsequent access to the claim URL will result in a `404`. For this embedded endpoint the `requester_email_address` parameter is required. **NOTE:** Embedded unclaimed drafts can only be accessed in embedded iFrames whereas normal drafts can be used and accessed on Dropbox Sign. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.java * @param unclaimedDraftCreateEmbeddedWithTemplateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return UnclaimedDraftCreateResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbeddedWithTemplate(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, String idempotencyKey) throws ApiException { - return unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(unclaimedDraftCreateEmbeddedWithTemplateRequest, idempotencyKey).getData(); - } - - - /** - * @see UnclaimedDraftApi#unclaimedDraftCreateEmbeddedWithTemplate(UnclaimedDraftCreateEmbeddedWithTemplateRequest, String) - */ public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbeddedWithTemplate(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest) throws ApiException { - String idempotencyKey = null; - - return unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(unclaimedDraftCreateEmbeddedWithTemplateRequest, idempotencyKey).getData(); - } - - /** - * @see UnclaimedDraftApi#unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(UnclaimedDraftCreateEmbeddedWithTemplateRequest, String) - */ - public ApiResponse unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest) throws ApiException { - String idempotencyKey = null; - - return unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(unclaimedDraftCreateEmbeddedWithTemplateRequest, idempotencyKey); + return unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(unclaimedDraftCreateEmbeddedWithTemplateRequest).getData(); } @@ -280,30 +206,23 @@ public ApiResponse unclaimedDraftCreateEmbeddedWit * Creates a new Draft with a previously saved template(s) that can be claimed and used in an embedded iFrame. The first authenticated user to access the URL will claim the Draft and will be shown the \"Request signature\" page with the Draft loaded. Subsequent access to the claim URL will result in a `404`. For this embedded endpoint the `requester_email_address` parameter is required. **NOTE:** Embedded unclaimed drafts can only be accessed in embedded iFrames whereas normal drafts can be used and accessed on Dropbox Sign. * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.java * @param unclaimedDraftCreateEmbeddedWithTemplateRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<UnclaimedDraftCreateResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest, String idempotencyKey) throws ApiException { + public ApiResponse unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest) throws ApiException { // Check required parameters if (unclaimedDraftCreateEmbeddedWithTemplateRequest == null) { throw new ApiException(400, "Missing the required parameter 'unclaimedDraftCreateEmbeddedWithTemplateRequest' when calling unclaimedDraftCreateEmbeddedWithTemplate"); } - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = unclaimedDraftCreateEmbeddedWithTemplateRequest.createFormData(); @@ -317,7 +236,7 @@ public ApiResponse unclaimedDraftCreateEmbeddedWit "POST", new ArrayList<>(), isFileTypeFound ? null : unclaimedDraftCreateEmbeddedWithTemplateRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, @@ -333,38 +252,18 @@ public ApiResponse unclaimedDraftCreateEmbeddedWit * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/UnclaimedDraftEditAndResendExample.java * @param signatureRequestId The ID of the signature request to edit and resend. (required) * @param unclaimedDraftEditAndResendRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return UnclaimedDraftCreateResponse * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public UnclaimedDraftCreateResponse unclaimedDraftEditAndResend(String signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, String idempotencyKey) throws ApiException { - return unclaimedDraftEditAndResendWithHttpInfo(signatureRequestId, unclaimedDraftEditAndResendRequest, idempotencyKey).getData(); - } - - - /** - * @see UnclaimedDraftApi#unclaimedDraftEditAndResend(String, UnclaimedDraftEditAndResendRequest, String) - */ public UnclaimedDraftCreateResponse unclaimedDraftEditAndResend(String signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest) throws ApiException { - String idempotencyKey = null; - - return unclaimedDraftEditAndResendWithHttpInfo(signatureRequestId, unclaimedDraftEditAndResendRequest, idempotencyKey).getData(); - } - - /** - * @see UnclaimedDraftApi#unclaimedDraftEditAndResendWithHttpInfo(String, UnclaimedDraftEditAndResendRequest, String) - */ - public ApiResponse unclaimedDraftEditAndResendWithHttpInfo(String signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest) throws ApiException { - String idempotencyKey = null; - - return unclaimedDraftEditAndResendWithHttpInfo(signatureRequestId, unclaimedDraftEditAndResendRequest, idempotencyKey); + return unclaimedDraftEditAndResendWithHttpInfo(signatureRequestId, unclaimedDraftEditAndResendRequest).getData(); } @@ -374,18 +273,17 @@ public ApiResponse unclaimedDraftEditAndResendWith * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/UnclaimedDraftEditAndResendExample.java * @param signatureRequestId The ID of the signature request to edit and resend. (required) * @param unclaimedDraftEditAndResendRequest (required) - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @return ApiResponse<UnclaimedDraftCreateResponse> * @throws ApiException if fails to make API call * @http.response.details - +
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
*/ - public ApiResponse unclaimedDraftEditAndResendWithHttpInfo(String signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest, String idempotencyKey) throws ApiException { + public ApiResponse unclaimedDraftEditAndResendWithHttpInfo(String signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -399,12 +297,6 @@ public ApiResponse unclaimedDraftEditAndResendWith String localVarPath = "/unclaimed_draft/edit_and_resend/{signature_request_id}" .replaceAll("\\{signature_request_id}", apiClient.escapeString(signatureRequestId.toString())); - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (idempotencyKey != null) { - localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); - } - String localVarAccept = apiClient.selectHeaderAccept("application/json"); Map localVarFormParams = new LinkedHashMap<>(); localVarFormParams = unclaimedDraftEditAndResendRequest.createFormData(); @@ -418,7 +310,7 @@ public ApiResponse unclaimedDraftEditAndResendWith "POST", new ArrayList<>(), isFileTypeFound ? null : unclaimedDraftEditAndResendRequest, - localVarHeaderParams, + new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, diff --git a/sdks/node/api/accountApi.ts b/sdks/node/api/accountApi.ts index 05b08e685..829eba59d 100644 --- a/sdks/node/api/accountApi.ts +++ b/sdks/node/api/accountApi.ts @@ -125,12 +125,10 @@ export class AccountApi { * @summary Create Account * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/AccountCreateExample.ts * @param accountCreateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async accountCreate( accountCreateRequest: AccountCreateRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { accountCreateRequest = deserializeIfNeeded( @@ -160,10 +158,6 @@ export class AccountApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -404,12 +398,10 @@ export class AccountApi { * @summary Update Account * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/AccountUpdateExample.ts * @param accountUpdateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async accountUpdate( accountUpdateRequest: AccountUpdateRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { accountUpdateRequest = deserializeIfNeeded( @@ -439,10 +431,6 @@ export class AccountApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -554,12 +542,10 @@ export class AccountApi { * @summary Verify Account * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/AccountVerifyExample.ts * @param accountVerifyRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async accountVerify( accountVerifyRequest: AccountVerifyRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { accountVerifyRequest = deserializeIfNeeded( @@ -589,10 +575,6 @@ export class AccountApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; diff --git a/sdks/node/api/apiAppApi.ts b/sdks/node/api/apiAppApi.ts index 2e1b86430..de0d7346b 100644 --- a/sdks/node/api/apiAppApi.ts +++ b/sdks/node/api/apiAppApi.ts @@ -124,12 +124,10 @@ export class ApiAppApi { * @summary Create API App * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/ApiAppCreateExample.ts * @param apiAppCreateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async apiAppCreate( apiAppCreateRequest: ApiAppCreateRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { apiAppCreateRequest = deserializeIfNeeded( @@ -159,10 +157,6 @@ export class ApiAppApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -632,13 +626,11 @@ export class ApiAppApi { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/ApiAppUpdateExample.ts * @param clientId The client id of the API App to update. * @param apiAppUpdateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async apiAppUpdate( clientId: string, apiAppUpdateRequest: ApiAppUpdateRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { apiAppUpdateRequest = deserializeIfNeeded( @@ -680,10 +672,6 @@ export class ApiAppApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; diff --git a/sdks/node/api/documentApi.ts b/sdks/node/api/documentApi.ts index 1a4db87b3..84e6a4ece 100644 --- a/sdks/node/api/documentApi.ts +++ b/sdks/node/api/documentApi.ts @@ -121,12 +121,10 @@ export class DocumentApi { * @summary Detect Document Fields * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/DocumentDetectFieldsExample.ts * @param documentFieldDetectionRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async documentDetectFields( documentFieldDetectionRequest: DocumentFieldDetectionRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { documentFieldDetectionRequest = deserializeIfNeeded( @@ -159,10 +157,6 @@ export class DocumentApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; diff --git a/sdks/node/api/embeddedApi.ts b/sdks/node/api/embeddedApi.ts index 6601e22a9..7fd0e08f3 100644 --- a/sdks/node/api/embeddedApi.ts +++ b/sdks/node/api/embeddedApi.ts @@ -123,13 +123,11 @@ export class EmbeddedApi { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/EmbeddedEditUrlExample.ts * @param templateId The id of the template to edit. * @param embeddedEditUrlRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async embeddedEditUrl( templateId: string, embeddedEditUrlRequest: EmbeddedEditUrlRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { embeddedEditUrlRequest = deserializeIfNeeded( @@ -174,10 +172,6 @@ export class EmbeddedApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; diff --git a/sdks/node/api/faxApi.ts b/sdks/node/api/faxApi.ts index 5bc983dd9..464d37537 100644 --- a/sdks/node/api/faxApi.ts +++ b/sdks/node/api/faxApi.ts @@ -583,12 +583,10 @@ export class FaxApi { * @summary Send Fax * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/FaxSendExample.ts * @param faxSendRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async faxSend( faxSendRequest: FaxSendRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { faxSendRequest = deserializeIfNeeded(faxSendRequest, "FaxSendRequest"); @@ -615,10 +613,6 @@ export class FaxApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; diff --git a/sdks/node/api/faxLineApi.ts b/sdks/node/api/faxLineApi.ts index b88b99252..8a662d0fa 100644 --- a/sdks/node/api/faxLineApi.ts +++ b/sdks/node/api/faxLineApi.ts @@ -127,12 +127,10 @@ export class FaxLineApi { * @summary Add Fax Line User * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/FaxLineAddUserExample.ts * @param faxLineAddUserRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async faxLineAddUser( faxLineAddUserRequest: FaxLineAddUserRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { faxLineAddUserRequest = deserializeIfNeeded( @@ -162,10 +160,6 @@ export class FaxLineApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -485,12 +479,10 @@ export class FaxLineApi { * @summary Purchase Fax Line * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/FaxLineCreateExample.ts * @param faxLineCreateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async faxLineCreate( faxLineCreateRequest: FaxLineCreateRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { faxLineCreateRequest = deserializeIfNeeded( @@ -520,10 +512,6 @@ export class FaxLineApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -1015,12 +1003,10 @@ export class FaxLineApi { * @summary Remove Fax Line Access * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/FaxLineRemoveUserExample.ts * @param faxLineRemoveUserRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async faxLineRemoveUser( faxLineRemoveUserRequest: FaxLineRemoveUserRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { faxLineRemoveUserRequest = deserializeIfNeeded( @@ -1053,10 +1039,6 @@ export class FaxLineApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; diff --git a/sdks/node/api/reportApi.ts b/sdks/node/api/reportApi.ts index 4acac6fc7..dc0ab70c1 100644 --- a/sdks/node/api/reportApi.ts +++ b/sdks/node/api/reportApi.ts @@ -121,12 +121,10 @@ export class ReportApi { * @summary Create Report * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/ReportCreateExample.ts * @param reportCreateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async reportCreate( reportCreateRequest: ReportCreateRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { reportCreateRequest = deserializeIfNeeded( @@ -156,10 +154,6 @@ export class ReportApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; diff --git a/sdks/node/api/signatureRequestApi.ts b/sdks/node/api/signatureRequestApi.ts index 227e5655f..1358d7d92 100644 --- a/sdks/node/api/signatureRequestApi.ts +++ b/sdks/node/api/signatureRequestApi.ts @@ -137,12 +137,10 @@ export class SignatureRequestApi { * @summary Embedded Bulk Send with Template * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.ts * @param signatureRequestBulkCreateEmbeddedWithTemplateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async signatureRequestBulkCreateEmbeddedWithTemplate( signatureRequestBulkCreateEmbeddedWithTemplateRequest: SignatureRequestBulkCreateEmbeddedWithTemplateRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { signatureRequestBulkCreateEmbeddedWithTemplateRequest = deserializeIfNeeded( @@ -176,10 +174,6 @@ export class SignatureRequestApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -288,12 +282,10 @@ export class SignatureRequestApi { * @summary Bulk Send with Template * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.ts * @param signatureRequestBulkSendWithTemplateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async signatureRequestBulkSendWithTemplate( signatureRequestBulkSendWithTemplateRequest: SignatureRequestBulkSendWithTemplateRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { signatureRequestBulkSendWithTemplateRequest = deserializeIfNeeded( @@ -327,10 +319,6 @@ export class SignatureRequestApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -444,12 +432,10 @@ export class SignatureRequestApi { * @summary Cancel Incomplete Signature Request * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestCancelExample.ts * @param signatureRequestId The id of the incomplete SignatureRequest to cancel. - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async signatureRequestCancel( signatureRequestId: string, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise { const localVarPath = @@ -480,10 +466,6 @@ export class SignatureRequestApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -557,12 +539,10 @@ export class SignatureRequestApi { * @summary Create Embedded Signature Request * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestCreateEmbeddedExample.ts * @param signatureRequestCreateEmbeddedRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async signatureRequestCreateEmbedded( signatureRequestCreateEmbeddedRequest: SignatureRequestCreateEmbeddedRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { signatureRequestCreateEmbeddedRequest = deserializeIfNeeded( @@ -595,10 +575,6 @@ export class SignatureRequestApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -712,12 +688,10 @@ export class SignatureRequestApi { * @summary Create Embedded Signature Request with Template * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.ts * @param signatureRequestCreateEmbeddedWithTemplateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async signatureRequestCreateEmbeddedWithTemplate( signatureRequestCreateEmbeddedWithTemplateRequest: SignatureRequestCreateEmbeddedWithTemplateRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { signatureRequestCreateEmbeddedWithTemplateRequest = deserializeIfNeeded( @@ -751,10 +725,6 @@ export class SignatureRequestApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -869,13 +839,11 @@ export class SignatureRequestApi { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestEditExample.ts * @param signatureRequestId The id of the SignatureRequest to edit. * @param signatureRequestEditRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async signatureRequestEdit( signatureRequestId: string, signatureRequestEditRequest: SignatureRequestEditRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { signatureRequestEditRequest = deserializeIfNeeded( @@ -920,10 +888,6 @@ export class SignatureRequestApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -1038,13 +1002,11 @@ export class SignatureRequestApi { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestEditEmbeddedExample.ts * @param signatureRequestId The id of the SignatureRequest to edit. * @param signatureRequestEditEmbeddedRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async signatureRequestEditEmbedded( signatureRequestId: string, signatureRequestEditEmbeddedRequest: SignatureRequestEditEmbeddedRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { signatureRequestEditEmbeddedRequest = deserializeIfNeeded( @@ -1089,10 +1051,6 @@ export class SignatureRequestApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -1207,13 +1165,11 @@ export class SignatureRequestApi { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestEditEmbeddedWithTemplateExample.ts * @param signatureRequestId The id of the SignatureRequest to edit. * @param signatureRequestEditEmbeddedWithTemplateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async signatureRequestEditEmbeddedWithTemplate( signatureRequestId: string, signatureRequestEditEmbeddedWithTemplateRequest: SignatureRequestEditEmbeddedWithTemplateRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { signatureRequestEditEmbeddedWithTemplateRequest = deserializeIfNeeded( @@ -1258,10 +1214,6 @@ export class SignatureRequestApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -1376,13 +1328,11 @@ export class SignatureRequestApi { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestEditWithTemplateExample.ts * @param signatureRequestId The id of the SignatureRequest to edit. * @param signatureRequestEditWithTemplateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async signatureRequestEditWithTemplate( signatureRequestId: string, signatureRequestEditWithTemplateRequest: SignatureRequestEditWithTemplateRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { signatureRequestEditWithTemplateRequest = deserializeIfNeeded( @@ -1427,10 +1377,6 @@ export class SignatureRequestApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -2205,12 +2151,10 @@ export class SignatureRequestApi { * @summary Release On-Hold Signature Request * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestReleaseHoldExample.ts * @param signatureRequestId The id of the SignatureRequest to release. - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async signatureRequestReleaseHold( signatureRequestId: string, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { const localVarPath = @@ -2241,10 +2185,6 @@ export class SignatureRequestApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -2337,13 +2277,11 @@ export class SignatureRequestApi { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestRemindExample.ts * @param signatureRequestId The id of the SignatureRequest to send a reminder for. * @param signatureRequestRemindRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async signatureRequestRemind( signatureRequestId: string, signatureRequestRemindRequest: SignatureRequestRemindRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { signatureRequestRemindRequest = deserializeIfNeeded( @@ -2388,10 +2326,6 @@ export class SignatureRequestApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -2505,12 +2439,10 @@ export class SignatureRequestApi { * @summary Remove Signature Request Access * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestRemoveExample.ts * @param signatureRequestId The id of the SignatureRequest to remove. - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async signatureRequestRemove( signatureRequestId: string, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise { const localVarPath = @@ -2541,10 +2473,6 @@ export class SignatureRequestApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -2613,12 +2541,10 @@ export class SignatureRequestApi { * @summary Send Signature Request * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestSendExample.ts * @param signatureRequestSendRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async signatureRequestSend( signatureRequestSendRequest: SignatureRequestSendRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { signatureRequestSendRequest = deserializeIfNeeded( @@ -2651,10 +2577,6 @@ export class SignatureRequestApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -2768,12 +2690,10 @@ export class SignatureRequestApi { * @summary Send with Template * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestSendWithTemplateExample.ts * @param signatureRequestSendWithTemplateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async signatureRequestSendWithTemplate( signatureRequestSendWithTemplateRequest: SignatureRequestSendWithTemplateRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { signatureRequestSendWithTemplateRequest = deserializeIfNeeded( @@ -2807,10 +2727,6 @@ export class SignatureRequestApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -2925,13 +2841,11 @@ export class SignatureRequestApi { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestUpdateExample.ts * @param signatureRequestId The id of the SignatureRequest to update. * @param signatureRequestUpdateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async signatureRequestUpdate( signatureRequestId: string, signatureRequestUpdateRequest: SignatureRequestUpdateRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { signatureRequestUpdateRequest = deserializeIfNeeded( @@ -2976,10 +2890,6 @@ export class SignatureRequestApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; diff --git a/sdks/node/api/teamApi.ts b/sdks/node/api/teamApi.ts index 4b9f427a6..455a54c17 100644 --- a/sdks/node/api/teamApi.ts +++ b/sdks/node/api/teamApi.ts @@ -130,13 +130,11 @@ export class TeamApi { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TeamAddMemberExample.ts * @param teamAddMemberRequest * @param teamId The id of the team. - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async teamAddMember( teamAddMemberRequest: TeamAddMemberRequest, teamId?: string, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { teamAddMemberRequest = deserializeIfNeeded( @@ -173,10 +171,6 @@ export class TeamApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -288,12 +282,10 @@ export class TeamApi { * @summary Create Team * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TeamCreateExample.ts * @param teamCreateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async teamCreate( teamCreateRequest: TeamCreateRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { teamCreateRequest = deserializeIfNeeded( @@ -323,10 +315,6 @@ export class TeamApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -1020,12 +1008,10 @@ export class TeamApi { * @summary Remove User from Team * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TeamRemoveMemberExample.ts * @param teamRemoveMemberRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async teamRemoveMember( teamRemoveMemberRequest: TeamRemoveMemberRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { teamRemoveMemberRequest = deserializeIfNeeded( @@ -1058,10 +1044,6 @@ export class TeamApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -1316,12 +1298,10 @@ export class TeamApi { * @summary Update Team * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TeamUpdateExample.ts * @param teamUpdateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async teamUpdate( teamUpdateRequest: TeamUpdateRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { teamUpdateRequest = deserializeIfNeeded( @@ -1351,10 +1331,6 @@ export class TeamApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; diff --git a/sdks/node/api/templateApi.ts b/sdks/node/api/templateApi.ts index 72ca04896..a869a9b6f 100644 --- a/sdks/node/api/templateApi.ts +++ b/sdks/node/api/templateApi.ts @@ -133,13 +133,11 @@ export class TemplateApi { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TemplateAddUserExample.ts * @param templateId The id of the Template to give the Account access to. * @param templateAddUserRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async templateAddUser( templateId: string, templateAddUserRequest: TemplateAddUserRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { templateAddUserRequest = deserializeIfNeeded( @@ -184,10 +182,6 @@ export class TemplateApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -301,12 +295,10 @@ export class TemplateApi { * @summary Create Template * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TemplateCreateExample.ts * @param templateCreateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async templateCreate( templateCreateRequest: TemplateCreateRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { templateCreateRequest = deserializeIfNeeded( @@ -336,10 +328,6 @@ export class TemplateApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -453,12 +441,10 @@ export class TemplateApi { * @summary Create Embedded Template Draft * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TemplateCreateEmbeddedDraftExample.ts * @param templateCreateEmbeddedDraftRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async templateCreateEmbeddedDraft( templateCreateEmbeddedDraftRequest: TemplateCreateEmbeddedDraftRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { templateCreateEmbeddedDraftRequest = deserializeIfNeeded( @@ -491,10 +477,6 @@ export class TemplateApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -608,12 +590,10 @@ export class TemplateApi { * @summary Delete Template * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TemplateDeleteExample.ts * @param templateId The id of the Template to delete. - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async templateDelete( templateId: string, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise { const localVarPath = @@ -644,10 +624,6 @@ export class TemplateApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -1383,13 +1359,11 @@ export class TemplateApi { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TemplateRemoveUserExample.ts * @param templateId The id of the Template to remove the Account\'s access to. * @param templateRemoveUserRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async templateRemoveUser( templateId: string, templateRemoveUserRequest: TemplateRemoveUserRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { templateRemoveUserRequest = deserializeIfNeeded( @@ -1434,10 +1408,6 @@ export class TemplateApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -1552,13 +1522,11 @@ export class TemplateApi { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TemplateUpdateFilesExample.ts * @param templateId The ID of the template whose files to update. * @param templateUpdateFilesRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async templateUpdateFiles( templateId: string, templateUpdateFilesRequest: TemplateUpdateFilesRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { templateUpdateFilesRequest = deserializeIfNeeded( @@ -1603,10 +1571,6 @@ export class TemplateApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; diff --git a/sdks/node/api/unclaimedDraftApi.ts b/sdks/node/api/unclaimedDraftApi.ts index ec85370a9..6fac772c1 100644 --- a/sdks/node/api/unclaimedDraftApi.ts +++ b/sdks/node/api/unclaimedDraftApi.ts @@ -124,12 +124,10 @@ export class UnclaimedDraftApi { * @summary Create Unclaimed Draft * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/UnclaimedDraftCreateExample.ts * @param unclaimedDraftCreateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async unclaimedDraftCreate( unclaimedDraftCreateRequest: UnclaimedDraftCreateRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { unclaimedDraftCreateRequest = deserializeIfNeeded( @@ -162,10 +160,6 @@ export class UnclaimedDraftApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -279,12 +273,10 @@ export class UnclaimedDraftApi { * @summary Create Embedded Unclaimed Draft * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.ts * @param unclaimedDraftCreateEmbeddedRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async unclaimedDraftCreateEmbedded( unclaimedDraftCreateEmbeddedRequest: UnclaimedDraftCreateEmbeddedRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { unclaimedDraftCreateEmbeddedRequest = deserializeIfNeeded( @@ -317,10 +309,6 @@ export class UnclaimedDraftApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -434,12 +422,10 @@ export class UnclaimedDraftApi { * @summary Create Embedded Unclaimed Draft with Template * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.ts * @param unclaimedDraftCreateEmbeddedWithTemplateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async unclaimedDraftCreateEmbeddedWithTemplate( unclaimedDraftCreateEmbeddedWithTemplateRequest: UnclaimedDraftCreateEmbeddedWithTemplateRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { unclaimedDraftCreateEmbeddedWithTemplateRequest = deserializeIfNeeded( @@ -473,10 +459,6 @@ export class UnclaimedDraftApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; @@ -591,13 +573,11 @@ export class UnclaimedDraftApi { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/UnclaimedDraftEditAndResendExample.ts * @param signatureRequestId The ID of the signature request to edit and resend. * @param unclaimedDraftEditAndResendRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ public async unclaimedDraftEditAndResend( signatureRequestId: string, unclaimedDraftEditAndResendRequest: UnclaimedDraftEditAndResendRequest, - idempotencyKey?: string, options: optionsI = { headers: {} } ): Promise> { unclaimedDraftEditAndResendRequest = deserializeIfNeeded( @@ -642,10 +622,6 @@ export class UnclaimedDraftApi { ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; diff --git a/sdks/node/dist/api.js b/sdks/node/dist/api.js index 8ce003856..2acb8bb12 100644 --- a/sdks/node/dist/api.js +++ b/sdks/node/dist/api.js @@ -30342,10 +30342,9 @@ var AccountApi = class { * @summary Create Account * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/AccountCreateExample.ts * @param accountCreateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async accountCreate(accountCreateRequest, idempotencyKey, options = { headers: {} }) { + async accountCreate(accountCreateRequest, options = { headers: {} }) { accountCreateRequest = deserializeIfNeeded( accountCreateRequest, "AccountCreateRequest" @@ -30369,10 +30368,6 @@ var AccountApi = class { "Required parameter accountCreateRequest was null or undefined when calling accountCreate." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -30575,10 +30570,9 @@ var AccountApi = class { * @summary Update Account * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/AccountUpdateExample.ts * @param accountUpdateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async accountUpdate(accountUpdateRequest, idempotencyKey, options = { headers: {} }) { + async accountUpdate(accountUpdateRequest, options = { headers: {} }) { accountUpdateRequest = deserializeIfNeeded( accountUpdateRequest, "AccountUpdateRequest" @@ -30602,10 +30596,6 @@ var AccountApi = class { "Required parameter accountUpdateRequest was null or undefined when calling accountUpdate." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -30701,10 +30691,9 @@ var AccountApi = class { * @summary Verify Account * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/AccountVerifyExample.ts * @param accountVerifyRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async accountVerify(accountVerifyRequest, idempotencyKey, options = { headers: {} }) { + async accountVerify(accountVerifyRequest, options = { headers: {} }) { accountVerifyRequest = deserializeIfNeeded( accountVerifyRequest, "AccountVerifyRequest" @@ -30728,10 +30717,6 @@ var AccountApi = class { "Required parameter accountVerifyRequest was null or undefined when calling accountVerify." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -30916,10 +30901,9 @@ var ApiAppApi = class { * @summary Create API App * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/ApiAppCreateExample.ts * @param apiAppCreateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async apiAppCreate(apiAppCreateRequest, idempotencyKey, options = { headers: {} }) { + async apiAppCreate(apiAppCreateRequest, options = { headers: {} }) { apiAppCreateRequest = deserializeIfNeeded2( apiAppCreateRequest, "ApiAppCreateRequest" @@ -30943,10 +30927,6 @@ var ApiAppApi = class { "Required parameter apiAppCreateRequest was null or undefined when calling apiAppCreate." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -31335,10 +31315,9 @@ var ApiAppApi = class { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/ApiAppUpdateExample.ts * @param clientId The client id of the API App to update. * @param apiAppUpdateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async apiAppUpdate(clientId, apiAppUpdateRequest, idempotencyKey, options = { headers: {} }) { + async apiAppUpdate(clientId, apiAppUpdateRequest, options = { headers: {} }) { apiAppUpdateRequest = deserializeIfNeeded2( apiAppUpdateRequest, "ApiAppUpdateRequest" @@ -31370,10 +31349,6 @@ var ApiAppApi = class { "Required parameter apiAppUpdateRequest was null or undefined when calling apiAppUpdate." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -31860,10 +31835,9 @@ var DocumentApi = class { * @summary Detect Document Fields * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/DocumentDetectFieldsExample.ts * @param documentFieldDetectionRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async documentDetectFields(documentFieldDetectionRequest, idempotencyKey, options = { headers: {} }) { + async documentDetectFields(documentFieldDetectionRequest, options = { headers: {} }) { documentFieldDetectionRequest = deserializeIfNeeded3( documentFieldDetectionRequest, "DocumentFieldDetectionRequest" @@ -31887,10 +31861,6 @@ var DocumentApi = class { "Required parameter documentFieldDetectionRequest was null or undefined when calling documentDetectFields." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -32076,10 +32046,9 @@ var EmbeddedApi = class { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/EmbeddedEditUrlExample.ts * @param templateId The id of the template to edit. * @param embeddedEditUrlRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async embeddedEditUrl(templateId, embeddedEditUrlRequest, idempotencyKey, options = { headers: {} }) { + async embeddedEditUrl(templateId, embeddedEditUrlRequest, options = { headers: {} }) { embeddedEditUrlRequest = deserializeIfNeeded4( embeddedEditUrlRequest, "EmbeddedEditUrlRequest" @@ -32111,10 +32080,6 @@ var EmbeddedApi = class { "Required parameter embeddedEditUrlRequest was null or undefined when calling embeddedEditUrl." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -32773,10 +32738,9 @@ var FaxApi = class { * @summary Send Fax * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/FaxSendExample.ts * @param faxSendRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async faxSend(faxSendRequest, idempotencyKey, options = { headers: {} }) { + async faxSend(faxSendRequest, options = { headers: {} }) { faxSendRequest = deserializeIfNeeded5(faxSendRequest, "FaxSendRequest"); const localVarPath = this.basePath + "/fax/send"; let localVarQueryParameters = {}; @@ -32797,10 +32761,6 @@ var FaxApi = class { "Required parameter faxSendRequest was null or undefined when calling faxSend." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -32975,10 +32935,9 @@ var FaxLineApi = class { * @summary Add Fax Line User * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/FaxLineAddUserExample.ts * @param faxLineAddUserRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async faxLineAddUser(faxLineAddUserRequest, idempotencyKey, options = { headers: {} }) { + async faxLineAddUser(faxLineAddUserRequest, options = { headers: {} }) { faxLineAddUserRequest = deserializeIfNeeded6( faxLineAddUserRequest, "FaxLineAddUserRequest" @@ -33002,10 +32961,6 @@ var FaxLineApi = class { "Required parameter faxLineAddUserRequest was null or undefined when calling faxLineAddUser." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -33217,10 +33172,9 @@ var FaxLineApi = class { * @summary Purchase Fax Line * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/FaxLineCreateExample.ts * @param faxLineCreateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async faxLineCreate(faxLineCreateRequest, idempotencyKey, options = { headers: {} }) { + async faxLineCreate(faxLineCreateRequest, options = { headers: {} }) { faxLineCreateRequest = deserializeIfNeeded6( faxLineCreateRequest, "FaxLineCreateRequest" @@ -33244,10 +33198,6 @@ var FaxLineApi = class { "Required parameter faxLineCreateRequest was null or undefined when calling faxLineCreate." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -33655,10 +33605,9 @@ var FaxLineApi = class { * @summary Remove Fax Line Access * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/FaxLineRemoveUserExample.ts * @param faxLineRemoveUserRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async faxLineRemoveUser(faxLineRemoveUserRequest, idempotencyKey, options = { headers: {} }) { + async faxLineRemoveUser(faxLineRemoveUserRequest, options = { headers: {} }) { faxLineRemoveUserRequest = deserializeIfNeeded6( faxLineRemoveUserRequest, "FaxLineRemoveUserRequest" @@ -33682,10 +33631,6 @@ var FaxLineApi = class { "Required parameter faxLineRemoveUserRequest was null or undefined when calling faxLineRemoveUser." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -34172,10 +34117,9 @@ var ReportApi = class { * @summary Create Report * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/ReportCreateExample.ts * @param reportCreateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async reportCreate(reportCreateRequest, idempotencyKey, options = { headers: {} }) { + async reportCreate(reportCreateRequest, options = { headers: {} }) { reportCreateRequest = deserializeIfNeeded8( reportCreateRequest, "ReportCreateRequest" @@ -34199,10 +34143,6 @@ var ReportApi = class { "Required parameter reportCreateRequest was null or undefined when calling reportCreate." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -34382,10 +34322,9 @@ var SignatureRequestApi = class { * @summary Embedded Bulk Send with Template * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.ts * @param signatureRequestBulkCreateEmbeddedWithTemplateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async signatureRequestBulkCreateEmbeddedWithTemplate(signatureRequestBulkCreateEmbeddedWithTemplateRequest, idempotencyKey, options = { headers: {} }) { + async signatureRequestBulkCreateEmbeddedWithTemplate(signatureRequestBulkCreateEmbeddedWithTemplateRequest, options = { headers: {} }) { signatureRequestBulkCreateEmbeddedWithTemplateRequest = deserializeIfNeeded9( signatureRequestBulkCreateEmbeddedWithTemplateRequest, "SignatureRequestBulkCreateEmbeddedWithTemplateRequest" @@ -34409,10 +34348,6 @@ var SignatureRequestApi = class { "Required parameter signatureRequestBulkCreateEmbeddedWithTemplateRequest was null or undefined when calling signatureRequestBulkCreateEmbeddedWithTemplate." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -34505,10 +34440,9 @@ var SignatureRequestApi = class { * @summary Bulk Send with Template * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.ts * @param signatureRequestBulkSendWithTemplateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async signatureRequestBulkSendWithTemplate(signatureRequestBulkSendWithTemplateRequest, idempotencyKey, options = { headers: {} }) { + async signatureRequestBulkSendWithTemplate(signatureRequestBulkSendWithTemplateRequest, options = { headers: {} }) { signatureRequestBulkSendWithTemplateRequest = deserializeIfNeeded9( signatureRequestBulkSendWithTemplateRequest, "SignatureRequestBulkSendWithTemplateRequest" @@ -34532,10 +34466,6 @@ var SignatureRequestApi = class { "Required parameter signatureRequestBulkSendWithTemplateRequest was null or undefined when calling signatureRequestBulkSendWithTemplate." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -34633,10 +34563,9 @@ var SignatureRequestApi = class { * @summary Cancel Incomplete Signature Request * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestCancelExample.ts * @param signatureRequestId The id of the incomplete SignatureRequest to cancel. - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async signatureRequestCancel(signatureRequestId, idempotencyKey, options = { headers: {} }) { + async signatureRequestCancel(signatureRequestId, options = { headers: {} }) { const localVarPath = this.basePath + "/signature_request/cancel/{signature_request_id}".replace( "{signature_request_id}", encodeURIComponent(String(signatureRequestId)) @@ -34659,10 +34588,6 @@ var SignatureRequestApi = class { "Required parameter signatureRequestId was null or undefined when calling signatureRequestCancel." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; let localVarRequestOptions = { @@ -34725,10 +34650,9 @@ var SignatureRequestApi = class { * @summary Create Embedded Signature Request * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestCreateEmbeddedExample.ts * @param signatureRequestCreateEmbeddedRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async signatureRequestCreateEmbedded(signatureRequestCreateEmbeddedRequest, idempotencyKey, options = { headers: {} }) { + async signatureRequestCreateEmbedded(signatureRequestCreateEmbeddedRequest, options = { headers: {} }) { signatureRequestCreateEmbeddedRequest = deserializeIfNeeded9( signatureRequestCreateEmbeddedRequest, "SignatureRequestCreateEmbeddedRequest" @@ -34752,10 +34676,6 @@ var SignatureRequestApi = class { "Required parameter signatureRequestCreateEmbeddedRequest was null or undefined when calling signatureRequestCreateEmbedded." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -34853,10 +34773,9 @@ var SignatureRequestApi = class { * @summary Create Embedded Signature Request with Template * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.ts * @param signatureRequestCreateEmbeddedWithTemplateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async signatureRequestCreateEmbeddedWithTemplate(signatureRequestCreateEmbeddedWithTemplateRequest, idempotencyKey, options = { headers: {} }) { + async signatureRequestCreateEmbeddedWithTemplate(signatureRequestCreateEmbeddedWithTemplateRequest, options = { headers: {} }) { signatureRequestCreateEmbeddedWithTemplateRequest = deserializeIfNeeded9( signatureRequestCreateEmbeddedWithTemplateRequest, "SignatureRequestCreateEmbeddedWithTemplateRequest" @@ -34880,10 +34799,6 @@ var SignatureRequestApi = class { "Required parameter signatureRequestCreateEmbeddedWithTemplateRequest was null or undefined when calling signatureRequestCreateEmbeddedWithTemplate." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -34982,10 +34897,9 @@ var SignatureRequestApi = class { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestEditExample.ts * @param signatureRequestId The id of the SignatureRequest to edit. * @param signatureRequestEditRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async signatureRequestEdit(signatureRequestId, signatureRequestEditRequest, idempotencyKey, options = { headers: {} }) { + async signatureRequestEdit(signatureRequestId, signatureRequestEditRequest, options = { headers: {} }) { signatureRequestEditRequest = deserializeIfNeeded9( signatureRequestEditRequest, "SignatureRequestEditRequest" @@ -35017,10 +34931,6 @@ var SignatureRequestApi = class { "Required parameter signatureRequestEditRequest was null or undefined when calling signatureRequestEdit." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -35119,10 +35029,9 @@ var SignatureRequestApi = class { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestEditEmbeddedExample.ts * @param signatureRequestId The id of the SignatureRequest to edit. * @param signatureRequestEditEmbeddedRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async signatureRequestEditEmbedded(signatureRequestId, signatureRequestEditEmbeddedRequest, idempotencyKey, options = { headers: {} }) { + async signatureRequestEditEmbedded(signatureRequestId, signatureRequestEditEmbeddedRequest, options = { headers: {} }) { signatureRequestEditEmbeddedRequest = deserializeIfNeeded9( signatureRequestEditEmbeddedRequest, "SignatureRequestEditEmbeddedRequest" @@ -35154,10 +35063,6 @@ var SignatureRequestApi = class { "Required parameter signatureRequestEditEmbeddedRequest was null or undefined when calling signatureRequestEditEmbedded." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -35256,10 +35161,9 @@ var SignatureRequestApi = class { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestEditEmbeddedWithTemplateExample.ts * @param signatureRequestId The id of the SignatureRequest to edit. * @param signatureRequestEditEmbeddedWithTemplateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async signatureRequestEditEmbeddedWithTemplate(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest, idempotencyKey, options = { headers: {} }) { + async signatureRequestEditEmbeddedWithTemplate(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest, options = { headers: {} }) { signatureRequestEditEmbeddedWithTemplateRequest = deserializeIfNeeded9( signatureRequestEditEmbeddedWithTemplateRequest, "SignatureRequestEditEmbeddedWithTemplateRequest" @@ -35291,10 +35195,6 @@ var SignatureRequestApi = class { "Required parameter signatureRequestEditEmbeddedWithTemplateRequest was null or undefined when calling signatureRequestEditEmbeddedWithTemplate." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -35393,10 +35293,9 @@ var SignatureRequestApi = class { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestEditWithTemplateExample.ts * @param signatureRequestId The id of the SignatureRequest to edit. * @param signatureRequestEditWithTemplateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async signatureRequestEditWithTemplate(signatureRequestId, signatureRequestEditWithTemplateRequest, idempotencyKey, options = { headers: {} }) { + async signatureRequestEditWithTemplate(signatureRequestId, signatureRequestEditWithTemplateRequest, options = { headers: {} }) { signatureRequestEditWithTemplateRequest = deserializeIfNeeded9( signatureRequestEditWithTemplateRequest, "SignatureRequestEditWithTemplateRequest" @@ -35428,10 +35327,6 @@ var SignatureRequestApi = class { "Required parameter signatureRequestEditWithTemplateRequest was null or undefined when calling signatureRequestEditWithTemplate." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -36068,10 +35963,9 @@ var SignatureRequestApi = class { * @summary Release On-Hold Signature Request * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestReleaseHoldExample.ts * @param signatureRequestId The id of the SignatureRequest to release. - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async signatureRequestReleaseHold(signatureRequestId, idempotencyKey, options = { headers: {} }) { + async signatureRequestReleaseHold(signatureRequestId, options = { headers: {} }) { const localVarPath = this.basePath + "/signature_request/release_hold/{signature_request_id}".replace( "{signature_request_id}", encodeURIComponent(String(signatureRequestId)) @@ -36094,10 +35988,6 @@ var SignatureRequestApi = class { "Required parameter signatureRequestId was null or undefined when calling signatureRequestReleaseHold." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; let localVarRequestOptions = { @@ -36176,10 +36066,9 @@ var SignatureRequestApi = class { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestRemindExample.ts * @param signatureRequestId The id of the SignatureRequest to send a reminder for. * @param signatureRequestRemindRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async signatureRequestRemind(signatureRequestId, signatureRequestRemindRequest, idempotencyKey, options = { headers: {} }) { + async signatureRequestRemind(signatureRequestId, signatureRequestRemindRequest, options = { headers: {} }) { signatureRequestRemindRequest = deserializeIfNeeded9( signatureRequestRemindRequest, "SignatureRequestRemindRequest" @@ -36211,10 +36100,6 @@ var SignatureRequestApi = class { "Required parameter signatureRequestRemindRequest was null or undefined when calling signatureRequestRemind." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -36312,10 +36197,9 @@ var SignatureRequestApi = class { * @summary Remove Signature Request Access * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestRemoveExample.ts * @param signatureRequestId The id of the SignatureRequest to remove. - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async signatureRequestRemove(signatureRequestId, idempotencyKey, options = { headers: {} }) { + async signatureRequestRemove(signatureRequestId, options = { headers: {} }) { const localVarPath = this.basePath + "/signature_request/remove/{signature_request_id}".replace( "{signature_request_id}", encodeURIComponent(String(signatureRequestId)) @@ -36338,10 +36222,6 @@ var SignatureRequestApi = class { "Required parameter signatureRequestId was null or undefined when calling signatureRequestRemove." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; let localVarRequestOptions = { @@ -36399,10 +36279,9 @@ var SignatureRequestApi = class { * @summary Send Signature Request * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestSendExample.ts * @param signatureRequestSendRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async signatureRequestSend(signatureRequestSendRequest, idempotencyKey, options = { headers: {} }) { + async signatureRequestSend(signatureRequestSendRequest, options = { headers: {} }) { signatureRequestSendRequest = deserializeIfNeeded9( signatureRequestSendRequest, "SignatureRequestSendRequest" @@ -36426,10 +36305,6 @@ var SignatureRequestApi = class { "Required parameter signatureRequestSendRequest was null or undefined when calling signatureRequestSend." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -36527,10 +36402,9 @@ var SignatureRequestApi = class { * @summary Send with Template * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestSendWithTemplateExample.ts * @param signatureRequestSendWithTemplateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async signatureRequestSendWithTemplate(signatureRequestSendWithTemplateRequest, idempotencyKey, options = { headers: {} }) { + async signatureRequestSendWithTemplate(signatureRequestSendWithTemplateRequest, options = { headers: {} }) { signatureRequestSendWithTemplateRequest = deserializeIfNeeded9( signatureRequestSendWithTemplateRequest, "SignatureRequestSendWithTemplateRequest" @@ -36554,10 +36428,6 @@ var SignatureRequestApi = class { "Required parameter signatureRequestSendWithTemplateRequest was null or undefined when calling signatureRequestSendWithTemplate." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -36656,10 +36526,9 @@ var SignatureRequestApi = class { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/SignatureRequestUpdateExample.ts * @param signatureRequestId The id of the SignatureRequest to update. * @param signatureRequestUpdateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async signatureRequestUpdate(signatureRequestId, signatureRequestUpdateRequest, idempotencyKey, options = { headers: {} }) { + async signatureRequestUpdate(signatureRequestId, signatureRequestUpdateRequest, options = { headers: {} }) { signatureRequestUpdateRequest = deserializeIfNeeded9( signatureRequestUpdateRequest, "SignatureRequestUpdateRequest" @@ -36691,10 +36560,6 @@ var SignatureRequestApi = class { "Required parameter signatureRequestUpdateRequest was null or undefined when calling signatureRequestUpdate." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -36880,10 +36745,9 @@ var TeamApi = class { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TeamAddMemberExample.ts * @param teamAddMemberRequest * @param teamId The id of the team. - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async teamAddMember(teamAddMemberRequest, teamId, idempotencyKey, options = { headers: {} }) { + async teamAddMember(teamAddMemberRequest, teamId, options = { headers: {} }) { teamAddMemberRequest = deserializeIfNeeded10( teamAddMemberRequest, "TeamAddMemberRequest" @@ -36913,10 +36777,6 @@ var TeamApi = class { "string" ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -37012,10 +36872,9 @@ var TeamApi = class { * @summary Create Team * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TeamCreateExample.ts * @param teamCreateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async teamCreate(teamCreateRequest, idempotencyKey, options = { headers: {} }) { + async teamCreate(teamCreateRequest, options = { headers: {} }) { teamCreateRequest = deserializeIfNeeded10( teamCreateRequest, "TeamCreateRequest" @@ -37039,10 +36898,6 @@ var TeamApi = class { "Required parameter teamCreateRequest was null or undefined when calling teamCreate." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -37620,10 +37475,9 @@ var TeamApi = class { * @summary Remove User from Team * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TeamRemoveMemberExample.ts * @param teamRemoveMemberRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async teamRemoveMember(teamRemoveMemberRequest, idempotencyKey, options = { headers: {} }) { + async teamRemoveMember(teamRemoveMemberRequest, options = { headers: {} }) { teamRemoveMemberRequest = deserializeIfNeeded10( teamRemoveMemberRequest, "TeamRemoveMemberRequest" @@ -37647,10 +37501,6 @@ var TeamApi = class { "Required parameter teamRemoveMemberRequest was null or undefined when calling teamRemoveMember." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -37862,10 +37712,9 @@ var TeamApi = class { * @summary Update Team * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TeamUpdateExample.ts * @param teamUpdateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async teamUpdate(teamUpdateRequest, idempotencyKey, options = { headers: {} }) { + async teamUpdate(teamUpdateRequest, options = { headers: {} }) { teamUpdateRequest = deserializeIfNeeded10( teamUpdateRequest, "TeamUpdateRequest" @@ -37889,10 +37738,6 @@ var TeamApi = class { "Required parameter teamUpdateRequest was null or undefined when calling teamUpdate." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -38073,10 +37918,9 @@ var TemplateApi = class { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TemplateAddUserExample.ts * @param templateId The id of the Template to give the Account access to. * @param templateAddUserRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async templateAddUser(templateId, templateAddUserRequest, idempotencyKey, options = { headers: {} }) { + async templateAddUser(templateId, templateAddUserRequest, options = { headers: {} }) { templateAddUserRequest = deserializeIfNeeded11( templateAddUserRequest, "TemplateAddUserRequest" @@ -38108,10 +37952,6 @@ var TemplateApi = class { "Required parameter templateAddUserRequest was null or undefined when calling templateAddUser." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -38209,10 +38049,9 @@ var TemplateApi = class { * @summary Create Template * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TemplateCreateExample.ts * @param templateCreateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async templateCreate(templateCreateRequest, idempotencyKey, options = { headers: {} }) { + async templateCreate(templateCreateRequest, options = { headers: {} }) { templateCreateRequest = deserializeIfNeeded11( templateCreateRequest, "TemplateCreateRequest" @@ -38236,10 +38075,6 @@ var TemplateApi = class { "Required parameter templateCreateRequest was null or undefined when calling templateCreate." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -38337,10 +38172,9 @@ var TemplateApi = class { * @summary Create Embedded Template Draft * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TemplateCreateEmbeddedDraftExample.ts * @param templateCreateEmbeddedDraftRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async templateCreateEmbeddedDraft(templateCreateEmbeddedDraftRequest, idempotencyKey, options = { headers: {} }) { + async templateCreateEmbeddedDraft(templateCreateEmbeddedDraftRequest, options = { headers: {} }) { templateCreateEmbeddedDraftRequest = deserializeIfNeeded11( templateCreateEmbeddedDraftRequest, "TemplateCreateEmbeddedDraftRequest" @@ -38364,10 +38198,6 @@ var TemplateApi = class { "Required parameter templateCreateEmbeddedDraftRequest was null or undefined when calling templateCreateEmbeddedDraft." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -38465,10 +38295,9 @@ var TemplateApi = class { * @summary Delete Template * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TemplateDeleteExample.ts * @param templateId The id of the Template to delete. - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async templateDelete(templateId, idempotencyKey, options = { headers: {} }) { + async templateDelete(templateId, options = { headers: {} }) { const localVarPath = this.basePath + "/template/delete/{template_id}".replace( "{template_id}", encodeURIComponent(String(templateId)) @@ -38491,10 +38320,6 @@ var TemplateApi = class { "Required parameter templateId was null or undefined when calling templateDelete." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; let localVarRequestOptions = { @@ -39097,10 +38922,9 @@ var TemplateApi = class { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TemplateRemoveUserExample.ts * @param templateId The id of the Template to remove the Account\'s access to. * @param templateRemoveUserRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async templateRemoveUser(templateId, templateRemoveUserRequest, idempotencyKey, options = { headers: {} }) { + async templateRemoveUser(templateId, templateRemoveUserRequest, options = { headers: {} }) { templateRemoveUserRequest = deserializeIfNeeded11( templateRemoveUserRequest, "TemplateRemoveUserRequest" @@ -39132,10 +38956,6 @@ var TemplateApi = class { "Required parameter templateRemoveUserRequest was null or undefined when calling templateRemoveUser." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -39234,10 +39054,9 @@ var TemplateApi = class { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/TemplateUpdateFilesExample.ts * @param templateId The ID of the template whose files to update. * @param templateUpdateFilesRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async templateUpdateFiles(templateId, templateUpdateFilesRequest, idempotencyKey, options = { headers: {} }) { + async templateUpdateFiles(templateId, templateUpdateFilesRequest, options = { headers: {} }) { templateUpdateFilesRequest = deserializeIfNeeded11( templateUpdateFilesRequest, "TemplateUpdateFilesRequest" @@ -39269,10 +39088,6 @@ var TemplateApi = class { "Required parameter templateUpdateFilesRequest was null or undefined when calling templateUpdateFiles." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -39457,10 +39272,9 @@ var UnclaimedDraftApi = class { * @summary Create Unclaimed Draft * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/UnclaimedDraftCreateExample.ts * @param unclaimedDraftCreateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async unclaimedDraftCreate(unclaimedDraftCreateRequest, idempotencyKey, options = { headers: {} }) { + async unclaimedDraftCreate(unclaimedDraftCreateRequest, options = { headers: {} }) { unclaimedDraftCreateRequest = deserializeIfNeeded12( unclaimedDraftCreateRequest, "UnclaimedDraftCreateRequest" @@ -39484,10 +39298,6 @@ var UnclaimedDraftApi = class { "Required parameter unclaimedDraftCreateRequest was null or undefined when calling unclaimedDraftCreate." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -39585,10 +39395,9 @@ var UnclaimedDraftApi = class { * @summary Create Embedded Unclaimed Draft * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.ts * @param unclaimedDraftCreateEmbeddedRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async unclaimedDraftCreateEmbedded(unclaimedDraftCreateEmbeddedRequest, idempotencyKey, options = { headers: {} }) { + async unclaimedDraftCreateEmbedded(unclaimedDraftCreateEmbeddedRequest, options = { headers: {} }) { unclaimedDraftCreateEmbeddedRequest = deserializeIfNeeded12( unclaimedDraftCreateEmbeddedRequest, "UnclaimedDraftCreateEmbeddedRequest" @@ -39612,10 +39421,6 @@ var UnclaimedDraftApi = class { "Required parameter unclaimedDraftCreateEmbeddedRequest was null or undefined when calling unclaimedDraftCreateEmbedded." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -39713,10 +39518,9 @@ var UnclaimedDraftApi = class { * @summary Create Embedded Unclaimed Draft with Template * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.ts * @param unclaimedDraftCreateEmbeddedWithTemplateRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async unclaimedDraftCreateEmbeddedWithTemplate(unclaimedDraftCreateEmbeddedWithTemplateRequest, idempotencyKey, options = { headers: {} }) { + async unclaimedDraftCreateEmbeddedWithTemplate(unclaimedDraftCreateEmbeddedWithTemplateRequest, options = { headers: {} }) { unclaimedDraftCreateEmbeddedWithTemplateRequest = deserializeIfNeeded12( unclaimedDraftCreateEmbeddedWithTemplateRequest, "UnclaimedDraftCreateEmbeddedWithTemplateRequest" @@ -39740,10 +39544,6 @@ var UnclaimedDraftApi = class { "Required parameter unclaimedDraftCreateEmbeddedWithTemplateRequest was null or undefined when calling unclaimedDraftCreateEmbeddedWithTemplate." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( @@ -39842,10 +39642,9 @@ var UnclaimedDraftApi = class { * Example: https://github.com/hellosign/dropbox-sign-node/blob/main/examples/UnclaimedDraftEditAndResendExample.ts * @param signatureRequestId The ID of the signature request to edit and resend. * @param unclaimedDraftEditAndResendRequest - * @param idempotencyKey Reuse the same key when retrying the same request. Must be 1 to 255 characters. * @param options */ - async unclaimedDraftEditAndResend(signatureRequestId, unclaimedDraftEditAndResendRequest, idempotencyKey, options = { headers: {} }) { + async unclaimedDraftEditAndResend(signatureRequestId, unclaimedDraftEditAndResendRequest, options = { headers: {} }) { unclaimedDraftEditAndResendRequest = deserializeIfNeeded12( unclaimedDraftEditAndResendRequest, "UnclaimedDraftEditAndResendRequest" @@ -39877,10 +39676,6 @@ var UnclaimedDraftApi = class { "Required parameter unclaimedDraftEditAndResendRequest was null or undefined when calling unclaimedDraftEditAndResend." ); } - localVarHeaderParams["Idempotency-Key"] = ObjectSerializer.serialize( - idempotencyKey, - "string" - ); Object.assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; const result = generateFormData( diff --git a/sdks/node/docs/api/AccountApi.md b/sdks/node/docs/api/AccountApi.md index c8d2c4f58..cb57cf6ee 100644 --- a/sdks/node/docs/api/AccountApi.md +++ b/sdks/node/docs/api/AccountApi.md @@ -13,7 +13,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `accountCreate()` ```typescript -accountCreate(accountCreateRequest: AccountCreateRequest, idempotencyKey: string): AccountCreateResponse +accountCreate(accountCreateRequest: AccountCreateRequest): AccountCreateResponse ``` Create Account @@ -51,7 +51,6 @@ apiCaller.accountCreate( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **accountCreateRequest** | [**AccountCreateRequest**](../model/AccountCreateRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -127,7 +126,7 @@ apiCaller.accountGet().then(response => { ## `accountUpdate()` ```typescript -accountUpdate(accountUpdateRequest: AccountUpdateRequest, idempotencyKey: string): AccountGetResponse +accountUpdate(accountUpdateRequest: AccountUpdateRequest): AccountGetResponse ``` Update Account @@ -166,7 +165,6 @@ apiCaller.accountUpdate( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **accountUpdateRequest** | [**AccountUpdateRequest**](../model/AccountUpdateRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -188,7 +186,7 @@ apiCaller.accountUpdate( ## `accountVerify()` ```typescript -accountVerify(accountVerifyRequest: AccountVerifyRequest, idempotencyKey: string): AccountVerifyResponse +accountVerify(accountVerifyRequest: AccountVerifyRequest): AccountVerifyResponse ``` Verify Account @@ -226,7 +224,6 @@ apiCaller.accountVerify( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **accountVerifyRequest** | [**AccountVerifyRequest**](../model/AccountVerifyRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/node/docs/api/ApiAppApi.md b/sdks/node/docs/api/ApiAppApi.md index d25de8eb2..8494edaf2 100644 --- a/sdks/node/docs/api/ApiAppApi.md +++ b/sdks/node/docs/api/ApiAppApi.md @@ -14,7 +14,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `apiAppCreate()` ```typescript -apiAppCreate(apiAppCreateRequest: ApiAppCreateRequest, idempotencyKey: string): ApiAppGetResponse +apiAppCreate(apiAppCreateRequest: ApiAppCreateRequest): ApiAppGetResponse ``` Create API App @@ -71,7 +71,6 @@ apiCaller.apiAppCreate( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **apiAppCreateRequest** | [**ApiAppCreateRequest**](../model/ApiAppCreateRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -258,7 +257,7 @@ apiCaller.apiAppList( ## `apiAppUpdate()` ```typescript -apiAppUpdate(clientId: string, apiAppUpdateRequest: ApiAppUpdateRequest, idempotencyKey: string): ApiAppGetResponse +apiAppUpdate(clientId: string, apiAppUpdateRequest: ApiAppUpdateRequest): ApiAppGetResponse ``` Update API App @@ -318,7 +317,6 @@ apiCaller.apiAppUpdate( | ------------- | ------------- | ------------- | ------------- | | **clientId** | **string**| The client id of the API App to update. | | | **apiAppUpdateRequest** | [**ApiAppUpdateRequest**](../model/ApiAppUpdateRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/node/docs/api/DocumentApi.md b/sdks/node/docs/api/DocumentApi.md index 41c015fde..75152c6a3 100644 --- a/sdks/node/docs/api/DocumentApi.md +++ b/sdks/node/docs/api/DocumentApi.md @@ -10,7 +10,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `documentDetectFields()` ```typescript -documentDetectFields(documentFieldDetectionRequest: DocumentFieldDetectionRequest, idempotencyKey: string): DocumentFieldDetectionResponse +documentDetectFields(documentFieldDetectionRequest: DocumentFieldDetectionRequest): DocumentFieldDetectionResponse ``` Detect Document Fields @@ -50,7 +50,6 @@ apiCaller.documentDetectFields( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **documentFieldDetectionRequest** | [**DocumentFieldDetectionRequest**](../model/DocumentFieldDetectionRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/node/docs/api/EmbeddedApi.md b/sdks/node/docs/api/EmbeddedApi.md index 3cebb1241..2937ac3ef 100644 --- a/sdks/node/docs/api/EmbeddedApi.md +++ b/sdks/node/docs/api/EmbeddedApi.md @@ -11,7 +11,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `embeddedEditUrl()` ```typescript -embeddedEditUrl(templateId: string, embeddedEditUrlRequest: EmbeddedEditUrlRequest, idempotencyKey: string): EmbeddedEditUrlResponse +embeddedEditUrl(templateId: string, embeddedEditUrlRequest: EmbeddedEditUrlRequest): EmbeddedEditUrlResponse ``` Get Embedded Template Edit URL @@ -57,7 +57,6 @@ apiCaller.embeddedEditUrl( | ------------- | ------------- | ------------- | ------------- | | **templateId** | **string**| The id of the template to edit. | | | **embeddedEditUrlRequest** | [**EmbeddedEditUrlRequest**](../model/EmbeddedEditUrlRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/node/docs/api/FaxApi.md b/sdks/node/docs/api/FaxApi.md index 92f4b82b3..efc84eea6 100644 --- a/sdks/node/docs/api/FaxApi.md +++ b/sdks/node/docs/api/FaxApi.md @@ -230,7 +230,7 @@ apiCaller.faxList( ## `faxSend()` ```typescript -faxSend(faxSendRequest: FaxSendRequest, idempotencyKey: string): FaxGetResponse +faxSend(faxSendRequest: FaxSendRequest): FaxGetResponse ``` Send Fax @@ -276,7 +276,6 @@ apiCaller.faxSend( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **faxSendRequest** | [**FaxSendRequest**](../model/FaxSendRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/node/docs/api/FaxLineApi.md b/sdks/node/docs/api/FaxLineApi.md index aab79538f..5c00c74cf 100644 --- a/sdks/node/docs/api/FaxLineApi.md +++ b/sdks/node/docs/api/FaxLineApi.md @@ -16,7 +16,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `faxLineAddUser()` ```typescript -faxLineAddUser(faxLineAddUserRequest: FaxLineAddUserRequest, idempotencyKey: string): FaxLineResponse +faxLineAddUser(faxLineAddUserRequest: FaxLineAddUserRequest): FaxLineResponse ``` Add Fax Line User @@ -54,7 +54,6 @@ apiCaller.faxLineAddUser( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **faxLineAddUserRequest** | [**FaxLineAddUserRequest**](../model/FaxLineAddUserRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -136,7 +135,7 @@ apiCaller.faxLineAreaCodeGet( ## `faxLineCreate()` ```typescript -faxLineCreate(faxLineCreateRequest: FaxLineCreateRequest, idempotencyKey: string): FaxLineResponse +faxLineCreate(faxLineCreateRequest: FaxLineCreateRequest): FaxLineResponse ``` Purchase Fax Line @@ -174,7 +173,6 @@ apiCaller.faxLineCreate( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **faxLineCreateRequest** | [**FaxLineCreateRequest**](../model/FaxLineCreateRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -366,7 +364,7 @@ apiCaller.faxLineList( ## `faxLineRemoveUser()` ```typescript -faxLineRemoveUser(faxLineRemoveUserRequest: FaxLineRemoveUserRequest, idempotencyKey: string): FaxLineResponse +faxLineRemoveUser(faxLineRemoveUserRequest: FaxLineRemoveUserRequest): FaxLineResponse ``` Remove Fax Line Access @@ -404,7 +402,6 @@ apiCaller.faxLineRemoveUser( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **faxLineRemoveUserRequest** | [**FaxLineRemoveUserRequest**](../model/FaxLineRemoveUserRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/node/docs/api/ReportApi.md b/sdks/node/docs/api/ReportApi.md index 2e124d26b..005e83c85 100644 --- a/sdks/node/docs/api/ReportApi.md +++ b/sdks/node/docs/api/ReportApi.md @@ -10,7 +10,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `reportCreate()` ```typescript -reportCreate(reportCreateRequest: ReportCreateRequest, idempotencyKey: string): ReportCreateResponse +reportCreate(reportCreateRequest: ReportCreateRequest): ReportCreateResponse ``` Create Report @@ -52,7 +52,6 @@ apiCaller.reportCreate( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **reportCreateRequest** | [**ReportCreateRequest**](../model/ReportCreateRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/node/docs/api/SignatureRequestApi.md b/sdks/node/docs/api/SignatureRequestApi.md index 954e2adcc..47e5e9b86 100644 --- a/sdks/node/docs/api/SignatureRequestApi.md +++ b/sdks/node/docs/api/SignatureRequestApi.md @@ -29,7 +29,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `signatureRequestBulkCreateEmbeddedWithTemplate()` ```typescript -signatureRequestBulkCreateEmbeddedWithTemplate(signatureRequestBulkCreateEmbeddedWithTemplateRequest: SignatureRequestBulkCreateEmbeddedWithTemplateRequest, idempotencyKey: string): BulkSendJobSendResponse +signatureRequestBulkCreateEmbeddedWithTemplate(signatureRequestBulkCreateEmbeddedWithTemplateRequest: SignatureRequestBulkCreateEmbeddedWithTemplateRequest): BulkSendJobSendResponse ``` Embedded Bulk Send with Template @@ -138,7 +138,6 @@ apiCaller.signatureRequestBulkCreateEmbeddedWithTemplate( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signatureRequestBulkCreateEmbeddedWithTemplateRequest** | [**SignatureRequestBulkCreateEmbeddedWithTemplateRequest**](../model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -160,7 +159,7 @@ apiCaller.signatureRequestBulkCreateEmbeddedWithTemplate( ## `signatureRequestBulkSendWithTemplate()` ```typescript -signatureRequestBulkSendWithTemplate(signatureRequestBulkSendWithTemplateRequest: SignatureRequestBulkSendWithTemplateRequest, idempotencyKey: string): BulkSendJobSendResponse +signatureRequestBulkSendWithTemplate(signatureRequestBulkSendWithTemplateRequest: SignatureRequestBulkSendWithTemplateRequest): BulkSendJobSendResponse ``` Bulk Send with Template @@ -269,7 +268,6 @@ apiCaller.signatureRequestBulkSendWithTemplate( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signatureRequestBulkSendWithTemplateRequest** | [**SignatureRequestBulkSendWithTemplateRequest**](../model/SignatureRequestBulkSendWithTemplateRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -291,7 +289,7 @@ apiCaller.signatureRequestBulkSendWithTemplate( ## `signatureRequestCancel()` ```typescript -signatureRequestCancel(signatureRequestId: string, idempotencyKey: string) +signatureRequestCancel(signatureRequestId: string) ``` Cancel Incomplete Signature Request @@ -323,7 +321,6 @@ apiCaller.signatureRequestCancel( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signatureRequestId** | **string**| The id of the incomplete SignatureRequest to cancel. | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -345,7 +342,7 @@ void (empty response body) ## `signatureRequestCreateEmbedded()` ```typescript -signatureRequestCreateEmbedded(signatureRequestCreateEmbeddedRequest: SignatureRequestCreateEmbeddedRequest, idempotencyKey: string): SignatureRequestGetResponse +signatureRequestCreateEmbedded(signatureRequestCreateEmbeddedRequest: SignatureRequestCreateEmbeddedRequest): SignatureRequestGetResponse ``` Create Embedded Signature Request @@ -422,7 +419,6 @@ apiCaller.signatureRequestCreateEmbedded( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signatureRequestCreateEmbeddedRequest** | [**SignatureRequestCreateEmbeddedRequest**](../model/SignatureRequestCreateEmbeddedRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -444,7 +440,7 @@ apiCaller.signatureRequestCreateEmbedded( ## `signatureRequestCreateEmbeddedWithTemplate()` ```typescript -signatureRequestCreateEmbeddedWithTemplate(signatureRequestCreateEmbeddedWithTemplateRequest: SignatureRequestCreateEmbeddedWithTemplateRequest, idempotencyKey: string): SignatureRequestGetResponse +signatureRequestCreateEmbeddedWithTemplate(signatureRequestCreateEmbeddedWithTemplateRequest: SignatureRequestCreateEmbeddedWithTemplateRequest): SignatureRequestGetResponse ``` Create Embedded Signature Request with Template @@ -509,7 +505,6 @@ apiCaller.signatureRequestCreateEmbeddedWithTemplate( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signatureRequestCreateEmbeddedWithTemplateRequest** | [**SignatureRequestCreateEmbeddedWithTemplateRequest**](../model/SignatureRequestCreateEmbeddedWithTemplateRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -531,7 +526,7 @@ apiCaller.signatureRequestCreateEmbeddedWithTemplate( ## `signatureRequestEdit()` ```typescript -signatureRequestEdit(signatureRequestId: string, signatureRequestEditRequest: SignatureRequestEditRequest, idempotencyKey: string): SignatureRequestGetResponse +signatureRequestEdit(signatureRequestId: string, signatureRequestEditRequest: SignatureRequestEditRequest): SignatureRequestGetResponse ``` Edit Signature Request @@ -617,7 +612,6 @@ apiCaller.signatureRequestEdit( | ------------- | ------------- | ------------- | ------------- | | **signatureRequestId** | **string**| The id of the SignatureRequest to edit. | | | **signatureRequestEditRequest** | [**SignatureRequestEditRequest**](../model/SignatureRequestEditRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -639,7 +633,7 @@ apiCaller.signatureRequestEdit( ## `signatureRequestEditEmbedded()` ```typescript -signatureRequestEditEmbedded(signatureRequestId: string, signatureRequestEditEmbeddedRequest: SignatureRequestEditEmbeddedRequest, idempotencyKey: string): SignatureRequestGetResponse +signatureRequestEditEmbedded(signatureRequestId: string, signatureRequestEditEmbeddedRequest: SignatureRequestEditEmbeddedRequest): SignatureRequestGetResponse ``` Edit Embedded Signature Request @@ -717,7 +711,6 @@ apiCaller.signatureRequestEditEmbedded( | ------------- | ------------- | ------------- | ------------- | | **signatureRequestId** | **string**| The id of the SignatureRequest to edit. | | | **signatureRequestEditEmbeddedRequest** | [**SignatureRequestEditEmbeddedRequest**](../model/SignatureRequestEditEmbeddedRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -739,7 +732,7 @@ apiCaller.signatureRequestEditEmbedded( ## `signatureRequestEditEmbeddedWithTemplate()` ```typescript -signatureRequestEditEmbeddedWithTemplate(signatureRequestId: string, signatureRequestEditEmbeddedWithTemplateRequest: SignatureRequestEditEmbeddedWithTemplateRequest, idempotencyKey: string): SignatureRequestGetResponse +signatureRequestEditEmbeddedWithTemplate(signatureRequestId: string, signatureRequestEditEmbeddedWithTemplateRequest: SignatureRequestEditEmbeddedWithTemplateRequest): SignatureRequestGetResponse ``` Edit Embedded Signature Request with Template @@ -805,7 +798,6 @@ apiCaller.signatureRequestEditEmbeddedWithTemplate( | ------------- | ------------- | ------------- | ------------- | | **signatureRequestId** | **string**| The id of the SignatureRequest to edit. | | | **signatureRequestEditEmbeddedWithTemplateRequest** | [**SignatureRequestEditEmbeddedWithTemplateRequest**](../model/SignatureRequestEditEmbeddedWithTemplateRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -827,7 +819,7 @@ apiCaller.signatureRequestEditEmbeddedWithTemplate( ## `signatureRequestEditWithTemplate()` ```typescript -signatureRequestEditWithTemplate(signatureRequestId: string, signatureRequestEditWithTemplateRequest: SignatureRequestEditWithTemplateRequest, idempotencyKey: string): SignatureRequestGetResponse +signatureRequestEditWithTemplate(signatureRequestId: string, signatureRequestEditWithTemplateRequest: SignatureRequestEditWithTemplateRequest): SignatureRequestGetResponse ``` Edit Signature Request With Template @@ -914,7 +906,6 @@ apiCaller.signatureRequestEditWithTemplate( | ------------- | ------------- | ------------- | ------------- | | **signatureRequestId** | **string**| The id of the SignatureRequest to edit. | | | **signatureRequestEditWithTemplateRequest** | [**SignatureRequestEditWithTemplateRequest**](../model/SignatureRequestEditWithTemplateRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1221,7 +1212,7 @@ apiCaller.signatureRequestList( ## `signatureRequestReleaseHold()` ```typescript -signatureRequestReleaseHold(signatureRequestId: string, idempotencyKey: string): SignatureRequestGetResponse +signatureRequestReleaseHold(signatureRequestId: string): SignatureRequestGetResponse ``` Release On-Hold Signature Request @@ -1255,7 +1246,6 @@ apiCaller.signatureRequestReleaseHold( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signatureRequestId** | **string**| The id of the SignatureRequest to release. | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1277,7 +1267,7 @@ apiCaller.signatureRequestReleaseHold( ## `signatureRequestRemind()` ```typescript -signatureRequestRemind(signatureRequestId: string, signatureRequestRemindRequest: SignatureRequestRemindRequest, idempotencyKey: string): SignatureRequestGetResponse +signatureRequestRemind(signatureRequestId: string, signatureRequestRemindRequest: SignatureRequestRemindRequest): SignatureRequestGetResponse ``` Send Request Reminder @@ -1317,7 +1307,6 @@ apiCaller.signatureRequestRemind( | ------------- | ------------- | ------------- | ------------- | | **signatureRequestId** | **string**| The id of the SignatureRequest to send a reminder for. | | | **signatureRequestRemindRequest** | [**SignatureRequestRemindRequest**](../model/SignatureRequestRemindRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1339,7 +1328,7 @@ apiCaller.signatureRequestRemind( ## `signatureRequestRemove()` ```typescript -signatureRequestRemove(signatureRequestId: string, idempotencyKey: string) +signatureRequestRemove(signatureRequestId: string) ``` Remove Signature Request Access @@ -1370,7 +1359,6 @@ apiCaller.signatureRequestRemove( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signatureRequestId** | **string**| The id of the SignatureRequest to remove. | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1392,7 +1380,7 @@ void (empty response body) ## `signatureRequestSend()` ```typescript -signatureRequestSend(signatureRequestSendRequest: SignatureRequestSendRequest, idempotencyKey: string): SignatureRequestGetResponse +signatureRequestSend(signatureRequestSendRequest: SignatureRequestSendRequest): SignatureRequestGetResponse ``` Send Signature Request @@ -1477,7 +1465,6 @@ apiCaller.signatureRequestSend( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signatureRequestSendRequest** | [**SignatureRequestSendRequest**](../model/SignatureRequestSendRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1499,7 +1486,7 @@ apiCaller.signatureRequestSend( ## `signatureRequestSendWithTemplate()` ```typescript -signatureRequestSendWithTemplate(signatureRequestSendWithTemplateRequest: SignatureRequestSendWithTemplateRequest, idempotencyKey: string): SignatureRequestGetResponse +signatureRequestSendWithTemplate(signatureRequestSendWithTemplateRequest: SignatureRequestSendWithTemplateRequest): SignatureRequestGetResponse ``` Send with Template @@ -1585,7 +1572,6 @@ apiCaller.signatureRequestSendWithTemplate( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signatureRequestSendWithTemplateRequest** | [**SignatureRequestSendWithTemplateRequest**](../model/SignatureRequestSendWithTemplateRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1607,7 +1593,7 @@ apiCaller.signatureRequestSendWithTemplate( ## `signatureRequestUpdate()` ```typescript -signatureRequestUpdate(signatureRequestId: string, signatureRequestUpdateRequest: SignatureRequestUpdateRequest, idempotencyKey: string): SignatureRequestGetResponse +signatureRequestUpdate(signatureRequestId: string, signatureRequestUpdateRequest: SignatureRequestUpdateRequest): SignatureRequestGetResponse ``` Update Signature Request @@ -1648,7 +1634,6 @@ apiCaller.signatureRequestUpdate( | ------------- | ------------- | ------------- | ------------- | | **signatureRequestId** | **string**| The id of the SignatureRequest to update. | | | **signatureRequestUpdateRequest** | [**SignatureRequestUpdateRequest**](../model/SignatureRequestUpdateRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/node/docs/api/TeamApi.md b/sdks/node/docs/api/TeamApi.md index e13d9fe46..959d4cc46 100644 --- a/sdks/node/docs/api/TeamApi.md +++ b/sdks/node/docs/api/TeamApi.md @@ -19,7 +19,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `teamAddMember()` ```typescript -teamAddMember(teamAddMemberRequest: TeamAddMemberRequest, teamId: string, idempotencyKey: string): TeamGetResponse +teamAddMember(teamAddMemberRequest: TeamAddMemberRequest, teamId: string): TeamGetResponse ``` Add User to Team @@ -59,7 +59,6 @@ apiCaller.teamAddMember( | ------------- | ------------- | ------------- | ------------- | | **teamAddMemberRequest** | [**TeamAddMemberRequest**](../model/TeamAddMemberRequest.md)| | | | **teamId** | **string**| The id of the team. | [optional] | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -81,7 +80,7 @@ apiCaller.teamAddMember( ## `teamCreate()` ```typescript -teamCreate(teamCreateRequest: TeamCreateRequest, idempotencyKey: string): TeamGetResponse +teamCreate(teamCreateRequest: TeamCreateRequest): TeamGetResponse ``` Create Team @@ -119,7 +118,6 @@ apiCaller.teamCreate( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **teamCreateRequest** | [**TeamCreateRequest**](../model/TeamCreateRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -408,7 +406,7 @@ apiCaller.teamMembers( ## `teamRemoveMember()` ```typescript -teamRemoveMember(teamRemoveMemberRequest: TeamRemoveMemberRequest, idempotencyKey: string): TeamGetResponse +teamRemoveMember(teamRemoveMemberRequest: TeamRemoveMemberRequest): TeamGetResponse ``` Remove User from Team @@ -447,7 +445,6 @@ apiCaller.teamRemoveMember( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **teamRemoveMemberRequest** | [**TeamRemoveMemberRequest**](../model/TeamRemoveMemberRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -528,7 +525,7 @@ apiCaller.teamSubTeams( ## `teamUpdate()` ```typescript -teamUpdate(teamUpdateRequest: TeamUpdateRequest, idempotencyKey: string): TeamGetResponse +teamUpdate(teamUpdateRequest: TeamUpdateRequest): TeamGetResponse ``` Update Team @@ -566,7 +563,6 @@ apiCaller.teamUpdate( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **teamUpdateRequest** | [**TeamUpdateRequest**](../model/TeamUpdateRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/node/docs/api/TemplateApi.md b/sdks/node/docs/api/TemplateApi.md index 63e05c070..a9ce2013a 100644 --- a/sdks/node/docs/api/TemplateApi.md +++ b/sdks/node/docs/api/TemplateApi.md @@ -20,7 +20,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `templateAddUser()` ```typescript -templateAddUser(templateId: string, templateAddUserRequest: TemplateAddUserRequest, idempotencyKey: string): TemplateGetResponse +templateAddUser(templateId: string, templateAddUserRequest: TemplateAddUserRequest): TemplateGetResponse ``` Add User to Template @@ -60,7 +60,6 @@ apiCaller.templateAddUser( | ------------- | ------------- | ------------- | ------------- | | **templateId** | **string**| The id of the Template to give the Account access to. | | | **templateAddUserRequest** | [**TemplateAddUserRequest**](../model/TemplateAddUserRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -82,7 +81,7 @@ apiCaller.templateAddUser( ## `templateCreate()` ```typescript -templateCreate(templateCreateRequest: TemplateCreateRequest, idempotencyKey: string): TemplateCreateResponse +templateCreate(templateCreateRequest: TemplateCreateRequest): TemplateCreateResponse ``` Create Template @@ -203,7 +202,6 @@ apiCaller.templateCreate( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **templateCreateRequest** | [**TemplateCreateRequest**](../model/TemplateCreateRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -225,7 +223,7 @@ apiCaller.templateCreate( ## `templateCreateEmbeddedDraft()` ```typescript -templateCreateEmbeddedDraft(templateCreateEmbeddedDraftRequest: TemplateCreateEmbeddedDraftRequest, idempotencyKey: string): TemplateCreateEmbeddedDraftResponse +templateCreateEmbeddedDraft(templateCreateEmbeddedDraftRequest: TemplateCreateEmbeddedDraftRequest): TemplateCreateEmbeddedDraftResponse ``` Create Embedded Template Draft @@ -310,7 +308,6 @@ apiCaller.templateCreateEmbeddedDraft( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **templateCreateEmbeddedDraftRequest** | [**TemplateCreateEmbeddedDraftRequest**](../model/TemplateCreateEmbeddedDraftRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -332,7 +329,7 @@ apiCaller.templateCreateEmbeddedDraft( ## `templateDelete()` ```typescript -templateDelete(templateId: string, idempotencyKey: string) +templateDelete(templateId: string) ``` Delete Template @@ -364,7 +361,6 @@ apiCaller.templateDelete( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **templateId** | **string**| The id of the Template to delete. | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -671,7 +667,7 @@ apiCaller.templateList( ## `templateRemoveUser()` ```typescript -templateRemoveUser(templateId: string, templateRemoveUserRequest: TemplateRemoveUserRequest, idempotencyKey: string): TemplateGetResponse +templateRemoveUser(templateId: string, templateRemoveUserRequest: TemplateRemoveUserRequest): TemplateGetResponse ``` Remove User from Template @@ -711,7 +707,6 @@ apiCaller.templateRemoveUser( | ------------- | ------------- | ------------- | ------------- | | **templateId** | **string**| The id of the Template to remove the Account\'s access to. | | | **templateRemoveUserRequest** | [**TemplateRemoveUserRequest**](../model/TemplateRemoveUserRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -733,7 +728,7 @@ apiCaller.templateRemoveUser( ## `templateUpdateFiles()` ```typescript -templateUpdateFiles(templateId: string, templateUpdateFilesRequest: TemplateUpdateFilesRequest, idempotencyKey: string): TemplateUpdateFilesResponse +templateUpdateFiles(templateId: string, templateUpdateFilesRequest: TemplateUpdateFilesRequest): TemplateUpdateFilesResponse ``` Update Template Files @@ -775,7 +770,6 @@ apiCaller.templateUpdateFiles( | ------------- | ------------- | ------------- | ------------- | | **templateId** | **string**| The ID of the template whose files to update. | | | **templateUpdateFilesRequest** | [**TemplateUpdateFilesRequest**](../model/TemplateUpdateFilesRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/node/docs/api/UnclaimedDraftApi.md b/sdks/node/docs/api/UnclaimedDraftApi.md index a02d71f96..ef4bb1104 100644 --- a/sdks/node/docs/api/UnclaimedDraftApi.md +++ b/sdks/node/docs/api/UnclaimedDraftApi.md @@ -13,7 +13,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `unclaimedDraftCreate()` ```typescript -unclaimedDraftCreate(unclaimedDraftCreateRequest: UnclaimedDraftCreateRequest, idempotencyKey: string): UnclaimedDraftCreateResponse +unclaimedDraftCreate(unclaimedDraftCreateRequest: UnclaimedDraftCreateRequest): UnclaimedDraftCreateResponse ``` Create Unclaimed Draft @@ -66,7 +66,6 @@ apiCaller.unclaimedDraftCreate( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **unclaimedDraftCreateRequest** | [**UnclaimedDraftCreateRequest**](../model/UnclaimedDraftCreateRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -88,7 +87,7 @@ apiCaller.unclaimedDraftCreate( ## `unclaimedDraftCreateEmbedded()` ```typescript -unclaimedDraftCreateEmbedded(unclaimedDraftCreateEmbeddedRequest: UnclaimedDraftCreateEmbeddedRequest, idempotencyKey: string): UnclaimedDraftCreateResponse +unclaimedDraftCreateEmbedded(unclaimedDraftCreateEmbeddedRequest: UnclaimedDraftCreateEmbeddedRequest): UnclaimedDraftCreateResponse ``` Create Embedded Unclaimed Draft @@ -131,7 +130,6 @@ apiCaller.unclaimedDraftCreateEmbedded( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **unclaimedDraftCreateEmbeddedRequest** | [**UnclaimedDraftCreateEmbeddedRequest**](../model/UnclaimedDraftCreateEmbeddedRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -153,7 +151,7 @@ apiCaller.unclaimedDraftCreateEmbedded( ## `unclaimedDraftCreateEmbeddedWithTemplate()` ```typescript -unclaimedDraftCreateEmbeddedWithTemplate(unclaimedDraftCreateEmbeddedWithTemplateRequest: UnclaimedDraftCreateEmbeddedWithTemplateRequest, idempotencyKey: string): UnclaimedDraftCreateResponse +unclaimedDraftCreateEmbeddedWithTemplate(unclaimedDraftCreateEmbeddedWithTemplateRequest: UnclaimedDraftCreateEmbeddedWithTemplateRequest): UnclaimedDraftCreateResponse ``` Create Embedded Unclaimed Draft with Template @@ -217,7 +215,6 @@ apiCaller.unclaimedDraftCreateEmbeddedWithTemplate( |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **unclaimedDraftCreateEmbeddedWithTemplateRequest** | [**UnclaimedDraftCreateEmbeddedWithTemplateRequest**](../model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -239,7 +236,7 @@ apiCaller.unclaimedDraftCreateEmbeddedWithTemplate( ## `unclaimedDraftEditAndResend()` ```typescript -unclaimedDraftEditAndResend(signatureRequestId: string, unclaimedDraftEditAndResendRequest: UnclaimedDraftEditAndResendRequest, idempotencyKey: string): UnclaimedDraftCreateResponse +unclaimedDraftEditAndResend(signatureRequestId: string, unclaimedDraftEditAndResendRequest: UnclaimedDraftEditAndResendRequest): UnclaimedDraftCreateResponse ``` Edit and Resend Unclaimed Draft @@ -280,7 +277,6 @@ apiCaller.unclaimedDraftEditAndResend( | ------------- | ------------- | ------------- | ------------- | | **signatureRequestId** | **string**| The ID of the signature request to edit and resend. | | | **unclaimedDraftEditAndResendRequest** | [**UnclaimedDraftEditAndResendRequest**](../model/UnclaimedDraftEditAndResendRequest.md)| | | -| **idempotencyKey** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/node/types/api/accountApi.d.ts b/sdks/node/types/api/accountApi.d.ts index b44e635af..21a0bc1c4 100644 --- a/sdks/node/types/api/accountApi.d.ts +++ b/sdks/node/types/api/accountApi.d.ts @@ -24,8 +24,8 @@ export declare class AccountApi { set password(password: string); set accessToken(accessToken: string | (() => string)); addInterceptor(interceptor: Interceptor): void; - accountCreate(accountCreateRequest: AccountCreateRequest, idempotencyKey?: string, options?: optionsI): Promise>; + accountCreate(accountCreateRequest: AccountCreateRequest, options?: optionsI): Promise>; accountGet(accountId?: string, emailAddress?: string, options?: optionsI): Promise>; - accountUpdate(accountUpdateRequest: AccountUpdateRequest, idempotencyKey?: string, options?: optionsI): Promise>; - accountVerify(accountVerifyRequest: AccountVerifyRequest, idempotencyKey?: string, options?: optionsI): Promise>; + accountUpdate(accountUpdateRequest: AccountUpdateRequest, options?: optionsI): Promise>; + accountVerify(accountVerifyRequest: AccountVerifyRequest, options?: optionsI): Promise>; } diff --git a/sdks/node/types/api/apiAppApi.d.ts b/sdks/node/types/api/apiAppApi.d.ts index 850ab7772..c07f8bea3 100644 --- a/sdks/node/types/api/apiAppApi.d.ts +++ b/sdks/node/types/api/apiAppApi.d.ts @@ -24,9 +24,9 @@ export declare class ApiAppApi { set password(password: string); set accessToken(accessToken: string | (() => string)); addInterceptor(interceptor: Interceptor): void; - apiAppCreate(apiAppCreateRequest: ApiAppCreateRequest, idempotencyKey?: string, options?: optionsI): Promise>; + apiAppCreate(apiAppCreateRequest: ApiAppCreateRequest, options?: optionsI): Promise>; apiAppDelete(clientId: string, options?: optionsI): Promise; apiAppGet(clientId: string, options?: optionsI): Promise>; apiAppList(page?: number, pageSize?: number, options?: optionsI): Promise>; - apiAppUpdate(clientId: string, apiAppUpdateRequest: ApiAppUpdateRequest, idempotencyKey?: string, options?: optionsI): Promise>; + apiAppUpdate(clientId: string, apiAppUpdateRequest: ApiAppUpdateRequest, options?: optionsI): Promise>; } diff --git a/sdks/node/types/api/documentApi.d.ts b/sdks/node/types/api/documentApi.d.ts index 5d56b5a8b..0a815230a 100644 --- a/sdks/node/types/api/documentApi.d.ts +++ b/sdks/node/types/api/documentApi.d.ts @@ -24,5 +24,5 @@ export declare class DocumentApi { set password(password: string); set accessToken(accessToken: string | (() => string)); addInterceptor(interceptor: Interceptor): void; - documentDetectFields(documentFieldDetectionRequest: DocumentFieldDetectionRequest, idempotencyKey?: string, options?: optionsI): Promise>; + documentDetectFields(documentFieldDetectionRequest: DocumentFieldDetectionRequest, options?: optionsI): Promise>; } diff --git a/sdks/node/types/api/embeddedApi.d.ts b/sdks/node/types/api/embeddedApi.d.ts index 0bf84bb85..f66b6d702 100644 --- a/sdks/node/types/api/embeddedApi.d.ts +++ b/sdks/node/types/api/embeddedApi.d.ts @@ -24,6 +24,6 @@ export declare class EmbeddedApi { set password(password: string); set accessToken(accessToken: string | (() => string)); addInterceptor(interceptor: Interceptor): void; - embeddedEditUrl(templateId: string, embeddedEditUrlRequest: EmbeddedEditUrlRequest, idempotencyKey?: string, options?: optionsI): Promise>; + embeddedEditUrl(templateId: string, embeddedEditUrlRequest: EmbeddedEditUrlRequest, options?: optionsI): Promise>; embeddedSignUrl(signatureId: string, options?: optionsI): Promise>; } diff --git a/sdks/node/types/api/faxApi.d.ts b/sdks/node/types/api/faxApi.d.ts index e0d9f8398..f18e42259 100644 --- a/sdks/node/types/api/faxApi.d.ts +++ b/sdks/node/types/api/faxApi.d.ts @@ -28,5 +28,5 @@ export declare class FaxApi { faxFiles(faxId: string, options?: optionsI): Promise>; faxGet(faxId: string, options?: optionsI): Promise>; faxList(page?: number, pageSize?: number, options?: optionsI): Promise>; - faxSend(faxSendRequest: FaxSendRequest, idempotencyKey?: string, options?: optionsI): Promise>; + faxSend(faxSendRequest: FaxSendRequest, options?: optionsI): Promise>; } diff --git a/sdks/node/types/api/faxLineApi.d.ts b/sdks/node/types/api/faxLineApi.d.ts index 01e239972..64b2a45a0 100644 --- a/sdks/node/types/api/faxLineApi.d.ts +++ b/sdks/node/types/api/faxLineApi.d.ts @@ -24,11 +24,11 @@ export declare class FaxLineApi { set password(password: string); set accessToken(accessToken: string | (() => string)); addInterceptor(interceptor: Interceptor): void; - faxLineAddUser(faxLineAddUserRequest: FaxLineAddUserRequest, idempotencyKey?: string, options?: optionsI): Promise>; + faxLineAddUser(faxLineAddUserRequest: FaxLineAddUserRequest, options?: optionsI): Promise>; faxLineAreaCodeGet(country: "CA" | "US" | "UK", state?: "AK" | "AL" | "AR" | "AZ" | "CA" | "CO" | "CT" | "DC" | "DE" | "FL" | "GA" | "HI" | "IA" | "ID" | "IL" | "IN" | "KS" | "KY" | "LA" | "MA" | "MD" | "ME" | "MI" | "MN" | "MO" | "MS" | "MT" | "NC" | "ND" | "NE" | "NH" | "NJ" | "NM" | "NV" | "NY" | "OH" | "OK" | "OR" | "PA" | "RI" | "SC" | "SD" | "TN" | "TX" | "UT" | "VA" | "VT" | "WA" | "WI" | "WV" | "WY", province?: "AB" | "BC" | "MB" | "NB" | "NL" | "NT" | "NS" | "NU" | "ON" | "PE" | "QC" | "SK" | "YT", city?: string, options?: optionsI): Promise>; - faxLineCreate(faxLineCreateRequest: FaxLineCreateRequest, idempotencyKey?: string, options?: optionsI): Promise>; + faxLineCreate(faxLineCreateRequest: FaxLineCreateRequest, options?: optionsI): Promise>; faxLineDelete(faxLineDeleteRequest: FaxLineDeleteRequest, options?: optionsI): Promise; faxLineGet(number: string, options?: optionsI): Promise>; faxLineList(accountId?: string, page?: number, pageSize?: number, showTeamLines?: boolean, options?: optionsI): Promise>; - faxLineRemoveUser(faxLineRemoveUserRequest: FaxLineRemoveUserRequest, idempotencyKey?: string, options?: optionsI): Promise>; + faxLineRemoveUser(faxLineRemoveUserRequest: FaxLineRemoveUserRequest, options?: optionsI): Promise>; } diff --git a/sdks/node/types/api/reportApi.d.ts b/sdks/node/types/api/reportApi.d.ts index 2b74b0f34..c32ef2358 100644 --- a/sdks/node/types/api/reportApi.d.ts +++ b/sdks/node/types/api/reportApi.d.ts @@ -24,5 +24,5 @@ export declare class ReportApi { set password(password: string); set accessToken(accessToken: string | (() => string)); addInterceptor(interceptor: Interceptor): void; - reportCreate(reportCreateRequest: ReportCreateRequest, idempotencyKey?: string, options?: optionsI): Promise>; + reportCreate(reportCreateRequest: ReportCreateRequest, options?: optionsI): Promise>; } diff --git a/sdks/node/types/api/signatureRequestApi.d.ts b/sdks/node/types/api/signatureRequestApi.d.ts index fd780acdb..54c21ae91 100644 --- a/sdks/node/types/api/signatureRequestApi.d.ts +++ b/sdks/node/types/api/signatureRequestApi.d.ts @@ -24,24 +24,24 @@ export declare class SignatureRequestApi { set password(password: string); set accessToken(accessToken: string | (() => string)); addInterceptor(interceptor: Interceptor): void; - signatureRequestBulkCreateEmbeddedWithTemplate(signatureRequestBulkCreateEmbeddedWithTemplateRequest: SignatureRequestBulkCreateEmbeddedWithTemplateRequest, idempotencyKey?: string, options?: optionsI): Promise>; - signatureRequestBulkSendWithTemplate(signatureRequestBulkSendWithTemplateRequest: SignatureRequestBulkSendWithTemplateRequest, idempotencyKey?: string, options?: optionsI): Promise>; - signatureRequestCancel(signatureRequestId: string, idempotencyKey?: string, options?: optionsI): Promise; - signatureRequestCreateEmbedded(signatureRequestCreateEmbeddedRequest: SignatureRequestCreateEmbeddedRequest, idempotencyKey?: string, options?: optionsI): Promise>; - signatureRequestCreateEmbeddedWithTemplate(signatureRequestCreateEmbeddedWithTemplateRequest: SignatureRequestCreateEmbeddedWithTemplateRequest, idempotencyKey?: string, options?: optionsI): Promise>; - signatureRequestEdit(signatureRequestId: string, signatureRequestEditRequest: SignatureRequestEditRequest, idempotencyKey?: string, options?: optionsI): Promise>; - signatureRequestEditEmbedded(signatureRequestId: string, signatureRequestEditEmbeddedRequest: SignatureRequestEditEmbeddedRequest, idempotencyKey?: string, options?: optionsI): Promise>; - signatureRequestEditEmbeddedWithTemplate(signatureRequestId: string, signatureRequestEditEmbeddedWithTemplateRequest: SignatureRequestEditEmbeddedWithTemplateRequest, idempotencyKey?: string, options?: optionsI): Promise>; - signatureRequestEditWithTemplate(signatureRequestId: string, signatureRequestEditWithTemplateRequest: SignatureRequestEditWithTemplateRequest, idempotencyKey?: string, options?: optionsI): Promise>; + signatureRequestBulkCreateEmbeddedWithTemplate(signatureRequestBulkCreateEmbeddedWithTemplateRequest: SignatureRequestBulkCreateEmbeddedWithTemplateRequest, options?: optionsI): Promise>; + signatureRequestBulkSendWithTemplate(signatureRequestBulkSendWithTemplateRequest: SignatureRequestBulkSendWithTemplateRequest, options?: optionsI): Promise>; + signatureRequestCancel(signatureRequestId: string, options?: optionsI): Promise; + signatureRequestCreateEmbedded(signatureRequestCreateEmbeddedRequest: SignatureRequestCreateEmbeddedRequest, options?: optionsI): Promise>; + signatureRequestCreateEmbeddedWithTemplate(signatureRequestCreateEmbeddedWithTemplateRequest: SignatureRequestCreateEmbeddedWithTemplateRequest, options?: optionsI): Promise>; + signatureRequestEdit(signatureRequestId: string, signatureRequestEditRequest: SignatureRequestEditRequest, options?: optionsI): Promise>; + signatureRequestEditEmbedded(signatureRequestId: string, signatureRequestEditEmbeddedRequest: SignatureRequestEditEmbeddedRequest, options?: optionsI): Promise>; + signatureRequestEditEmbeddedWithTemplate(signatureRequestId: string, signatureRequestEditEmbeddedWithTemplateRequest: SignatureRequestEditEmbeddedWithTemplateRequest, options?: optionsI): Promise>; + signatureRequestEditWithTemplate(signatureRequestId: string, signatureRequestEditWithTemplateRequest: SignatureRequestEditWithTemplateRequest, options?: optionsI): Promise>; signatureRequestFiles(signatureRequestId: string, fileType?: "pdf" | "zip", options?: optionsI): Promise>; signatureRequestFilesAsDataUri(signatureRequestId: string, options?: optionsI): Promise>; signatureRequestFilesAsFileUrl(signatureRequestId: string, forceDownload?: number, options?: optionsI): Promise>; signatureRequestGet(signatureRequestId: string, options?: optionsI): Promise>; signatureRequestList(accountId?: string, page?: number, pageSize?: number, query?: string, options?: optionsI): Promise>; - signatureRequestReleaseHold(signatureRequestId: string, idempotencyKey?: string, options?: optionsI): Promise>; - signatureRequestRemind(signatureRequestId: string, signatureRequestRemindRequest: SignatureRequestRemindRequest, idempotencyKey?: string, options?: optionsI): Promise>; - signatureRequestRemove(signatureRequestId: string, idempotencyKey?: string, options?: optionsI): Promise; - signatureRequestSend(signatureRequestSendRequest: SignatureRequestSendRequest, idempotencyKey?: string, options?: optionsI): Promise>; - signatureRequestSendWithTemplate(signatureRequestSendWithTemplateRequest: SignatureRequestSendWithTemplateRequest, idempotencyKey?: string, options?: optionsI): Promise>; - signatureRequestUpdate(signatureRequestId: string, signatureRequestUpdateRequest: SignatureRequestUpdateRequest, idempotencyKey?: string, options?: optionsI): Promise>; + signatureRequestReleaseHold(signatureRequestId: string, options?: optionsI): Promise>; + signatureRequestRemind(signatureRequestId: string, signatureRequestRemindRequest: SignatureRequestRemindRequest, options?: optionsI): Promise>; + signatureRequestRemove(signatureRequestId: string, options?: optionsI): Promise; + signatureRequestSend(signatureRequestSendRequest: SignatureRequestSendRequest, options?: optionsI): Promise>; + signatureRequestSendWithTemplate(signatureRequestSendWithTemplateRequest: SignatureRequestSendWithTemplateRequest, options?: optionsI): Promise>; + signatureRequestUpdate(signatureRequestId: string, signatureRequestUpdateRequest: SignatureRequestUpdateRequest, options?: optionsI): Promise>; } diff --git a/sdks/node/types/api/teamApi.d.ts b/sdks/node/types/api/teamApi.d.ts index 90696d379..31b05a503 100644 --- a/sdks/node/types/api/teamApi.d.ts +++ b/sdks/node/types/api/teamApi.d.ts @@ -24,14 +24,14 @@ export declare class TeamApi { set password(password: string); set accessToken(accessToken: string | (() => string)); addInterceptor(interceptor: Interceptor): void; - teamAddMember(teamAddMemberRequest: TeamAddMemberRequest, teamId?: string, idempotencyKey?: string, options?: optionsI): Promise>; - teamCreate(teamCreateRequest: TeamCreateRequest, idempotencyKey?: string, options?: optionsI): Promise>; + teamAddMember(teamAddMemberRequest: TeamAddMemberRequest, teamId?: string, options?: optionsI): Promise>; + teamCreate(teamCreateRequest: TeamCreateRequest, options?: optionsI): Promise>; teamDelete(options?: optionsI): Promise; teamGet(options?: optionsI): Promise>; teamInfo(teamId?: string, options?: optionsI): Promise>; teamInvites(emailAddress?: string, options?: optionsI): Promise>; teamMembers(teamId: string, page?: number, pageSize?: number, options?: optionsI): Promise>; - teamRemoveMember(teamRemoveMemberRequest: TeamRemoveMemberRequest, idempotencyKey?: string, options?: optionsI): Promise>; + teamRemoveMember(teamRemoveMemberRequest: TeamRemoveMemberRequest, options?: optionsI): Promise>; teamSubTeams(teamId: string, page?: number, pageSize?: number, options?: optionsI): Promise>; - teamUpdate(teamUpdateRequest: TeamUpdateRequest, idempotencyKey?: string, options?: optionsI): Promise>; + teamUpdate(teamUpdateRequest: TeamUpdateRequest, options?: optionsI): Promise>; } diff --git a/sdks/node/types/api/templateApi.d.ts b/sdks/node/types/api/templateApi.d.ts index 02d7f3dd8..aeaa69a46 100644 --- a/sdks/node/types/api/templateApi.d.ts +++ b/sdks/node/types/api/templateApi.d.ts @@ -24,15 +24,15 @@ export declare class TemplateApi { set password(password: string); set accessToken(accessToken: string | (() => string)); addInterceptor(interceptor: Interceptor): void; - templateAddUser(templateId: string, templateAddUserRequest: TemplateAddUserRequest, idempotencyKey?: string, options?: optionsI): Promise>; - templateCreate(templateCreateRequest: TemplateCreateRequest, idempotencyKey?: string, options?: optionsI): Promise>; - templateCreateEmbeddedDraft(templateCreateEmbeddedDraftRequest: TemplateCreateEmbeddedDraftRequest, idempotencyKey?: string, options?: optionsI): Promise>; - templateDelete(templateId: string, idempotencyKey?: string, options?: optionsI): Promise; + templateAddUser(templateId: string, templateAddUserRequest: TemplateAddUserRequest, options?: optionsI): Promise>; + templateCreate(templateCreateRequest: TemplateCreateRequest, options?: optionsI): Promise>; + templateCreateEmbeddedDraft(templateCreateEmbeddedDraftRequest: TemplateCreateEmbeddedDraftRequest, options?: optionsI): Promise>; + templateDelete(templateId: string, options?: optionsI): Promise; templateFiles(templateId: string, fileType?: "pdf" | "zip", options?: optionsI): Promise>; templateFilesAsDataUri(templateId: string, options?: optionsI): Promise>; templateFilesAsFileUrl(templateId: string, forceDownload?: number, options?: optionsI): Promise>; templateGet(templateId: string, options?: optionsI): Promise>; templateList(accountId?: string, page?: number, pageSize?: number, query?: string, options?: optionsI): Promise>; - templateRemoveUser(templateId: string, templateRemoveUserRequest: TemplateRemoveUserRequest, idempotencyKey?: string, options?: optionsI): Promise>; - templateUpdateFiles(templateId: string, templateUpdateFilesRequest: TemplateUpdateFilesRequest, idempotencyKey?: string, options?: optionsI): Promise>; + templateRemoveUser(templateId: string, templateRemoveUserRequest: TemplateRemoveUserRequest, options?: optionsI): Promise>; + templateUpdateFiles(templateId: string, templateUpdateFilesRequest: TemplateUpdateFilesRequest, options?: optionsI): Promise>; } diff --git a/sdks/node/types/api/unclaimedDraftApi.d.ts b/sdks/node/types/api/unclaimedDraftApi.d.ts index 3a8f93584..df8e1699c 100644 --- a/sdks/node/types/api/unclaimedDraftApi.d.ts +++ b/sdks/node/types/api/unclaimedDraftApi.d.ts @@ -24,8 +24,8 @@ export declare class UnclaimedDraftApi { set password(password: string); set accessToken(accessToken: string | (() => string)); addInterceptor(interceptor: Interceptor): void; - unclaimedDraftCreate(unclaimedDraftCreateRequest: UnclaimedDraftCreateRequest, idempotencyKey?: string, options?: optionsI): Promise>; - unclaimedDraftCreateEmbedded(unclaimedDraftCreateEmbeddedRequest: UnclaimedDraftCreateEmbeddedRequest, idempotencyKey?: string, options?: optionsI): Promise>; - unclaimedDraftCreateEmbeddedWithTemplate(unclaimedDraftCreateEmbeddedWithTemplateRequest: UnclaimedDraftCreateEmbeddedWithTemplateRequest, idempotencyKey?: string, options?: optionsI): Promise>; - unclaimedDraftEditAndResend(signatureRequestId: string, unclaimedDraftEditAndResendRequest: UnclaimedDraftEditAndResendRequest, idempotencyKey?: string, options?: optionsI): Promise>; + unclaimedDraftCreate(unclaimedDraftCreateRequest: UnclaimedDraftCreateRequest, options?: optionsI): Promise>; + unclaimedDraftCreateEmbedded(unclaimedDraftCreateEmbeddedRequest: UnclaimedDraftCreateEmbeddedRequest, options?: optionsI): Promise>; + unclaimedDraftCreateEmbeddedWithTemplate(unclaimedDraftCreateEmbeddedWithTemplateRequest: UnclaimedDraftCreateEmbeddedWithTemplateRequest, options?: optionsI): Promise>; + unclaimedDraftEditAndResend(signatureRequestId: string, unclaimedDraftEditAndResendRequest: UnclaimedDraftEditAndResendRequest, options?: optionsI): Promise>; } diff --git a/sdks/php/docs/Api/AccountApi.md b/sdks/php/docs/Api/AccountApi.md index fe3609b59..6d0f700ef 100644 --- a/sdks/php/docs/Api/AccountApi.md +++ b/sdks/php/docs/Api/AccountApi.md @@ -13,7 +13,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `accountCreate()` ```php -accountCreate($account_create_request, $idempotency_key): \Dropbox\Sign\Model\AccountCreateResponse +accountCreate($account_create_request): \Dropbox\Sign\Model\AccountCreateResponse ``` Create Account @@ -55,7 +55,6 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **account_create_request** | [**\Dropbox\Sign\Model\AccountCreateRequest**](../Model/AccountCreateRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -136,7 +135,7 @@ try { ## `accountUpdate()` ```php -accountUpdate($account_update_request, $idempotency_key): \Dropbox\Sign\Model\AccountGetResponse +accountUpdate($account_update_request): \Dropbox\Sign\Model\AccountGetResponse ``` Update Account @@ -179,7 +178,6 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **account_update_request** | [**\Dropbox\Sign\Model\AccountUpdateRequest**](../Model/AccountUpdateRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -201,7 +199,7 @@ try { ## `accountVerify()` ```php -accountVerify($account_verify_request, $idempotency_key): \Dropbox\Sign\Model\AccountVerifyResponse +accountVerify($account_verify_request): \Dropbox\Sign\Model\AccountVerifyResponse ``` Verify Account @@ -243,7 +241,6 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **account_verify_request** | [**\Dropbox\Sign\Model\AccountVerifyRequest**](../Model/AccountVerifyRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/php/docs/Api/ApiAppApi.md b/sdks/php/docs/Api/ApiAppApi.md index 081c24fa3..eb5e933ca 100644 --- a/sdks/php/docs/Api/ApiAppApi.md +++ b/sdks/php/docs/Api/ApiAppApi.md @@ -14,7 +14,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `apiAppCreate()` ```php -apiAppCreate($api_app_create_request, $idempotency_key): \Dropbox\Sign\Model\ApiAppGetResponse +apiAppCreate($api_app_create_request): \Dropbox\Sign\Model\ApiAppGetResponse ``` Create API App @@ -73,7 +73,6 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **api_app_create_request** | [**\Dropbox\Sign\Model\ApiAppCreateRequest**](../Model/ApiAppCreateRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -275,7 +274,7 @@ try { ## `apiAppUpdate()` ```php -apiAppUpdate($client_id, $api_app_update_request, $idempotency_key): \Dropbox\Sign\Model\ApiAppGetResponse +apiAppUpdate($client_id, $api_app_update_request): \Dropbox\Sign\Model\ApiAppGetResponse ``` Update API App @@ -337,7 +336,6 @@ try { | ------------- | ------------- | ------------- | ------------- | | **client_id** | **string**| The client id of the API App to update. | | | **api_app_update_request** | [**\Dropbox\Sign\Model\ApiAppUpdateRequest**](../Model/ApiAppUpdateRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/php/docs/Api/DocumentApi.md b/sdks/php/docs/Api/DocumentApi.md index 47b48846b..668f2d3f8 100644 --- a/sdks/php/docs/Api/DocumentApi.md +++ b/sdks/php/docs/Api/DocumentApi.md @@ -10,7 +10,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `documentDetectFields()` ```php -documentDetectFields($document_field_detection_request, $idempotency_key): \Dropbox\Sign\Model\DocumentFieldDetectionResponse +documentDetectFields($document_field_detection_request): \Dropbox\Sign\Model\DocumentFieldDetectionResponse ``` Detect Document Fields @@ -54,7 +54,6 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **document_field_detection_request** | [**\Dropbox\Sign\Model\DocumentFieldDetectionRequest**](../Model/DocumentFieldDetectionRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/php/docs/Api/EmbeddedApi.md b/sdks/php/docs/Api/EmbeddedApi.md index 89b7b07da..c186d9420 100644 --- a/sdks/php/docs/Api/EmbeddedApi.md +++ b/sdks/php/docs/Api/EmbeddedApi.md @@ -11,7 +11,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `embeddedEditUrl()` ```php -embeddedEditUrl($template_id, $embedded_edit_url_request, $idempotency_key): \Dropbox\Sign\Model\EmbeddedEditUrlResponse +embeddedEditUrl($template_id, $embedded_edit_url_request): \Dropbox\Sign\Model\EmbeddedEditUrlResponse ``` Get Embedded Template Edit URL @@ -61,7 +61,6 @@ try { | ------------- | ------------- | ------------- | ------------- | | **template_id** | **string**| The id of the template to edit. | | | **embedded_edit_url_request** | [**\Dropbox\Sign\Model\EmbeddedEditUrlRequest**](../Model/EmbeddedEditUrlRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/php/docs/Api/FaxApi.md b/sdks/php/docs/Api/FaxApi.md index b76a2ff5f..aeb7a3949 100644 --- a/sdks/php/docs/Api/FaxApi.md +++ b/sdks/php/docs/Api/FaxApi.md @@ -250,7 +250,7 @@ try { ## `faxSend()` ```php -faxSend($fax_send_request, $idempotency_key): \Dropbox\Sign\Model\FaxGetResponse +faxSend($fax_send_request): \Dropbox\Sign\Model\FaxGetResponse ``` Send Fax @@ -299,7 +299,6 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **fax_send_request** | [**\Dropbox\Sign\Model\FaxSendRequest**](../Model/FaxSendRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/php/docs/Api/FaxLineApi.md b/sdks/php/docs/Api/FaxLineApi.md index 3209af065..123fd3c96 100644 --- a/sdks/php/docs/Api/FaxLineApi.md +++ b/sdks/php/docs/Api/FaxLineApi.md @@ -16,7 +16,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `faxLineAddUser()` ```php -faxLineAddUser($fax_line_add_user_request, $idempotency_key): \Dropbox\Sign\Model\FaxLineResponse +faxLineAddUser($fax_line_add_user_request): \Dropbox\Sign\Model\FaxLineResponse ``` Add Fax Line User @@ -58,7 +58,6 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **fax_line_add_user_request** | [**\Dropbox\Sign\Model\FaxLineAddUserRequest**](../Model/FaxLineAddUserRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -142,7 +141,7 @@ try { ## `faxLineCreate()` ```php -faxLineCreate($fax_line_create_request, $idempotency_key): \Dropbox\Sign\Model\FaxLineResponse +faxLineCreate($fax_line_create_request): \Dropbox\Sign\Model\FaxLineResponse ``` Purchase Fax Line @@ -184,7 +183,6 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **fax_line_create_request** | [**\Dropbox\Sign\Model\FaxLineCreateRequest**](../Model/FaxLineCreateRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -389,7 +387,7 @@ try { ## `faxLineRemoveUser()` ```php -faxLineRemoveUser($fax_line_remove_user_request, $idempotency_key): \Dropbox\Sign\Model\FaxLineResponse +faxLineRemoveUser($fax_line_remove_user_request): \Dropbox\Sign\Model\FaxLineResponse ``` Remove Fax Line Access @@ -431,7 +429,6 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **fax_line_remove_user_request** | [**\Dropbox\Sign\Model\FaxLineRemoveUserRequest**](../Model/FaxLineRemoveUserRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/php/docs/Api/ReportApi.md b/sdks/php/docs/Api/ReportApi.md index 36964b702..2609a12d9 100644 --- a/sdks/php/docs/Api/ReportApi.md +++ b/sdks/php/docs/Api/ReportApi.md @@ -10,7 +10,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `reportCreate()` ```php -reportCreate($report_create_request, $idempotency_key): \Dropbox\Sign\Model\ReportCreateResponse +reportCreate($report_create_request): \Dropbox\Sign\Model\ReportCreateResponse ``` Create Report @@ -56,7 +56,6 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **report_create_request** | [**\Dropbox\Sign\Model\ReportCreateRequest**](../Model/ReportCreateRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/php/docs/Api/SignatureRequestApi.md b/sdks/php/docs/Api/SignatureRequestApi.md index ddb48535b..5e395b147 100644 --- a/sdks/php/docs/Api/SignatureRequestApi.md +++ b/sdks/php/docs/Api/SignatureRequestApi.md @@ -29,7 +29,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `signatureRequestBulkCreateEmbeddedWithTemplate()` ```php -signatureRequestBulkCreateEmbeddedWithTemplate($signature_request_bulk_create_embedded_with_template_request, $idempotency_key): \Dropbox\Sign\Model\BulkSendJobSendResponse +signatureRequestBulkCreateEmbeddedWithTemplate($signature_request_bulk_create_embedded_with_template_request): \Dropbox\Sign\Model\BulkSendJobSendResponse ``` Embedded Bulk Send with Template @@ -135,7 +135,6 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signature_request_bulk_create_embedded_with_template_request** | [**\Dropbox\Sign\Model\SignatureRequestBulkCreateEmbeddedWithTemplateRequest**](../Model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -157,7 +156,7 @@ try { ## `signatureRequestBulkSendWithTemplate()` ```php -signatureRequestBulkSendWithTemplate($signature_request_bulk_send_with_template_request, $idempotency_key): \Dropbox\Sign\Model\BulkSendJobSendResponse +signatureRequestBulkSendWithTemplate($signature_request_bulk_send_with_template_request): \Dropbox\Sign\Model\BulkSendJobSendResponse ``` Bulk Send with Template @@ -263,7 +262,6 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signature_request_bulk_send_with_template_request** | [**\Dropbox\Sign\Model\SignatureRequestBulkSendWithTemplateRequest**](../Model/SignatureRequestBulkSendWithTemplateRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -285,7 +283,7 @@ try { ## `signatureRequestCancel()` ```php -signatureRequestCancel($signature_request_id, $idempotency_key) +signatureRequestCancel($signature_request_id) ``` Cancel Incomplete Signature Request @@ -322,7 +320,6 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signature_request_id** | **string**| The id of the incomplete SignatureRequest to cancel. | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -344,7 +341,7 @@ void (empty response body) ## `signatureRequestCreateEmbedded()` ```php -signatureRequestCreateEmbedded($signature_request_create_embedded_request, $idempotency_key): \Dropbox\Sign\Model\SignatureRequestGetResponse +signatureRequestCreateEmbedded($signature_request_create_embedded_request): \Dropbox\Sign\Model\SignatureRequestGetResponse ``` Create Embedded Signature Request @@ -421,7 +418,6 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signature_request_create_embedded_request** | [**\Dropbox\Sign\Model\SignatureRequestCreateEmbeddedRequest**](../Model/SignatureRequestCreateEmbeddedRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -443,7 +439,7 @@ try { ## `signatureRequestCreateEmbeddedWithTemplate()` ```php -signatureRequestCreateEmbeddedWithTemplate($signature_request_create_embedded_with_template_request, $idempotency_key): \Dropbox\Sign\Model\SignatureRequestGetResponse +signatureRequestCreateEmbeddedWithTemplate($signature_request_create_embedded_with_template_request): \Dropbox\Sign\Model\SignatureRequestGetResponse ``` Create Embedded Signature Request with Template @@ -510,7 +506,6 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signature_request_create_embedded_with_template_request** | [**\Dropbox\Sign\Model\SignatureRequestCreateEmbeddedWithTemplateRequest**](../Model/SignatureRequestCreateEmbeddedWithTemplateRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -532,7 +527,7 @@ try { ## `signatureRequestEdit()` ```php -signatureRequestEdit($signature_request_id, $signature_request_edit_request, $idempotency_key): \Dropbox\Sign\Model\SignatureRequestGetResponse +signatureRequestEdit($signature_request_id, $signature_request_edit_request): \Dropbox\Sign\Model\SignatureRequestGetResponse ``` Edit Signature Request @@ -619,7 +614,6 @@ try { | ------------- | ------------- | ------------- | ------------- | | **signature_request_id** | **string**| The id of the SignatureRequest to edit. | | | **signature_request_edit_request** | [**\Dropbox\Sign\Model\SignatureRequestEditRequest**](../Model/SignatureRequestEditRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -641,7 +635,7 @@ try { ## `signatureRequestEditEmbedded()` ```php -signatureRequestEditEmbedded($signature_request_id, $signature_request_edit_embedded_request, $idempotency_key): \Dropbox\Sign\Model\SignatureRequestGetResponse +signatureRequestEditEmbedded($signature_request_id, $signature_request_edit_embedded_request): \Dropbox\Sign\Model\SignatureRequestGetResponse ``` Edit Embedded Signature Request @@ -719,7 +713,6 @@ try { | ------------- | ------------- | ------------- | ------------- | | **signature_request_id** | **string**| The id of the SignatureRequest to edit. | | | **signature_request_edit_embedded_request** | [**\Dropbox\Sign\Model\SignatureRequestEditEmbeddedRequest**](../Model/SignatureRequestEditEmbeddedRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -741,7 +734,7 @@ try { ## `signatureRequestEditEmbeddedWithTemplate()` ```php -signatureRequestEditEmbeddedWithTemplate($signature_request_id, $signature_request_edit_embedded_with_template_request, $idempotency_key): \Dropbox\Sign\Model\SignatureRequestGetResponse +signatureRequestEditEmbeddedWithTemplate($signature_request_id, $signature_request_edit_embedded_with_template_request): \Dropbox\Sign\Model\SignatureRequestGetResponse ``` Edit Embedded Signature Request with Template @@ -809,7 +802,6 @@ try { | ------------- | ------------- | ------------- | ------------- | | **signature_request_id** | **string**| The id of the SignatureRequest to edit. | | | **signature_request_edit_embedded_with_template_request** | [**\Dropbox\Sign\Model\SignatureRequestEditEmbeddedWithTemplateRequest**](../Model/SignatureRequestEditEmbeddedWithTemplateRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -831,7 +823,7 @@ try { ## `signatureRequestEditWithTemplate()` ```php -signatureRequestEditWithTemplate($signature_request_id, $signature_request_edit_with_template_request, $idempotency_key): \Dropbox\Sign\Model\SignatureRequestGetResponse +signatureRequestEditWithTemplate($signature_request_id, $signature_request_edit_with_template_request): \Dropbox\Sign\Model\SignatureRequestGetResponse ``` Edit Signature Request With Template @@ -918,7 +910,6 @@ try { | ------------- | ------------- | ------------- | ------------- | | **signature_request_id** | **string**| The id of the SignatureRequest to edit. | | | **signature_request_edit_with_template_request** | [**\Dropbox\Sign\Model\SignatureRequestEditWithTemplateRequest**](../Model/SignatureRequestEditWithTemplateRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1248,7 +1239,7 @@ try { ## `signatureRequestReleaseHold()` ```php -signatureRequestReleaseHold($signature_request_id, $idempotency_key): \Dropbox\Sign\Model\SignatureRequestGetResponse +signatureRequestReleaseHold($signature_request_id): \Dropbox\Sign\Model\SignatureRequestGetResponse ``` Release On-Hold Signature Request @@ -1287,7 +1278,6 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signature_request_id** | **string**| The id of the SignatureRequest to release. | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1309,7 +1299,7 @@ try { ## `signatureRequestRemind()` ```php -signatureRequestRemind($signature_request_id, $signature_request_remind_request, $idempotency_key): \Dropbox\Sign\Model\SignatureRequestGetResponse +signatureRequestRemind($signature_request_id, $signature_request_remind_request): \Dropbox\Sign\Model\SignatureRequestGetResponse ``` Send Request Reminder @@ -1353,7 +1343,6 @@ try { | ------------- | ------------- | ------------- | ------------- | | **signature_request_id** | **string**| The id of the SignatureRequest to send a reminder for. | | | **signature_request_remind_request** | [**\Dropbox\Sign\Model\SignatureRequestRemindRequest**](../Model/SignatureRequestRemindRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1375,7 +1364,7 @@ try { ## `signatureRequestRemove()` ```php -signatureRequestRemove($signature_request_id, $idempotency_key) +signatureRequestRemove($signature_request_id) ``` Remove Signature Request Access @@ -1411,7 +1400,6 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signature_request_id** | **string**| The id of the SignatureRequest to remove. | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1433,7 +1421,7 @@ void (empty response body) ## `signatureRequestSend()` ```php -signatureRequestSend($signature_request_send_request, $idempotency_key): \Dropbox\Sign\Model\SignatureRequestGetResponse +signatureRequestSend($signature_request_send_request): \Dropbox\Sign\Model\SignatureRequestGetResponse ``` Send Signature Request @@ -1519,7 +1507,6 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signature_request_send_request** | [**\Dropbox\Sign\Model\SignatureRequestSendRequest**](../Model/SignatureRequestSendRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1541,7 +1528,7 @@ try { ## `signatureRequestSendWithTemplate()` ```php -signatureRequestSendWithTemplate($signature_request_send_with_template_request, $idempotency_key): \Dropbox\Sign\Model\SignatureRequestGetResponse +signatureRequestSendWithTemplate($signature_request_send_with_template_request): \Dropbox\Sign\Model\SignatureRequestGetResponse ``` Send with Template @@ -1627,7 +1614,6 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **signature_request_send_with_template_request** | [**\Dropbox\Sign\Model\SignatureRequestSendWithTemplateRequest**](../Model/SignatureRequestSendWithTemplateRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1649,7 +1635,7 @@ try { ## `signatureRequestUpdate()` ```php -signatureRequestUpdate($signature_request_id, $signature_request_update_request, $idempotency_key): \Dropbox\Sign\Model\SignatureRequestGetResponse +signatureRequestUpdate($signature_request_id, $signature_request_update_request): \Dropbox\Sign\Model\SignatureRequestGetResponse ``` Update Signature Request @@ -1694,7 +1680,6 @@ try { | ------------- | ------------- | ------------- | ------------- | | **signature_request_id** | **string**| The id of the SignatureRequest to update. | | | **signature_request_update_request** | [**\Dropbox\Sign\Model\SignatureRequestUpdateRequest**](../Model/SignatureRequestUpdateRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/php/docs/Api/TeamApi.md b/sdks/php/docs/Api/TeamApi.md index 7ac5d960c..059036e13 100644 --- a/sdks/php/docs/Api/TeamApi.md +++ b/sdks/php/docs/Api/TeamApi.md @@ -19,7 +19,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `teamAddMember()` ```php -teamAddMember($team_add_member_request, $team_id, $idempotency_key): \Dropbox\Sign\Model\TeamGetResponse +teamAddMember($team_add_member_request, $team_id): \Dropbox\Sign\Model\TeamGetResponse ``` Add User to Team @@ -63,7 +63,6 @@ try { | ------------- | ------------- | ------------- | ------------- | | **team_add_member_request** | [**\Dropbox\Sign\Model\TeamAddMemberRequest**](../Model/TeamAddMemberRequest.md)| | | | **team_id** | **string**| The id of the team. | [optional] | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -85,7 +84,7 @@ try { ## `teamCreate()` ```php -teamCreate($team_create_request, $idempotency_key): \Dropbox\Sign\Model\TeamGetResponse +teamCreate($team_create_request): \Dropbox\Sign\Model\TeamGetResponse ``` Create Team @@ -127,7 +126,6 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **team_create_request** | [**\Dropbox\Sign\Model\TeamCreateRequest**](../Model/TeamCreateRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -441,7 +439,7 @@ try { ## `teamRemoveMember()` ```php -teamRemoveMember($team_remove_member_request, $idempotency_key): \Dropbox\Sign\Model\TeamGetResponse +teamRemoveMember($team_remove_member_request): \Dropbox\Sign\Model\TeamGetResponse ``` Remove User from Team @@ -484,7 +482,6 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **team_remove_member_request** | [**\Dropbox\Sign\Model\TeamRemoveMemberRequest**](../Model/TeamRemoveMemberRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -570,7 +567,7 @@ try { ## `teamUpdate()` ```php -teamUpdate($team_update_request, $idempotency_key): \Dropbox\Sign\Model\TeamGetResponse +teamUpdate($team_update_request): \Dropbox\Sign\Model\TeamGetResponse ``` Update Team @@ -612,7 +609,6 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **team_update_request** | [**\Dropbox\Sign\Model\TeamUpdateRequest**](../Model/TeamUpdateRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/php/docs/Api/TemplateApi.md b/sdks/php/docs/Api/TemplateApi.md index 84cdb8fcf..2215c078c 100644 --- a/sdks/php/docs/Api/TemplateApi.md +++ b/sdks/php/docs/Api/TemplateApi.md @@ -20,7 +20,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `templateAddUser()` ```php -templateAddUser($template_id, $template_add_user_request, $idempotency_key): \Dropbox\Sign\Model\TemplateGetResponse +templateAddUser($template_id, $template_add_user_request): \Dropbox\Sign\Model\TemplateGetResponse ``` Add User to Template @@ -64,7 +64,6 @@ try { | ------------- | ------------- | ------------- | ------------- | | **template_id** | **string**| The id of the Template to give the Account access to. | | | **template_add_user_request** | [**\Dropbox\Sign\Model\TemplateAddUserRequest**](../Model/TemplateAddUserRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -86,7 +85,7 @@ try { ## `templateCreate()` ```php -templateCreate($template_create_request, $idempotency_key): \Dropbox\Sign\Model\TemplateCreateResponse +templateCreate($template_create_request): \Dropbox\Sign\Model\TemplateCreateResponse ``` Create Template @@ -203,7 +202,6 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **template_create_request** | [**\Dropbox\Sign\Model\TemplateCreateRequest**](../Model/TemplateCreateRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -225,7 +223,7 @@ try { ## `templateCreateEmbeddedDraft()` ```php -templateCreateEmbeddedDraft($template_create_embedded_draft_request, $idempotency_key): \Dropbox\Sign\Model\TemplateCreateEmbeddedDraftResponse +templateCreateEmbeddedDraft($template_create_embedded_draft_request): \Dropbox\Sign\Model\TemplateCreateEmbeddedDraftResponse ``` Create Embedded Template Draft @@ -308,7 +306,6 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **template_create_embedded_draft_request** | [**\Dropbox\Sign\Model\TemplateCreateEmbeddedDraftRequest**](../Model/TemplateCreateEmbeddedDraftRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -330,7 +327,7 @@ try { ## `templateDelete()` ```php -templateDelete($template_id, $idempotency_key) +templateDelete($template_id) ``` Delete Template @@ -367,7 +364,6 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **template_id** | **string**| The id of the Template to delete. | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -696,7 +692,7 @@ try { ## `templateRemoveUser()` ```php -templateRemoveUser($template_id, $template_remove_user_request, $idempotency_key): \Dropbox\Sign\Model\TemplateGetResponse +templateRemoveUser($template_id, $template_remove_user_request): \Dropbox\Sign\Model\TemplateGetResponse ``` Remove User from Template @@ -740,7 +736,6 @@ try { | ------------- | ------------- | ------------- | ------------- | | **template_id** | **string**| The id of the Template to remove the Account's access to. | | | **template_remove_user_request** | [**\Dropbox\Sign\Model\TemplateRemoveUserRequest**](../Model/TemplateRemoveUserRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -762,7 +757,7 @@ try { ## `templateUpdateFiles()` ```php -templateUpdateFiles($template_id, $template_update_files_request, $idempotency_key): \Dropbox\Sign\Model\TemplateUpdateFilesResponse +templateUpdateFiles($template_id, $template_update_files_request): \Dropbox\Sign\Model\TemplateUpdateFilesResponse ``` Update Template Files @@ -807,7 +802,6 @@ try { | ------------- | ------------- | ------------- | ------------- | | **template_id** | **string**| The ID of the template whose files to update. | | | **template_update_files_request** | [**\Dropbox\Sign\Model\TemplateUpdateFilesRequest**](../Model/TemplateUpdateFilesRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/php/docs/Api/UnclaimedDraftApi.md b/sdks/php/docs/Api/UnclaimedDraftApi.md index b0eb083a7..caf17af70 100644 --- a/sdks/php/docs/Api/UnclaimedDraftApi.md +++ b/sdks/php/docs/Api/UnclaimedDraftApi.md @@ -13,7 +13,7 @@ All URIs are relative to https://api.hellosign.com/v3. ## `unclaimedDraftCreate()` ```php -unclaimedDraftCreate($unclaimed_draft_create_request, $idempotency_key): \Dropbox\Sign\Model\UnclaimedDraftCreateResponse +unclaimedDraftCreate($unclaimed_draft_create_request): \Dropbox\Sign\Model\UnclaimedDraftCreateResponse ``` Create Unclaimed Draft @@ -68,7 +68,6 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **unclaimed_draft_create_request** | [**\Dropbox\Sign\Model\UnclaimedDraftCreateRequest**](../Model/UnclaimedDraftCreateRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -90,7 +89,7 @@ try { ## `unclaimedDraftCreateEmbedded()` ```php -unclaimedDraftCreateEmbedded($unclaimed_draft_create_embedded_request, $idempotency_key): \Dropbox\Sign\Model\UnclaimedDraftCreateResponse +unclaimedDraftCreateEmbedded($unclaimed_draft_create_embedded_request): \Dropbox\Sign\Model\UnclaimedDraftCreateResponse ``` Create Embedded Unclaimed Draft @@ -136,7 +135,6 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **unclaimed_draft_create_embedded_request** | [**\Dropbox\Sign\Model\UnclaimedDraftCreateEmbeddedRequest**](../Model/UnclaimedDraftCreateEmbeddedRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -158,7 +156,7 @@ try { ## `unclaimedDraftCreateEmbeddedWithTemplate()` ```php -unclaimedDraftCreateEmbeddedWithTemplate($unclaimed_draft_create_embedded_with_template_request, $idempotency_key): \Dropbox\Sign\Model\UnclaimedDraftCreateResponse +unclaimedDraftCreateEmbeddedWithTemplate($unclaimed_draft_create_embedded_with_template_request): \Dropbox\Sign\Model\UnclaimedDraftCreateResponse ``` Create Embedded Unclaimed Draft with Template @@ -224,7 +222,6 @@ try { |Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **unclaimed_draft_create_embedded_with_template_request** | [**\Dropbox\Sign\Model\UnclaimedDraftCreateEmbeddedWithTemplateRequest**](../Model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -246,7 +243,7 @@ try { ## `unclaimedDraftEditAndResend()` ```php -unclaimedDraftEditAndResend($signature_request_id, $unclaimed_draft_edit_and_resend_request, $idempotency_key): \Dropbox\Sign\Model\UnclaimedDraftCreateResponse +unclaimedDraftEditAndResend($signature_request_id, $unclaimed_draft_edit_and_resend_request): \Dropbox\Sign\Model\UnclaimedDraftCreateResponse ``` Edit and Resend Unclaimed Draft @@ -291,7 +288,6 @@ try { | ------------- | ------------- | ------------- | ------------- | | **signature_request_id** | **string**| The ID of the signature request to edit and resend. | | | **unclaimed_draft_edit_and_resend_request** | [**\Dropbox\Sign\Model\UnclaimedDraftEditAndResendRequest**](../Model/UnclaimedDraftEditAndResendRequest.md)| | | -| **idempotency_key** | **string**| Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/php/src/Api/AccountApi.php b/sdks/php/src/Api/AccountApi.php index 2ff1da14e..81a201bd4 100644 --- a/sdks/php/src/Api/AccountApi.php +++ b/sdks/php/src/Api/AccountApi.php @@ -145,15 +145,14 @@ public function getResponse() * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/AccountCreateExample.php * * @param Model\AccountCreateRequest $account_create_request account_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\AccountCreateResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function accountCreate(Model\AccountCreateRequest $account_create_request, ?string $idempotency_key = null) + public function accountCreate(Model\AccountCreateRequest $account_create_request) { - list($response) = $this->accountCreateWithHttpInfo($account_create_request, $idempotency_key); + list($response) = $this->accountCreateWithHttpInfo($account_create_request); return $response; } @@ -165,7 +164,6 @@ public function accountCreate(Model\AccountCreateRequest $account_create_request * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/AccountCreateExample.php * * @param Model\AccountCreateRequest $account_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['accountCreate'] to see the possible values for this operation * * @return array of Model\AccountCreateResponse, HTTP status code, HTTP response headers (array of strings) @@ -173,9 +171,9 @@ public function accountCreate(Model\AccountCreateRequest $account_create_request * @throws InvalidArgumentException * @deprecated Prefer to use ::accountCreate. This method will eventually become unavailable */ - public function accountCreateWithHttpInfo(Model\AccountCreateRequest $account_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['accountCreate'][0]) + public function accountCreateWithHttpInfo(Model\AccountCreateRequest $account_create_request, string $contentType = self::contentTypes['accountCreate'][0]) { - $request = $this->accountCreateRequest($account_create_request, $idempotency_key, $contentType); + $request = $this->accountCreateRequest($account_create_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -305,16 +303,15 @@ public function accountCreateWithHttpInfo(Model\AccountCreateRequest $account_cr * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/AccountCreateExample.php * * @param Model\AccountCreateRequest $account_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['accountCreate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::accountCreate. This method will eventually become unavailable */ - public function accountCreateAsync(Model\AccountCreateRequest $account_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['accountCreate'][0]) + public function accountCreateAsync(Model\AccountCreateRequest $account_create_request, string $contentType = self::contentTypes['accountCreate'][0]) { - return $this->accountCreateAsyncWithHttpInfo($account_create_request, $idempotency_key, $contentType) + return $this->accountCreateAsyncWithHttpInfo($account_create_request, $contentType) ->then( function ($response) { return $response[0]; @@ -330,17 +327,16 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/AccountCreateExample.php * * @param Model\AccountCreateRequest $account_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['accountCreate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::accountCreate. This method will eventually become unavailable */ - public function accountCreateAsyncWithHttpInfo(Model\AccountCreateRequest $account_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['accountCreate'][0]) + public function accountCreateAsyncWithHttpInfo(Model\AccountCreateRequest $account_create_request, string $contentType = self::contentTypes['accountCreate'][0]) { $returnType = '\Dropbox\Sign\Model\AccountCreateResponse'; - $request = $this->accountCreateRequest($account_create_request, $idempotency_key, $contentType); + $request = $this->accountCreateRequest($account_create_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -382,14 +378,13 @@ function ($exception) { * Create request for operation 'accountCreate' * * @param Model\AccountCreateRequest $account_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['accountCreate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::accountCreate. This method will eventually become unavailable */ - public function accountCreateRequest(Model\AccountCreateRequest $account_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['accountCreate'][0]) + public function accountCreateRequest(Model\AccountCreateRequest $account_create_request, string $contentType = self::contentTypes['accountCreate'][0]) { // verify the required parameter 'account_create_request' is set if ($account_create_request === null || (is_array($account_create_request) && count($account_create_request) === 0)) { @@ -398,13 +393,6 @@ public function accountCreateRequest(Model\AccountCreateRequest $account_create_ ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling AccountApi.accountCreate, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling AccountApi.accountCreate, must be bigger than or equal to 1.'); - } - $resourcePath = '/account/create'; $formParams = []; $queryParams = []; @@ -418,11 +406,6 @@ public function accountCreateRequest(Model\AccountCreateRequest $account_create_ $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -857,15 +840,14 @@ public function accountGetRequest(?string $account_id = null, ?string $email_add * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/AccountUpdateExample.php * * @param Model\AccountUpdateRequest $account_update_request account_update_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\AccountGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function accountUpdate(Model\AccountUpdateRequest $account_update_request, ?string $idempotency_key = null) + public function accountUpdate(Model\AccountUpdateRequest $account_update_request) { - list($response) = $this->accountUpdateWithHttpInfo($account_update_request, $idempotency_key); + list($response) = $this->accountUpdateWithHttpInfo($account_update_request); return $response; } @@ -877,7 +859,6 @@ public function accountUpdate(Model\AccountUpdateRequest $account_update_request * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/AccountUpdateExample.php * * @param Model\AccountUpdateRequest $account_update_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['accountUpdate'] to see the possible values for this operation * * @return array of Model\AccountGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -885,9 +866,9 @@ public function accountUpdate(Model\AccountUpdateRequest $account_update_request * @throws InvalidArgumentException * @deprecated Prefer to use ::accountUpdate. This method will eventually become unavailable */ - public function accountUpdateWithHttpInfo(Model\AccountUpdateRequest $account_update_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['accountUpdate'][0]) + public function accountUpdateWithHttpInfo(Model\AccountUpdateRequest $account_update_request, string $contentType = self::contentTypes['accountUpdate'][0]) { - $request = $this->accountUpdateRequest($account_update_request, $idempotency_key, $contentType); + $request = $this->accountUpdateRequest($account_update_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -1017,16 +998,15 @@ public function accountUpdateWithHttpInfo(Model\AccountUpdateRequest $account_up * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/AccountUpdateExample.php * * @param Model\AccountUpdateRequest $account_update_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['accountUpdate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::accountUpdate. This method will eventually become unavailable */ - public function accountUpdateAsync(Model\AccountUpdateRequest $account_update_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['accountUpdate'][0]) + public function accountUpdateAsync(Model\AccountUpdateRequest $account_update_request, string $contentType = self::contentTypes['accountUpdate'][0]) { - return $this->accountUpdateAsyncWithHttpInfo($account_update_request, $idempotency_key, $contentType) + return $this->accountUpdateAsyncWithHttpInfo($account_update_request, $contentType) ->then( function ($response) { return $response[0]; @@ -1042,17 +1022,16 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/AccountUpdateExample.php * * @param Model\AccountUpdateRequest $account_update_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['accountUpdate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::accountUpdate. This method will eventually become unavailable */ - public function accountUpdateAsyncWithHttpInfo(Model\AccountUpdateRequest $account_update_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['accountUpdate'][0]) + public function accountUpdateAsyncWithHttpInfo(Model\AccountUpdateRequest $account_update_request, string $contentType = self::contentTypes['accountUpdate'][0]) { $returnType = '\Dropbox\Sign\Model\AccountGetResponse'; - $request = $this->accountUpdateRequest($account_update_request, $idempotency_key, $contentType); + $request = $this->accountUpdateRequest($account_update_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1094,14 +1073,13 @@ function ($exception) { * Create request for operation 'accountUpdate' * * @param Model\AccountUpdateRequest $account_update_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['accountUpdate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::accountUpdate. This method will eventually become unavailable */ - public function accountUpdateRequest(Model\AccountUpdateRequest $account_update_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['accountUpdate'][0]) + public function accountUpdateRequest(Model\AccountUpdateRequest $account_update_request, string $contentType = self::contentTypes['accountUpdate'][0]) { // verify the required parameter 'account_update_request' is set if ($account_update_request === null || (is_array($account_update_request) && count($account_update_request) === 0)) { @@ -1110,13 +1088,6 @@ public function accountUpdateRequest(Model\AccountUpdateRequest $account_update_ ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling AccountApi.accountUpdate, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling AccountApi.accountUpdate, must be bigger than or equal to 1.'); - } - $resourcePath = '/account'; $formParams = []; $queryParams = []; @@ -1130,11 +1101,6 @@ public function accountUpdateRequest(Model\AccountUpdateRequest $account_update_ $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -1221,15 +1187,14 @@ public function accountUpdateRequest(Model\AccountUpdateRequest $account_update_ * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/AccountVerifyExample.php * * @param Model\AccountVerifyRequest $account_verify_request account_verify_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\AccountVerifyResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function accountVerify(Model\AccountVerifyRequest $account_verify_request, ?string $idempotency_key = null) + public function accountVerify(Model\AccountVerifyRequest $account_verify_request) { - list($response) = $this->accountVerifyWithHttpInfo($account_verify_request, $idempotency_key); + list($response) = $this->accountVerifyWithHttpInfo($account_verify_request); return $response; } @@ -1241,7 +1206,6 @@ public function accountVerify(Model\AccountVerifyRequest $account_verify_request * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/AccountVerifyExample.php * * @param Model\AccountVerifyRequest $account_verify_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['accountVerify'] to see the possible values for this operation * * @return array of Model\AccountVerifyResponse, HTTP status code, HTTP response headers (array of strings) @@ -1249,9 +1213,9 @@ public function accountVerify(Model\AccountVerifyRequest $account_verify_request * @throws InvalidArgumentException * @deprecated Prefer to use ::accountVerify. This method will eventually become unavailable */ - public function accountVerifyWithHttpInfo(Model\AccountVerifyRequest $account_verify_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['accountVerify'][0]) + public function accountVerifyWithHttpInfo(Model\AccountVerifyRequest $account_verify_request, string $contentType = self::contentTypes['accountVerify'][0]) { - $request = $this->accountVerifyRequest($account_verify_request, $idempotency_key, $contentType); + $request = $this->accountVerifyRequest($account_verify_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -1381,16 +1345,15 @@ public function accountVerifyWithHttpInfo(Model\AccountVerifyRequest $account_ve * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/AccountVerifyExample.php * * @param Model\AccountVerifyRequest $account_verify_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['accountVerify'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::accountVerify. This method will eventually become unavailable */ - public function accountVerifyAsync(Model\AccountVerifyRequest $account_verify_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['accountVerify'][0]) + public function accountVerifyAsync(Model\AccountVerifyRequest $account_verify_request, string $contentType = self::contentTypes['accountVerify'][0]) { - return $this->accountVerifyAsyncWithHttpInfo($account_verify_request, $idempotency_key, $contentType) + return $this->accountVerifyAsyncWithHttpInfo($account_verify_request, $contentType) ->then( function ($response) { return $response[0]; @@ -1406,17 +1369,16 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/AccountVerifyExample.php * * @param Model\AccountVerifyRequest $account_verify_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['accountVerify'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::accountVerify. This method will eventually become unavailable */ - public function accountVerifyAsyncWithHttpInfo(Model\AccountVerifyRequest $account_verify_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['accountVerify'][0]) + public function accountVerifyAsyncWithHttpInfo(Model\AccountVerifyRequest $account_verify_request, string $contentType = self::contentTypes['accountVerify'][0]) { $returnType = '\Dropbox\Sign\Model\AccountVerifyResponse'; - $request = $this->accountVerifyRequest($account_verify_request, $idempotency_key, $contentType); + $request = $this->accountVerifyRequest($account_verify_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1458,14 +1420,13 @@ function ($exception) { * Create request for operation 'accountVerify' * * @param Model\AccountVerifyRequest $account_verify_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['accountVerify'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::accountVerify. This method will eventually become unavailable */ - public function accountVerifyRequest(Model\AccountVerifyRequest $account_verify_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['accountVerify'][0]) + public function accountVerifyRequest(Model\AccountVerifyRequest $account_verify_request, string $contentType = self::contentTypes['accountVerify'][0]) { // verify the required parameter 'account_verify_request' is set if ($account_verify_request === null || (is_array($account_verify_request) && count($account_verify_request) === 0)) { @@ -1474,13 +1435,6 @@ public function accountVerifyRequest(Model\AccountVerifyRequest $account_verify_ ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling AccountApi.accountVerify, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling AccountApi.accountVerify, must be bigger than or equal to 1.'); - } - $resourcePath = '/account/verify'; $formParams = []; $queryParams = []; @@ -1494,11 +1448,6 @@ public function accountVerifyRequest(Model\AccountVerifyRequest $account_verify_ $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, diff --git a/sdks/php/src/Api/ApiAppApi.php b/sdks/php/src/Api/ApiAppApi.php index a57623014..16c1a3617 100644 --- a/sdks/php/src/Api/ApiAppApi.php +++ b/sdks/php/src/Api/ApiAppApi.php @@ -150,15 +150,14 @@ public function getResponse() * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/ApiAppCreateExample.php * * @param Model\ApiAppCreateRequest $api_app_create_request api_app_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\ApiAppGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function apiAppCreate(Model\ApiAppCreateRequest $api_app_create_request, ?string $idempotency_key = null) + public function apiAppCreate(Model\ApiAppCreateRequest $api_app_create_request) { - list($response) = $this->apiAppCreateWithHttpInfo($api_app_create_request, $idempotency_key); + list($response) = $this->apiAppCreateWithHttpInfo($api_app_create_request); return $response; } @@ -170,7 +169,6 @@ public function apiAppCreate(Model\ApiAppCreateRequest $api_app_create_request, * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/ApiAppCreateExample.php * * @param Model\ApiAppCreateRequest $api_app_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['apiAppCreate'] to see the possible values for this operation * * @return array of Model\ApiAppGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -178,9 +176,9 @@ public function apiAppCreate(Model\ApiAppCreateRequest $api_app_create_request, * @throws InvalidArgumentException * @deprecated Prefer to use ::apiAppCreate. This method will eventually become unavailable */ - public function apiAppCreateWithHttpInfo(Model\ApiAppCreateRequest $api_app_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['apiAppCreate'][0]) + public function apiAppCreateWithHttpInfo(Model\ApiAppCreateRequest $api_app_create_request, string $contentType = self::contentTypes['apiAppCreate'][0]) { - $request = $this->apiAppCreateRequest($api_app_create_request, $idempotency_key, $contentType); + $request = $this->apiAppCreateRequest($api_app_create_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -310,16 +308,15 @@ public function apiAppCreateWithHttpInfo(Model\ApiAppCreateRequest $api_app_crea * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/ApiAppCreateExample.php * * @param Model\ApiAppCreateRequest $api_app_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['apiAppCreate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::apiAppCreate. This method will eventually become unavailable */ - public function apiAppCreateAsync(Model\ApiAppCreateRequest $api_app_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['apiAppCreate'][0]) + public function apiAppCreateAsync(Model\ApiAppCreateRequest $api_app_create_request, string $contentType = self::contentTypes['apiAppCreate'][0]) { - return $this->apiAppCreateAsyncWithHttpInfo($api_app_create_request, $idempotency_key, $contentType) + return $this->apiAppCreateAsyncWithHttpInfo($api_app_create_request, $contentType) ->then( function ($response) { return $response[0]; @@ -335,17 +332,16 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/ApiAppCreateExample.php * * @param Model\ApiAppCreateRequest $api_app_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['apiAppCreate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::apiAppCreate. This method will eventually become unavailable */ - public function apiAppCreateAsyncWithHttpInfo(Model\ApiAppCreateRequest $api_app_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['apiAppCreate'][0]) + public function apiAppCreateAsyncWithHttpInfo(Model\ApiAppCreateRequest $api_app_create_request, string $contentType = self::contentTypes['apiAppCreate'][0]) { $returnType = '\Dropbox\Sign\Model\ApiAppGetResponse'; - $request = $this->apiAppCreateRequest($api_app_create_request, $idempotency_key, $contentType); + $request = $this->apiAppCreateRequest($api_app_create_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -387,14 +383,13 @@ function ($exception) { * Create request for operation 'apiAppCreate' * * @param Model\ApiAppCreateRequest $api_app_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['apiAppCreate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::apiAppCreate. This method will eventually become unavailable */ - public function apiAppCreateRequest(Model\ApiAppCreateRequest $api_app_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['apiAppCreate'][0]) + public function apiAppCreateRequest(Model\ApiAppCreateRequest $api_app_create_request, string $contentType = self::contentTypes['apiAppCreate'][0]) { // verify the required parameter 'api_app_create_request' is set if ($api_app_create_request === null || (is_array($api_app_create_request) && count($api_app_create_request) === 0)) { @@ -403,13 +398,6 @@ public function apiAppCreateRequest(Model\ApiAppCreateRequest $api_app_create_re ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling ApiAppApi.apiAppCreate, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling ApiAppApi.apiAppCreate, must be bigger than or equal to 1.'); - } - $resourcePath = '/api_app'; $formParams = []; $queryParams = []; @@ -423,11 +411,6 @@ public function apiAppCreateRequest(Model\ApiAppCreateRequest $api_app_create_re $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -1442,15 +1425,14 @@ public function apiAppListRequest(?int $page = 1, ?int $page_size = 20, string $ * * @param string $client_id The client id of the API App to update. (required) * @param Model\ApiAppUpdateRequest $api_app_update_request api_app_update_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\ApiAppGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function apiAppUpdate(string $client_id, Model\ApiAppUpdateRequest $api_app_update_request, ?string $idempotency_key = null) + public function apiAppUpdate(string $client_id, Model\ApiAppUpdateRequest $api_app_update_request) { - list($response) = $this->apiAppUpdateWithHttpInfo($client_id, $api_app_update_request, $idempotency_key); + list($response) = $this->apiAppUpdateWithHttpInfo($client_id, $api_app_update_request); return $response; } @@ -1463,7 +1445,6 @@ public function apiAppUpdate(string $client_id, Model\ApiAppUpdateRequest $api_a * * @param string $client_id The client id of the API App to update. (required) * @param Model\ApiAppUpdateRequest $api_app_update_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['apiAppUpdate'] to see the possible values for this operation * * @return array of Model\ApiAppGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -1471,9 +1452,9 @@ public function apiAppUpdate(string $client_id, Model\ApiAppUpdateRequest $api_a * @throws InvalidArgumentException * @deprecated Prefer to use ::apiAppUpdate. This method will eventually become unavailable */ - public function apiAppUpdateWithHttpInfo(string $client_id, Model\ApiAppUpdateRequest $api_app_update_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['apiAppUpdate'][0]) + public function apiAppUpdateWithHttpInfo(string $client_id, Model\ApiAppUpdateRequest $api_app_update_request, string $contentType = self::contentTypes['apiAppUpdate'][0]) { - $request = $this->apiAppUpdateRequest($client_id, $api_app_update_request, $idempotency_key, $contentType); + $request = $this->apiAppUpdateRequest($client_id, $api_app_update_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -1604,16 +1585,15 @@ public function apiAppUpdateWithHttpInfo(string $client_id, Model\ApiAppUpdateRe * * @param string $client_id The client id of the API App to update. (required) * @param Model\ApiAppUpdateRequest $api_app_update_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['apiAppUpdate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::apiAppUpdate. This method will eventually become unavailable */ - public function apiAppUpdateAsync(string $client_id, Model\ApiAppUpdateRequest $api_app_update_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['apiAppUpdate'][0]) + public function apiAppUpdateAsync(string $client_id, Model\ApiAppUpdateRequest $api_app_update_request, string $contentType = self::contentTypes['apiAppUpdate'][0]) { - return $this->apiAppUpdateAsyncWithHttpInfo($client_id, $api_app_update_request, $idempotency_key, $contentType) + return $this->apiAppUpdateAsyncWithHttpInfo($client_id, $api_app_update_request, $contentType) ->then( function ($response) { return $response[0]; @@ -1630,17 +1610,16 @@ function ($response) { * * @param string $client_id The client id of the API App to update. (required) * @param Model\ApiAppUpdateRequest $api_app_update_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['apiAppUpdate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::apiAppUpdate. This method will eventually become unavailable */ - public function apiAppUpdateAsyncWithHttpInfo(string $client_id, Model\ApiAppUpdateRequest $api_app_update_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['apiAppUpdate'][0]) + public function apiAppUpdateAsyncWithHttpInfo(string $client_id, Model\ApiAppUpdateRequest $api_app_update_request, string $contentType = self::contentTypes['apiAppUpdate'][0]) { $returnType = '\Dropbox\Sign\Model\ApiAppGetResponse'; - $request = $this->apiAppUpdateRequest($client_id, $api_app_update_request, $idempotency_key, $contentType); + $request = $this->apiAppUpdateRequest($client_id, $api_app_update_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1683,14 +1662,13 @@ function ($exception) { * * @param string $client_id The client id of the API App to update. (required) * @param Model\ApiAppUpdateRequest $api_app_update_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['apiAppUpdate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::apiAppUpdate. This method will eventually become unavailable */ - public function apiAppUpdateRequest(string $client_id, Model\ApiAppUpdateRequest $api_app_update_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['apiAppUpdate'][0]) + public function apiAppUpdateRequest(string $client_id, Model\ApiAppUpdateRequest $api_app_update_request, string $contentType = self::contentTypes['apiAppUpdate'][0]) { // verify the required parameter 'client_id' is set if ($client_id === null || (is_array($client_id) && count($client_id) === 0)) { @@ -1706,13 +1684,6 @@ public function apiAppUpdateRequest(string $client_id, Model\ApiAppUpdateRequest ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling ApiAppApi.apiAppUpdate, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling ApiAppApi.apiAppUpdate, must be bigger than or equal to 1.'); - } - $resourcePath = '/api_app/{client_id}'; $formParams = []; $queryParams = []; @@ -1726,11 +1697,6 @@ public function apiAppUpdateRequest(string $client_id, Model\ApiAppUpdateRequest $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - // path params if ($client_id !== null) { $resourcePath = str_replace( diff --git a/sdks/php/src/Api/DocumentApi.php b/sdks/php/src/Api/DocumentApi.php index 3788f4a6d..ca075b351 100644 --- a/sdks/php/src/Api/DocumentApi.php +++ b/sdks/php/src/Api/DocumentApi.php @@ -137,15 +137,14 @@ public function getResponse() * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/DocumentDetectFieldsExample.php * * @param Model\DocumentFieldDetectionRequest $document_field_detection_request document_field_detection_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\DocumentFieldDetectionResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function documentDetectFields(Model\DocumentFieldDetectionRequest $document_field_detection_request, ?string $idempotency_key = null) + public function documentDetectFields(Model\DocumentFieldDetectionRequest $document_field_detection_request) { - list($response) = $this->documentDetectFieldsWithHttpInfo($document_field_detection_request, $idempotency_key); + list($response) = $this->documentDetectFieldsWithHttpInfo($document_field_detection_request); return $response; } @@ -157,7 +156,6 @@ public function documentDetectFields(Model\DocumentFieldDetectionRequest $docume * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/DocumentDetectFieldsExample.php * * @param Model\DocumentFieldDetectionRequest $document_field_detection_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['documentDetectFields'] to see the possible values for this operation * * @return array of Model\DocumentFieldDetectionResponse, HTTP status code, HTTP response headers (array of strings) @@ -165,9 +163,9 @@ public function documentDetectFields(Model\DocumentFieldDetectionRequest $docume * @throws InvalidArgumentException * @deprecated Prefer to use ::documentDetectFields. This method will eventually become unavailable */ - public function documentDetectFieldsWithHttpInfo(Model\DocumentFieldDetectionRequest $document_field_detection_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['documentDetectFields'][0]) + public function documentDetectFieldsWithHttpInfo(Model\DocumentFieldDetectionRequest $document_field_detection_request, string $contentType = self::contentTypes['documentDetectFields'][0]) { - $request = $this->documentDetectFieldsRequest($document_field_detection_request, $idempotency_key, $contentType); + $request = $this->documentDetectFieldsRequest($document_field_detection_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -297,16 +295,15 @@ public function documentDetectFieldsWithHttpInfo(Model\DocumentFieldDetectionReq * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/DocumentDetectFieldsExample.php * * @param Model\DocumentFieldDetectionRequest $document_field_detection_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['documentDetectFields'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::documentDetectFields. This method will eventually become unavailable */ - public function documentDetectFieldsAsync(Model\DocumentFieldDetectionRequest $document_field_detection_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['documentDetectFields'][0]) + public function documentDetectFieldsAsync(Model\DocumentFieldDetectionRequest $document_field_detection_request, string $contentType = self::contentTypes['documentDetectFields'][0]) { - return $this->documentDetectFieldsAsyncWithHttpInfo($document_field_detection_request, $idempotency_key, $contentType) + return $this->documentDetectFieldsAsyncWithHttpInfo($document_field_detection_request, $contentType) ->then( function ($response) { return $response[0]; @@ -322,17 +319,16 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/DocumentDetectFieldsExample.php * * @param Model\DocumentFieldDetectionRequest $document_field_detection_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['documentDetectFields'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::documentDetectFields. This method will eventually become unavailable */ - public function documentDetectFieldsAsyncWithHttpInfo(Model\DocumentFieldDetectionRequest $document_field_detection_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['documentDetectFields'][0]) + public function documentDetectFieldsAsyncWithHttpInfo(Model\DocumentFieldDetectionRequest $document_field_detection_request, string $contentType = self::contentTypes['documentDetectFields'][0]) { $returnType = '\Dropbox\Sign\Model\DocumentFieldDetectionResponse'; - $request = $this->documentDetectFieldsRequest($document_field_detection_request, $idempotency_key, $contentType); + $request = $this->documentDetectFieldsRequest($document_field_detection_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -374,14 +370,13 @@ function ($exception) { * Create request for operation 'documentDetectFields' * * @param Model\DocumentFieldDetectionRequest $document_field_detection_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['documentDetectFields'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::documentDetectFields. This method will eventually become unavailable */ - public function documentDetectFieldsRequest(Model\DocumentFieldDetectionRequest $document_field_detection_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['documentDetectFields'][0]) + public function documentDetectFieldsRequest(Model\DocumentFieldDetectionRequest $document_field_detection_request, string $contentType = self::contentTypes['documentDetectFields'][0]) { // verify the required parameter 'document_field_detection_request' is set if ($document_field_detection_request === null || (is_array($document_field_detection_request) && count($document_field_detection_request) === 0)) { @@ -390,13 +385,6 @@ public function documentDetectFieldsRequest(Model\DocumentFieldDetectionRequest ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling DocumentApi.documentDetectFields, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling DocumentApi.documentDetectFields, must be bigger than or equal to 1.'); - } - $resourcePath = '/document/detect_fields'; $formParams = []; $queryParams = []; @@ -410,11 +398,6 @@ public function documentDetectFieldsRequest(Model\DocumentFieldDetectionRequest $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, diff --git a/sdks/php/src/Api/EmbeddedApi.php b/sdks/php/src/Api/EmbeddedApi.php index 946497227..1aef64edb 100644 --- a/sdks/php/src/Api/EmbeddedApi.php +++ b/sdks/php/src/Api/EmbeddedApi.php @@ -140,15 +140,14 @@ public function getResponse() * * @param string $template_id The id of the template to edit. (required) * @param Model\EmbeddedEditUrlRequest $embedded_edit_url_request embedded_edit_url_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\EmbeddedEditUrlResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function embeddedEditUrl(string $template_id, Model\EmbeddedEditUrlRequest $embedded_edit_url_request, ?string $idempotency_key = null) + public function embeddedEditUrl(string $template_id, Model\EmbeddedEditUrlRequest $embedded_edit_url_request) { - list($response) = $this->embeddedEditUrlWithHttpInfo($template_id, $embedded_edit_url_request, $idempotency_key); + list($response) = $this->embeddedEditUrlWithHttpInfo($template_id, $embedded_edit_url_request); return $response; } @@ -161,7 +160,6 @@ public function embeddedEditUrl(string $template_id, Model\EmbeddedEditUrlReques * * @param string $template_id The id of the template to edit. (required) * @param Model\EmbeddedEditUrlRequest $embedded_edit_url_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['embeddedEditUrl'] to see the possible values for this operation * * @return array of Model\EmbeddedEditUrlResponse, HTTP status code, HTTP response headers (array of strings) @@ -169,9 +167,9 @@ public function embeddedEditUrl(string $template_id, Model\EmbeddedEditUrlReques * @throws InvalidArgumentException * @deprecated Prefer to use ::embeddedEditUrl. This method will eventually become unavailable */ - public function embeddedEditUrlWithHttpInfo(string $template_id, Model\EmbeddedEditUrlRequest $embedded_edit_url_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['embeddedEditUrl'][0]) + public function embeddedEditUrlWithHttpInfo(string $template_id, Model\EmbeddedEditUrlRequest $embedded_edit_url_request, string $contentType = self::contentTypes['embeddedEditUrl'][0]) { - $request = $this->embeddedEditUrlRequest($template_id, $embedded_edit_url_request, $idempotency_key, $contentType); + $request = $this->embeddedEditUrlRequest($template_id, $embedded_edit_url_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -302,16 +300,15 @@ public function embeddedEditUrlWithHttpInfo(string $template_id, Model\EmbeddedE * * @param string $template_id The id of the template to edit. (required) * @param Model\EmbeddedEditUrlRequest $embedded_edit_url_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['embeddedEditUrl'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::embeddedEditUrl. This method will eventually become unavailable */ - public function embeddedEditUrlAsync(string $template_id, Model\EmbeddedEditUrlRequest $embedded_edit_url_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['embeddedEditUrl'][0]) + public function embeddedEditUrlAsync(string $template_id, Model\EmbeddedEditUrlRequest $embedded_edit_url_request, string $contentType = self::contentTypes['embeddedEditUrl'][0]) { - return $this->embeddedEditUrlAsyncWithHttpInfo($template_id, $embedded_edit_url_request, $idempotency_key, $contentType) + return $this->embeddedEditUrlAsyncWithHttpInfo($template_id, $embedded_edit_url_request, $contentType) ->then( function ($response) { return $response[0]; @@ -328,17 +325,16 @@ function ($response) { * * @param string $template_id The id of the template to edit. (required) * @param Model\EmbeddedEditUrlRequest $embedded_edit_url_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['embeddedEditUrl'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::embeddedEditUrl. This method will eventually become unavailable */ - public function embeddedEditUrlAsyncWithHttpInfo(string $template_id, Model\EmbeddedEditUrlRequest $embedded_edit_url_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['embeddedEditUrl'][0]) + public function embeddedEditUrlAsyncWithHttpInfo(string $template_id, Model\EmbeddedEditUrlRequest $embedded_edit_url_request, string $contentType = self::contentTypes['embeddedEditUrl'][0]) { $returnType = '\Dropbox\Sign\Model\EmbeddedEditUrlResponse'; - $request = $this->embeddedEditUrlRequest($template_id, $embedded_edit_url_request, $idempotency_key, $contentType); + $request = $this->embeddedEditUrlRequest($template_id, $embedded_edit_url_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -381,14 +377,13 @@ function ($exception) { * * @param string $template_id The id of the template to edit. (required) * @param Model\EmbeddedEditUrlRequest $embedded_edit_url_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['embeddedEditUrl'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::embeddedEditUrl. This method will eventually become unavailable */ - public function embeddedEditUrlRequest(string $template_id, Model\EmbeddedEditUrlRequest $embedded_edit_url_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['embeddedEditUrl'][0]) + public function embeddedEditUrlRequest(string $template_id, Model\EmbeddedEditUrlRequest $embedded_edit_url_request, string $contentType = self::contentTypes['embeddedEditUrl'][0]) { // verify the required parameter 'template_id' is set if ($template_id === null || (is_array($template_id) && count($template_id) === 0)) { @@ -404,13 +399,6 @@ public function embeddedEditUrlRequest(string $template_id, Model\EmbeddedEditUr ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling EmbeddedApi.embeddedEditUrl, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling EmbeddedApi.embeddedEditUrl, must be bigger than or equal to 1.'); - } - $resourcePath = '/embedded/edit_url/{template_id}'; $formParams = []; $queryParams = []; @@ -424,11 +412,6 @@ public function embeddedEditUrlRequest(string $template_id, Model\EmbeddedEditUr $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - // path params if ($template_id !== null) { $resourcePath = str_replace( diff --git a/sdks/php/src/Api/FaxApi.php b/sdks/php/src/Api/FaxApi.php index 56bd4a913..e41132916 100644 --- a/sdks/php/src/Api/FaxApi.php +++ b/sdks/php/src/Api/FaxApi.php @@ -1412,15 +1412,14 @@ public function faxListRequest(?int $page = 1, ?int $page_size = 20, string $con * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/FaxSendExample.php * * @param Model\FaxSendRequest $fax_send_request fax_send_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\FaxGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function faxSend(Model\FaxSendRequest $fax_send_request, ?string $idempotency_key = null) + public function faxSend(Model\FaxSendRequest $fax_send_request) { - list($response) = $this->faxSendWithHttpInfo($fax_send_request, $idempotency_key); + list($response) = $this->faxSendWithHttpInfo($fax_send_request); return $response; } @@ -1432,7 +1431,6 @@ public function faxSend(Model\FaxSendRequest $fax_send_request, ?string $idempot * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/FaxSendExample.php * * @param Model\FaxSendRequest $fax_send_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['faxSend'] to see the possible values for this operation * * @return array of Model\FaxGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -1440,9 +1438,9 @@ public function faxSend(Model\FaxSendRequest $fax_send_request, ?string $idempot * @throws InvalidArgumentException * @deprecated Prefer to use ::faxSend. This method will eventually become unavailable */ - public function faxSendWithHttpInfo(Model\FaxSendRequest $fax_send_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['faxSend'][0]) + public function faxSendWithHttpInfo(Model\FaxSendRequest $fax_send_request, string $contentType = self::contentTypes['faxSend'][0]) { - $request = $this->faxSendRequest($fax_send_request, $idempotency_key, $contentType); + $request = $this->faxSendRequest($fax_send_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -1572,16 +1570,15 @@ public function faxSendWithHttpInfo(Model\FaxSendRequest $fax_send_request, ?str * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/FaxSendExample.php * * @param Model\FaxSendRequest $fax_send_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['faxSend'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::faxSend. This method will eventually become unavailable */ - public function faxSendAsync(Model\FaxSendRequest $fax_send_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['faxSend'][0]) + public function faxSendAsync(Model\FaxSendRequest $fax_send_request, string $contentType = self::contentTypes['faxSend'][0]) { - return $this->faxSendAsyncWithHttpInfo($fax_send_request, $idempotency_key, $contentType) + return $this->faxSendAsyncWithHttpInfo($fax_send_request, $contentType) ->then( function ($response) { return $response[0]; @@ -1597,17 +1594,16 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/FaxSendExample.php * * @param Model\FaxSendRequest $fax_send_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['faxSend'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::faxSend. This method will eventually become unavailable */ - public function faxSendAsyncWithHttpInfo(Model\FaxSendRequest $fax_send_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['faxSend'][0]) + public function faxSendAsyncWithHttpInfo(Model\FaxSendRequest $fax_send_request, string $contentType = self::contentTypes['faxSend'][0]) { $returnType = '\Dropbox\Sign\Model\FaxGetResponse'; - $request = $this->faxSendRequest($fax_send_request, $idempotency_key, $contentType); + $request = $this->faxSendRequest($fax_send_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1649,14 +1645,13 @@ function ($exception) { * Create request for operation 'faxSend' * * @param Model\FaxSendRequest $fax_send_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['faxSend'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::faxSend. This method will eventually become unavailable */ - public function faxSendRequest(Model\FaxSendRequest $fax_send_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['faxSend'][0]) + public function faxSendRequest(Model\FaxSendRequest $fax_send_request, string $contentType = self::contentTypes['faxSend'][0]) { // verify the required parameter 'fax_send_request' is set if ($fax_send_request === null || (is_array($fax_send_request) && count($fax_send_request) === 0)) { @@ -1665,13 +1660,6 @@ public function faxSendRequest(Model\FaxSendRequest $fax_send_request, ?string $ ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling FaxApi.faxSend, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling FaxApi.faxSend, must be bigger than or equal to 1.'); - } - $resourcePath = '/fax/send'; $formParams = []; $queryParams = []; @@ -1685,11 +1673,6 @@ public function faxSendRequest(Model\FaxSendRequest $fax_send_request, ?string $ $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, diff --git a/sdks/php/src/Api/FaxLineApi.php b/sdks/php/src/Api/FaxLineApi.php index bd1a06922..2882dc492 100644 --- a/sdks/php/src/Api/FaxLineApi.php +++ b/sdks/php/src/Api/FaxLineApi.php @@ -154,15 +154,14 @@ public function getResponse() * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/FaxLineAddUserExample.php * * @param Model\FaxLineAddUserRequest $fax_line_add_user_request fax_line_add_user_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\FaxLineResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function faxLineAddUser(Model\FaxLineAddUserRequest $fax_line_add_user_request, ?string $idempotency_key = null) + public function faxLineAddUser(Model\FaxLineAddUserRequest $fax_line_add_user_request) { - list($response) = $this->faxLineAddUserWithHttpInfo($fax_line_add_user_request, $idempotency_key); + list($response) = $this->faxLineAddUserWithHttpInfo($fax_line_add_user_request); return $response; } @@ -174,7 +173,6 @@ public function faxLineAddUser(Model\FaxLineAddUserRequest $fax_line_add_user_re * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/FaxLineAddUserExample.php * * @param Model\FaxLineAddUserRequest $fax_line_add_user_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['faxLineAddUser'] to see the possible values for this operation * * @return array of Model\FaxLineResponse, HTTP status code, HTTP response headers (array of strings) @@ -182,9 +180,9 @@ public function faxLineAddUser(Model\FaxLineAddUserRequest $fax_line_add_user_re * @throws InvalidArgumentException * @deprecated Prefer to use ::faxLineAddUser. This method will eventually become unavailable */ - public function faxLineAddUserWithHttpInfo(Model\FaxLineAddUserRequest $fax_line_add_user_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['faxLineAddUser'][0]) + public function faxLineAddUserWithHttpInfo(Model\FaxLineAddUserRequest $fax_line_add_user_request, string $contentType = self::contentTypes['faxLineAddUser'][0]) { - $request = $this->faxLineAddUserRequest($fax_line_add_user_request, $idempotency_key, $contentType); + $request = $this->faxLineAddUserRequest($fax_line_add_user_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -314,16 +312,15 @@ public function faxLineAddUserWithHttpInfo(Model\FaxLineAddUserRequest $fax_line * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/FaxLineAddUserExample.php * * @param Model\FaxLineAddUserRequest $fax_line_add_user_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['faxLineAddUser'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::faxLineAddUser. This method will eventually become unavailable */ - public function faxLineAddUserAsync(Model\FaxLineAddUserRequest $fax_line_add_user_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['faxLineAddUser'][0]) + public function faxLineAddUserAsync(Model\FaxLineAddUserRequest $fax_line_add_user_request, string $contentType = self::contentTypes['faxLineAddUser'][0]) { - return $this->faxLineAddUserAsyncWithHttpInfo($fax_line_add_user_request, $idempotency_key, $contentType) + return $this->faxLineAddUserAsyncWithHttpInfo($fax_line_add_user_request, $contentType) ->then( function ($response) { return $response[0]; @@ -339,17 +336,16 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/FaxLineAddUserExample.php * * @param Model\FaxLineAddUserRequest $fax_line_add_user_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['faxLineAddUser'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::faxLineAddUser. This method will eventually become unavailable */ - public function faxLineAddUserAsyncWithHttpInfo(Model\FaxLineAddUserRequest $fax_line_add_user_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['faxLineAddUser'][0]) + public function faxLineAddUserAsyncWithHttpInfo(Model\FaxLineAddUserRequest $fax_line_add_user_request, string $contentType = self::contentTypes['faxLineAddUser'][0]) { $returnType = '\Dropbox\Sign\Model\FaxLineResponse'; - $request = $this->faxLineAddUserRequest($fax_line_add_user_request, $idempotency_key, $contentType); + $request = $this->faxLineAddUserRequest($fax_line_add_user_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -391,14 +387,13 @@ function ($exception) { * Create request for operation 'faxLineAddUser' * * @param Model\FaxLineAddUserRequest $fax_line_add_user_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['faxLineAddUser'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::faxLineAddUser. This method will eventually become unavailable */ - public function faxLineAddUserRequest(Model\FaxLineAddUserRequest $fax_line_add_user_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['faxLineAddUser'][0]) + public function faxLineAddUserRequest(Model\FaxLineAddUserRequest $fax_line_add_user_request, string $contentType = self::contentTypes['faxLineAddUser'][0]) { // verify the required parameter 'fax_line_add_user_request' is set if ($fax_line_add_user_request === null || (is_array($fax_line_add_user_request) && count($fax_line_add_user_request) === 0)) { @@ -407,13 +402,6 @@ public function faxLineAddUserRequest(Model\FaxLineAddUserRequest $fax_line_add_ ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling FaxLineApi.faxLineAddUser, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling FaxLineApi.faxLineAddUser, must be bigger than or equal to 1.'); - } - $resourcePath = '/fax_line/add_user'; $formParams = []; $queryParams = []; @@ -427,11 +415,6 @@ public function faxLineAddUserRequest(Model\FaxLineAddUserRequest $fax_line_add_ $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -893,15 +876,14 @@ public function faxLineAreaCodeGetRequest(string $country, ?string $state = null * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/FaxLineCreateExample.php * * @param Model\FaxLineCreateRequest $fax_line_create_request fax_line_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\FaxLineResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function faxLineCreate(Model\FaxLineCreateRequest $fax_line_create_request, ?string $idempotency_key = null) + public function faxLineCreate(Model\FaxLineCreateRequest $fax_line_create_request) { - list($response) = $this->faxLineCreateWithHttpInfo($fax_line_create_request, $idempotency_key); + list($response) = $this->faxLineCreateWithHttpInfo($fax_line_create_request); return $response; } @@ -913,7 +895,6 @@ public function faxLineCreate(Model\FaxLineCreateRequest $fax_line_create_reques * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/FaxLineCreateExample.php * * @param Model\FaxLineCreateRequest $fax_line_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['faxLineCreate'] to see the possible values for this operation * * @return array of Model\FaxLineResponse, HTTP status code, HTTP response headers (array of strings) @@ -921,9 +902,9 @@ public function faxLineCreate(Model\FaxLineCreateRequest $fax_line_create_reques * @throws InvalidArgumentException * @deprecated Prefer to use ::faxLineCreate. This method will eventually become unavailable */ - public function faxLineCreateWithHttpInfo(Model\FaxLineCreateRequest $fax_line_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['faxLineCreate'][0]) + public function faxLineCreateWithHttpInfo(Model\FaxLineCreateRequest $fax_line_create_request, string $contentType = self::contentTypes['faxLineCreate'][0]) { - $request = $this->faxLineCreateRequest($fax_line_create_request, $idempotency_key, $contentType); + $request = $this->faxLineCreateRequest($fax_line_create_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -1053,16 +1034,15 @@ public function faxLineCreateWithHttpInfo(Model\FaxLineCreateRequest $fax_line_c * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/FaxLineCreateExample.php * * @param Model\FaxLineCreateRequest $fax_line_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['faxLineCreate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::faxLineCreate. This method will eventually become unavailable */ - public function faxLineCreateAsync(Model\FaxLineCreateRequest $fax_line_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['faxLineCreate'][0]) + public function faxLineCreateAsync(Model\FaxLineCreateRequest $fax_line_create_request, string $contentType = self::contentTypes['faxLineCreate'][0]) { - return $this->faxLineCreateAsyncWithHttpInfo($fax_line_create_request, $idempotency_key, $contentType) + return $this->faxLineCreateAsyncWithHttpInfo($fax_line_create_request, $contentType) ->then( function ($response) { return $response[0]; @@ -1078,17 +1058,16 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/FaxLineCreateExample.php * * @param Model\FaxLineCreateRequest $fax_line_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['faxLineCreate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::faxLineCreate. This method will eventually become unavailable */ - public function faxLineCreateAsyncWithHttpInfo(Model\FaxLineCreateRequest $fax_line_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['faxLineCreate'][0]) + public function faxLineCreateAsyncWithHttpInfo(Model\FaxLineCreateRequest $fax_line_create_request, string $contentType = self::contentTypes['faxLineCreate'][0]) { $returnType = '\Dropbox\Sign\Model\FaxLineResponse'; - $request = $this->faxLineCreateRequest($fax_line_create_request, $idempotency_key, $contentType); + $request = $this->faxLineCreateRequest($fax_line_create_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1130,14 +1109,13 @@ function ($exception) { * Create request for operation 'faxLineCreate' * * @param Model\FaxLineCreateRequest $fax_line_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['faxLineCreate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::faxLineCreate. This method will eventually become unavailable */ - public function faxLineCreateRequest(Model\FaxLineCreateRequest $fax_line_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['faxLineCreate'][0]) + public function faxLineCreateRequest(Model\FaxLineCreateRequest $fax_line_create_request, string $contentType = self::contentTypes['faxLineCreate'][0]) { // verify the required parameter 'fax_line_create_request' is set if ($fax_line_create_request === null || (is_array($fax_line_create_request) && count($fax_line_create_request) === 0)) { @@ -1146,13 +1124,6 @@ public function faxLineCreateRequest(Model\FaxLineCreateRequest $fax_line_create ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling FaxLineApi.faxLineCreate, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling FaxLineApi.faxLineCreate, must be bigger than or equal to 1.'); - } - $resourcePath = '/fax_line/create'; $formParams = []; $queryParams = []; @@ -1166,11 +1137,6 @@ public function faxLineCreateRequest(Model\FaxLineCreateRequest $fax_line_create $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -2204,15 +2170,14 @@ public function faxLineListRequest(?string $account_id = null, ?int $page = 1, ? * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/FaxLineRemoveUserExample.php * * @param Model\FaxLineRemoveUserRequest $fax_line_remove_user_request fax_line_remove_user_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\FaxLineResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function faxLineRemoveUser(Model\FaxLineRemoveUserRequest $fax_line_remove_user_request, ?string $idempotency_key = null) + public function faxLineRemoveUser(Model\FaxLineRemoveUserRequest $fax_line_remove_user_request) { - list($response) = $this->faxLineRemoveUserWithHttpInfo($fax_line_remove_user_request, $idempotency_key); + list($response) = $this->faxLineRemoveUserWithHttpInfo($fax_line_remove_user_request); return $response; } @@ -2224,7 +2189,6 @@ public function faxLineRemoveUser(Model\FaxLineRemoveUserRequest $fax_line_remov * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/FaxLineRemoveUserExample.php * * @param Model\FaxLineRemoveUserRequest $fax_line_remove_user_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['faxLineRemoveUser'] to see the possible values for this operation * * @return array of Model\FaxLineResponse, HTTP status code, HTTP response headers (array of strings) @@ -2232,9 +2196,9 @@ public function faxLineRemoveUser(Model\FaxLineRemoveUserRequest $fax_line_remov * @throws InvalidArgumentException * @deprecated Prefer to use ::faxLineRemoveUser. This method will eventually become unavailable */ - public function faxLineRemoveUserWithHttpInfo(Model\FaxLineRemoveUserRequest $fax_line_remove_user_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['faxLineRemoveUser'][0]) + public function faxLineRemoveUserWithHttpInfo(Model\FaxLineRemoveUserRequest $fax_line_remove_user_request, string $contentType = self::contentTypes['faxLineRemoveUser'][0]) { - $request = $this->faxLineRemoveUserRequest($fax_line_remove_user_request, $idempotency_key, $contentType); + $request = $this->faxLineRemoveUserRequest($fax_line_remove_user_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -2364,16 +2328,15 @@ public function faxLineRemoveUserWithHttpInfo(Model\FaxLineRemoveUserRequest $fa * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/FaxLineRemoveUserExample.php * * @param Model\FaxLineRemoveUserRequest $fax_line_remove_user_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['faxLineRemoveUser'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::faxLineRemoveUser. This method will eventually become unavailable */ - public function faxLineRemoveUserAsync(Model\FaxLineRemoveUserRequest $fax_line_remove_user_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['faxLineRemoveUser'][0]) + public function faxLineRemoveUserAsync(Model\FaxLineRemoveUserRequest $fax_line_remove_user_request, string $contentType = self::contentTypes['faxLineRemoveUser'][0]) { - return $this->faxLineRemoveUserAsyncWithHttpInfo($fax_line_remove_user_request, $idempotency_key, $contentType) + return $this->faxLineRemoveUserAsyncWithHttpInfo($fax_line_remove_user_request, $contentType) ->then( function ($response) { return $response[0]; @@ -2389,17 +2352,16 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/FaxLineRemoveUserExample.php * * @param Model\FaxLineRemoveUserRequest $fax_line_remove_user_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['faxLineRemoveUser'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::faxLineRemoveUser. This method will eventually become unavailable */ - public function faxLineRemoveUserAsyncWithHttpInfo(Model\FaxLineRemoveUserRequest $fax_line_remove_user_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['faxLineRemoveUser'][0]) + public function faxLineRemoveUserAsyncWithHttpInfo(Model\FaxLineRemoveUserRequest $fax_line_remove_user_request, string $contentType = self::contentTypes['faxLineRemoveUser'][0]) { $returnType = '\Dropbox\Sign\Model\FaxLineResponse'; - $request = $this->faxLineRemoveUserRequest($fax_line_remove_user_request, $idempotency_key, $contentType); + $request = $this->faxLineRemoveUserRequest($fax_line_remove_user_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2441,14 +2403,13 @@ function ($exception) { * Create request for operation 'faxLineRemoveUser' * * @param Model\FaxLineRemoveUserRequest $fax_line_remove_user_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['faxLineRemoveUser'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::faxLineRemoveUser. This method will eventually become unavailable */ - public function faxLineRemoveUserRequest(Model\FaxLineRemoveUserRequest $fax_line_remove_user_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['faxLineRemoveUser'][0]) + public function faxLineRemoveUserRequest(Model\FaxLineRemoveUserRequest $fax_line_remove_user_request, string $contentType = self::contentTypes['faxLineRemoveUser'][0]) { // verify the required parameter 'fax_line_remove_user_request' is set if ($fax_line_remove_user_request === null || (is_array($fax_line_remove_user_request) && count($fax_line_remove_user_request) === 0)) { @@ -2457,13 +2418,6 @@ public function faxLineRemoveUserRequest(Model\FaxLineRemoveUserRequest $fax_lin ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling FaxLineApi.faxLineRemoveUser, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling FaxLineApi.faxLineRemoveUser, must be bigger than or equal to 1.'); - } - $resourcePath = '/fax_line/remove_user'; $formParams = []; $queryParams = []; @@ -2477,11 +2431,6 @@ public function faxLineRemoveUserRequest(Model\FaxLineRemoveUserRequest $fax_lin $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, diff --git a/sdks/php/src/Api/ReportApi.php b/sdks/php/src/Api/ReportApi.php index ca8dad161..942e18e3b 100644 --- a/sdks/php/src/Api/ReportApi.php +++ b/sdks/php/src/Api/ReportApi.php @@ -136,15 +136,14 @@ public function getResponse() * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/ReportCreateExample.php * * @param Model\ReportCreateRequest $report_create_request report_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\ReportCreateResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function reportCreate(Model\ReportCreateRequest $report_create_request, ?string $idempotency_key = null) + public function reportCreate(Model\ReportCreateRequest $report_create_request) { - list($response) = $this->reportCreateWithHttpInfo($report_create_request, $idempotency_key); + list($response) = $this->reportCreateWithHttpInfo($report_create_request); return $response; } @@ -156,7 +155,6 @@ public function reportCreate(Model\ReportCreateRequest $report_create_request, ? * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/ReportCreateExample.php * * @param Model\ReportCreateRequest $report_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['reportCreate'] to see the possible values for this operation * * @return array of Model\ReportCreateResponse, HTTP status code, HTTP response headers (array of strings) @@ -164,9 +162,9 @@ public function reportCreate(Model\ReportCreateRequest $report_create_request, ? * @throws InvalidArgumentException * @deprecated Prefer to use ::reportCreate. This method will eventually become unavailable */ - public function reportCreateWithHttpInfo(Model\ReportCreateRequest $report_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['reportCreate'][0]) + public function reportCreateWithHttpInfo(Model\ReportCreateRequest $report_create_request, string $contentType = self::contentTypes['reportCreate'][0]) { - $request = $this->reportCreateRequest($report_create_request, $idempotency_key, $contentType); + $request = $this->reportCreateRequest($report_create_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -296,16 +294,15 @@ public function reportCreateWithHttpInfo(Model\ReportCreateRequest $report_creat * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/ReportCreateExample.php * * @param Model\ReportCreateRequest $report_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['reportCreate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::reportCreate. This method will eventually become unavailable */ - public function reportCreateAsync(Model\ReportCreateRequest $report_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['reportCreate'][0]) + public function reportCreateAsync(Model\ReportCreateRequest $report_create_request, string $contentType = self::contentTypes['reportCreate'][0]) { - return $this->reportCreateAsyncWithHttpInfo($report_create_request, $idempotency_key, $contentType) + return $this->reportCreateAsyncWithHttpInfo($report_create_request, $contentType) ->then( function ($response) { return $response[0]; @@ -321,17 +318,16 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/ReportCreateExample.php * * @param Model\ReportCreateRequest $report_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['reportCreate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::reportCreate. This method will eventually become unavailable */ - public function reportCreateAsyncWithHttpInfo(Model\ReportCreateRequest $report_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['reportCreate'][0]) + public function reportCreateAsyncWithHttpInfo(Model\ReportCreateRequest $report_create_request, string $contentType = self::contentTypes['reportCreate'][0]) { $returnType = '\Dropbox\Sign\Model\ReportCreateResponse'; - $request = $this->reportCreateRequest($report_create_request, $idempotency_key, $contentType); + $request = $this->reportCreateRequest($report_create_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -373,14 +369,13 @@ function ($exception) { * Create request for operation 'reportCreate' * * @param Model\ReportCreateRequest $report_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['reportCreate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::reportCreate. This method will eventually become unavailable */ - public function reportCreateRequest(Model\ReportCreateRequest $report_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['reportCreate'][0]) + public function reportCreateRequest(Model\ReportCreateRequest $report_create_request, string $contentType = self::contentTypes['reportCreate'][0]) { // verify the required parameter 'report_create_request' is set if ($report_create_request === null || (is_array($report_create_request) && count($report_create_request) === 0)) { @@ -389,13 +384,6 @@ public function reportCreateRequest(Model\ReportCreateRequest $report_create_req ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling ReportApi.reportCreate, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling ReportApi.reportCreate, must be bigger than or equal to 1.'); - } - $resourcePath = '/report/create'; $formParams = []; $queryParams = []; @@ -409,11 +397,6 @@ public function reportCreateRequest(Model\ReportCreateRequest $report_create_req $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, diff --git a/sdks/php/src/Api/SignatureRequestApi.php b/sdks/php/src/Api/SignatureRequestApi.php index e0837df37..0abcb76c2 100644 --- a/sdks/php/src/Api/SignatureRequestApi.php +++ b/sdks/php/src/Api/SignatureRequestApi.php @@ -204,15 +204,14 @@ public function getResponse() * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.php * * @param Model\SignatureRequestBulkCreateEmbeddedWithTemplateRequest $signature_request_bulk_create_embedded_with_template_request signature_request_bulk_create_embedded_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\BulkSendJobSendResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function signatureRequestBulkCreateEmbeddedWithTemplate(Model\SignatureRequestBulkCreateEmbeddedWithTemplateRequest $signature_request_bulk_create_embedded_with_template_request, ?string $idempotency_key = null) + public function signatureRequestBulkCreateEmbeddedWithTemplate(Model\SignatureRequestBulkCreateEmbeddedWithTemplateRequest $signature_request_bulk_create_embedded_with_template_request) { - list($response) = $this->signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo($signature_request_bulk_create_embedded_with_template_request, $idempotency_key); + list($response) = $this->signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo($signature_request_bulk_create_embedded_with_template_request); return $response; } @@ -224,7 +223,6 @@ public function signatureRequestBulkCreateEmbeddedWithTemplate(Model\SignatureRe * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.php * * @param Model\SignatureRequestBulkCreateEmbeddedWithTemplateRequest $signature_request_bulk_create_embedded_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestBulkCreateEmbeddedWithTemplate'] to see the possible values for this operation * * @return array of Model\BulkSendJobSendResponse, HTTP status code, HTTP response headers (array of strings) @@ -232,9 +230,9 @@ public function signatureRequestBulkCreateEmbeddedWithTemplate(Model\SignatureRe * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestBulkCreateEmbeddedWithTemplate. This method will eventually become unavailable */ - public function signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(Model\SignatureRequestBulkCreateEmbeddedWithTemplateRequest $signature_request_bulk_create_embedded_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestBulkCreateEmbeddedWithTemplate'][0]) + public function signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(Model\SignatureRequestBulkCreateEmbeddedWithTemplateRequest $signature_request_bulk_create_embedded_with_template_request, string $contentType = self::contentTypes['signatureRequestBulkCreateEmbeddedWithTemplate'][0]) { - $request = $this->signatureRequestBulkCreateEmbeddedWithTemplateRequest($signature_request_bulk_create_embedded_with_template_request, $idempotency_key, $contentType); + $request = $this->signatureRequestBulkCreateEmbeddedWithTemplateRequest($signature_request_bulk_create_embedded_with_template_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -364,16 +362,15 @@ public function signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(Model * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.php * * @param Model\SignatureRequestBulkCreateEmbeddedWithTemplateRequest $signature_request_bulk_create_embedded_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestBulkCreateEmbeddedWithTemplate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestBulkCreateEmbeddedWithTemplate. This method will eventually become unavailable */ - public function signatureRequestBulkCreateEmbeddedWithTemplateAsync(Model\SignatureRequestBulkCreateEmbeddedWithTemplateRequest $signature_request_bulk_create_embedded_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestBulkCreateEmbeddedWithTemplate'][0]) + public function signatureRequestBulkCreateEmbeddedWithTemplateAsync(Model\SignatureRequestBulkCreateEmbeddedWithTemplateRequest $signature_request_bulk_create_embedded_with_template_request, string $contentType = self::contentTypes['signatureRequestBulkCreateEmbeddedWithTemplate'][0]) { - return $this->signatureRequestBulkCreateEmbeddedWithTemplateAsyncWithHttpInfo($signature_request_bulk_create_embedded_with_template_request, $idempotency_key, $contentType) + return $this->signatureRequestBulkCreateEmbeddedWithTemplateAsyncWithHttpInfo($signature_request_bulk_create_embedded_with_template_request, $contentType) ->then( function ($response) { return $response[0]; @@ -389,17 +386,16 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.php * * @param Model\SignatureRequestBulkCreateEmbeddedWithTemplateRequest $signature_request_bulk_create_embedded_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestBulkCreateEmbeddedWithTemplate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestBulkCreateEmbeddedWithTemplate. This method will eventually become unavailable */ - public function signatureRequestBulkCreateEmbeddedWithTemplateAsyncWithHttpInfo(Model\SignatureRequestBulkCreateEmbeddedWithTemplateRequest $signature_request_bulk_create_embedded_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestBulkCreateEmbeddedWithTemplate'][0]) + public function signatureRequestBulkCreateEmbeddedWithTemplateAsyncWithHttpInfo(Model\SignatureRequestBulkCreateEmbeddedWithTemplateRequest $signature_request_bulk_create_embedded_with_template_request, string $contentType = self::contentTypes['signatureRequestBulkCreateEmbeddedWithTemplate'][0]) { $returnType = '\Dropbox\Sign\Model\BulkSendJobSendResponse'; - $request = $this->signatureRequestBulkCreateEmbeddedWithTemplateRequest($signature_request_bulk_create_embedded_with_template_request, $idempotency_key, $contentType); + $request = $this->signatureRequestBulkCreateEmbeddedWithTemplateRequest($signature_request_bulk_create_embedded_with_template_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -441,14 +437,13 @@ function ($exception) { * Create request for operation 'signatureRequestBulkCreateEmbeddedWithTemplate' * * @param Model\SignatureRequestBulkCreateEmbeddedWithTemplateRequest $signature_request_bulk_create_embedded_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestBulkCreateEmbeddedWithTemplate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestBulkCreateEmbeddedWithTemplate. This method will eventually become unavailable */ - public function signatureRequestBulkCreateEmbeddedWithTemplateRequest(Model\SignatureRequestBulkCreateEmbeddedWithTemplateRequest $signature_request_bulk_create_embedded_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestBulkCreateEmbeddedWithTemplate'][0]) + public function signatureRequestBulkCreateEmbeddedWithTemplateRequest(Model\SignatureRequestBulkCreateEmbeddedWithTemplateRequest $signature_request_bulk_create_embedded_with_template_request, string $contentType = self::contentTypes['signatureRequestBulkCreateEmbeddedWithTemplate'][0]) { // verify the required parameter 'signature_request_bulk_create_embedded_with_template_request' is set if ($signature_request_bulk_create_embedded_with_template_request === null || (is_array($signature_request_bulk_create_embedded_with_template_request) && count($signature_request_bulk_create_embedded_with_template_request) === 0)) { @@ -457,13 +452,6 @@ public function signatureRequestBulkCreateEmbeddedWithTemplateRequest(Model\Sign ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestBulkCreateEmbeddedWithTemplate, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestBulkCreateEmbeddedWithTemplate, must be bigger than or equal to 1.'); - } - $resourcePath = '/signature_request/bulk_create_embedded_with_template'; $formParams = []; $queryParams = []; @@ -477,11 +465,6 @@ public function signatureRequestBulkCreateEmbeddedWithTemplateRequest(Model\Sign $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -564,15 +547,14 @@ public function signatureRequestBulkCreateEmbeddedWithTemplateRequest(Model\Sign * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.php * * @param Model\SignatureRequestBulkSendWithTemplateRequest $signature_request_bulk_send_with_template_request signature_request_bulk_send_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\BulkSendJobSendResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function signatureRequestBulkSendWithTemplate(Model\SignatureRequestBulkSendWithTemplateRequest $signature_request_bulk_send_with_template_request, ?string $idempotency_key = null) + public function signatureRequestBulkSendWithTemplate(Model\SignatureRequestBulkSendWithTemplateRequest $signature_request_bulk_send_with_template_request) { - list($response) = $this->signatureRequestBulkSendWithTemplateWithHttpInfo($signature_request_bulk_send_with_template_request, $idempotency_key); + list($response) = $this->signatureRequestBulkSendWithTemplateWithHttpInfo($signature_request_bulk_send_with_template_request); return $response; } @@ -584,7 +566,6 @@ public function signatureRequestBulkSendWithTemplate(Model\SignatureRequestBulkS * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.php * * @param Model\SignatureRequestBulkSendWithTemplateRequest $signature_request_bulk_send_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestBulkSendWithTemplate'] to see the possible values for this operation * * @return array of Model\BulkSendJobSendResponse, HTTP status code, HTTP response headers (array of strings) @@ -592,9 +573,9 @@ public function signatureRequestBulkSendWithTemplate(Model\SignatureRequestBulkS * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestBulkSendWithTemplate. This method will eventually become unavailable */ - public function signatureRequestBulkSendWithTemplateWithHttpInfo(Model\SignatureRequestBulkSendWithTemplateRequest $signature_request_bulk_send_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestBulkSendWithTemplate'][0]) + public function signatureRequestBulkSendWithTemplateWithHttpInfo(Model\SignatureRequestBulkSendWithTemplateRequest $signature_request_bulk_send_with_template_request, string $contentType = self::contentTypes['signatureRequestBulkSendWithTemplate'][0]) { - $request = $this->signatureRequestBulkSendWithTemplateRequest($signature_request_bulk_send_with_template_request, $idempotency_key, $contentType); + $request = $this->signatureRequestBulkSendWithTemplateRequest($signature_request_bulk_send_with_template_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -724,16 +705,15 @@ public function signatureRequestBulkSendWithTemplateWithHttpInfo(Model\Signature * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.php * * @param Model\SignatureRequestBulkSendWithTemplateRequest $signature_request_bulk_send_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestBulkSendWithTemplate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestBulkSendWithTemplate. This method will eventually become unavailable */ - public function signatureRequestBulkSendWithTemplateAsync(Model\SignatureRequestBulkSendWithTemplateRequest $signature_request_bulk_send_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestBulkSendWithTemplate'][0]) + public function signatureRequestBulkSendWithTemplateAsync(Model\SignatureRequestBulkSendWithTemplateRequest $signature_request_bulk_send_with_template_request, string $contentType = self::contentTypes['signatureRequestBulkSendWithTemplate'][0]) { - return $this->signatureRequestBulkSendWithTemplateAsyncWithHttpInfo($signature_request_bulk_send_with_template_request, $idempotency_key, $contentType) + return $this->signatureRequestBulkSendWithTemplateAsyncWithHttpInfo($signature_request_bulk_send_with_template_request, $contentType) ->then( function ($response) { return $response[0]; @@ -749,17 +729,16 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.php * * @param Model\SignatureRequestBulkSendWithTemplateRequest $signature_request_bulk_send_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestBulkSendWithTemplate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestBulkSendWithTemplate. This method will eventually become unavailable */ - public function signatureRequestBulkSendWithTemplateAsyncWithHttpInfo(Model\SignatureRequestBulkSendWithTemplateRequest $signature_request_bulk_send_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestBulkSendWithTemplate'][0]) + public function signatureRequestBulkSendWithTemplateAsyncWithHttpInfo(Model\SignatureRequestBulkSendWithTemplateRequest $signature_request_bulk_send_with_template_request, string $contentType = self::contentTypes['signatureRequestBulkSendWithTemplate'][0]) { $returnType = '\Dropbox\Sign\Model\BulkSendJobSendResponse'; - $request = $this->signatureRequestBulkSendWithTemplateRequest($signature_request_bulk_send_with_template_request, $idempotency_key, $contentType); + $request = $this->signatureRequestBulkSendWithTemplateRequest($signature_request_bulk_send_with_template_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -801,14 +780,13 @@ function ($exception) { * Create request for operation 'signatureRequestBulkSendWithTemplate' * * @param Model\SignatureRequestBulkSendWithTemplateRequest $signature_request_bulk_send_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestBulkSendWithTemplate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestBulkSendWithTemplate. This method will eventually become unavailable */ - public function signatureRequestBulkSendWithTemplateRequest(Model\SignatureRequestBulkSendWithTemplateRequest $signature_request_bulk_send_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestBulkSendWithTemplate'][0]) + public function signatureRequestBulkSendWithTemplateRequest(Model\SignatureRequestBulkSendWithTemplateRequest $signature_request_bulk_send_with_template_request, string $contentType = self::contentTypes['signatureRequestBulkSendWithTemplate'][0]) { // verify the required parameter 'signature_request_bulk_send_with_template_request' is set if ($signature_request_bulk_send_with_template_request === null || (is_array($signature_request_bulk_send_with_template_request) && count($signature_request_bulk_send_with_template_request) === 0)) { @@ -817,13 +795,6 @@ public function signatureRequestBulkSendWithTemplateRequest(Model\SignatureReque ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestBulkSendWithTemplate, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestBulkSendWithTemplate, must be bigger than or equal to 1.'); - } - $resourcePath = '/signature_request/bulk_send_with_template'; $formParams = []; $queryParams = []; @@ -837,11 +808,6 @@ public function signatureRequestBulkSendWithTemplateRequest(Model\SignatureReque $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -927,15 +893,14 @@ public function signatureRequestBulkSendWithTemplateRequest(Model\SignatureReque * * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestCancelExample.php * - * @param string $signature_request_id The id of the incomplete SignatureRequest to cancel. (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) + * @param string $signature_request_id The id of the incomplete SignatureRequest to cancel. (required) * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function signatureRequestCancel(string $signature_request_id, ?string $idempotency_key = null) + public function signatureRequestCancel(string $signature_request_id) { - $this->signatureRequestCancelWithHttpInfo($signature_request_id, $idempotency_key); + $this->signatureRequestCancelWithHttpInfo($signature_request_id); } /** @@ -945,18 +910,17 @@ public function signatureRequestCancel(string $signature_request_id, ?string $id * * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestCancelExample.php * - * @param string $signature_request_id The id of the incomplete SignatureRequest to cancel. (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestCancel'] to see the possible values for this operation + * @param string $signature_request_id The id of the incomplete SignatureRequest to cancel. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestCancel'] to see the possible values for this operation * * @return array of null, HTTP status code, HTTP response headers (array of strings) * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestCancel. This method will eventually become unavailable */ - public function signatureRequestCancelWithHttpInfo(string $signature_request_id, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestCancel'][0]) + public function signatureRequestCancelWithHttpInfo(string $signature_request_id, string $contentType = self::contentTypes['signatureRequestCancel'][0]) { - $request = $this->signatureRequestCancelRequest($signature_request_id, $idempotency_key, $contentType); + $request = $this->signatureRequestCancelRequest($signature_request_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -999,17 +963,16 @@ public function signatureRequestCancelWithHttpInfo(string $signature_request_id, * * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestCancelExample.php * - * @param string $signature_request_id The id of the incomplete SignatureRequest to cancel. (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestCancel'] to see the possible values for this operation + * @param string $signature_request_id The id of the incomplete SignatureRequest to cancel. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestCancel'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestCancel. This method will eventually become unavailable */ - public function signatureRequestCancelAsync(string $signature_request_id, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestCancel'][0]) + public function signatureRequestCancelAsync(string $signature_request_id, string $contentType = self::contentTypes['signatureRequestCancel'][0]) { - return $this->signatureRequestCancelAsyncWithHttpInfo($signature_request_id, $idempotency_key, $contentType) + return $this->signatureRequestCancelAsyncWithHttpInfo($signature_request_id, $contentType) ->then( function ($response) { return $response[0]; @@ -1024,18 +987,17 @@ function ($response) { * * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestCancelExample.php * - * @param string $signature_request_id The id of the incomplete SignatureRequest to cancel. (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestCancel'] to see the possible values for this operation + * @param string $signature_request_id The id of the incomplete SignatureRequest to cancel. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestCancel'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestCancel. This method will eventually become unavailable */ - public function signatureRequestCancelAsyncWithHttpInfo(string $signature_request_id, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestCancel'][0]) + public function signatureRequestCancelAsyncWithHttpInfo(string $signature_request_id, string $contentType = self::contentTypes['signatureRequestCancel'][0]) { $returnType = ''; - $request = $this->signatureRequestCancelRequest($signature_request_id, $idempotency_key, $contentType); + $request = $this->signatureRequestCancelRequest($signature_request_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1063,15 +1025,14 @@ function ($exception) { /** * Create request for operation 'signatureRequestCancel' * - * @param string $signature_request_id The id of the incomplete SignatureRequest to cancel. (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestCancel'] to see the possible values for this operation + * @param string $signature_request_id The id of the incomplete SignatureRequest to cancel. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestCancel'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestCancel. This method will eventually become unavailable */ - public function signatureRequestCancelRequest(string $signature_request_id, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestCancel'][0]) + public function signatureRequestCancelRequest(string $signature_request_id, string $contentType = self::contentTypes['signatureRequestCancel'][0]) { // verify the required parameter 'signature_request_id' is set if ($signature_request_id === null || (is_array($signature_request_id) && count($signature_request_id) === 0)) { @@ -1080,13 +1041,6 @@ public function signatureRequestCancelRequest(string $signature_request_id, ?str ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestCancel, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestCancel, must be bigger than or equal to 1.'); - } - $resourcePath = '/signature_request/cancel/{signature_request_id}'; $formParams = []; $queryParams = []; @@ -1094,11 +1048,6 @@ public function signatureRequestCancelRequest(string $signature_request_id, ?str $httpBody = ''; $multipart = false; - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - // path params if ($signature_request_id !== null) { $resourcePath = str_replace( @@ -1184,15 +1133,14 @@ public function signatureRequestCancelRequest(string $signature_request_id, ?str * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestCreateEmbeddedExample.php * * @param Model\SignatureRequestCreateEmbeddedRequest $signature_request_create_embedded_request signature_request_create_embedded_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\SignatureRequestGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function signatureRequestCreateEmbedded(Model\SignatureRequestCreateEmbeddedRequest $signature_request_create_embedded_request, ?string $idempotency_key = null) + public function signatureRequestCreateEmbedded(Model\SignatureRequestCreateEmbeddedRequest $signature_request_create_embedded_request) { - list($response) = $this->signatureRequestCreateEmbeddedWithHttpInfo($signature_request_create_embedded_request, $idempotency_key); + list($response) = $this->signatureRequestCreateEmbeddedWithHttpInfo($signature_request_create_embedded_request); return $response; } @@ -1204,7 +1152,6 @@ public function signatureRequestCreateEmbedded(Model\SignatureRequestCreateEmbed * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestCreateEmbeddedExample.php * * @param Model\SignatureRequestCreateEmbeddedRequest $signature_request_create_embedded_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestCreateEmbedded'] to see the possible values for this operation * * @return array of Model\SignatureRequestGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -1212,9 +1159,9 @@ public function signatureRequestCreateEmbedded(Model\SignatureRequestCreateEmbed * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestCreateEmbedded. This method will eventually become unavailable */ - public function signatureRequestCreateEmbeddedWithHttpInfo(Model\SignatureRequestCreateEmbeddedRequest $signature_request_create_embedded_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestCreateEmbedded'][0]) + public function signatureRequestCreateEmbeddedWithHttpInfo(Model\SignatureRequestCreateEmbeddedRequest $signature_request_create_embedded_request, string $contentType = self::contentTypes['signatureRequestCreateEmbedded'][0]) { - $request = $this->signatureRequestCreateEmbeddedRequest($signature_request_create_embedded_request, $idempotency_key, $contentType); + $request = $this->signatureRequestCreateEmbeddedRequest($signature_request_create_embedded_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -1344,16 +1291,15 @@ public function signatureRequestCreateEmbeddedWithHttpInfo(Model\SignatureReques * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestCreateEmbeddedExample.php * * @param Model\SignatureRequestCreateEmbeddedRequest $signature_request_create_embedded_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestCreateEmbedded'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestCreateEmbedded. This method will eventually become unavailable */ - public function signatureRequestCreateEmbeddedAsync(Model\SignatureRequestCreateEmbeddedRequest $signature_request_create_embedded_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestCreateEmbedded'][0]) + public function signatureRequestCreateEmbeddedAsync(Model\SignatureRequestCreateEmbeddedRequest $signature_request_create_embedded_request, string $contentType = self::contentTypes['signatureRequestCreateEmbedded'][0]) { - return $this->signatureRequestCreateEmbeddedAsyncWithHttpInfo($signature_request_create_embedded_request, $idempotency_key, $contentType) + return $this->signatureRequestCreateEmbeddedAsyncWithHttpInfo($signature_request_create_embedded_request, $contentType) ->then( function ($response) { return $response[0]; @@ -1369,17 +1315,16 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestCreateEmbeddedExample.php * * @param Model\SignatureRequestCreateEmbeddedRequest $signature_request_create_embedded_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestCreateEmbedded'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestCreateEmbedded. This method will eventually become unavailable */ - public function signatureRequestCreateEmbeddedAsyncWithHttpInfo(Model\SignatureRequestCreateEmbeddedRequest $signature_request_create_embedded_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestCreateEmbedded'][0]) + public function signatureRequestCreateEmbeddedAsyncWithHttpInfo(Model\SignatureRequestCreateEmbeddedRequest $signature_request_create_embedded_request, string $contentType = self::contentTypes['signatureRequestCreateEmbedded'][0]) { $returnType = '\Dropbox\Sign\Model\SignatureRequestGetResponse'; - $request = $this->signatureRequestCreateEmbeddedRequest($signature_request_create_embedded_request, $idempotency_key, $contentType); + $request = $this->signatureRequestCreateEmbeddedRequest($signature_request_create_embedded_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1421,14 +1366,13 @@ function ($exception) { * Create request for operation 'signatureRequestCreateEmbedded' * * @param Model\SignatureRequestCreateEmbeddedRequest $signature_request_create_embedded_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestCreateEmbedded'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestCreateEmbedded. This method will eventually become unavailable */ - public function signatureRequestCreateEmbeddedRequest(Model\SignatureRequestCreateEmbeddedRequest $signature_request_create_embedded_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestCreateEmbedded'][0]) + public function signatureRequestCreateEmbeddedRequest(Model\SignatureRequestCreateEmbeddedRequest $signature_request_create_embedded_request, string $contentType = self::contentTypes['signatureRequestCreateEmbedded'][0]) { // verify the required parameter 'signature_request_create_embedded_request' is set if ($signature_request_create_embedded_request === null || (is_array($signature_request_create_embedded_request) && count($signature_request_create_embedded_request) === 0)) { @@ -1437,13 +1381,6 @@ public function signatureRequestCreateEmbeddedRequest(Model\SignatureRequestCrea ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestCreateEmbedded, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestCreateEmbedded, must be bigger than or equal to 1.'); - } - $resourcePath = '/signature_request/create_embedded'; $formParams = []; $queryParams = []; @@ -1457,11 +1394,6 @@ public function signatureRequestCreateEmbeddedRequest(Model\SignatureRequestCrea $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -1548,15 +1480,14 @@ public function signatureRequestCreateEmbeddedRequest(Model\SignatureRequestCrea * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.php * * @param Model\SignatureRequestCreateEmbeddedWithTemplateRequest $signature_request_create_embedded_with_template_request signature_request_create_embedded_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\SignatureRequestGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function signatureRequestCreateEmbeddedWithTemplate(Model\SignatureRequestCreateEmbeddedWithTemplateRequest $signature_request_create_embedded_with_template_request, ?string $idempotency_key = null) + public function signatureRequestCreateEmbeddedWithTemplate(Model\SignatureRequestCreateEmbeddedWithTemplateRequest $signature_request_create_embedded_with_template_request) { - list($response) = $this->signatureRequestCreateEmbeddedWithTemplateWithHttpInfo($signature_request_create_embedded_with_template_request, $idempotency_key); + list($response) = $this->signatureRequestCreateEmbeddedWithTemplateWithHttpInfo($signature_request_create_embedded_with_template_request); return $response; } @@ -1568,7 +1499,6 @@ public function signatureRequestCreateEmbeddedWithTemplate(Model\SignatureReques * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.php * * @param Model\SignatureRequestCreateEmbeddedWithTemplateRequest $signature_request_create_embedded_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestCreateEmbeddedWithTemplate'] to see the possible values for this operation * * @return array of Model\SignatureRequestGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -1576,9 +1506,9 @@ public function signatureRequestCreateEmbeddedWithTemplate(Model\SignatureReques * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestCreateEmbeddedWithTemplate. This method will eventually become unavailable */ - public function signatureRequestCreateEmbeddedWithTemplateWithHttpInfo(Model\SignatureRequestCreateEmbeddedWithTemplateRequest $signature_request_create_embedded_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestCreateEmbeddedWithTemplate'][0]) + public function signatureRequestCreateEmbeddedWithTemplateWithHttpInfo(Model\SignatureRequestCreateEmbeddedWithTemplateRequest $signature_request_create_embedded_with_template_request, string $contentType = self::contentTypes['signatureRequestCreateEmbeddedWithTemplate'][0]) { - $request = $this->signatureRequestCreateEmbeddedWithTemplateRequest($signature_request_create_embedded_with_template_request, $idempotency_key, $contentType); + $request = $this->signatureRequestCreateEmbeddedWithTemplateRequest($signature_request_create_embedded_with_template_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -1708,16 +1638,15 @@ public function signatureRequestCreateEmbeddedWithTemplateWithHttpInfo(Model\Sig * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.php * * @param Model\SignatureRequestCreateEmbeddedWithTemplateRequest $signature_request_create_embedded_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestCreateEmbeddedWithTemplate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestCreateEmbeddedWithTemplate. This method will eventually become unavailable */ - public function signatureRequestCreateEmbeddedWithTemplateAsync(Model\SignatureRequestCreateEmbeddedWithTemplateRequest $signature_request_create_embedded_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestCreateEmbeddedWithTemplate'][0]) + public function signatureRequestCreateEmbeddedWithTemplateAsync(Model\SignatureRequestCreateEmbeddedWithTemplateRequest $signature_request_create_embedded_with_template_request, string $contentType = self::contentTypes['signatureRequestCreateEmbeddedWithTemplate'][0]) { - return $this->signatureRequestCreateEmbeddedWithTemplateAsyncWithHttpInfo($signature_request_create_embedded_with_template_request, $idempotency_key, $contentType) + return $this->signatureRequestCreateEmbeddedWithTemplateAsyncWithHttpInfo($signature_request_create_embedded_with_template_request, $contentType) ->then( function ($response) { return $response[0]; @@ -1733,17 +1662,16 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.php * * @param Model\SignatureRequestCreateEmbeddedWithTemplateRequest $signature_request_create_embedded_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestCreateEmbeddedWithTemplate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestCreateEmbeddedWithTemplate. This method will eventually become unavailable */ - public function signatureRequestCreateEmbeddedWithTemplateAsyncWithHttpInfo(Model\SignatureRequestCreateEmbeddedWithTemplateRequest $signature_request_create_embedded_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestCreateEmbeddedWithTemplate'][0]) + public function signatureRequestCreateEmbeddedWithTemplateAsyncWithHttpInfo(Model\SignatureRequestCreateEmbeddedWithTemplateRequest $signature_request_create_embedded_with_template_request, string $contentType = self::contentTypes['signatureRequestCreateEmbeddedWithTemplate'][0]) { $returnType = '\Dropbox\Sign\Model\SignatureRequestGetResponse'; - $request = $this->signatureRequestCreateEmbeddedWithTemplateRequest($signature_request_create_embedded_with_template_request, $idempotency_key, $contentType); + $request = $this->signatureRequestCreateEmbeddedWithTemplateRequest($signature_request_create_embedded_with_template_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1785,14 +1713,13 @@ function ($exception) { * Create request for operation 'signatureRequestCreateEmbeddedWithTemplate' * * @param Model\SignatureRequestCreateEmbeddedWithTemplateRequest $signature_request_create_embedded_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestCreateEmbeddedWithTemplate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestCreateEmbeddedWithTemplate. This method will eventually become unavailable */ - public function signatureRequestCreateEmbeddedWithTemplateRequest(Model\SignatureRequestCreateEmbeddedWithTemplateRequest $signature_request_create_embedded_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestCreateEmbeddedWithTemplate'][0]) + public function signatureRequestCreateEmbeddedWithTemplateRequest(Model\SignatureRequestCreateEmbeddedWithTemplateRequest $signature_request_create_embedded_with_template_request, string $contentType = self::contentTypes['signatureRequestCreateEmbeddedWithTemplate'][0]) { // verify the required parameter 'signature_request_create_embedded_with_template_request' is set if ($signature_request_create_embedded_with_template_request === null || (is_array($signature_request_create_embedded_with_template_request) && count($signature_request_create_embedded_with_template_request) === 0)) { @@ -1801,13 +1728,6 @@ public function signatureRequestCreateEmbeddedWithTemplateRequest(Model\Signatur ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestCreateEmbeddedWithTemplate, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestCreateEmbeddedWithTemplate, must be bigger than or equal to 1.'); - } - $resourcePath = '/signature_request/create_embedded_with_template'; $formParams = []; $queryParams = []; @@ -1821,11 +1741,6 @@ public function signatureRequestCreateEmbeddedWithTemplateRequest(Model\Signatur $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -1913,15 +1828,14 @@ public function signatureRequestCreateEmbeddedWithTemplateRequest(Model\Signatur * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditRequest $signature_request_edit_request signature_request_edit_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\SignatureRequestGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function signatureRequestEdit(string $signature_request_id, Model\SignatureRequestEditRequest $signature_request_edit_request, ?string $idempotency_key = null) + public function signatureRequestEdit(string $signature_request_id, Model\SignatureRequestEditRequest $signature_request_edit_request) { - list($response) = $this->signatureRequestEditWithHttpInfo($signature_request_id, $signature_request_edit_request, $idempotency_key); + list($response) = $this->signatureRequestEditWithHttpInfo($signature_request_id, $signature_request_edit_request); return $response; } @@ -1934,7 +1848,6 @@ public function signatureRequestEdit(string $signature_request_id, Model\Signatu * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditRequest $signature_request_edit_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestEdit'] to see the possible values for this operation * * @return array of Model\SignatureRequestGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -1942,9 +1855,9 @@ public function signatureRequestEdit(string $signature_request_id, Model\Signatu * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestEdit. This method will eventually become unavailable */ - public function signatureRequestEditWithHttpInfo(string $signature_request_id, Model\SignatureRequestEditRequest $signature_request_edit_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestEdit'][0]) + public function signatureRequestEditWithHttpInfo(string $signature_request_id, Model\SignatureRequestEditRequest $signature_request_edit_request, string $contentType = self::contentTypes['signatureRequestEdit'][0]) { - $request = $this->signatureRequestEditRequest($signature_request_id, $signature_request_edit_request, $idempotency_key, $contentType); + $request = $this->signatureRequestEditRequest($signature_request_id, $signature_request_edit_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -2075,16 +1988,15 @@ public function signatureRequestEditWithHttpInfo(string $signature_request_id, M * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditRequest $signature_request_edit_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestEdit'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestEdit. This method will eventually become unavailable */ - public function signatureRequestEditAsync(string $signature_request_id, Model\SignatureRequestEditRequest $signature_request_edit_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestEdit'][0]) + public function signatureRequestEditAsync(string $signature_request_id, Model\SignatureRequestEditRequest $signature_request_edit_request, string $contentType = self::contentTypes['signatureRequestEdit'][0]) { - return $this->signatureRequestEditAsyncWithHttpInfo($signature_request_id, $signature_request_edit_request, $idempotency_key, $contentType) + return $this->signatureRequestEditAsyncWithHttpInfo($signature_request_id, $signature_request_edit_request, $contentType) ->then( function ($response) { return $response[0]; @@ -2101,17 +2013,16 @@ function ($response) { * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditRequest $signature_request_edit_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestEdit'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestEdit. This method will eventually become unavailable */ - public function signatureRequestEditAsyncWithHttpInfo(string $signature_request_id, Model\SignatureRequestEditRequest $signature_request_edit_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestEdit'][0]) + public function signatureRequestEditAsyncWithHttpInfo(string $signature_request_id, Model\SignatureRequestEditRequest $signature_request_edit_request, string $contentType = self::contentTypes['signatureRequestEdit'][0]) { $returnType = '\Dropbox\Sign\Model\SignatureRequestGetResponse'; - $request = $this->signatureRequestEditRequest($signature_request_id, $signature_request_edit_request, $idempotency_key, $contentType); + $request = $this->signatureRequestEditRequest($signature_request_id, $signature_request_edit_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2154,14 +2065,13 @@ function ($exception) { * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditRequest $signature_request_edit_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestEdit'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestEdit. This method will eventually become unavailable */ - public function signatureRequestEditRequest(string $signature_request_id, Model\SignatureRequestEditRequest $signature_request_edit_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestEdit'][0]) + public function signatureRequestEditRequest(string $signature_request_id, Model\SignatureRequestEditRequest $signature_request_edit_request, string $contentType = self::contentTypes['signatureRequestEdit'][0]) { // verify the required parameter 'signature_request_id' is set if ($signature_request_id === null || (is_array($signature_request_id) && count($signature_request_id) === 0)) { @@ -2177,13 +2087,6 @@ public function signatureRequestEditRequest(string $signature_request_id, Model\ ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestEdit, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestEdit, must be bigger than or equal to 1.'); - } - $resourcePath = '/signature_request/edit/{signature_request_id}'; $formParams = []; $queryParams = []; @@ -2197,11 +2100,6 @@ public function signatureRequestEditRequest(string $signature_request_id, Model\ $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - // path params if ($signature_request_id !== null) { $resourcePath = str_replace( @@ -2298,15 +2196,14 @@ public function signatureRequestEditRequest(string $signature_request_id, Model\ * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditEmbeddedRequest $signature_request_edit_embedded_request signature_request_edit_embedded_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\SignatureRequestGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function signatureRequestEditEmbedded(string $signature_request_id, Model\SignatureRequestEditEmbeddedRequest $signature_request_edit_embedded_request, ?string $idempotency_key = null) + public function signatureRequestEditEmbedded(string $signature_request_id, Model\SignatureRequestEditEmbeddedRequest $signature_request_edit_embedded_request) { - list($response) = $this->signatureRequestEditEmbeddedWithHttpInfo($signature_request_id, $signature_request_edit_embedded_request, $idempotency_key); + list($response) = $this->signatureRequestEditEmbeddedWithHttpInfo($signature_request_id, $signature_request_edit_embedded_request); return $response; } @@ -2319,7 +2216,6 @@ public function signatureRequestEditEmbedded(string $signature_request_id, Model * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditEmbeddedRequest $signature_request_edit_embedded_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestEditEmbedded'] to see the possible values for this operation * * @return array of Model\SignatureRequestGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -2327,9 +2223,9 @@ public function signatureRequestEditEmbedded(string $signature_request_id, Model * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestEditEmbedded. This method will eventually become unavailable */ - public function signatureRequestEditEmbeddedWithHttpInfo(string $signature_request_id, Model\SignatureRequestEditEmbeddedRequest $signature_request_edit_embedded_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestEditEmbedded'][0]) + public function signatureRequestEditEmbeddedWithHttpInfo(string $signature_request_id, Model\SignatureRequestEditEmbeddedRequest $signature_request_edit_embedded_request, string $contentType = self::contentTypes['signatureRequestEditEmbedded'][0]) { - $request = $this->signatureRequestEditEmbeddedRequest($signature_request_id, $signature_request_edit_embedded_request, $idempotency_key, $contentType); + $request = $this->signatureRequestEditEmbeddedRequest($signature_request_id, $signature_request_edit_embedded_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -2460,16 +2356,15 @@ public function signatureRequestEditEmbeddedWithHttpInfo(string $signature_reque * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditEmbeddedRequest $signature_request_edit_embedded_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestEditEmbedded'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestEditEmbedded. This method will eventually become unavailable */ - public function signatureRequestEditEmbeddedAsync(string $signature_request_id, Model\SignatureRequestEditEmbeddedRequest $signature_request_edit_embedded_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestEditEmbedded'][0]) + public function signatureRequestEditEmbeddedAsync(string $signature_request_id, Model\SignatureRequestEditEmbeddedRequest $signature_request_edit_embedded_request, string $contentType = self::contentTypes['signatureRequestEditEmbedded'][0]) { - return $this->signatureRequestEditEmbeddedAsyncWithHttpInfo($signature_request_id, $signature_request_edit_embedded_request, $idempotency_key, $contentType) + return $this->signatureRequestEditEmbeddedAsyncWithHttpInfo($signature_request_id, $signature_request_edit_embedded_request, $contentType) ->then( function ($response) { return $response[0]; @@ -2486,17 +2381,16 @@ function ($response) { * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditEmbeddedRequest $signature_request_edit_embedded_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestEditEmbedded'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestEditEmbedded. This method will eventually become unavailable */ - public function signatureRequestEditEmbeddedAsyncWithHttpInfo(string $signature_request_id, Model\SignatureRequestEditEmbeddedRequest $signature_request_edit_embedded_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestEditEmbedded'][0]) + public function signatureRequestEditEmbeddedAsyncWithHttpInfo(string $signature_request_id, Model\SignatureRequestEditEmbeddedRequest $signature_request_edit_embedded_request, string $contentType = self::contentTypes['signatureRequestEditEmbedded'][0]) { $returnType = '\Dropbox\Sign\Model\SignatureRequestGetResponse'; - $request = $this->signatureRequestEditEmbeddedRequest($signature_request_id, $signature_request_edit_embedded_request, $idempotency_key, $contentType); + $request = $this->signatureRequestEditEmbeddedRequest($signature_request_id, $signature_request_edit_embedded_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2539,14 +2433,13 @@ function ($exception) { * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditEmbeddedRequest $signature_request_edit_embedded_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestEditEmbedded'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestEditEmbedded. This method will eventually become unavailable */ - public function signatureRequestEditEmbeddedRequest(string $signature_request_id, Model\SignatureRequestEditEmbeddedRequest $signature_request_edit_embedded_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestEditEmbedded'][0]) + public function signatureRequestEditEmbeddedRequest(string $signature_request_id, Model\SignatureRequestEditEmbeddedRequest $signature_request_edit_embedded_request, string $contentType = self::contentTypes['signatureRequestEditEmbedded'][0]) { // verify the required parameter 'signature_request_id' is set if ($signature_request_id === null || (is_array($signature_request_id) && count($signature_request_id) === 0)) { @@ -2562,13 +2455,6 @@ public function signatureRequestEditEmbeddedRequest(string $signature_request_id ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestEditEmbedded, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestEditEmbedded, must be bigger than or equal to 1.'); - } - $resourcePath = '/signature_request/edit_embedded/{signature_request_id}'; $formParams = []; $queryParams = []; @@ -2582,11 +2468,6 @@ public function signatureRequestEditEmbeddedRequest(string $signature_request_id $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - // path params if ($signature_request_id !== null) { $resourcePath = str_replace( @@ -2683,15 +2564,14 @@ public function signatureRequestEditEmbeddedRequest(string $signature_request_id * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditEmbeddedWithTemplateRequest $signature_request_edit_embedded_with_template_request signature_request_edit_embedded_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\SignatureRequestGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function signatureRequestEditEmbeddedWithTemplate(string $signature_request_id, Model\SignatureRequestEditEmbeddedWithTemplateRequest $signature_request_edit_embedded_with_template_request, ?string $idempotency_key = null) + public function signatureRequestEditEmbeddedWithTemplate(string $signature_request_id, Model\SignatureRequestEditEmbeddedWithTemplateRequest $signature_request_edit_embedded_with_template_request) { - list($response) = $this->signatureRequestEditEmbeddedWithTemplateWithHttpInfo($signature_request_id, $signature_request_edit_embedded_with_template_request, $idempotency_key); + list($response) = $this->signatureRequestEditEmbeddedWithTemplateWithHttpInfo($signature_request_id, $signature_request_edit_embedded_with_template_request); return $response; } @@ -2704,7 +2584,6 @@ public function signatureRequestEditEmbeddedWithTemplate(string $signature_reque * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditEmbeddedWithTemplateRequest $signature_request_edit_embedded_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestEditEmbeddedWithTemplate'] to see the possible values for this operation * * @return array of Model\SignatureRequestGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -2712,9 +2591,9 @@ public function signatureRequestEditEmbeddedWithTemplate(string $signature_reque * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestEditEmbeddedWithTemplate. This method will eventually become unavailable */ - public function signatureRequestEditEmbeddedWithTemplateWithHttpInfo(string $signature_request_id, Model\SignatureRequestEditEmbeddedWithTemplateRequest $signature_request_edit_embedded_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestEditEmbeddedWithTemplate'][0]) + public function signatureRequestEditEmbeddedWithTemplateWithHttpInfo(string $signature_request_id, Model\SignatureRequestEditEmbeddedWithTemplateRequest $signature_request_edit_embedded_with_template_request, string $contentType = self::contentTypes['signatureRequestEditEmbeddedWithTemplate'][0]) { - $request = $this->signatureRequestEditEmbeddedWithTemplateRequest($signature_request_id, $signature_request_edit_embedded_with_template_request, $idempotency_key, $contentType); + $request = $this->signatureRequestEditEmbeddedWithTemplateRequest($signature_request_id, $signature_request_edit_embedded_with_template_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -2845,16 +2724,15 @@ public function signatureRequestEditEmbeddedWithTemplateWithHttpInfo(string $sig * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditEmbeddedWithTemplateRequest $signature_request_edit_embedded_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestEditEmbeddedWithTemplate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestEditEmbeddedWithTemplate. This method will eventually become unavailable */ - public function signatureRequestEditEmbeddedWithTemplateAsync(string $signature_request_id, Model\SignatureRequestEditEmbeddedWithTemplateRequest $signature_request_edit_embedded_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestEditEmbeddedWithTemplate'][0]) + public function signatureRequestEditEmbeddedWithTemplateAsync(string $signature_request_id, Model\SignatureRequestEditEmbeddedWithTemplateRequest $signature_request_edit_embedded_with_template_request, string $contentType = self::contentTypes['signatureRequestEditEmbeddedWithTemplate'][0]) { - return $this->signatureRequestEditEmbeddedWithTemplateAsyncWithHttpInfo($signature_request_id, $signature_request_edit_embedded_with_template_request, $idempotency_key, $contentType) + return $this->signatureRequestEditEmbeddedWithTemplateAsyncWithHttpInfo($signature_request_id, $signature_request_edit_embedded_with_template_request, $contentType) ->then( function ($response) { return $response[0]; @@ -2871,17 +2749,16 @@ function ($response) { * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditEmbeddedWithTemplateRequest $signature_request_edit_embedded_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestEditEmbeddedWithTemplate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestEditEmbeddedWithTemplate. This method will eventually become unavailable */ - public function signatureRequestEditEmbeddedWithTemplateAsyncWithHttpInfo(string $signature_request_id, Model\SignatureRequestEditEmbeddedWithTemplateRequest $signature_request_edit_embedded_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestEditEmbeddedWithTemplate'][0]) + public function signatureRequestEditEmbeddedWithTemplateAsyncWithHttpInfo(string $signature_request_id, Model\SignatureRequestEditEmbeddedWithTemplateRequest $signature_request_edit_embedded_with_template_request, string $contentType = self::contentTypes['signatureRequestEditEmbeddedWithTemplate'][0]) { $returnType = '\Dropbox\Sign\Model\SignatureRequestGetResponse'; - $request = $this->signatureRequestEditEmbeddedWithTemplateRequest($signature_request_id, $signature_request_edit_embedded_with_template_request, $idempotency_key, $contentType); + $request = $this->signatureRequestEditEmbeddedWithTemplateRequest($signature_request_id, $signature_request_edit_embedded_with_template_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2924,14 +2801,13 @@ function ($exception) { * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditEmbeddedWithTemplateRequest $signature_request_edit_embedded_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestEditEmbeddedWithTemplate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestEditEmbeddedWithTemplate. This method will eventually become unavailable */ - public function signatureRequestEditEmbeddedWithTemplateRequest(string $signature_request_id, Model\SignatureRequestEditEmbeddedWithTemplateRequest $signature_request_edit_embedded_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestEditEmbeddedWithTemplate'][0]) + public function signatureRequestEditEmbeddedWithTemplateRequest(string $signature_request_id, Model\SignatureRequestEditEmbeddedWithTemplateRequest $signature_request_edit_embedded_with_template_request, string $contentType = self::contentTypes['signatureRequestEditEmbeddedWithTemplate'][0]) { // verify the required parameter 'signature_request_id' is set if ($signature_request_id === null || (is_array($signature_request_id) && count($signature_request_id) === 0)) { @@ -2947,13 +2823,6 @@ public function signatureRequestEditEmbeddedWithTemplateRequest(string $signatur ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestEditEmbeddedWithTemplate, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestEditEmbeddedWithTemplate, must be bigger than or equal to 1.'); - } - $resourcePath = '/signature_request/edit_embedded_with_template/{signature_request_id}'; $formParams = []; $queryParams = []; @@ -2967,11 +2836,6 @@ public function signatureRequestEditEmbeddedWithTemplateRequest(string $signatur $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - // path params if ($signature_request_id !== null) { $resourcePath = str_replace( @@ -3068,15 +2932,14 @@ public function signatureRequestEditEmbeddedWithTemplateRequest(string $signatur * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditWithTemplateRequest $signature_request_edit_with_template_request signature_request_edit_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\SignatureRequestGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function signatureRequestEditWithTemplate(string $signature_request_id, Model\SignatureRequestEditWithTemplateRequest $signature_request_edit_with_template_request, ?string $idempotency_key = null) + public function signatureRequestEditWithTemplate(string $signature_request_id, Model\SignatureRequestEditWithTemplateRequest $signature_request_edit_with_template_request) { - list($response) = $this->signatureRequestEditWithTemplateWithHttpInfo($signature_request_id, $signature_request_edit_with_template_request, $idempotency_key); + list($response) = $this->signatureRequestEditWithTemplateWithHttpInfo($signature_request_id, $signature_request_edit_with_template_request); return $response; } @@ -3089,7 +2952,6 @@ public function signatureRequestEditWithTemplate(string $signature_request_id, M * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditWithTemplateRequest $signature_request_edit_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestEditWithTemplate'] to see the possible values for this operation * * @return array of Model\SignatureRequestGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -3097,9 +2959,9 @@ public function signatureRequestEditWithTemplate(string $signature_request_id, M * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestEditWithTemplate. This method will eventually become unavailable */ - public function signatureRequestEditWithTemplateWithHttpInfo(string $signature_request_id, Model\SignatureRequestEditWithTemplateRequest $signature_request_edit_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestEditWithTemplate'][0]) + public function signatureRequestEditWithTemplateWithHttpInfo(string $signature_request_id, Model\SignatureRequestEditWithTemplateRequest $signature_request_edit_with_template_request, string $contentType = self::contentTypes['signatureRequestEditWithTemplate'][0]) { - $request = $this->signatureRequestEditWithTemplateRequest($signature_request_id, $signature_request_edit_with_template_request, $idempotency_key, $contentType); + $request = $this->signatureRequestEditWithTemplateRequest($signature_request_id, $signature_request_edit_with_template_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -3230,16 +3092,15 @@ public function signatureRequestEditWithTemplateWithHttpInfo(string $signature_r * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditWithTemplateRequest $signature_request_edit_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestEditWithTemplate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestEditWithTemplate. This method will eventually become unavailable */ - public function signatureRequestEditWithTemplateAsync(string $signature_request_id, Model\SignatureRequestEditWithTemplateRequest $signature_request_edit_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestEditWithTemplate'][0]) + public function signatureRequestEditWithTemplateAsync(string $signature_request_id, Model\SignatureRequestEditWithTemplateRequest $signature_request_edit_with_template_request, string $contentType = self::contentTypes['signatureRequestEditWithTemplate'][0]) { - return $this->signatureRequestEditWithTemplateAsyncWithHttpInfo($signature_request_id, $signature_request_edit_with_template_request, $idempotency_key, $contentType) + return $this->signatureRequestEditWithTemplateAsyncWithHttpInfo($signature_request_id, $signature_request_edit_with_template_request, $contentType) ->then( function ($response) { return $response[0]; @@ -3256,17 +3117,16 @@ function ($response) { * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditWithTemplateRequest $signature_request_edit_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestEditWithTemplate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestEditWithTemplate. This method will eventually become unavailable */ - public function signatureRequestEditWithTemplateAsyncWithHttpInfo(string $signature_request_id, Model\SignatureRequestEditWithTemplateRequest $signature_request_edit_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestEditWithTemplate'][0]) + public function signatureRequestEditWithTemplateAsyncWithHttpInfo(string $signature_request_id, Model\SignatureRequestEditWithTemplateRequest $signature_request_edit_with_template_request, string $contentType = self::contentTypes['signatureRequestEditWithTemplate'][0]) { $returnType = '\Dropbox\Sign\Model\SignatureRequestGetResponse'; - $request = $this->signatureRequestEditWithTemplateRequest($signature_request_id, $signature_request_edit_with_template_request, $idempotency_key, $contentType); + $request = $this->signatureRequestEditWithTemplateRequest($signature_request_id, $signature_request_edit_with_template_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3309,14 +3169,13 @@ function ($exception) { * * @param string $signature_request_id The id of the SignatureRequest to edit. (required) * @param Model\SignatureRequestEditWithTemplateRequest $signature_request_edit_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestEditWithTemplate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestEditWithTemplate. This method will eventually become unavailable */ - public function signatureRequestEditWithTemplateRequest(string $signature_request_id, Model\SignatureRequestEditWithTemplateRequest $signature_request_edit_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestEditWithTemplate'][0]) + public function signatureRequestEditWithTemplateRequest(string $signature_request_id, Model\SignatureRequestEditWithTemplateRequest $signature_request_edit_with_template_request, string $contentType = self::contentTypes['signatureRequestEditWithTemplate'][0]) { // verify the required parameter 'signature_request_id' is set if ($signature_request_id === null || (is_array($signature_request_id) && count($signature_request_id) === 0)) { @@ -3332,13 +3191,6 @@ public function signatureRequestEditWithTemplateRequest(string $signature_reques ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestEditWithTemplate, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestEditWithTemplate, must be bigger than or equal to 1.'); - } - $resourcePath = '/signature_request/edit_with_template/{signature_request_id}'; $formParams = []; $queryParams = []; @@ -3352,11 +3204,6 @@ public function signatureRequestEditWithTemplateRequest(string $signature_reques $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - // path params if ($signature_request_id !== null) { $resourcePath = str_replace( @@ -5217,16 +5064,15 @@ public function signatureRequestListRequest(?string $account_id = null, ?int $pa * * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestReleaseHoldExample.php * - * @param string $signature_request_id The id of the SignatureRequest to release. (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) + * @param string $signature_request_id The id of the SignatureRequest to release. (required) * * @return Model\SignatureRequestGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function signatureRequestReleaseHold(string $signature_request_id, ?string $idempotency_key = null) + public function signatureRequestReleaseHold(string $signature_request_id) { - list($response) = $this->signatureRequestReleaseHoldWithHttpInfo($signature_request_id, $idempotency_key); + list($response) = $this->signatureRequestReleaseHoldWithHttpInfo($signature_request_id); return $response; } @@ -5237,18 +5083,17 @@ public function signatureRequestReleaseHold(string $signature_request_id, ?strin * * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestReleaseHoldExample.php * - * @param string $signature_request_id The id of the SignatureRequest to release. (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestReleaseHold'] to see the possible values for this operation + * @param string $signature_request_id The id of the SignatureRequest to release. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestReleaseHold'] to see the possible values for this operation * * @return array of Model\SignatureRequestGetResponse, HTTP status code, HTTP response headers (array of strings) * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestReleaseHold. This method will eventually become unavailable */ - public function signatureRequestReleaseHoldWithHttpInfo(string $signature_request_id, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestReleaseHold'][0]) + public function signatureRequestReleaseHoldWithHttpInfo(string $signature_request_id, string $contentType = self::contentTypes['signatureRequestReleaseHold'][0]) { - $request = $this->signatureRequestReleaseHoldRequest($signature_request_id, $idempotency_key, $contentType); + $request = $this->signatureRequestReleaseHoldRequest($signature_request_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -5377,17 +5222,16 @@ public function signatureRequestReleaseHoldWithHttpInfo(string $signature_reques * * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestReleaseHoldExample.php * - * @param string $signature_request_id The id of the SignatureRequest to release. (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestReleaseHold'] to see the possible values for this operation + * @param string $signature_request_id The id of the SignatureRequest to release. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestReleaseHold'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestReleaseHold. This method will eventually become unavailable */ - public function signatureRequestReleaseHoldAsync(string $signature_request_id, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestReleaseHold'][0]) + public function signatureRequestReleaseHoldAsync(string $signature_request_id, string $contentType = self::contentTypes['signatureRequestReleaseHold'][0]) { - return $this->signatureRequestReleaseHoldAsyncWithHttpInfo($signature_request_id, $idempotency_key, $contentType) + return $this->signatureRequestReleaseHoldAsyncWithHttpInfo($signature_request_id, $contentType) ->then( function ($response) { return $response[0]; @@ -5402,18 +5246,17 @@ function ($response) { * * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestReleaseHoldExample.php * - * @param string $signature_request_id The id of the SignatureRequest to release. (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestReleaseHold'] to see the possible values for this operation + * @param string $signature_request_id The id of the SignatureRequest to release. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestReleaseHold'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestReleaseHold. This method will eventually become unavailable */ - public function signatureRequestReleaseHoldAsyncWithHttpInfo(string $signature_request_id, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestReleaseHold'][0]) + public function signatureRequestReleaseHoldAsyncWithHttpInfo(string $signature_request_id, string $contentType = self::contentTypes['signatureRequestReleaseHold'][0]) { $returnType = '\Dropbox\Sign\Model\SignatureRequestGetResponse'; - $request = $this->signatureRequestReleaseHoldRequest($signature_request_id, $idempotency_key, $contentType); + $request = $this->signatureRequestReleaseHoldRequest($signature_request_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5454,15 +5297,14 @@ function ($exception) { /** * Create request for operation 'signatureRequestReleaseHold' * - * @param string $signature_request_id The id of the SignatureRequest to release. (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestReleaseHold'] to see the possible values for this operation + * @param string $signature_request_id The id of the SignatureRequest to release. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestReleaseHold'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestReleaseHold. This method will eventually become unavailable */ - public function signatureRequestReleaseHoldRequest(string $signature_request_id, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestReleaseHold'][0]) + public function signatureRequestReleaseHoldRequest(string $signature_request_id, string $contentType = self::contentTypes['signatureRequestReleaseHold'][0]) { // verify the required parameter 'signature_request_id' is set if ($signature_request_id === null || (is_array($signature_request_id) && count($signature_request_id) === 0)) { @@ -5471,13 +5313,6 @@ public function signatureRequestReleaseHoldRequest(string $signature_request_id, ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestReleaseHold, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestReleaseHold, must be bigger than or equal to 1.'); - } - $resourcePath = '/signature_request/release_hold/{signature_request_id}'; $formParams = []; $queryParams = []; @@ -5485,11 +5320,6 @@ public function signatureRequestReleaseHoldRequest(string $signature_request_id, $httpBody = ''; $multipart = false; - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - // path params if ($signature_request_id !== null) { $resourcePath = str_replace( @@ -5576,15 +5406,14 @@ public function signatureRequestReleaseHoldRequest(string $signature_request_id, * * @param string $signature_request_id The id of the SignatureRequest to send a reminder for. (required) * @param Model\SignatureRequestRemindRequest $signature_request_remind_request signature_request_remind_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\SignatureRequestGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function signatureRequestRemind(string $signature_request_id, Model\SignatureRequestRemindRequest $signature_request_remind_request, ?string $idempotency_key = null) + public function signatureRequestRemind(string $signature_request_id, Model\SignatureRequestRemindRequest $signature_request_remind_request) { - list($response) = $this->signatureRequestRemindWithHttpInfo($signature_request_id, $signature_request_remind_request, $idempotency_key); + list($response) = $this->signatureRequestRemindWithHttpInfo($signature_request_id, $signature_request_remind_request); return $response; } @@ -5597,7 +5426,6 @@ public function signatureRequestRemind(string $signature_request_id, Model\Signa * * @param string $signature_request_id The id of the SignatureRequest to send a reminder for. (required) * @param Model\SignatureRequestRemindRequest $signature_request_remind_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestRemind'] to see the possible values for this operation * * @return array of Model\SignatureRequestGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -5605,9 +5433,9 @@ public function signatureRequestRemind(string $signature_request_id, Model\Signa * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestRemind. This method will eventually become unavailable */ - public function signatureRequestRemindWithHttpInfo(string $signature_request_id, Model\SignatureRequestRemindRequest $signature_request_remind_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestRemind'][0]) + public function signatureRequestRemindWithHttpInfo(string $signature_request_id, Model\SignatureRequestRemindRequest $signature_request_remind_request, string $contentType = self::contentTypes['signatureRequestRemind'][0]) { - $request = $this->signatureRequestRemindRequest($signature_request_id, $signature_request_remind_request, $idempotency_key, $contentType); + $request = $this->signatureRequestRemindRequest($signature_request_id, $signature_request_remind_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -5738,16 +5566,15 @@ public function signatureRequestRemindWithHttpInfo(string $signature_request_id, * * @param string $signature_request_id The id of the SignatureRequest to send a reminder for. (required) * @param Model\SignatureRequestRemindRequest $signature_request_remind_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestRemind'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestRemind. This method will eventually become unavailable */ - public function signatureRequestRemindAsync(string $signature_request_id, Model\SignatureRequestRemindRequest $signature_request_remind_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestRemind'][0]) + public function signatureRequestRemindAsync(string $signature_request_id, Model\SignatureRequestRemindRequest $signature_request_remind_request, string $contentType = self::contentTypes['signatureRequestRemind'][0]) { - return $this->signatureRequestRemindAsyncWithHttpInfo($signature_request_id, $signature_request_remind_request, $idempotency_key, $contentType) + return $this->signatureRequestRemindAsyncWithHttpInfo($signature_request_id, $signature_request_remind_request, $contentType) ->then( function ($response) { return $response[0]; @@ -5764,17 +5591,16 @@ function ($response) { * * @param string $signature_request_id The id of the SignatureRequest to send a reminder for. (required) * @param Model\SignatureRequestRemindRequest $signature_request_remind_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestRemind'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestRemind. This method will eventually become unavailable */ - public function signatureRequestRemindAsyncWithHttpInfo(string $signature_request_id, Model\SignatureRequestRemindRequest $signature_request_remind_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestRemind'][0]) + public function signatureRequestRemindAsyncWithHttpInfo(string $signature_request_id, Model\SignatureRequestRemindRequest $signature_request_remind_request, string $contentType = self::contentTypes['signatureRequestRemind'][0]) { $returnType = '\Dropbox\Sign\Model\SignatureRequestGetResponse'; - $request = $this->signatureRequestRemindRequest($signature_request_id, $signature_request_remind_request, $idempotency_key, $contentType); + $request = $this->signatureRequestRemindRequest($signature_request_id, $signature_request_remind_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5817,14 +5643,13 @@ function ($exception) { * * @param string $signature_request_id The id of the SignatureRequest to send a reminder for. (required) * @param Model\SignatureRequestRemindRequest $signature_request_remind_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestRemind'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestRemind. This method will eventually become unavailable */ - public function signatureRequestRemindRequest(string $signature_request_id, Model\SignatureRequestRemindRequest $signature_request_remind_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestRemind'][0]) + public function signatureRequestRemindRequest(string $signature_request_id, Model\SignatureRequestRemindRequest $signature_request_remind_request, string $contentType = self::contentTypes['signatureRequestRemind'][0]) { // verify the required parameter 'signature_request_id' is set if ($signature_request_id === null || (is_array($signature_request_id) && count($signature_request_id) === 0)) { @@ -5840,13 +5665,6 @@ public function signatureRequestRemindRequest(string $signature_request_id, Mode ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestRemind, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestRemind, must be bigger than or equal to 1.'); - } - $resourcePath = '/signature_request/remind/{signature_request_id}'; $formParams = []; $queryParams = []; @@ -5860,11 +5678,6 @@ public function signatureRequestRemindRequest(string $signature_request_id, Mode $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - // path params if ($signature_request_id !== null) { $resourcePath = str_replace( @@ -5959,15 +5772,14 @@ public function signatureRequestRemindRequest(string $signature_request_id, Mode * * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestRemoveExample.php * - * @param string $signature_request_id The id of the SignatureRequest to remove. (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) + * @param string $signature_request_id The id of the SignatureRequest to remove. (required) * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function signatureRequestRemove(string $signature_request_id, ?string $idempotency_key = null) + public function signatureRequestRemove(string $signature_request_id) { - $this->signatureRequestRemoveWithHttpInfo($signature_request_id, $idempotency_key); + $this->signatureRequestRemoveWithHttpInfo($signature_request_id); } /** @@ -5977,18 +5789,17 @@ public function signatureRequestRemove(string $signature_request_id, ?string $id * * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestRemoveExample.php * - * @param string $signature_request_id The id of the SignatureRequest to remove. (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestRemove'] to see the possible values for this operation + * @param string $signature_request_id The id of the SignatureRequest to remove. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestRemove'] to see the possible values for this operation * * @return array of null, HTTP status code, HTTP response headers (array of strings) * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestRemove. This method will eventually become unavailable */ - public function signatureRequestRemoveWithHttpInfo(string $signature_request_id, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestRemove'][0]) + public function signatureRequestRemoveWithHttpInfo(string $signature_request_id, string $contentType = self::contentTypes['signatureRequestRemove'][0]) { - $request = $this->signatureRequestRemoveRequest($signature_request_id, $idempotency_key, $contentType); + $request = $this->signatureRequestRemoveRequest($signature_request_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -6031,17 +5842,16 @@ public function signatureRequestRemoveWithHttpInfo(string $signature_request_id, * * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestRemoveExample.php * - * @param string $signature_request_id The id of the SignatureRequest to remove. (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestRemove'] to see the possible values for this operation + * @param string $signature_request_id The id of the SignatureRequest to remove. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestRemove'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestRemove. This method will eventually become unavailable */ - public function signatureRequestRemoveAsync(string $signature_request_id, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestRemove'][0]) + public function signatureRequestRemoveAsync(string $signature_request_id, string $contentType = self::contentTypes['signatureRequestRemove'][0]) { - return $this->signatureRequestRemoveAsyncWithHttpInfo($signature_request_id, $idempotency_key, $contentType) + return $this->signatureRequestRemoveAsyncWithHttpInfo($signature_request_id, $contentType) ->then( function ($response) { return $response[0]; @@ -6056,18 +5866,17 @@ function ($response) { * * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestRemoveExample.php * - * @param string $signature_request_id The id of the SignatureRequest to remove. (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestRemove'] to see the possible values for this operation + * @param string $signature_request_id The id of the SignatureRequest to remove. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestRemove'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestRemove. This method will eventually become unavailable */ - public function signatureRequestRemoveAsyncWithHttpInfo(string $signature_request_id, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestRemove'][0]) + public function signatureRequestRemoveAsyncWithHttpInfo(string $signature_request_id, string $contentType = self::contentTypes['signatureRequestRemove'][0]) { $returnType = ''; - $request = $this->signatureRequestRemoveRequest($signature_request_id, $idempotency_key, $contentType); + $request = $this->signatureRequestRemoveRequest($signature_request_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -6095,15 +5904,14 @@ function ($exception) { /** * Create request for operation 'signatureRequestRemove' * - * @param string $signature_request_id The id of the SignatureRequest to remove. (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestRemove'] to see the possible values for this operation + * @param string $signature_request_id The id of the SignatureRequest to remove. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestRemove'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestRemove. This method will eventually become unavailable */ - public function signatureRequestRemoveRequest(string $signature_request_id, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestRemove'][0]) + public function signatureRequestRemoveRequest(string $signature_request_id, string $contentType = self::contentTypes['signatureRequestRemove'][0]) { // verify the required parameter 'signature_request_id' is set if ($signature_request_id === null || (is_array($signature_request_id) && count($signature_request_id) === 0)) { @@ -6112,13 +5920,6 @@ public function signatureRequestRemoveRequest(string $signature_request_id, ?str ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestRemove, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestRemove, must be bigger than or equal to 1.'); - } - $resourcePath = '/signature_request/remove/{signature_request_id}'; $formParams = []; $queryParams = []; @@ -6126,11 +5927,6 @@ public function signatureRequestRemoveRequest(string $signature_request_id, ?str $httpBody = ''; $multipart = false; - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - // path params if ($signature_request_id !== null) { $resourcePath = str_replace( @@ -6212,15 +6008,14 @@ public function signatureRequestRemoveRequest(string $signature_request_id, ?str * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestSendExample.php * * @param Model\SignatureRequestSendRequest $signature_request_send_request signature_request_send_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\SignatureRequestGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function signatureRequestSend(Model\SignatureRequestSendRequest $signature_request_send_request, ?string $idempotency_key = null) + public function signatureRequestSend(Model\SignatureRequestSendRequest $signature_request_send_request) { - list($response) = $this->signatureRequestSendWithHttpInfo($signature_request_send_request, $idempotency_key); + list($response) = $this->signatureRequestSendWithHttpInfo($signature_request_send_request); return $response; } @@ -6232,7 +6027,6 @@ public function signatureRequestSend(Model\SignatureRequestSendRequest $signatur * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestSendExample.php * * @param Model\SignatureRequestSendRequest $signature_request_send_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestSend'] to see the possible values for this operation * * @return array of Model\SignatureRequestGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -6240,9 +6034,9 @@ public function signatureRequestSend(Model\SignatureRequestSendRequest $signatur * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestSend. This method will eventually become unavailable */ - public function signatureRequestSendWithHttpInfo(Model\SignatureRequestSendRequest $signature_request_send_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestSend'][0]) + public function signatureRequestSendWithHttpInfo(Model\SignatureRequestSendRequest $signature_request_send_request, string $contentType = self::contentTypes['signatureRequestSend'][0]) { - $request = $this->signatureRequestSendRequest($signature_request_send_request, $idempotency_key, $contentType); + $request = $this->signatureRequestSendRequest($signature_request_send_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -6372,16 +6166,15 @@ public function signatureRequestSendWithHttpInfo(Model\SignatureRequestSendReque * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestSendExample.php * * @param Model\SignatureRequestSendRequest $signature_request_send_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestSend'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestSend. This method will eventually become unavailable */ - public function signatureRequestSendAsync(Model\SignatureRequestSendRequest $signature_request_send_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestSend'][0]) + public function signatureRequestSendAsync(Model\SignatureRequestSendRequest $signature_request_send_request, string $contentType = self::contentTypes['signatureRequestSend'][0]) { - return $this->signatureRequestSendAsyncWithHttpInfo($signature_request_send_request, $idempotency_key, $contentType) + return $this->signatureRequestSendAsyncWithHttpInfo($signature_request_send_request, $contentType) ->then( function ($response) { return $response[0]; @@ -6397,17 +6190,16 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestSendExample.php * * @param Model\SignatureRequestSendRequest $signature_request_send_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestSend'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestSend. This method will eventually become unavailable */ - public function signatureRequestSendAsyncWithHttpInfo(Model\SignatureRequestSendRequest $signature_request_send_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestSend'][0]) + public function signatureRequestSendAsyncWithHttpInfo(Model\SignatureRequestSendRequest $signature_request_send_request, string $contentType = self::contentTypes['signatureRequestSend'][0]) { $returnType = '\Dropbox\Sign\Model\SignatureRequestGetResponse'; - $request = $this->signatureRequestSendRequest($signature_request_send_request, $idempotency_key, $contentType); + $request = $this->signatureRequestSendRequest($signature_request_send_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -6449,14 +6241,13 @@ function ($exception) { * Create request for operation 'signatureRequestSend' * * @param Model\SignatureRequestSendRequest $signature_request_send_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestSend'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestSend. This method will eventually become unavailable */ - public function signatureRequestSendRequest(Model\SignatureRequestSendRequest $signature_request_send_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestSend'][0]) + public function signatureRequestSendRequest(Model\SignatureRequestSendRequest $signature_request_send_request, string $contentType = self::contentTypes['signatureRequestSend'][0]) { // verify the required parameter 'signature_request_send_request' is set if ($signature_request_send_request === null || (is_array($signature_request_send_request) && count($signature_request_send_request) === 0)) { @@ -6465,13 +6256,6 @@ public function signatureRequestSendRequest(Model\SignatureRequestSendRequest $s ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestSend, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestSend, must be bigger than or equal to 1.'); - } - $resourcePath = '/signature_request/send'; $formParams = []; $queryParams = []; @@ -6485,11 +6269,6 @@ public function signatureRequestSendRequest(Model\SignatureRequestSendRequest $s $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -6576,15 +6355,14 @@ public function signatureRequestSendRequest(Model\SignatureRequestSendRequest $s * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestSendWithTemplateExample.php * * @param Model\SignatureRequestSendWithTemplateRequest $signature_request_send_with_template_request signature_request_send_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\SignatureRequestGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function signatureRequestSendWithTemplate(Model\SignatureRequestSendWithTemplateRequest $signature_request_send_with_template_request, ?string $idempotency_key = null) + public function signatureRequestSendWithTemplate(Model\SignatureRequestSendWithTemplateRequest $signature_request_send_with_template_request) { - list($response) = $this->signatureRequestSendWithTemplateWithHttpInfo($signature_request_send_with_template_request, $idempotency_key); + list($response) = $this->signatureRequestSendWithTemplateWithHttpInfo($signature_request_send_with_template_request); return $response; } @@ -6596,7 +6374,6 @@ public function signatureRequestSendWithTemplate(Model\SignatureRequestSendWithT * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestSendWithTemplateExample.php * * @param Model\SignatureRequestSendWithTemplateRequest $signature_request_send_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestSendWithTemplate'] to see the possible values for this operation * * @return array of Model\SignatureRequestGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -6604,9 +6381,9 @@ public function signatureRequestSendWithTemplate(Model\SignatureRequestSendWithT * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestSendWithTemplate. This method will eventually become unavailable */ - public function signatureRequestSendWithTemplateWithHttpInfo(Model\SignatureRequestSendWithTemplateRequest $signature_request_send_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestSendWithTemplate'][0]) + public function signatureRequestSendWithTemplateWithHttpInfo(Model\SignatureRequestSendWithTemplateRequest $signature_request_send_with_template_request, string $contentType = self::contentTypes['signatureRequestSendWithTemplate'][0]) { - $request = $this->signatureRequestSendWithTemplateRequest($signature_request_send_with_template_request, $idempotency_key, $contentType); + $request = $this->signatureRequestSendWithTemplateRequest($signature_request_send_with_template_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -6736,16 +6513,15 @@ public function signatureRequestSendWithTemplateWithHttpInfo(Model\SignatureRequ * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestSendWithTemplateExample.php * * @param Model\SignatureRequestSendWithTemplateRequest $signature_request_send_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestSendWithTemplate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestSendWithTemplate. This method will eventually become unavailable */ - public function signatureRequestSendWithTemplateAsync(Model\SignatureRequestSendWithTemplateRequest $signature_request_send_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestSendWithTemplate'][0]) + public function signatureRequestSendWithTemplateAsync(Model\SignatureRequestSendWithTemplateRequest $signature_request_send_with_template_request, string $contentType = self::contentTypes['signatureRequestSendWithTemplate'][0]) { - return $this->signatureRequestSendWithTemplateAsyncWithHttpInfo($signature_request_send_with_template_request, $idempotency_key, $contentType) + return $this->signatureRequestSendWithTemplateAsyncWithHttpInfo($signature_request_send_with_template_request, $contentType) ->then( function ($response) { return $response[0]; @@ -6761,17 +6537,16 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/SignatureRequestSendWithTemplateExample.php * * @param Model\SignatureRequestSendWithTemplateRequest $signature_request_send_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestSendWithTemplate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestSendWithTemplate. This method will eventually become unavailable */ - public function signatureRequestSendWithTemplateAsyncWithHttpInfo(Model\SignatureRequestSendWithTemplateRequest $signature_request_send_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestSendWithTemplate'][0]) + public function signatureRequestSendWithTemplateAsyncWithHttpInfo(Model\SignatureRequestSendWithTemplateRequest $signature_request_send_with_template_request, string $contentType = self::contentTypes['signatureRequestSendWithTemplate'][0]) { $returnType = '\Dropbox\Sign\Model\SignatureRequestGetResponse'; - $request = $this->signatureRequestSendWithTemplateRequest($signature_request_send_with_template_request, $idempotency_key, $contentType); + $request = $this->signatureRequestSendWithTemplateRequest($signature_request_send_with_template_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -6813,14 +6588,13 @@ function ($exception) { * Create request for operation 'signatureRequestSendWithTemplate' * * @param Model\SignatureRequestSendWithTemplateRequest $signature_request_send_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestSendWithTemplate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestSendWithTemplate. This method will eventually become unavailable */ - public function signatureRequestSendWithTemplateRequest(Model\SignatureRequestSendWithTemplateRequest $signature_request_send_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestSendWithTemplate'][0]) + public function signatureRequestSendWithTemplateRequest(Model\SignatureRequestSendWithTemplateRequest $signature_request_send_with_template_request, string $contentType = self::contentTypes['signatureRequestSendWithTemplate'][0]) { // verify the required parameter 'signature_request_send_with_template_request' is set if ($signature_request_send_with_template_request === null || (is_array($signature_request_send_with_template_request) && count($signature_request_send_with_template_request) === 0)) { @@ -6829,13 +6603,6 @@ public function signatureRequestSendWithTemplateRequest(Model\SignatureRequestSe ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestSendWithTemplate, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestSendWithTemplate, must be bigger than or equal to 1.'); - } - $resourcePath = '/signature_request/send_with_template'; $formParams = []; $queryParams = []; @@ -6849,11 +6616,6 @@ public function signatureRequestSendWithTemplateRequest(Model\SignatureRequestSe $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -6941,15 +6703,14 @@ public function signatureRequestSendWithTemplateRequest(Model\SignatureRequestSe * * @param string $signature_request_id The id of the SignatureRequest to update. (required) * @param Model\SignatureRequestUpdateRequest $signature_request_update_request signature_request_update_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\SignatureRequestGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function signatureRequestUpdate(string $signature_request_id, Model\SignatureRequestUpdateRequest $signature_request_update_request, ?string $idempotency_key = null) + public function signatureRequestUpdate(string $signature_request_id, Model\SignatureRequestUpdateRequest $signature_request_update_request) { - list($response) = $this->signatureRequestUpdateWithHttpInfo($signature_request_id, $signature_request_update_request, $idempotency_key); + list($response) = $this->signatureRequestUpdateWithHttpInfo($signature_request_id, $signature_request_update_request); return $response; } @@ -6962,7 +6723,6 @@ public function signatureRequestUpdate(string $signature_request_id, Model\Signa * * @param string $signature_request_id The id of the SignatureRequest to update. (required) * @param Model\SignatureRequestUpdateRequest $signature_request_update_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestUpdate'] to see the possible values for this operation * * @return array of Model\SignatureRequestGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -6970,9 +6730,9 @@ public function signatureRequestUpdate(string $signature_request_id, Model\Signa * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestUpdate. This method will eventually become unavailable */ - public function signatureRequestUpdateWithHttpInfo(string $signature_request_id, Model\SignatureRequestUpdateRequest $signature_request_update_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestUpdate'][0]) + public function signatureRequestUpdateWithHttpInfo(string $signature_request_id, Model\SignatureRequestUpdateRequest $signature_request_update_request, string $contentType = self::contentTypes['signatureRequestUpdate'][0]) { - $request = $this->signatureRequestUpdateRequest($signature_request_id, $signature_request_update_request, $idempotency_key, $contentType); + $request = $this->signatureRequestUpdateRequest($signature_request_id, $signature_request_update_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -7103,16 +6863,15 @@ public function signatureRequestUpdateWithHttpInfo(string $signature_request_id, * * @param string $signature_request_id The id of the SignatureRequest to update. (required) * @param Model\SignatureRequestUpdateRequest $signature_request_update_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestUpdate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestUpdate. This method will eventually become unavailable */ - public function signatureRequestUpdateAsync(string $signature_request_id, Model\SignatureRequestUpdateRequest $signature_request_update_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestUpdate'][0]) + public function signatureRequestUpdateAsync(string $signature_request_id, Model\SignatureRequestUpdateRequest $signature_request_update_request, string $contentType = self::contentTypes['signatureRequestUpdate'][0]) { - return $this->signatureRequestUpdateAsyncWithHttpInfo($signature_request_id, $signature_request_update_request, $idempotency_key, $contentType) + return $this->signatureRequestUpdateAsyncWithHttpInfo($signature_request_id, $signature_request_update_request, $contentType) ->then( function ($response) { return $response[0]; @@ -7129,17 +6888,16 @@ function ($response) { * * @param string $signature_request_id The id of the SignatureRequest to update. (required) * @param Model\SignatureRequestUpdateRequest $signature_request_update_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestUpdate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestUpdate. This method will eventually become unavailable */ - public function signatureRequestUpdateAsyncWithHttpInfo(string $signature_request_id, Model\SignatureRequestUpdateRequest $signature_request_update_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestUpdate'][0]) + public function signatureRequestUpdateAsyncWithHttpInfo(string $signature_request_id, Model\SignatureRequestUpdateRequest $signature_request_update_request, string $contentType = self::contentTypes['signatureRequestUpdate'][0]) { $returnType = '\Dropbox\Sign\Model\SignatureRequestGetResponse'; - $request = $this->signatureRequestUpdateRequest($signature_request_id, $signature_request_update_request, $idempotency_key, $contentType); + $request = $this->signatureRequestUpdateRequest($signature_request_id, $signature_request_update_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -7182,14 +6940,13 @@ function ($exception) { * * @param string $signature_request_id The id of the SignatureRequest to update. (required) * @param Model\SignatureRequestUpdateRequest $signature_request_update_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['signatureRequestUpdate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::signatureRequestUpdate. This method will eventually become unavailable */ - public function signatureRequestUpdateRequest(string $signature_request_id, Model\SignatureRequestUpdateRequest $signature_request_update_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['signatureRequestUpdate'][0]) + public function signatureRequestUpdateRequest(string $signature_request_id, Model\SignatureRequestUpdateRequest $signature_request_update_request, string $contentType = self::contentTypes['signatureRequestUpdate'][0]) { // verify the required parameter 'signature_request_id' is set if ($signature_request_id === null || (is_array($signature_request_id) && count($signature_request_id) === 0)) { @@ -7205,13 +6962,6 @@ public function signatureRequestUpdateRequest(string $signature_request_id, Mode ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestUpdate, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling SignatureRequestApi.signatureRequestUpdate, must be bigger than or equal to 1.'); - } - $resourcePath = '/signature_request/update/{signature_request_id}'; $formParams = []; $queryParams = []; @@ -7225,11 +6975,6 @@ public function signatureRequestUpdateRequest(string $signature_request_id, Mode $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - // path params if ($signature_request_id !== null) { $resourcePath = str_replace( diff --git a/sdks/php/src/Api/TeamApi.php b/sdks/php/src/Api/TeamApi.php index 5ad34b45b..93652aeb9 100644 --- a/sdks/php/src/Api/TeamApi.php +++ b/sdks/php/src/Api/TeamApi.php @@ -164,15 +164,14 @@ public function getResponse() * * @param Model\TeamAddMemberRequest $team_add_member_request team_add_member_request (required) * @param string|null $team_id The id of the team. (optional) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\TeamGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function teamAddMember(Model\TeamAddMemberRequest $team_add_member_request, ?string $team_id = null, ?string $idempotency_key = null) + public function teamAddMember(Model\TeamAddMemberRequest $team_add_member_request, ?string $team_id = null) { - list($response) = $this->teamAddMemberWithHttpInfo($team_add_member_request, $team_id, $idempotency_key); + list($response) = $this->teamAddMemberWithHttpInfo($team_add_member_request, $team_id); return $response; } @@ -185,7 +184,6 @@ public function teamAddMember(Model\TeamAddMemberRequest $team_add_member_reques * * @param Model\TeamAddMemberRequest $team_add_member_request (required) * @param string|null $team_id The id of the team. (optional) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['teamAddMember'] to see the possible values for this operation * * @return array of Model\TeamGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -193,9 +191,9 @@ public function teamAddMember(Model\TeamAddMemberRequest $team_add_member_reques * @throws InvalidArgumentException * @deprecated Prefer to use ::teamAddMember. This method will eventually become unavailable */ - public function teamAddMemberWithHttpInfo(Model\TeamAddMemberRequest $team_add_member_request, ?string $team_id = null, ?string $idempotency_key = null, string $contentType = self::contentTypes['teamAddMember'][0]) + public function teamAddMemberWithHttpInfo(Model\TeamAddMemberRequest $team_add_member_request, ?string $team_id = null, string $contentType = self::contentTypes['teamAddMember'][0]) { - $request = $this->teamAddMemberRequest($team_add_member_request, $team_id, $idempotency_key, $contentType); + $request = $this->teamAddMemberRequest($team_add_member_request, $team_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -326,16 +324,15 @@ public function teamAddMemberWithHttpInfo(Model\TeamAddMemberRequest $team_add_m * * @param Model\TeamAddMemberRequest $team_add_member_request (required) * @param string|null $team_id The id of the team. (optional) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['teamAddMember'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::teamAddMember. This method will eventually become unavailable */ - public function teamAddMemberAsync(Model\TeamAddMemberRequest $team_add_member_request, ?string $team_id = null, ?string $idempotency_key = null, string $contentType = self::contentTypes['teamAddMember'][0]) + public function teamAddMemberAsync(Model\TeamAddMemberRequest $team_add_member_request, ?string $team_id = null, string $contentType = self::contentTypes['teamAddMember'][0]) { - return $this->teamAddMemberAsyncWithHttpInfo($team_add_member_request, $team_id, $idempotency_key, $contentType) + return $this->teamAddMemberAsyncWithHttpInfo($team_add_member_request, $team_id, $contentType) ->then( function ($response) { return $response[0]; @@ -352,17 +349,16 @@ function ($response) { * * @param Model\TeamAddMemberRequest $team_add_member_request (required) * @param string|null $team_id The id of the team. (optional) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['teamAddMember'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::teamAddMember. This method will eventually become unavailable */ - public function teamAddMemberAsyncWithHttpInfo(Model\TeamAddMemberRequest $team_add_member_request, ?string $team_id = null, ?string $idempotency_key = null, string $contentType = self::contentTypes['teamAddMember'][0]) + public function teamAddMemberAsyncWithHttpInfo(Model\TeamAddMemberRequest $team_add_member_request, ?string $team_id = null, string $contentType = self::contentTypes['teamAddMember'][0]) { $returnType = '\Dropbox\Sign\Model\TeamGetResponse'; - $request = $this->teamAddMemberRequest($team_add_member_request, $team_id, $idempotency_key, $contentType); + $request = $this->teamAddMemberRequest($team_add_member_request, $team_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -405,14 +401,13 @@ function ($exception) { * * @param Model\TeamAddMemberRequest $team_add_member_request (required) * @param string|null $team_id The id of the team. (optional) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['teamAddMember'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::teamAddMember. This method will eventually become unavailable */ - public function teamAddMemberRequest(Model\TeamAddMemberRequest $team_add_member_request, ?string $team_id = null, ?string $idempotency_key = null, string $contentType = self::contentTypes['teamAddMember'][0]) + public function teamAddMemberRequest(Model\TeamAddMemberRequest $team_add_member_request, ?string $team_id = null, string $contentType = self::contentTypes['teamAddMember'][0]) { // verify the required parameter 'team_add_member_request' is set if ($team_add_member_request === null || (is_array($team_add_member_request) && count($team_add_member_request) === 0)) { @@ -421,13 +416,6 @@ public function teamAddMemberRequest(Model\TeamAddMemberRequest $team_add_member ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TeamApi.teamAddMember, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TeamApi.teamAddMember, must be bigger than or equal to 1.'); - } - $resourcePath = '/team/add_member'; $formParams = []; $queryParams = []; @@ -450,11 +438,6 @@ public function teamAddMemberRequest(Model\TeamAddMemberRequest $team_add_member false // required ) ?? []); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -541,15 +524,14 @@ public function teamAddMemberRequest(Model\TeamAddMemberRequest $team_add_member * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TeamCreateExample.php * * @param Model\TeamCreateRequest $team_create_request team_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\TeamGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function teamCreate(Model\TeamCreateRequest $team_create_request, ?string $idempotency_key = null) + public function teamCreate(Model\TeamCreateRequest $team_create_request) { - list($response) = $this->teamCreateWithHttpInfo($team_create_request, $idempotency_key); + list($response) = $this->teamCreateWithHttpInfo($team_create_request); return $response; } @@ -561,7 +543,6 @@ public function teamCreate(Model\TeamCreateRequest $team_create_request, ?string * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TeamCreateExample.php * * @param Model\TeamCreateRequest $team_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['teamCreate'] to see the possible values for this operation * * @return array of Model\TeamGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -569,9 +550,9 @@ public function teamCreate(Model\TeamCreateRequest $team_create_request, ?string * @throws InvalidArgumentException * @deprecated Prefer to use ::teamCreate. This method will eventually become unavailable */ - public function teamCreateWithHttpInfo(Model\TeamCreateRequest $team_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['teamCreate'][0]) + public function teamCreateWithHttpInfo(Model\TeamCreateRequest $team_create_request, string $contentType = self::contentTypes['teamCreate'][0]) { - $request = $this->teamCreateRequest($team_create_request, $idempotency_key, $contentType); + $request = $this->teamCreateRequest($team_create_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -701,16 +682,15 @@ public function teamCreateWithHttpInfo(Model\TeamCreateRequest $team_create_requ * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TeamCreateExample.php * * @param Model\TeamCreateRequest $team_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['teamCreate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::teamCreate. This method will eventually become unavailable */ - public function teamCreateAsync(Model\TeamCreateRequest $team_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['teamCreate'][0]) + public function teamCreateAsync(Model\TeamCreateRequest $team_create_request, string $contentType = self::contentTypes['teamCreate'][0]) { - return $this->teamCreateAsyncWithHttpInfo($team_create_request, $idempotency_key, $contentType) + return $this->teamCreateAsyncWithHttpInfo($team_create_request, $contentType) ->then( function ($response) { return $response[0]; @@ -726,17 +706,16 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TeamCreateExample.php * * @param Model\TeamCreateRequest $team_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['teamCreate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::teamCreate. This method will eventually become unavailable */ - public function teamCreateAsyncWithHttpInfo(Model\TeamCreateRequest $team_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['teamCreate'][0]) + public function teamCreateAsyncWithHttpInfo(Model\TeamCreateRequest $team_create_request, string $contentType = self::contentTypes['teamCreate'][0]) { $returnType = '\Dropbox\Sign\Model\TeamGetResponse'; - $request = $this->teamCreateRequest($team_create_request, $idempotency_key, $contentType); + $request = $this->teamCreateRequest($team_create_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -778,14 +757,13 @@ function ($exception) { * Create request for operation 'teamCreate' * * @param Model\TeamCreateRequest $team_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['teamCreate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::teamCreate. This method will eventually become unavailable */ - public function teamCreateRequest(Model\TeamCreateRequest $team_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['teamCreate'][0]) + public function teamCreateRequest(Model\TeamCreateRequest $team_create_request, string $contentType = self::contentTypes['teamCreate'][0]) { // verify the required parameter 'team_create_request' is set if ($team_create_request === null || (is_array($team_create_request) && count($team_create_request) === 0)) { @@ -794,13 +772,6 @@ public function teamCreateRequest(Model\TeamCreateRequest $team_create_request, ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TeamApi.teamCreate, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TeamApi.teamCreate, must be bigger than or equal to 1.'); - } - $resourcePath = '/team/create'; $formParams = []; $queryParams = []; @@ -814,11 +785,6 @@ public function teamCreateRequest(Model\TeamCreateRequest $team_create_request, $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -2484,15 +2450,14 @@ public function teamMembersRequest(string $team_id, ?int $page = 1, ?int $page_s * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TeamRemoveMemberExample.php * * @param Model\TeamRemoveMemberRequest $team_remove_member_request team_remove_member_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\TeamGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function teamRemoveMember(Model\TeamRemoveMemberRequest $team_remove_member_request, ?string $idempotency_key = null) + public function teamRemoveMember(Model\TeamRemoveMemberRequest $team_remove_member_request) { - list($response) = $this->teamRemoveMemberWithHttpInfo($team_remove_member_request, $idempotency_key); + list($response) = $this->teamRemoveMemberWithHttpInfo($team_remove_member_request); return $response; } @@ -2504,7 +2469,6 @@ public function teamRemoveMember(Model\TeamRemoveMemberRequest $team_remove_memb * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TeamRemoveMemberExample.php * * @param Model\TeamRemoveMemberRequest $team_remove_member_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['teamRemoveMember'] to see the possible values for this operation * * @return array of Model\TeamGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -2512,9 +2476,9 @@ public function teamRemoveMember(Model\TeamRemoveMemberRequest $team_remove_memb * @throws InvalidArgumentException * @deprecated Prefer to use ::teamRemoveMember. This method will eventually become unavailable */ - public function teamRemoveMemberWithHttpInfo(Model\TeamRemoveMemberRequest $team_remove_member_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['teamRemoveMember'][0]) + public function teamRemoveMemberWithHttpInfo(Model\TeamRemoveMemberRequest $team_remove_member_request, string $contentType = self::contentTypes['teamRemoveMember'][0]) { - $request = $this->teamRemoveMemberRequest($team_remove_member_request, $idempotency_key, $contentType); + $request = $this->teamRemoveMemberRequest($team_remove_member_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -2644,16 +2608,15 @@ public function teamRemoveMemberWithHttpInfo(Model\TeamRemoveMemberRequest $team * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TeamRemoveMemberExample.php * * @param Model\TeamRemoveMemberRequest $team_remove_member_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['teamRemoveMember'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::teamRemoveMember. This method will eventually become unavailable */ - public function teamRemoveMemberAsync(Model\TeamRemoveMemberRequest $team_remove_member_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['teamRemoveMember'][0]) + public function teamRemoveMemberAsync(Model\TeamRemoveMemberRequest $team_remove_member_request, string $contentType = self::contentTypes['teamRemoveMember'][0]) { - return $this->teamRemoveMemberAsyncWithHttpInfo($team_remove_member_request, $idempotency_key, $contentType) + return $this->teamRemoveMemberAsyncWithHttpInfo($team_remove_member_request, $contentType) ->then( function ($response) { return $response[0]; @@ -2669,17 +2632,16 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TeamRemoveMemberExample.php * * @param Model\TeamRemoveMemberRequest $team_remove_member_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['teamRemoveMember'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::teamRemoveMember. This method will eventually become unavailable */ - public function teamRemoveMemberAsyncWithHttpInfo(Model\TeamRemoveMemberRequest $team_remove_member_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['teamRemoveMember'][0]) + public function teamRemoveMemberAsyncWithHttpInfo(Model\TeamRemoveMemberRequest $team_remove_member_request, string $contentType = self::contentTypes['teamRemoveMember'][0]) { $returnType = '\Dropbox\Sign\Model\TeamGetResponse'; - $request = $this->teamRemoveMemberRequest($team_remove_member_request, $idempotency_key, $contentType); + $request = $this->teamRemoveMemberRequest($team_remove_member_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2721,14 +2683,13 @@ function ($exception) { * Create request for operation 'teamRemoveMember' * * @param Model\TeamRemoveMemberRequest $team_remove_member_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['teamRemoveMember'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::teamRemoveMember. This method will eventually become unavailable */ - public function teamRemoveMemberRequest(Model\TeamRemoveMemberRequest $team_remove_member_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['teamRemoveMember'][0]) + public function teamRemoveMemberRequest(Model\TeamRemoveMemberRequest $team_remove_member_request, string $contentType = self::contentTypes['teamRemoveMember'][0]) { // verify the required parameter 'team_remove_member_request' is set if ($team_remove_member_request === null || (is_array($team_remove_member_request) && count($team_remove_member_request) === 0)) { @@ -2737,13 +2698,6 @@ public function teamRemoveMemberRequest(Model\TeamRemoveMemberRequest $team_remo ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TeamApi.teamRemoveMember, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TeamApi.teamRemoveMember, must be bigger than or equal to 1.'); - } - $resourcePath = '/team/remove_member'; $formParams = []; $queryParams = []; @@ -2757,11 +2711,6 @@ public function teamRemoveMemberRequest(Model\TeamRemoveMemberRequest $team_remo $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -3224,15 +3173,14 @@ public function teamSubTeamsRequest(string $team_id, ?int $page = 1, ?int $page_ * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TeamUpdateExample.php * * @param Model\TeamUpdateRequest $team_update_request team_update_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\TeamGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function teamUpdate(Model\TeamUpdateRequest $team_update_request, ?string $idempotency_key = null) + public function teamUpdate(Model\TeamUpdateRequest $team_update_request) { - list($response) = $this->teamUpdateWithHttpInfo($team_update_request, $idempotency_key); + list($response) = $this->teamUpdateWithHttpInfo($team_update_request); return $response; } @@ -3244,7 +3192,6 @@ public function teamUpdate(Model\TeamUpdateRequest $team_update_request, ?string * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TeamUpdateExample.php * * @param Model\TeamUpdateRequest $team_update_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['teamUpdate'] to see the possible values for this operation * * @return array of Model\TeamGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -3252,9 +3199,9 @@ public function teamUpdate(Model\TeamUpdateRequest $team_update_request, ?string * @throws InvalidArgumentException * @deprecated Prefer to use ::teamUpdate. This method will eventually become unavailable */ - public function teamUpdateWithHttpInfo(Model\TeamUpdateRequest $team_update_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['teamUpdate'][0]) + public function teamUpdateWithHttpInfo(Model\TeamUpdateRequest $team_update_request, string $contentType = self::contentTypes['teamUpdate'][0]) { - $request = $this->teamUpdateRequest($team_update_request, $idempotency_key, $contentType); + $request = $this->teamUpdateRequest($team_update_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -3384,16 +3331,15 @@ public function teamUpdateWithHttpInfo(Model\TeamUpdateRequest $team_update_requ * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TeamUpdateExample.php * * @param Model\TeamUpdateRequest $team_update_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['teamUpdate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::teamUpdate. This method will eventually become unavailable */ - public function teamUpdateAsync(Model\TeamUpdateRequest $team_update_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['teamUpdate'][0]) + public function teamUpdateAsync(Model\TeamUpdateRequest $team_update_request, string $contentType = self::contentTypes['teamUpdate'][0]) { - return $this->teamUpdateAsyncWithHttpInfo($team_update_request, $idempotency_key, $contentType) + return $this->teamUpdateAsyncWithHttpInfo($team_update_request, $contentType) ->then( function ($response) { return $response[0]; @@ -3409,17 +3355,16 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TeamUpdateExample.php * * @param Model\TeamUpdateRequest $team_update_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['teamUpdate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::teamUpdate. This method will eventually become unavailable */ - public function teamUpdateAsyncWithHttpInfo(Model\TeamUpdateRequest $team_update_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['teamUpdate'][0]) + public function teamUpdateAsyncWithHttpInfo(Model\TeamUpdateRequest $team_update_request, string $contentType = self::contentTypes['teamUpdate'][0]) { $returnType = '\Dropbox\Sign\Model\TeamGetResponse'; - $request = $this->teamUpdateRequest($team_update_request, $idempotency_key, $contentType); + $request = $this->teamUpdateRequest($team_update_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3461,14 +3406,13 @@ function ($exception) { * Create request for operation 'teamUpdate' * * @param Model\TeamUpdateRequest $team_update_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['teamUpdate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::teamUpdate. This method will eventually become unavailable */ - public function teamUpdateRequest(Model\TeamUpdateRequest $team_update_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['teamUpdate'][0]) + public function teamUpdateRequest(Model\TeamUpdateRequest $team_update_request, string $contentType = self::contentTypes['teamUpdate'][0]) { // verify the required parameter 'team_update_request' is set if ($team_update_request === null || (is_array($team_update_request) && count($team_update_request) === 0)) { @@ -3477,13 +3421,6 @@ public function teamUpdateRequest(Model\TeamUpdateRequest $team_update_request, ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TeamApi.teamUpdate, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TeamApi.teamUpdate, must be bigger than or equal to 1.'); - } - $resourcePath = '/team'; $formParams = []; $queryParams = []; @@ -3497,11 +3434,6 @@ public function teamUpdateRequest(Model\TeamUpdateRequest $team_update_request, $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, diff --git a/sdks/php/src/Api/TemplateApi.php b/sdks/php/src/Api/TemplateApi.php index 1a1a2bf66..515142ada 100644 --- a/sdks/php/src/Api/TemplateApi.php +++ b/sdks/php/src/Api/TemplateApi.php @@ -171,15 +171,14 @@ public function getResponse() * * @param string $template_id The id of the Template to give the Account access to. (required) * @param Model\TemplateAddUserRequest $template_add_user_request template_add_user_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\TemplateGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function templateAddUser(string $template_id, Model\TemplateAddUserRequest $template_add_user_request, ?string $idempotency_key = null) + public function templateAddUser(string $template_id, Model\TemplateAddUserRequest $template_add_user_request) { - list($response) = $this->templateAddUserWithHttpInfo($template_id, $template_add_user_request, $idempotency_key); + list($response) = $this->templateAddUserWithHttpInfo($template_id, $template_add_user_request); return $response; } @@ -192,7 +191,6 @@ public function templateAddUser(string $template_id, Model\TemplateAddUserReques * * @param string $template_id The id of the Template to give the Account access to. (required) * @param Model\TemplateAddUserRequest $template_add_user_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateAddUser'] to see the possible values for this operation * * @return array of Model\TemplateGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -200,9 +198,9 @@ public function templateAddUser(string $template_id, Model\TemplateAddUserReques * @throws InvalidArgumentException * @deprecated Prefer to use ::templateAddUser. This method will eventually become unavailable */ - public function templateAddUserWithHttpInfo(string $template_id, Model\TemplateAddUserRequest $template_add_user_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateAddUser'][0]) + public function templateAddUserWithHttpInfo(string $template_id, Model\TemplateAddUserRequest $template_add_user_request, string $contentType = self::contentTypes['templateAddUser'][0]) { - $request = $this->templateAddUserRequest($template_id, $template_add_user_request, $idempotency_key, $contentType); + $request = $this->templateAddUserRequest($template_id, $template_add_user_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -333,16 +331,15 @@ public function templateAddUserWithHttpInfo(string $template_id, Model\TemplateA * * @param string $template_id The id of the Template to give the Account access to. (required) * @param Model\TemplateAddUserRequest $template_add_user_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateAddUser'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::templateAddUser. This method will eventually become unavailable */ - public function templateAddUserAsync(string $template_id, Model\TemplateAddUserRequest $template_add_user_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateAddUser'][0]) + public function templateAddUserAsync(string $template_id, Model\TemplateAddUserRequest $template_add_user_request, string $contentType = self::contentTypes['templateAddUser'][0]) { - return $this->templateAddUserAsyncWithHttpInfo($template_id, $template_add_user_request, $idempotency_key, $contentType) + return $this->templateAddUserAsyncWithHttpInfo($template_id, $template_add_user_request, $contentType) ->then( function ($response) { return $response[0]; @@ -359,17 +356,16 @@ function ($response) { * * @param string $template_id The id of the Template to give the Account access to. (required) * @param Model\TemplateAddUserRequest $template_add_user_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateAddUser'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::templateAddUser. This method will eventually become unavailable */ - public function templateAddUserAsyncWithHttpInfo(string $template_id, Model\TemplateAddUserRequest $template_add_user_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateAddUser'][0]) + public function templateAddUserAsyncWithHttpInfo(string $template_id, Model\TemplateAddUserRequest $template_add_user_request, string $contentType = self::contentTypes['templateAddUser'][0]) { $returnType = '\Dropbox\Sign\Model\TemplateGetResponse'; - $request = $this->templateAddUserRequest($template_id, $template_add_user_request, $idempotency_key, $contentType); + $request = $this->templateAddUserRequest($template_id, $template_add_user_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -412,14 +408,13 @@ function ($exception) { * * @param string $template_id The id of the Template to give the Account access to. (required) * @param Model\TemplateAddUserRequest $template_add_user_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateAddUser'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::templateAddUser. This method will eventually become unavailable */ - public function templateAddUserRequest(string $template_id, Model\TemplateAddUserRequest $template_add_user_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateAddUser'][0]) + public function templateAddUserRequest(string $template_id, Model\TemplateAddUserRequest $template_add_user_request, string $contentType = self::contentTypes['templateAddUser'][0]) { // verify the required parameter 'template_id' is set if ($template_id === null || (is_array($template_id) && count($template_id) === 0)) { @@ -435,13 +430,6 @@ public function templateAddUserRequest(string $template_id, Model\TemplateAddUse ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TemplateApi.templateAddUser, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TemplateApi.templateAddUser, must be bigger than or equal to 1.'); - } - $resourcePath = '/template/add_user/{template_id}'; $formParams = []; $queryParams = []; @@ -455,11 +443,6 @@ public function templateAddUserRequest(string $template_id, Model\TemplateAddUse $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - // path params if ($template_id !== null) { $resourcePath = str_replace( @@ -555,15 +538,14 @@ public function templateAddUserRequest(string $template_id, Model\TemplateAddUse * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TemplateCreateExample.php * * @param Model\TemplateCreateRequest $template_create_request template_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\TemplateCreateResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function templateCreate(Model\TemplateCreateRequest $template_create_request, ?string $idempotency_key = null) + public function templateCreate(Model\TemplateCreateRequest $template_create_request) { - list($response) = $this->templateCreateWithHttpInfo($template_create_request, $idempotency_key); + list($response) = $this->templateCreateWithHttpInfo($template_create_request); return $response; } @@ -575,7 +557,6 @@ public function templateCreate(Model\TemplateCreateRequest $template_create_requ * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TemplateCreateExample.php * * @param Model\TemplateCreateRequest $template_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateCreate'] to see the possible values for this operation * * @return array of Model\TemplateCreateResponse, HTTP status code, HTTP response headers (array of strings) @@ -583,9 +564,9 @@ public function templateCreate(Model\TemplateCreateRequest $template_create_requ * @throws InvalidArgumentException * @deprecated Prefer to use ::templateCreate. This method will eventually become unavailable */ - public function templateCreateWithHttpInfo(Model\TemplateCreateRequest $template_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateCreate'][0]) + public function templateCreateWithHttpInfo(Model\TemplateCreateRequest $template_create_request, string $contentType = self::contentTypes['templateCreate'][0]) { - $request = $this->templateCreateRequest($template_create_request, $idempotency_key, $contentType); + $request = $this->templateCreateRequest($template_create_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -715,16 +696,15 @@ public function templateCreateWithHttpInfo(Model\TemplateCreateRequest $template * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TemplateCreateExample.php * * @param Model\TemplateCreateRequest $template_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateCreate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::templateCreate. This method will eventually become unavailable */ - public function templateCreateAsync(Model\TemplateCreateRequest $template_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateCreate'][0]) + public function templateCreateAsync(Model\TemplateCreateRequest $template_create_request, string $contentType = self::contentTypes['templateCreate'][0]) { - return $this->templateCreateAsyncWithHttpInfo($template_create_request, $idempotency_key, $contentType) + return $this->templateCreateAsyncWithHttpInfo($template_create_request, $contentType) ->then( function ($response) { return $response[0]; @@ -740,17 +720,16 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TemplateCreateExample.php * * @param Model\TemplateCreateRequest $template_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateCreate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::templateCreate. This method will eventually become unavailable */ - public function templateCreateAsyncWithHttpInfo(Model\TemplateCreateRequest $template_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateCreate'][0]) + public function templateCreateAsyncWithHttpInfo(Model\TemplateCreateRequest $template_create_request, string $contentType = self::contentTypes['templateCreate'][0]) { $returnType = '\Dropbox\Sign\Model\TemplateCreateResponse'; - $request = $this->templateCreateRequest($template_create_request, $idempotency_key, $contentType); + $request = $this->templateCreateRequest($template_create_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -792,14 +771,13 @@ function ($exception) { * Create request for operation 'templateCreate' * * @param Model\TemplateCreateRequest $template_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateCreate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::templateCreate. This method will eventually become unavailable */ - public function templateCreateRequest(Model\TemplateCreateRequest $template_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateCreate'][0]) + public function templateCreateRequest(Model\TemplateCreateRequest $template_create_request, string $contentType = self::contentTypes['templateCreate'][0]) { // verify the required parameter 'template_create_request' is set if ($template_create_request === null || (is_array($template_create_request) && count($template_create_request) === 0)) { @@ -808,13 +786,6 @@ public function templateCreateRequest(Model\TemplateCreateRequest $template_crea ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TemplateApi.templateCreate, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TemplateApi.templateCreate, must be bigger than or equal to 1.'); - } - $resourcePath = '/template/create'; $formParams = []; $queryParams = []; @@ -828,11 +799,6 @@ public function templateCreateRequest(Model\TemplateCreateRequest $template_crea $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -919,15 +885,14 @@ public function templateCreateRequest(Model\TemplateCreateRequest $template_crea * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TemplateCreateEmbeddedDraftExample.php * * @param Model\TemplateCreateEmbeddedDraftRequest $template_create_embedded_draft_request template_create_embedded_draft_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\TemplateCreateEmbeddedDraftResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function templateCreateEmbeddedDraft(Model\TemplateCreateEmbeddedDraftRequest $template_create_embedded_draft_request, ?string $idempotency_key = null) + public function templateCreateEmbeddedDraft(Model\TemplateCreateEmbeddedDraftRequest $template_create_embedded_draft_request) { - list($response) = $this->templateCreateEmbeddedDraftWithHttpInfo($template_create_embedded_draft_request, $idempotency_key); + list($response) = $this->templateCreateEmbeddedDraftWithHttpInfo($template_create_embedded_draft_request); return $response; } @@ -939,7 +904,6 @@ public function templateCreateEmbeddedDraft(Model\TemplateCreateEmbeddedDraftReq * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TemplateCreateEmbeddedDraftExample.php * * @param Model\TemplateCreateEmbeddedDraftRequest $template_create_embedded_draft_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateCreateEmbeddedDraft'] to see the possible values for this operation * * @return array of Model\TemplateCreateEmbeddedDraftResponse, HTTP status code, HTTP response headers (array of strings) @@ -947,9 +911,9 @@ public function templateCreateEmbeddedDraft(Model\TemplateCreateEmbeddedDraftReq * @throws InvalidArgumentException * @deprecated Prefer to use ::templateCreateEmbeddedDraft. This method will eventually become unavailable */ - public function templateCreateEmbeddedDraftWithHttpInfo(Model\TemplateCreateEmbeddedDraftRequest $template_create_embedded_draft_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateCreateEmbeddedDraft'][0]) + public function templateCreateEmbeddedDraftWithHttpInfo(Model\TemplateCreateEmbeddedDraftRequest $template_create_embedded_draft_request, string $contentType = self::contentTypes['templateCreateEmbeddedDraft'][0]) { - $request = $this->templateCreateEmbeddedDraftRequest($template_create_embedded_draft_request, $idempotency_key, $contentType); + $request = $this->templateCreateEmbeddedDraftRequest($template_create_embedded_draft_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -1079,16 +1043,15 @@ public function templateCreateEmbeddedDraftWithHttpInfo(Model\TemplateCreateEmbe * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TemplateCreateEmbeddedDraftExample.php * * @param Model\TemplateCreateEmbeddedDraftRequest $template_create_embedded_draft_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateCreateEmbeddedDraft'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::templateCreateEmbeddedDraft. This method will eventually become unavailable */ - public function templateCreateEmbeddedDraftAsync(Model\TemplateCreateEmbeddedDraftRequest $template_create_embedded_draft_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateCreateEmbeddedDraft'][0]) + public function templateCreateEmbeddedDraftAsync(Model\TemplateCreateEmbeddedDraftRequest $template_create_embedded_draft_request, string $contentType = self::contentTypes['templateCreateEmbeddedDraft'][0]) { - return $this->templateCreateEmbeddedDraftAsyncWithHttpInfo($template_create_embedded_draft_request, $idempotency_key, $contentType) + return $this->templateCreateEmbeddedDraftAsyncWithHttpInfo($template_create_embedded_draft_request, $contentType) ->then( function ($response) { return $response[0]; @@ -1104,17 +1067,16 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TemplateCreateEmbeddedDraftExample.php * * @param Model\TemplateCreateEmbeddedDraftRequest $template_create_embedded_draft_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateCreateEmbeddedDraft'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::templateCreateEmbeddedDraft. This method will eventually become unavailable */ - public function templateCreateEmbeddedDraftAsyncWithHttpInfo(Model\TemplateCreateEmbeddedDraftRequest $template_create_embedded_draft_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateCreateEmbeddedDraft'][0]) + public function templateCreateEmbeddedDraftAsyncWithHttpInfo(Model\TemplateCreateEmbeddedDraftRequest $template_create_embedded_draft_request, string $contentType = self::contentTypes['templateCreateEmbeddedDraft'][0]) { $returnType = '\Dropbox\Sign\Model\TemplateCreateEmbeddedDraftResponse'; - $request = $this->templateCreateEmbeddedDraftRequest($template_create_embedded_draft_request, $idempotency_key, $contentType); + $request = $this->templateCreateEmbeddedDraftRequest($template_create_embedded_draft_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1156,14 +1118,13 @@ function ($exception) { * Create request for operation 'templateCreateEmbeddedDraft' * * @param Model\TemplateCreateEmbeddedDraftRequest $template_create_embedded_draft_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateCreateEmbeddedDraft'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::templateCreateEmbeddedDraft. This method will eventually become unavailable */ - public function templateCreateEmbeddedDraftRequest(Model\TemplateCreateEmbeddedDraftRequest $template_create_embedded_draft_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateCreateEmbeddedDraft'][0]) + public function templateCreateEmbeddedDraftRequest(Model\TemplateCreateEmbeddedDraftRequest $template_create_embedded_draft_request, string $contentType = self::contentTypes['templateCreateEmbeddedDraft'][0]) { // verify the required parameter 'template_create_embedded_draft_request' is set if ($template_create_embedded_draft_request === null || (is_array($template_create_embedded_draft_request) && count($template_create_embedded_draft_request) === 0)) { @@ -1172,13 +1133,6 @@ public function templateCreateEmbeddedDraftRequest(Model\TemplateCreateEmbeddedD ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TemplateApi.templateCreateEmbeddedDraft, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TemplateApi.templateCreateEmbeddedDraft, must be bigger than or equal to 1.'); - } - $resourcePath = '/template/create_embedded_draft'; $formParams = []; $queryParams = []; @@ -1192,11 +1146,6 @@ public function templateCreateEmbeddedDraftRequest(Model\TemplateCreateEmbeddedD $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -1282,15 +1231,14 @@ public function templateCreateEmbeddedDraftRequest(Model\TemplateCreateEmbeddedD * * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TemplateDeleteExample.php * - * @param string $template_id The id of the Template to delete. (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) + * @param string $template_id The id of the Template to delete. (required) * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function templateDelete(string $template_id, ?string $idempotency_key = null) + public function templateDelete(string $template_id) { - $this->templateDeleteWithHttpInfo($template_id, $idempotency_key); + $this->templateDeleteWithHttpInfo($template_id); } /** @@ -1300,18 +1248,17 @@ public function templateDelete(string $template_id, ?string $idempotency_key = n * * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TemplateDeleteExample.php * - * @param string $template_id The id of the Template to delete. (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateDelete'] to see the possible values for this operation + * @param string $template_id The id of the Template to delete. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateDelete'] to see the possible values for this operation * * @return array of null, HTTP status code, HTTP response headers (array of strings) * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException * @deprecated Prefer to use ::templateDelete. This method will eventually become unavailable */ - public function templateDeleteWithHttpInfo(string $template_id, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateDelete'][0]) + public function templateDeleteWithHttpInfo(string $template_id, string $contentType = self::contentTypes['templateDelete'][0]) { - $request = $this->templateDeleteRequest($template_id, $idempotency_key, $contentType); + $request = $this->templateDeleteRequest($template_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -1354,17 +1301,16 @@ public function templateDeleteWithHttpInfo(string $template_id, ?string $idempot * * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TemplateDeleteExample.php * - * @param string $template_id The id of the Template to delete. (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateDelete'] to see the possible values for this operation + * @param string $template_id The id of the Template to delete. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateDelete'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::templateDelete. This method will eventually become unavailable */ - public function templateDeleteAsync(string $template_id, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateDelete'][0]) + public function templateDeleteAsync(string $template_id, string $contentType = self::contentTypes['templateDelete'][0]) { - return $this->templateDeleteAsyncWithHttpInfo($template_id, $idempotency_key, $contentType) + return $this->templateDeleteAsyncWithHttpInfo($template_id, $contentType) ->then( function ($response) { return $response[0]; @@ -1379,18 +1325,17 @@ function ($response) { * * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/TemplateDeleteExample.php * - * @param string $template_id The id of the Template to delete. (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateDelete'] to see the possible values for this operation + * @param string $template_id The id of the Template to delete. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateDelete'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::templateDelete. This method will eventually become unavailable */ - public function templateDeleteAsyncWithHttpInfo(string $template_id, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateDelete'][0]) + public function templateDeleteAsyncWithHttpInfo(string $template_id, string $contentType = self::contentTypes['templateDelete'][0]) { $returnType = ''; - $request = $this->templateDeleteRequest($template_id, $idempotency_key, $contentType); + $request = $this->templateDeleteRequest($template_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1418,15 +1363,14 @@ function ($exception) { /** * Create request for operation 'templateDelete' * - * @param string $template_id The id of the Template to delete. (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateDelete'] to see the possible values for this operation + * @param string $template_id The id of the Template to delete. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateDelete'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::templateDelete. This method will eventually become unavailable */ - public function templateDeleteRequest(string $template_id, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateDelete'][0]) + public function templateDeleteRequest(string $template_id, string $contentType = self::contentTypes['templateDelete'][0]) { // verify the required parameter 'template_id' is set if ($template_id === null || (is_array($template_id) && count($template_id) === 0)) { @@ -1435,13 +1379,6 @@ public function templateDeleteRequest(string $template_id, ?string $idempotency_ ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TemplateApi.templateDelete, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TemplateApi.templateDelete, must be bigger than or equal to 1.'); - } - $resourcePath = '/template/delete/{template_id}'; $formParams = []; $queryParams = []; @@ -1449,11 +1386,6 @@ public function templateDeleteRequest(string $template_id, ?string $idempotency_ $httpBody = ''; $multipart = false; - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - // path params if ($template_id !== null) { $resourcePath = str_replace( @@ -3313,15 +3245,14 @@ public function templateListRequest(?string $account_id = null, ?int $page = 1, * * @param string $template_id The id of the Template to remove the Account's access to. (required) * @param Model\TemplateRemoveUserRequest $template_remove_user_request template_remove_user_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\TemplateGetResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function templateRemoveUser(string $template_id, Model\TemplateRemoveUserRequest $template_remove_user_request, ?string $idempotency_key = null) + public function templateRemoveUser(string $template_id, Model\TemplateRemoveUserRequest $template_remove_user_request) { - list($response) = $this->templateRemoveUserWithHttpInfo($template_id, $template_remove_user_request, $idempotency_key); + list($response) = $this->templateRemoveUserWithHttpInfo($template_id, $template_remove_user_request); return $response; } @@ -3334,7 +3265,6 @@ public function templateRemoveUser(string $template_id, Model\TemplateRemoveUser * * @param string $template_id The id of the Template to remove the Account's access to. (required) * @param Model\TemplateRemoveUserRequest $template_remove_user_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateRemoveUser'] to see the possible values for this operation * * @return array of Model\TemplateGetResponse, HTTP status code, HTTP response headers (array of strings) @@ -3342,9 +3272,9 @@ public function templateRemoveUser(string $template_id, Model\TemplateRemoveUser * @throws InvalidArgumentException * @deprecated Prefer to use ::templateRemoveUser. This method will eventually become unavailable */ - public function templateRemoveUserWithHttpInfo(string $template_id, Model\TemplateRemoveUserRequest $template_remove_user_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateRemoveUser'][0]) + public function templateRemoveUserWithHttpInfo(string $template_id, Model\TemplateRemoveUserRequest $template_remove_user_request, string $contentType = self::contentTypes['templateRemoveUser'][0]) { - $request = $this->templateRemoveUserRequest($template_id, $template_remove_user_request, $idempotency_key, $contentType); + $request = $this->templateRemoveUserRequest($template_id, $template_remove_user_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -3475,16 +3405,15 @@ public function templateRemoveUserWithHttpInfo(string $template_id, Model\Templa * * @param string $template_id The id of the Template to remove the Account's access to. (required) * @param Model\TemplateRemoveUserRequest $template_remove_user_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateRemoveUser'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::templateRemoveUser. This method will eventually become unavailable */ - public function templateRemoveUserAsync(string $template_id, Model\TemplateRemoveUserRequest $template_remove_user_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateRemoveUser'][0]) + public function templateRemoveUserAsync(string $template_id, Model\TemplateRemoveUserRequest $template_remove_user_request, string $contentType = self::contentTypes['templateRemoveUser'][0]) { - return $this->templateRemoveUserAsyncWithHttpInfo($template_id, $template_remove_user_request, $idempotency_key, $contentType) + return $this->templateRemoveUserAsyncWithHttpInfo($template_id, $template_remove_user_request, $contentType) ->then( function ($response) { return $response[0]; @@ -3501,17 +3430,16 @@ function ($response) { * * @param string $template_id The id of the Template to remove the Account's access to. (required) * @param Model\TemplateRemoveUserRequest $template_remove_user_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateRemoveUser'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::templateRemoveUser. This method will eventually become unavailable */ - public function templateRemoveUserAsyncWithHttpInfo(string $template_id, Model\TemplateRemoveUserRequest $template_remove_user_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateRemoveUser'][0]) + public function templateRemoveUserAsyncWithHttpInfo(string $template_id, Model\TemplateRemoveUserRequest $template_remove_user_request, string $contentType = self::contentTypes['templateRemoveUser'][0]) { $returnType = '\Dropbox\Sign\Model\TemplateGetResponse'; - $request = $this->templateRemoveUserRequest($template_id, $template_remove_user_request, $idempotency_key, $contentType); + $request = $this->templateRemoveUserRequest($template_id, $template_remove_user_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3554,14 +3482,13 @@ function ($exception) { * * @param string $template_id The id of the Template to remove the Account's access to. (required) * @param Model\TemplateRemoveUserRequest $template_remove_user_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateRemoveUser'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::templateRemoveUser. This method will eventually become unavailable */ - public function templateRemoveUserRequest(string $template_id, Model\TemplateRemoveUserRequest $template_remove_user_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateRemoveUser'][0]) + public function templateRemoveUserRequest(string $template_id, Model\TemplateRemoveUserRequest $template_remove_user_request, string $contentType = self::contentTypes['templateRemoveUser'][0]) { // verify the required parameter 'template_id' is set if ($template_id === null || (is_array($template_id) && count($template_id) === 0)) { @@ -3577,13 +3504,6 @@ public function templateRemoveUserRequest(string $template_id, Model\TemplateRem ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TemplateApi.templateRemoveUser, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TemplateApi.templateRemoveUser, must be bigger than or equal to 1.'); - } - $resourcePath = '/template/remove_user/{template_id}'; $formParams = []; $queryParams = []; @@ -3597,11 +3517,6 @@ public function templateRemoveUserRequest(string $template_id, Model\TemplateRem $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - // path params if ($template_id !== null) { $resourcePath = str_replace( @@ -3698,15 +3613,14 @@ public function templateRemoveUserRequest(string $template_id, Model\TemplateRem * * @param string $template_id The ID of the template whose files to update. (required) * @param Model\TemplateUpdateFilesRequest $template_update_files_request template_update_files_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\TemplateUpdateFilesResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function templateUpdateFiles(string $template_id, Model\TemplateUpdateFilesRequest $template_update_files_request, ?string $idempotency_key = null) + public function templateUpdateFiles(string $template_id, Model\TemplateUpdateFilesRequest $template_update_files_request) { - list($response) = $this->templateUpdateFilesWithHttpInfo($template_id, $template_update_files_request, $idempotency_key); + list($response) = $this->templateUpdateFilesWithHttpInfo($template_id, $template_update_files_request); return $response; } @@ -3719,7 +3633,6 @@ public function templateUpdateFiles(string $template_id, Model\TemplateUpdateFil * * @param string $template_id The ID of the template whose files to update. (required) * @param Model\TemplateUpdateFilesRequest $template_update_files_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateUpdateFiles'] to see the possible values for this operation * * @return array of Model\TemplateUpdateFilesResponse, HTTP status code, HTTP response headers (array of strings) @@ -3727,9 +3640,9 @@ public function templateUpdateFiles(string $template_id, Model\TemplateUpdateFil * @throws InvalidArgumentException * @deprecated Prefer to use ::templateUpdateFiles. This method will eventually become unavailable */ - public function templateUpdateFilesWithHttpInfo(string $template_id, Model\TemplateUpdateFilesRequest $template_update_files_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateUpdateFiles'][0]) + public function templateUpdateFilesWithHttpInfo(string $template_id, Model\TemplateUpdateFilesRequest $template_update_files_request, string $contentType = self::contentTypes['templateUpdateFiles'][0]) { - $request = $this->templateUpdateFilesRequest($template_id, $template_update_files_request, $idempotency_key, $contentType); + $request = $this->templateUpdateFilesRequest($template_id, $template_update_files_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -3860,16 +3773,15 @@ public function templateUpdateFilesWithHttpInfo(string $template_id, Model\Templ * * @param string $template_id The ID of the template whose files to update. (required) * @param Model\TemplateUpdateFilesRequest $template_update_files_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateUpdateFiles'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::templateUpdateFiles. This method will eventually become unavailable */ - public function templateUpdateFilesAsync(string $template_id, Model\TemplateUpdateFilesRequest $template_update_files_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateUpdateFiles'][0]) + public function templateUpdateFilesAsync(string $template_id, Model\TemplateUpdateFilesRequest $template_update_files_request, string $contentType = self::contentTypes['templateUpdateFiles'][0]) { - return $this->templateUpdateFilesAsyncWithHttpInfo($template_id, $template_update_files_request, $idempotency_key, $contentType) + return $this->templateUpdateFilesAsyncWithHttpInfo($template_id, $template_update_files_request, $contentType) ->then( function ($response) { return $response[0]; @@ -3886,17 +3798,16 @@ function ($response) { * * @param string $template_id The ID of the template whose files to update. (required) * @param Model\TemplateUpdateFilesRequest $template_update_files_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateUpdateFiles'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::templateUpdateFiles. This method will eventually become unavailable */ - public function templateUpdateFilesAsyncWithHttpInfo(string $template_id, Model\TemplateUpdateFilesRequest $template_update_files_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateUpdateFiles'][0]) + public function templateUpdateFilesAsyncWithHttpInfo(string $template_id, Model\TemplateUpdateFilesRequest $template_update_files_request, string $contentType = self::contentTypes['templateUpdateFiles'][0]) { $returnType = '\Dropbox\Sign\Model\TemplateUpdateFilesResponse'; - $request = $this->templateUpdateFilesRequest($template_id, $template_update_files_request, $idempotency_key, $contentType); + $request = $this->templateUpdateFilesRequest($template_id, $template_update_files_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3939,14 +3850,13 @@ function ($exception) { * * @param string $template_id The ID of the template whose files to update. (required) * @param Model\TemplateUpdateFilesRequest $template_update_files_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['templateUpdateFiles'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::templateUpdateFiles. This method will eventually become unavailable */ - public function templateUpdateFilesRequest(string $template_id, Model\TemplateUpdateFilesRequest $template_update_files_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['templateUpdateFiles'][0]) + public function templateUpdateFilesRequest(string $template_id, Model\TemplateUpdateFilesRequest $template_update_files_request, string $contentType = self::contentTypes['templateUpdateFiles'][0]) { // verify the required parameter 'template_id' is set if ($template_id === null || (is_array($template_id) && count($template_id) === 0)) { @@ -3962,13 +3872,6 @@ public function templateUpdateFilesRequest(string $template_id, Model\TemplateUp ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TemplateApi.templateUpdateFiles, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling TemplateApi.templateUpdateFiles, must be bigger than or equal to 1.'); - } - $resourcePath = '/template/update_files/{template_id}'; $formParams = []; $queryParams = []; @@ -3982,11 +3885,6 @@ public function templateUpdateFilesRequest(string $template_id, Model\TemplateUp $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - // path params if ($template_id !== null) { $resourcePath = str_replace( diff --git a/sdks/php/src/Api/UnclaimedDraftApi.php b/sdks/php/src/Api/UnclaimedDraftApi.php index fef18f391..fbc0a7768 100644 --- a/sdks/php/src/Api/UnclaimedDraftApi.php +++ b/sdks/php/src/Api/UnclaimedDraftApi.php @@ -148,15 +148,14 @@ public function getResponse() * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/UnclaimedDraftCreateExample.php * * @param Model\UnclaimedDraftCreateRequest $unclaimed_draft_create_request unclaimed_draft_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\UnclaimedDraftCreateResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function unclaimedDraftCreate(Model\UnclaimedDraftCreateRequest $unclaimed_draft_create_request, ?string $idempotency_key = null) + public function unclaimedDraftCreate(Model\UnclaimedDraftCreateRequest $unclaimed_draft_create_request) { - list($response) = $this->unclaimedDraftCreateWithHttpInfo($unclaimed_draft_create_request, $idempotency_key); + list($response) = $this->unclaimedDraftCreateWithHttpInfo($unclaimed_draft_create_request); return $response; } @@ -168,7 +167,6 @@ public function unclaimedDraftCreate(Model\UnclaimedDraftCreateRequest $unclaime * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/UnclaimedDraftCreateExample.php * * @param Model\UnclaimedDraftCreateRequest $unclaimed_draft_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unclaimedDraftCreate'] to see the possible values for this operation * * @return array of Model\UnclaimedDraftCreateResponse, HTTP status code, HTTP response headers (array of strings) @@ -176,9 +174,9 @@ public function unclaimedDraftCreate(Model\UnclaimedDraftCreateRequest $unclaime * @throws InvalidArgumentException * @deprecated Prefer to use ::unclaimedDraftCreate. This method will eventually become unavailable */ - public function unclaimedDraftCreateWithHttpInfo(Model\UnclaimedDraftCreateRequest $unclaimed_draft_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['unclaimedDraftCreate'][0]) + public function unclaimedDraftCreateWithHttpInfo(Model\UnclaimedDraftCreateRequest $unclaimed_draft_create_request, string $contentType = self::contentTypes['unclaimedDraftCreate'][0]) { - $request = $this->unclaimedDraftCreateRequest($unclaimed_draft_create_request, $idempotency_key, $contentType); + $request = $this->unclaimedDraftCreateRequest($unclaimed_draft_create_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -308,16 +306,15 @@ public function unclaimedDraftCreateWithHttpInfo(Model\UnclaimedDraftCreateReque * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/UnclaimedDraftCreateExample.php * * @param Model\UnclaimedDraftCreateRequest $unclaimed_draft_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unclaimedDraftCreate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::unclaimedDraftCreate. This method will eventually become unavailable */ - public function unclaimedDraftCreateAsync(Model\UnclaimedDraftCreateRequest $unclaimed_draft_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['unclaimedDraftCreate'][0]) + public function unclaimedDraftCreateAsync(Model\UnclaimedDraftCreateRequest $unclaimed_draft_create_request, string $contentType = self::contentTypes['unclaimedDraftCreate'][0]) { - return $this->unclaimedDraftCreateAsyncWithHttpInfo($unclaimed_draft_create_request, $idempotency_key, $contentType) + return $this->unclaimedDraftCreateAsyncWithHttpInfo($unclaimed_draft_create_request, $contentType) ->then( function ($response) { return $response[0]; @@ -333,17 +330,16 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/UnclaimedDraftCreateExample.php * * @param Model\UnclaimedDraftCreateRequest $unclaimed_draft_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unclaimedDraftCreate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::unclaimedDraftCreate. This method will eventually become unavailable */ - public function unclaimedDraftCreateAsyncWithHttpInfo(Model\UnclaimedDraftCreateRequest $unclaimed_draft_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['unclaimedDraftCreate'][0]) + public function unclaimedDraftCreateAsyncWithHttpInfo(Model\UnclaimedDraftCreateRequest $unclaimed_draft_create_request, string $contentType = self::contentTypes['unclaimedDraftCreate'][0]) { $returnType = '\Dropbox\Sign\Model\UnclaimedDraftCreateResponse'; - $request = $this->unclaimedDraftCreateRequest($unclaimed_draft_create_request, $idempotency_key, $contentType); + $request = $this->unclaimedDraftCreateRequest($unclaimed_draft_create_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -385,14 +381,13 @@ function ($exception) { * Create request for operation 'unclaimedDraftCreate' * * @param Model\UnclaimedDraftCreateRequest $unclaimed_draft_create_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unclaimedDraftCreate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::unclaimedDraftCreate. This method will eventually become unavailable */ - public function unclaimedDraftCreateRequest(Model\UnclaimedDraftCreateRequest $unclaimed_draft_create_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['unclaimedDraftCreate'][0]) + public function unclaimedDraftCreateRequest(Model\UnclaimedDraftCreateRequest $unclaimed_draft_create_request, string $contentType = self::contentTypes['unclaimedDraftCreate'][0]) { // verify the required parameter 'unclaimed_draft_create_request' is set if ($unclaimed_draft_create_request === null || (is_array($unclaimed_draft_create_request) && count($unclaimed_draft_create_request) === 0)) { @@ -401,13 +396,6 @@ public function unclaimedDraftCreateRequest(Model\UnclaimedDraftCreateRequest $u ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling UnclaimedDraftApi.unclaimedDraftCreate, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling UnclaimedDraftApi.unclaimedDraftCreate, must be bigger than or equal to 1.'); - } - $resourcePath = '/unclaimed_draft/create'; $formParams = []; $queryParams = []; @@ -421,11 +409,6 @@ public function unclaimedDraftCreateRequest(Model\UnclaimedDraftCreateRequest $u $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -512,15 +495,14 @@ public function unclaimedDraftCreateRequest(Model\UnclaimedDraftCreateRequest $u * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.php * * @param Model\UnclaimedDraftCreateEmbeddedRequest $unclaimed_draft_create_embedded_request unclaimed_draft_create_embedded_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\UnclaimedDraftCreateResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function unclaimedDraftCreateEmbedded(Model\UnclaimedDraftCreateEmbeddedRequest $unclaimed_draft_create_embedded_request, ?string $idempotency_key = null) + public function unclaimedDraftCreateEmbedded(Model\UnclaimedDraftCreateEmbeddedRequest $unclaimed_draft_create_embedded_request) { - list($response) = $this->unclaimedDraftCreateEmbeddedWithHttpInfo($unclaimed_draft_create_embedded_request, $idempotency_key); + list($response) = $this->unclaimedDraftCreateEmbeddedWithHttpInfo($unclaimed_draft_create_embedded_request); return $response; } @@ -532,7 +514,6 @@ public function unclaimedDraftCreateEmbedded(Model\UnclaimedDraftCreateEmbeddedR * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.php * * @param Model\UnclaimedDraftCreateEmbeddedRequest $unclaimed_draft_create_embedded_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unclaimedDraftCreateEmbedded'] to see the possible values for this operation * * @return array of Model\UnclaimedDraftCreateResponse, HTTP status code, HTTP response headers (array of strings) @@ -540,9 +521,9 @@ public function unclaimedDraftCreateEmbedded(Model\UnclaimedDraftCreateEmbeddedR * @throws InvalidArgumentException * @deprecated Prefer to use ::unclaimedDraftCreateEmbedded. This method will eventually become unavailable */ - public function unclaimedDraftCreateEmbeddedWithHttpInfo(Model\UnclaimedDraftCreateEmbeddedRequest $unclaimed_draft_create_embedded_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['unclaimedDraftCreateEmbedded'][0]) + public function unclaimedDraftCreateEmbeddedWithHttpInfo(Model\UnclaimedDraftCreateEmbeddedRequest $unclaimed_draft_create_embedded_request, string $contentType = self::contentTypes['unclaimedDraftCreateEmbedded'][0]) { - $request = $this->unclaimedDraftCreateEmbeddedRequest($unclaimed_draft_create_embedded_request, $idempotency_key, $contentType); + $request = $this->unclaimedDraftCreateEmbeddedRequest($unclaimed_draft_create_embedded_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -672,16 +653,15 @@ public function unclaimedDraftCreateEmbeddedWithHttpInfo(Model\UnclaimedDraftCre * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.php * * @param Model\UnclaimedDraftCreateEmbeddedRequest $unclaimed_draft_create_embedded_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unclaimedDraftCreateEmbedded'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::unclaimedDraftCreateEmbedded. This method will eventually become unavailable */ - public function unclaimedDraftCreateEmbeddedAsync(Model\UnclaimedDraftCreateEmbeddedRequest $unclaimed_draft_create_embedded_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['unclaimedDraftCreateEmbedded'][0]) + public function unclaimedDraftCreateEmbeddedAsync(Model\UnclaimedDraftCreateEmbeddedRequest $unclaimed_draft_create_embedded_request, string $contentType = self::contentTypes['unclaimedDraftCreateEmbedded'][0]) { - return $this->unclaimedDraftCreateEmbeddedAsyncWithHttpInfo($unclaimed_draft_create_embedded_request, $idempotency_key, $contentType) + return $this->unclaimedDraftCreateEmbeddedAsyncWithHttpInfo($unclaimed_draft_create_embedded_request, $contentType) ->then( function ($response) { return $response[0]; @@ -697,17 +677,16 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.php * * @param Model\UnclaimedDraftCreateEmbeddedRequest $unclaimed_draft_create_embedded_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unclaimedDraftCreateEmbedded'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::unclaimedDraftCreateEmbedded. This method will eventually become unavailable */ - public function unclaimedDraftCreateEmbeddedAsyncWithHttpInfo(Model\UnclaimedDraftCreateEmbeddedRequest $unclaimed_draft_create_embedded_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['unclaimedDraftCreateEmbedded'][0]) + public function unclaimedDraftCreateEmbeddedAsyncWithHttpInfo(Model\UnclaimedDraftCreateEmbeddedRequest $unclaimed_draft_create_embedded_request, string $contentType = self::contentTypes['unclaimedDraftCreateEmbedded'][0]) { $returnType = '\Dropbox\Sign\Model\UnclaimedDraftCreateResponse'; - $request = $this->unclaimedDraftCreateEmbeddedRequest($unclaimed_draft_create_embedded_request, $idempotency_key, $contentType); + $request = $this->unclaimedDraftCreateEmbeddedRequest($unclaimed_draft_create_embedded_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -749,14 +728,13 @@ function ($exception) { * Create request for operation 'unclaimedDraftCreateEmbedded' * * @param Model\UnclaimedDraftCreateEmbeddedRequest $unclaimed_draft_create_embedded_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unclaimedDraftCreateEmbedded'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::unclaimedDraftCreateEmbedded. This method will eventually become unavailable */ - public function unclaimedDraftCreateEmbeddedRequest(Model\UnclaimedDraftCreateEmbeddedRequest $unclaimed_draft_create_embedded_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['unclaimedDraftCreateEmbedded'][0]) + public function unclaimedDraftCreateEmbeddedRequest(Model\UnclaimedDraftCreateEmbeddedRequest $unclaimed_draft_create_embedded_request, string $contentType = self::contentTypes['unclaimedDraftCreateEmbedded'][0]) { // verify the required parameter 'unclaimed_draft_create_embedded_request' is set if ($unclaimed_draft_create_embedded_request === null || (is_array($unclaimed_draft_create_embedded_request) && count($unclaimed_draft_create_embedded_request) === 0)) { @@ -765,13 +743,6 @@ public function unclaimedDraftCreateEmbeddedRequest(Model\UnclaimedDraftCreateEm ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling UnclaimedDraftApi.unclaimedDraftCreateEmbedded, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling UnclaimedDraftApi.unclaimedDraftCreateEmbedded, must be bigger than or equal to 1.'); - } - $resourcePath = '/unclaimed_draft/create_embedded'; $formParams = []; $queryParams = []; @@ -785,11 +756,6 @@ public function unclaimedDraftCreateEmbeddedRequest(Model\UnclaimedDraftCreateEm $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -876,15 +842,14 @@ public function unclaimedDraftCreateEmbeddedRequest(Model\UnclaimedDraftCreateEm * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.php * * @param Model\UnclaimedDraftCreateEmbeddedWithTemplateRequest $unclaimed_draft_create_embedded_with_template_request unclaimed_draft_create_embedded_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\UnclaimedDraftCreateResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function unclaimedDraftCreateEmbeddedWithTemplate(Model\UnclaimedDraftCreateEmbeddedWithTemplateRequest $unclaimed_draft_create_embedded_with_template_request, ?string $idempotency_key = null) + public function unclaimedDraftCreateEmbeddedWithTemplate(Model\UnclaimedDraftCreateEmbeddedWithTemplateRequest $unclaimed_draft_create_embedded_with_template_request) { - list($response) = $this->unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo($unclaimed_draft_create_embedded_with_template_request, $idempotency_key); + list($response) = $this->unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo($unclaimed_draft_create_embedded_with_template_request); return $response; } @@ -896,7 +861,6 @@ public function unclaimedDraftCreateEmbeddedWithTemplate(Model\UnclaimedDraftCre * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.php * * @param Model\UnclaimedDraftCreateEmbeddedWithTemplateRequest $unclaimed_draft_create_embedded_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unclaimedDraftCreateEmbeddedWithTemplate'] to see the possible values for this operation * * @return array of Model\UnclaimedDraftCreateResponse, HTTP status code, HTTP response headers (array of strings) @@ -904,9 +868,9 @@ public function unclaimedDraftCreateEmbeddedWithTemplate(Model\UnclaimedDraftCre * @throws InvalidArgumentException * @deprecated Prefer to use ::unclaimedDraftCreateEmbeddedWithTemplate. This method will eventually become unavailable */ - public function unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(Model\UnclaimedDraftCreateEmbeddedWithTemplateRequest $unclaimed_draft_create_embedded_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['unclaimedDraftCreateEmbeddedWithTemplate'][0]) + public function unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(Model\UnclaimedDraftCreateEmbeddedWithTemplateRequest $unclaimed_draft_create_embedded_with_template_request, string $contentType = self::contentTypes['unclaimedDraftCreateEmbeddedWithTemplate'][0]) { - $request = $this->unclaimedDraftCreateEmbeddedWithTemplateRequest($unclaimed_draft_create_embedded_with_template_request, $idempotency_key, $contentType); + $request = $this->unclaimedDraftCreateEmbeddedWithTemplateRequest($unclaimed_draft_create_embedded_with_template_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -1036,16 +1000,15 @@ public function unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(Model\Uncla * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.php * * @param Model\UnclaimedDraftCreateEmbeddedWithTemplateRequest $unclaimed_draft_create_embedded_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unclaimedDraftCreateEmbeddedWithTemplate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::unclaimedDraftCreateEmbeddedWithTemplate. This method will eventually become unavailable */ - public function unclaimedDraftCreateEmbeddedWithTemplateAsync(Model\UnclaimedDraftCreateEmbeddedWithTemplateRequest $unclaimed_draft_create_embedded_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['unclaimedDraftCreateEmbeddedWithTemplate'][0]) + public function unclaimedDraftCreateEmbeddedWithTemplateAsync(Model\UnclaimedDraftCreateEmbeddedWithTemplateRequest $unclaimed_draft_create_embedded_with_template_request, string $contentType = self::contentTypes['unclaimedDraftCreateEmbeddedWithTemplate'][0]) { - return $this->unclaimedDraftCreateEmbeddedWithTemplateAsyncWithHttpInfo($unclaimed_draft_create_embedded_with_template_request, $idempotency_key, $contentType) + return $this->unclaimedDraftCreateEmbeddedWithTemplateAsyncWithHttpInfo($unclaimed_draft_create_embedded_with_template_request, $contentType) ->then( function ($response) { return $response[0]; @@ -1061,17 +1024,16 @@ function ($response) { * Example: https://github.com/hellosign/dropbox-sign-php/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.php * * @param Model\UnclaimedDraftCreateEmbeddedWithTemplateRequest $unclaimed_draft_create_embedded_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unclaimedDraftCreateEmbeddedWithTemplate'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::unclaimedDraftCreateEmbeddedWithTemplate. This method will eventually become unavailable */ - public function unclaimedDraftCreateEmbeddedWithTemplateAsyncWithHttpInfo(Model\UnclaimedDraftCreateEmbeddedWithTemplateRequest $unclaimed_draft_create_embedded_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['unclaimedDraftCreateEmbeddedWithTemplate'][0]) + public function unclaimedDraftCreateEmbeddedWithTemplateAsyncWithHttpInfo(Model\UnclaimedDraftCreateEmbeddedWithTemplateRequest $unclaimed_draft_create_embedded_with_template_request, string $contentType = self::contentTypes['unclaimedDraftCreateEmbeddedWithTemplate'][0]) { $returnType = '\Dropbox\Sign\Model\UnclaimedDraftCreateResponse'; - $request = $this->unclaimedDraftCreateEmbeddedWithTemplateRequest($unclaimed_draft_create_embedded_with_template_request, $idempotency_key, $contentType); + $request = $this->unclaimedDraftCreateEmbeddedWithTemplateRequest($unclaimed_draft_create_embedded_with_template_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1113,14 +1075,13 @@ function ($exception) { * Create request for operation 'unclaimedDraftCreateEmbeddedWithTemplate' * * @param Model\UnclaimedDraftCreateEmbeddedWithTemplateRequest $unclaimed_draft_create_embedded_with_template_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unclaimedDraftCreateEmbeddedWithTemplate'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::unclaimedDraftCreateEmbeddedWithTemplate. This method will eventually become unavailable */ - public function unclaimedDraftCreateEmbeddedWithTemplateRequest(Model\UnclaimedDraftCreateEmbeddedWithTemplateRequest $unclaimed_draft_create_embedded_with_template_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['unclaimedDraftCreateEmbeddedWithTemplate'][0]) + public function unclaimedDraftCreateEmbeddedWithTemplateRequest(Model\UnclaimedDraftCreateEmbeddedWithTemplateRequest $unclaimed_draft_create_embedded_with_template_request, string $contentType = self::contentTypes['unclaimedDraftCreateEmbeddedWithTemplate'][0]) { // verify the required parameter 'unclaimed_draft_create_embedded_with_template_request' is set if ($unclaimed_draft_create_embedded_with_template_request === null || (is_array($unclaimed_draft_create_embedded_with_template_request) && count($unclaimed_draft_create_embedded_with_template_request) === 0)) { @@ -1129,13 +1090,6 @@ public function unclaimedDraftCreateEmbeddedWithTemplateRequest(Model\UnclaimedD ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling UnclaimedDraftApi.unclaimedDraftCreateEmbeddedWithTemplate, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling UnclaimedDraftApi.unclaimedDraftCreateEmbeddedWithTemplate, must be bigger than or equal to 1.'); - } - $resourcePath = '/unclaimed_draft/create_embedded_with_template'; $formParams = []; $queryParams = []; @@ -1149,11 +1103,6 @@ public function unclaimedDraftCreateEmbeddedWithTemplateRequest(Model\UnclaimedD $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - $headers = $this->headerSelector->selectHeaders( $multipart ? ['multipart/form-data'] : ['application/json'], $contentType, @@ -1241,15 +1190,14 @@ public function unclaimedDraftCreateEmbeddedWithTemplateRequest(Model\UnclaimedD * * @param string $signature_request_id The ID of the signature request to edit and resend. (required) * @param Model\UnclaimedDraftEditAndResendRequest $unclaimed_draft_edit_and_resend_request unclaimed_draft_edit_and_resend_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * * @return Model\UnclaimedDraftCreateResponse * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException */ - public function unclaimedDraftEditAndResend(string $signature_request_id, Model\UnclaimedDraftEditAndResendRequest $unclaimed_draft_edit_and_resend_request, ?string $idempotency_key = null) + public function unclaimedDraftEditAndResend(string $signature_request_id, Model\UnclaimedDraftEditAndResendRequest $unclaimed_draft_edit_and_resend_request) { - list($response) = $this->unclaimedDraftEditAndResendWithHttpInfo($signature_request_id, $unclaimed_draft_edit_and_resend_request, $idempotency_key); + list($response) = $this->unclaimedDraftEditAndResendWithHttpInfo($signature_request_id, $unclaimed_draft_edit_and_resend_request); return $response; } @@ -1262,7 +1210,6 @@ public function unclaimedDraftEditAndResend(string $signature_request_id, Model\ * * @param string $signature_request_id The ID of the signature request to edit and resend. (required) * @param Model\UnclaimedDraftEditAndResendRequest $unclaimed_draft_edit_and_resend_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unclaimedDraftEditAndResend'] to see the possible values for this operation * * @return array of Model\UnclaimedDraftCreateResponse, HTTP status code, HTTP response headers (array of strings) @@ -1270,9 +1217,9 @@ public function unclaimedDraftEditAndResend(string $signature_request_id, Model\ * @throws InvalidArgumentException * @deprecated Prefer to use ::unclaimedDraftEditAndResend. This method will eventually become unavailable */ - public function unclaimedDraftEditAndResendWithHttpInfo(string $signature_request_id, Model\UnclaimedDraftEditAndResendRequest $unclaimed_draft_edit_and_resend_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['unclaimedDraftEditAndResend'][0]) + public function unclaimedDraftEditAndResendWithHttpInfo(string $signature_request_id, Model\UnclaimedDraftEditAndResendRequest $unclaimed_draft_edit_and_resend_request, string $contentType = self::contentTypes['unclaimedDraftEditAndResend'][0]) { - $request = $this->unclaimedDraftEditAndResendRequest($signature_request_id, $unclaimed_draft_edit_and_resend_request, $idempotency_key, $contentType); + $request = $this->unclaimedDraftEditAndResendRequest($signature_request_id, $unclaimed_draft_edit_and_resend_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -1403,16 +1350,15 @@ public function unclaimedDraftEditAndResendWithHttpInfo(string $signature_reques * * @param string $signature_request_id The ID of the signature request to edit and resend. (required) * @param Model\UnclaimedDraftEditAndResendRequest $unclaimed_draft_edit_and_resend_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unclaimedDraftEditAndResend'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::unclaimedDraftEditAndResend. This method will eventually become unavailable */ - public function unclaimedDraftEditAndResendAsync(string $signature_request_id, Model\UnclaimedDraftEditAndResendRequest $unclaimed_draft_edit_and_resend_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['unclaimedDraftEditAndResend'][0]) + public function unclaimedDraftEditAndResendAsync(string $signature_request_id, Model\UnclaimedDraftEditAndResendRequest $unclaimed_draft_edit_and_resend_request, string $contentType = self::contentTypes['unclaimedDraftEditAndResend'][0]) { - return $this->unclaimedDraftEditAndResendAsyncWithHttpInfo($signature_request_id, $unclaimed_draft_edit_and_resend_request, $idempotency_key, $contentType) + return $this->unclaimedDraftEditAndResendAsyncWithHttpInfo($signature_request_id, $unclaimed_draft_edit_and_resend_request, $contentType) ->then( function ($response) { return $response[0]; @@ -1429,17 +1375,16 @@ function ($response) { * * @param string $signature_request_id The ID of the signature request to edit and resend. (required) * @param Model\UnclaimedDraftEditAndResendRequest $unclaimed_draft_edit_and_resend_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unclaimedDraftEditAndResend'] to see the possible values for this operation * * @return \GuzzleHttp\Promise\PromiseInterface * @throws InvalidArgumentException * @deprecated Prefer to use ::unclaimedDraftEditAndResend. This method will eventually become unavailable */ - public function unclaimedDraftEditAndResendAsyncWithHttpInfo(string $signature_request_id, Model\UnclaimedDraftEditAndResendRequest $unclaimed_draft_edit_and_resend_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['unclaimedDraftEditAndResend'][0]) + public function unclaimedDraftEditAndResendAsyncWithHttpInfo(string $signature_request_id, Model\UnclaimedDraftEditAndResendRequest $unclaimed_draft_edit_and_resend_request, string $contentType = self::contentTypes['unclaimedDraftEditAndResend'][0]) { $returnType = '\Dropbox\Sign\Model\UnclaimedDraftCreateResponse'; - $request = $this->unclaimedDraftEditAndResendRequest($signature_request_id, $unclaimed_draft_edit_and_resend_request, $idempotency_key, $contentType); + $request = $this->unclaimedDraftEditAndResendRequest($signature_request_id, $unclaimed_draft_edit_and_resend_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1482,14 +1427,13 @@ function ($exception) { * * @param string $signature_request_id The ID of the signature request to edit and resend. (required) * @param Model\UnclaimedDraftEditAndResendRequest $unclaimed_draft_edit_and_resend_request (required) - * @param string|null $idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unclaimedDraftEditAndResend'] to see the possible values for this operation * * @return Request * @throws InvalidArgumentException * @deprecated Prefer to use ::unclaimedDraftEditAndResend. This method will eventually become unavailable */ - public function unclaimedDraftEditAndResendRequest(string $signature_request_id, Model\UnclaimedDraftEditAndResendRequest $unclaimed_draft_edit_and_resend_request, ?string $idempotency_key = null, string $contentType = self::contentTypes['unclaimedDraftEditAndResend'][0]) + public function unclaimedDraftEditAndResendRequest(string $signature_request_id, Model\UnclaimedDraftEditAndResendRequest $unclaimed_draft_edit_and_resend_request, string $contentType = self::contentTypes['unclaimedDraftEditAndResend'][0]) { // verify the required parameter 'signature_request_id' is set if ($signature_request_id === null || (is_array($signature_request_id) && count($signature_request_id) === 0)) { @@ -1505,13 +1449,6 @@ public function unclaimedDraftEditAndResendRequest(string $signature_request_id, ); } - if ($idempotency_key !== null && strlen($idempotency_key) > 255) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling UnclaimedDraftApi.unclaimedDraftEditAndResend, must be smaller than or equal to 255.'); - } - if ($idempotency_key !== null && strlen($idempotency_key) < 1) { - throw new InvalidArgumentException('invalid length for "$idempotency_key" when calling UnclaimedDraftApi.unclaimedDraftEditAndResend, must be bigger than or equal to 1.'); - } - $resourcePath = '/unclaimed_draft/edit_and_resend/{signature_request_id}'; $formParams = []; $queryParams = []; @@ -1525,11 +1462,6 @@ public function unclaimedDraftEditAndResendRequest(string $signature_request_id, $multipart = !empty($formParams); - // header params - if ($idempotency_key !== null) { - $headerParams['Idempotency-Key'] = ObjectSerializer::toHeaderValue($idempotency_key); - } - // path params if ($signature_request_id !== null) { $resourcePath = str_replace( diff --git a/sdks/python/docs/AccountApi.md b/sdks/python/docs/AccountApi.md index 32c80dcd6..baf60a9f2 100644 --- a/sdks/python/docs/AccountApi.md +++ b/sdks/python/docs/AccountApi.md @@ -55,7 +55,6 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `account_create_request` | [**AccountCreateRequest**](AccountCreateRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -74,7 +73,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -188,7 +187,6 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `account_update_request` | [**AccountUpdateRequest**](AccountUpdateRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -207,7 +205,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -257,7 +255,6 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `account_verify_request` | [**AccountVerifyRequest**](AccountVerifyRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -276,7 +273,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/python/docs/ApiAppApi.md b/sdks/python/docs/ApiAppApi.md index 45b8301e5..2ee0a39e0 100644 --- a/sdks/python/docs/ApiAppApi.md +++ b/sdks/python/docs/ApiAppApi.md @@ -75,7 +75,6 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `api_app_create_request` | [**ApiAppCreateRequest**](ApiAppCreateRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -94,7 +93,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**201** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -358,7 +357,6 @@ with ApiClient(configuration) as api_client: | ---- | ---- | ----------- | ----- | | `client_id` | **str** | The client id of the API App to update. | | | `api_app_update_request` | [**ApiAppUpdateRequest**](ApiAppUpdateRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -377,7 +375,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/python/docs/DocumentApi.md b/sdks/python/docs/DocumentApi.md index 0425896e2..c5e2321c9 100644 --- a/sdks/python/docs/DocumentApi.md +++ b/sdks/python/docs/DocumentApi.md @@ -54,7 +54,6 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `document_field_detection_request` | [**DocumentFieldDetectionRequest**](DocumentFieldDetectionRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -73,7 +72,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/python/docs/EmbeddedApi.md b/sdks/python/docs/EmbeddedApi.md index 7e7e16e76..9bf1d9dbc 100644 --- a/sdks/python/docs/EmbeddedApi.md +++ b/sdks/python/docs/EmbeddedApi.md @@ -60,7 +60,6 @@ with ApiClient(configuration) as api_client: | ---- | ---- | ----------- | ----- | | `template_id` | **str** | The id of the template to edit. | | | `embedded_edit_url_request` | [**EmbeddedEditUrlRequest**](EmbeddedEditUrlRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -79,7 +78,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/python/docs/FaxApi.md b/sdks/python/docs/FaxApi.md index 6d4c028ae..431d0ca9f 100644 --- a/sdks/python/docs/FaxApi.md +++ b/sdks/python/docs/FaxApi.md @@ -311,7 +311,6 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `fax_send_request` | [**FaxSendRequest**](FaxSendRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -330,7 +329,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/python/docs/FaxLineApi.md b/sdks/python/docs/FaxLineApi.md index 808689a50..4f1b2a4a4 100644 --- a/sdks/python/docs/FaxLineApi.md +++ b/sdks/python/docs/FaxLineApi.md @@ -57,7 +57,6 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `fax_line_add_user_request` | [**FaxLineAddUserRequest**](FaxLineAddUserRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -76,7 +75,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -190,7 +189,6 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `fax_line_create_request` | [**FaxLineCreateRequest**](FaxLineCreateRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -209,7 +207,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -451,7 +449,6 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `fax_line_remove_user_request` | [**FaxLineRemoveUserRequest**](FaxLineRemoveUserRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -470,7 +467,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/python/docs/ReportApi.md b/sdks/python/docs/ReportApi.md index ef5ad7954..0ddd8c376 100644 --- a/sdks/python/docs/ReportApi.md +++ b/sdks/python/docs/ReportApi.md @@ -57,7 +57,6 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `report_create_request` | [**ReportCreateRequest**](ReportCreateRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -76,7 +75,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/python/docs/SignatureRequestApi.md b/sdks/python/docs/SignatureRequestApi.md index 61f863b10..79db31de2 100644 --- a/sdks/python/docs/SignatureRequestApi.md +++ b/sdks/python/docs/SignatureRequestApi.md @@ -150,7 +150,6 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_bulk_create_embedded_with_template_request` | [**SignatureRequestBulkCreateEmbeddedWithTemplateRequest**](SignatureRequestBulkCreateEmbeddedWithTemplateRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -169,7 +168,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -299,7 +298,6 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_bulk_send_with_template_request` | [**SignatureRequestBulkSendWithTemplateRequest**](SignatureRequestBulkSendWithTemplateRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -318,7 +316,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -373,7 +371,6 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_id` | **str** | The id of the incomplete SignatureRequest to cancel. | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -392,7 +389,7 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -486,7 +483,6 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_create_embedded_request` | [**SignatureRequestCreateEmbeddedRequest**](SignatureRequestCreateEmbeddedRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -505,7 +501,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -589,7 +585,6 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_create_embedded_with_template_request` | [**SignatureRequestCreateEmbeddedWithTemplateRequest**](SignatureRequestCreateEmbeddedWithTemplateRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -608,7 +603,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -715,7 +710,6 @@ with ApiClient(configuration) as api_client: | ---- | ---- | ----------- | ----- | | `signature_request_id` | **str** | The id of the SignatureRequest to edit. | | | `signature_request_edit_request` | [**SignatureRequestEditRequest**](SignatureRequestEditRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -734,7 +728,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -829,7 +823,6 @@ with ApiClient(configuration) as api_client: | ---- | ---- | ----------- | ----- | | `signature_request_id` | **str** | The id of the SignatureRequest to edit. | | | `signature_request_edit_embedded_request` | [**SignatureRequestEditEmbeddedRequest**](SignatureRequestEditEmbeddedRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -848,7 +841,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -935,7 +928,6 @@ with ApiClient(configuration) as api_client: | ---- | ---- | ----------- | ----- | | `signature_request_id` | **str** | The id of the SignatureRequest to edit. | | | `signature_request_edit_embedded_with_template_request` | [**SignatureRequestEditEmbeddedWithTemplateRequest**](SignatureRequestEditEmbeddedWithTemplateRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -954,7 +946,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1062,7 +1054,6 @@ with ApiClient(configuration) as api_client: | ---- | ---- | ----------- | ----- | | `signature_request_id` | **str** | The id of the SignatureRequest to edit. | | | `signature_request_edit_with_template_request` | [**SignatureRequestEditWithTemplateRequest**](SignatureRequestEditWithTemplateRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1081,7 +1072,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1484,7 +1475,6 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_id` | **str** | The id of the SignatureRequest to release. | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1503,7 +1493,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1560,7 +1550,6 @@ with ApiClient(configuration) as api_client: | ---- | ---- | ----------- | ----- | | `signature_request_id` | **str** | The id of the SignatureRequest to send a reminder for. | | | `signature_request_remind_request` | [**SignatureRequestRemindRequest**](SignatureRequestRemindRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1579,7 +1568,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1628,7 +1617,6 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_id` | **str** | The id of the SignatureRequest to remove. | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1647,7 +1635,7 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1751,7 +1739,6 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_send_request` | [**SignatureRequestSendRequest**](SignatureRequestSendRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1770,7 +1757,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1875,7 +1862,6 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_send_with_template_request` | [**SignatureRequestSendWithTemplateRequest**](SignatureRequestSendWithTemplateRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1894,7 +1880,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1954,7 +1940,6 @@ with ApiClient(configuration) as api_client: | ---- | ---- | ----------- | ----- | | `signature_request_id` | **str** | The id of the SignatureRequest to update. | | | `signature_request_update_request` | [**SignatureRequestUpdateRequest**](SignatureRequestUpdateRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1973,7 +1958,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/python/docs/TeamApi.md b/sdks/python/docs/TeamApi.md index 06f941791..e61896a51 100644 --- a/sdks/python/docs/TeamApi.md +++ b/sdks/python/docs/TeamApi.md @@ -63,7 +63,6 @@ with ApiClient(configuration) as api_client: | ---- | ---- | ----------- | ----- | | `team_add_member_request` | [**TeamAddMemberRequest**](TeamAddMemberRequest.md) | | | | `team_id` | **str** | The id of the team. | [optional] | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -82,7 +81,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -132,7 +131,6 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `team_create_request` | [**TeamCreateRequest**](TeamCreateRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -151,7 +149,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -514,7 +512,6 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `team_remove_member_request` | [**TeamRemoveMemberRequest**](TeamRemoveMemberRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -533,7 +530,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**201** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -651,7 +648,6 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `team_update_request` | [**TeamUpdateRequest**](TeamUpdateRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -670,7 +666,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/python/docs/TemplateApi.md b/sdks/python/docs/TemplateApi.md index cb0ee8b69..23d16d10b 100644 --- a/sdks/python/docs/TemplateApi.md +++ b/sdks/python/docs/TemplateApi.md @@ -64,7 +64,6 @@ with ApiClient(configuration) as api_client: | ---- | ---- | ----------- | ----- | | `template_id` | **str** | The id of the Template to give the Account access to. | | | `template_add_user_request` | [**TemplateAddUserRequest**](TemplateAddUserRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -83,7 +82,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -220,7 +219,6 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `template_create_request` | [**TemplateCreateRequest**](TemplateCreateRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -239,7 +237,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -339,7 +337,6 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `template_create_embedded_draft_request` | [**TemplateCreateEmbeddedDraftRequest**](TemplateCreateEmbeddedDraftRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -358,7 +355,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -402,7 +399,6 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `template_id` | **str** | The id of the Template to delete. | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -421,7 +417,7 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -808,7 +804,6 @@ with ApiClient(configuration) as api_client: | ---- | ---- | ----------- | ----- | | `template_id` | **str** | The id of the Template to remove the Account's access to. | | | `template_remove_user_request` | [**TemplateRemoveUserRequest**](TemplateRemoveUserRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -827,7 +822,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -892,7 +887,6 @@ with ApiClient(configuration) as api_client: | ---- | ---- | ----------- | ----- | | `template_id` | **str** | The ID of the template whose files to update. | | | `template_update_files_request` | [**TemplateUpdateFilesRequest**](TemplateUpdateFilesRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -911,7 +905,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/python/docs/UnclaimedDraftApi.md b/sdks/python/docs/UnclaimedDraftApi.md index bd207313e..62c15dc8e 100644 --- a/sdks/python/docs/UnclaimedDraftApi.md +++ b/sdks/python/docs/UnclaimedDraftApi.md @@ -72,7 +72,6 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `unclaimed_draft_create_request` | [**UnclaimedDraftCreateRequest**](UnclaimedDraftCreateRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -91,7 +90,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -153,7 +152,6 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `unclaimed_draft_create_embedded_request` | [**UnclaimedDraftCreateEmbeddedRequest**](UnclaimedDraftCreateEmbeddedRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -172,7 +170,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -257,7 +255,6 @@ with ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `unclaimed_draft_create_embedded_with_template_request` | [**UnclaimedDraftCreateEmbeddedWithTemplateRequest**](UnclaimedDraftCreateEmbeddedWithTemplateRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -276,7 +273,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -334,7 +331,6 @@ with ApiClient(configuration) as api_client: | ---- | ---- | ----------- | ----- | | `signature_request_id` | **str** | The ID of the signature request to edit and resend. | | | `unclaimed_draft_edit_and_resend_request` | [**UnclaimedDraftEditAndResendRequest**](UnclaimedDraftEditAndResendRequest.md) | | | -| `idempotency_key` | **str** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -353,7 +349,7 @@ with ApiClient(configuration) as api_client: | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
* Idempotent-Replayed -
| +**200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
| **4XX** | failed_operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/python/dropbox_sign/api/account_api.py b/sdks/python/dropbox_sign/api/account_api.py index 3b6ce8a0c..887a72b51 100644 --- a/sdks/python/dropbox_sign/api/account_api.py +++ b/sdks/python/dropbox_sign/api/account_api.py @@ -49,12 +49,6 @@ def __init__(self, api_client=None) -> None: def account_create( self, account_create_request: AccountCreateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -75,8 +69,6 @@ def account_create( :param account_create_request: (required) :type account_create_request: AccountCreateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -101,7 +93,6 @@ def account_create( _param = self._account_create_serialize( account_create_request=account_create_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -126,12 +117,6 @@ def account_create( def account_create_with_http_info( self, account_create_request: AccountCreateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -152,8 +137,6 @@ def account_create_with_http_info( :param account_create_request: (required) :type account_create_request: AccountCreateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -178,7 +161,6 @@ def account_create_with_http_info( _param = self._account_create_serialize( account_create_request=account_create_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -203,12 +185,6 @@ def account_create_with_http_info( def account_create_without_preload_content( self, account_create_request: AccountCreateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -229,8 +205,6 @@ def account_create_without_preload_content( :param account_create_request: (required) :type account_create_request: AccountCreateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -255,7 +229,6 @@ def account_create_without_preload_content( _param = self._account_create_serialize( account_create_request=account_create_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -275,7 +248,6 @@ def account_create_without_preload_content( def _account_create_serialize( self, account_create_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -320,8 +292,6 @@ def _account_create_serialize( # process the path parameters # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if account_create_request is not None and has_files is False: @@ -668,12 +638,6 @@ def _account_get_serialize( def account_update( self, account_update_request: AccountUpdateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -694,8 +658,6 @@ def account_update( :param account_update_request: (required) :type account_update_request: AccountUpdateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -720,7 +682,6 @@ def account_update( _param = self._account_update_serialize( account_update_request=account_update_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -745,12 +706,6 @@ def account_update( def account_update_with_http_info( self, account_update_request: AccountUpdateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -771,8 +726,6 @@ def account_update_with_http_info( :param account_update_request: (required) :type account_update_request: AccountUpdateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -797,7 +750,6 @@ def account_update_with_http_info( _param = self._account_update_serialize( account_update_request=account_update_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -822,12 +774,6 @@ def account_update_with_http_info( def account_update_without_preload_content( self, account_update_request: AccountUpdateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -848,8 +794,6 @@ def account_update_without_preload_content( :param account_update_request: (required) :type account_update_request: AccountUpdateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -874,7 +818,6 @@ def account_update_without_preload_content( _param = self._account_update_serialize( account_update_request=account_update_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -894,7 +837,6 @@ def account_update_without_preload_content( def _account_update_serialize( self, account_update_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -939,8 +881,6 @@ def _account_update_serialize( # process the path parameters # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if account_update_request is not None and has_files is False: @@ -984,12 +924,6 @@ def _account_update_serialize( def account_verify( self, account_verify_request: AccountVerifyRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1010,8 +944,6 @@ def account_verify( :param account_verify_request: (required) :type account_verify_request: AccountVerifyRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1036,7 +968,6 @@ def account_verify( _param = self._account_verify_serialize( account_verify_request=account_verify_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1061,12 +992,6 @@ def account_verify( def account_verify_with_http_info( self, account_verify_request: AccountVerifyRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1087,8 +1012,6 @@ def account_verify_with_http_info( :param account_verify_request: (required) :type account_verify_request: AccountVerifyRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1113,7 +1036,6 @@ def account_verify_with_http_info( _param = self._account_verify_serialize( account_verify_request=account_verify_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1138,12 +1060,6 @@ def account_verify_with_http_info( def account_verify_without_preload_content( self, account_verify_request: AccountVerifyRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1164,8 +1080,6 @@ def account_verify_without_preload_content( :param account_verify_request: (required) :type account_verify_request: AccountVerifyRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1190,7 +1104,6 @@ def account_verify_without_preload_content( _param = self._account_verify_serialize( account_verify_request=account_verify_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1210,7 +1123,6 @@ def account_verify_without_preload_content( def _account_verify_serialize( self, account_verify_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -1255,8 +1167,6 @@ def _account_verify_serialize( # process the path parameters # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if account_verify_request is not None and has_files is False: diff --git a/sdks/python/dropbox_sign/api/api_app_api.py b/sdks/python/dropbox_sign/api/api_app_api.py index 9a32cd3a1..b626413f4 100644 --- a/sdks/python/dropbox_sign/api/api_app_api.py +++ b/sdks/python/dropbox_sign/api/api_app_api.py @@ -47,12 +47,6 @@ def __init__(self, api_client=None) -> None: def api_app_create( self, api_app_create_request: ApiAppCreateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -73,8 +67,6 @@ def api_app_create( :param api_app_create_request: (required) :type api_app_create_request: ApiAppCreateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -99,7 +91,6 @@ def api_app_create( _param = self._api_app_create_serialize( api_app_create_request=api_app_create_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -124,12 +115,6 @@ def api_app_create( def api_app_create_with_http_info( self, api_app_create_request: ApiAppCreateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -150,8 +135,6 @@ def api_app_create_with_http_info( :param api_app_create_request: (required) :type api_app_create_request: ApiAppCreateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -176,7 +159,6 @@ def api_app_create_with_http_info( _param = self._api_app_create_serialize( api_app_create_request=api_app_create_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -201,12 +183,6 @@ def api_app_create_with_http_info( def api_app_create_without_preload_content( self, api_app_create_request: ApiAppCreateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -227,8 +203,6 @@ def api_app_create_without_preload_content( :param api_app_create_request: (required) :type api_app_create_request: ApiAppCreateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -253,7 +227,6 @@ def api_app_create_without_preload_content( _param = self._api_app_create_serialize( api_app_create_request=api_app_create_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -273,7 +246,6 @@ def api_app_create_without_preload_content( def _api_app_create_serialize( self, api_app_create_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -318,8 +290,6 @@ def _api_app_create_serialize( # process the path parameters # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if api_app_create_request is not None and has_files is False: @@ -1189,12 +1159,6 @@ def api_app_update( StrictStr, Field(description="The client id of the API App to update.") ], api_app_update_request: ApiAppUpdateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1217,8 +1181,6 @@ def api_app_update( :type client_id: str :param api_app_update_request: (required) :type api_app_update_request: ApiAppUpdateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1244,7 +1206,6 @@ def api_app_update( _param = self._api_app_update_serialize( client_id=client_id, api_app_update_request=api_app_update_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1272,12 +1233,6 @@ def api_app_update_with_http_info( StrictStr, Field(description="The client id of the API App to update.") ], api_app_update_request: ApiAppUpdateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1300,8 +1255,6 @@ def api_app_update_with_http_info( :type client_id: str :param api_app_update_request: (required) :type api_app_update_request: ApiAppUpdateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1327,7 +1280,6 @@ def api_app_update_with_http_info( _param = self._api_app_update_serialize( client_id=client_id, api_app_update_request=api_app_update_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1355,12 +1307,6 @@ def api_app_update_without_preload_content( StrictStr, Field(description="The client id of the API App to update.") ], api_app_update_request: ApiAppUpdateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1383,8 +1329,6 @@ def api_app_update_without_preload_content( :type client_id: str :param api_app_update_request: (required) :type api_app_update_request: ApiAppUpdateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1410,7 +1354,6 @@ def api_app_update_without_preload_content( _param = self._api_app_update_serialize( client_id=client_id, api_app_update_request=api_app_update_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1431,7 +1374,6 @@ def _api_app_update_serialize( self, client_id, api_app_update_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -1478,8 +1420,6 @@ def _api_app_update_serialize( _path_params["client_id"] = client_id # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if api_app_update_request is not None and has_files is False: diff --git a/sdks/python/dropbox_sign/api/document_api.py b/sdks/python/dropbox_sign/api/document_api.py index d7de619d2..eb92dc1c2 100644 --- a/sdks/python/dropbox_sign/api/document_api.py +++ b/sdks/python/dropbox_sign/api/document_api.py @@ -17,9 +17,6 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field -from typing import Optional -from typing_extensions import Annotated from dropbox_sign.models.document_field_detection_request import ( DocumentFieldDetectionRequest, ) @@ -49,12 +46,6 @@ def __init__(self, api_client=None) -> None: def document_detect_fields( self, document_field_detection_request: DocumentFieldDetectionRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -75,8 +66,6 @@ def document_detect_fields( :param document_field_detection_request: (required) :type document_field_detection_request: DocumentFieldDetectionRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -101,7 +90,6 @@ def document_detect_fields( _param = self._document_detect_fields_serialize( document_field_detection_request=document_field_detection_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -126,12 +114,6 @@ def document_detect_fields( def document_detect_fields_with_http_info( self, document_field_detection_request: DocumentFieldDetectionRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -152,8 +134,6 @@ def document_detect_fields_with_http_info( :param document_field_detection_request: (required) :type document_field_detection_request: DocumentFieldDetectionRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -178,7 +158,6 @@ def document_detect_fields_with_http_info( _param = self._document_detect_fields_serialize( document_field_detection_request=document_field_detection_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -203,12 +182,6 @@ def document_detect_fields_with_http_info( def document_detect_fields_without_preload_content( self, document_field_detection_request: DocumentFieldDetectionRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -229,8 +202,6 @@ def document_detect_fields_without_preload_content( :param document_field_detection_request: (required) :type document_field_detection_request: DocumentFieldDetectionRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -255,7 +226,6 @@ def document_detect_fields_without_preload_content( _param = self._document_detect_fields_serialize( document_field_detection_request=document_field_detection_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -275,7 +245,6 @@ def document_detect_fields_without_preload_content( def _document_detect_fields_serialize( self, document_field_detection_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -320,8 +289,6 @@ def _document_detect_fields_serialize( # process the path parameters # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if document_field_detection_request is not None and has_files is False: diff --git a/sdks/python/dropbox_sign/api/embedded_api.py b/sdks/python/dropbox_sign/api/embedded_api.py index c6c51e790..1a79db1be 100644 --- a/sdks/python/dropbox_sign/api/embedded_api.py +++ b/sdks/python/dropbox_sign/api/embedded_api.py @@ -18,7 +18,6 @@ from typing_extensions import Annotated from pydantic import Field, StrictStr -from typing import Optional from typing_extensions import Annotated from dropbox_sign.models.embedded_edit_url_request import EmbeddedEditUrlRequest from dropbox_sign.models.embedded_edit_url_response import EmbeddedEditUrlResponse @@ -49,12 +48,6 @@ def embedded_edit_url( StrictStr, Field(description="The id of the template to edit.") ], embedded_edit_url_request: EmbeddedEditUrlRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -77,8 +70,6 @@ def embedded_edit_url( :type template_id: str :param embedded_edit_url_request: (required) :type embedded_edit_url_request: EmbeddedEditUrlRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -104,7 +95,6 @@ def embedded_edit_url( _param = self._embedded_edit_url_serialize( template_id=template_id, embedded_edit_url_request=embedded_edit_url_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -132,12 +122,6 @@ def embedded_edit_url_with_http_info( StrictStr, Field(description="The id of the template to edit.") ], embedded_edit_url_request: EmbeddedEditUrlRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -160,8 +144,6 @@ def embedded_edit_url_with_http_info( :type template_id: str :param embedded_edit_url_request: (required) :type embedded_edit_url_request: EmbeddedEditUrlRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -187,7 +169,6 @@ def embedded_edit_url_with_http_info( _param = self._embedded_edit_url_serialize( template_id=template_id, embedded_edit_url_request=embedded_edit_url_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -215,12 +196,6 @@ def embedded_edit_url_without_preload_content( StrictStr, Field(description="The id of the template to edit.") ], embedded_edit_url_request: EmbeddedEditUrlRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -243,8 +218,6 @@ def embedded_edit_url_without_preload_content( :type template_id: str :param embedded_edit_url_request: (required) :type embedded_edit_url_request: EmbeddedEditUrlRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -270,7 +243,6 @@ def embedded_edit_url_without_preload_content( _param = self._embedded_edit_url_serialize( template_id=template_id, embedded_edit_url_request=embedded_edit_url_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -291,7 +263,6 @@ def _embedded_edit_url_serialize( self, template_id, embedded_edit_url_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -338,8 +309,6 @@ def _embedded_edit_url_serialize( _path_params["template_id"] = template_id # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if embedded_edit_url_request is not None and has_files is False: diff --git a/sdks/python/dropbox_sign/api/fax_api.py b/sdks/python/dropbox_sign/api/fax_api.py index 38af47068..682b26e40 100644 --- a/sdks/python/dropbox_sign/api/fax_api.py +++ b/sdks/python/dropbox_sign/api/fax_api.py @@ -1111,12 +1111,6 @@ def _fax_list_serialize( def fax_send( self, fax_send_request: FaxSendRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1137,8 +1131,6 @@ def fax_send( :param fax_send_request: (required) :type fax_send_request: FaxSendRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1163,7 +1155,6 @@ def fax_send( _param = self._fax_send_serialize( fax_send_request=fax_send_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1188,12 +1179,6 @@ def fax_send( def fax_send_with_http_info( self, fax_send_request: FaxSendRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1214,8 +1199,6 @@ def fax_send_with_http_info( :param fax_send_request: (required) :type fax_send_request: FaxSendRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1240,7 +1223,6 @@ def fax_send_with_http_info( _param = self._fax_send_serialize( fax_send_request=fax_send_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1265,12 +1247,6 @@ def fax_send_with_http_info( def fax_send_without_preload_content( self, fax_send_request: FaxSendRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1291,8 +1267,6 @@ def fax_send_without_preload_content( :param fax_send_request: (required) :type fax_send_request: FaxSendRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1317,7 +1291,6 @@ def fax_send_without_preload_content( _param = self._fax_send_serialize( fax_send_request=fax_send_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1337,7 +1310,6 @@ def fax_send_without_preload_content( def _fax_send_serialize( self, fax_send_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -1382,8 +1354,6 @@ def _fax_send_serialize( # process the path parameters # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if fax_send_request is not None and has_files is False: diff --git a/sdks/python/dropbox_sign/api/fax_line_api.py b/sdks/python/dropbox_sign/api/fax_line_api.py index 89989aa9c..f752698b0 100644 --- a/sdks/python/dropbox_sign/api/fax_line_api.py +++ b/sdks/python/dropbox_sign/api/fax_line_api.py @@ -52,12 +52,6 @@ def __init__(self, api_client=None) -> None: def fax_line_add_user( self, fax_line_add_user_request: FaxLineAddUserRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -78,8 +72,6 @@ def fax_line_add_user( :param fax_line_add_user_request: (required) :type fax_line_add_user_request: FaxLineAddUserRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -104,7 +96,6 @@ def fax_line_add_user( _param = self._fax_line_add_user_serialize( fax_line_add_user_request=fax_line_add_user_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -129,12 +120,6 @@ def fax_line_add_user( def fax_line_add_user_with_http_info( self, fax_line_add_user_request: FaxLineAddUserRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -155,8 +140,6 @@ def fax_line_add_user_with_http_info( :param fax_line_add_user_request: (required) :type fax_line_add_user_request: FaxLineAddUserRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -181,7 +164,6 @@ def fax_line_add_user_with_http_info( _param = self._fax_line_add_user_serialize( fax_line_add_user_request=fax_line_add_user_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -206,12 +188,6 @@ def fax_line_add_user_with_http_info( def fax_line_add_user_without_preload_content( self, fax_line_add_user_request: FaxLineAddUserRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -232,8 +208,6 @@ def fax_line_add_user_without_preload_content( :param fax_line_add_user_request: (required) :type fax_line_add_user_request: FaxLineAddUserRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -258,7 +232,6 @@ def fax_line_add_user_without_preload_content( _param = self._fax_line_add_user_serialize( fax_line_add_user_request=fax_line_add_user_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -278,7 +251,6 @@ def fax_line_add_user_without_preload_content( def _fax_line_add_user_serialize( self, fax_line_add_user_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -323,8 +295,6 @@ def _fax_line_add_user_serialize( # process the path parameters # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if fax_line_add_user_request is not None and has_files is False: @@ -699,12 +669,6 @@ def _fax_line_area_code_get_serialize( def fax_line_create( self, fax_line_create_request: FaxLineCreateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -725,8 +689,6 @@ def fax_line_create( :param fax_line_create_request: (required) :type fax_line_create_request: FaxLineCreateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -751,7 +713,6 @@ def fax_line_create( _param = self._fax_line_create_serialize( fax_line_create_request=fax_line_create_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -776,12 +737,6 @@ def fax_line_create( def fax_line_create_with_http_info( self, fax_line_create_request: FaxLineCreateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -802,8 +757,6 @@ def fax_line_create_with_http_info( :param fax_line_create_request: (required) :type fax_line_create_request: FaxLineCreateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -828,7 +781,6 @@ def fax_line_create_with_http_info( _param = self._fax_line_create_serialize( fax_line_create_request=fax_line_create_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -853,12 +805,6 @@ def fax_line_create_with_http_info( def fax_line_create_without_preload_content( self, fax_line_create_request: FaxLineCreateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -879,8 +825,6 @@ def fax_line_create_without_preload_content( :param fax_line_create_request: (required) :type fax_line_create_request: FaxLineCreateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -905,7 +849,6 @@ def fax_line_create_without_preload_content( _param = self._fax_line_create_serialize( fax_line_create_request=fax_line_create_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -925,7 +868,6 @@ def fax_line_create_without_preload_content( def _fax_line_create_serialize( self, fax_line_create_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -970,8 +912,6 @@ def _fax_line_create_serialize( # process the path parameters # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if fax_line_create_request is not None and has_files is False: @@ -1915,12 +1855,6 @@ def _fax_line_list_serialize( def fax_line_remove_user( self, fax_line_remove_user_request: FaxLineRemoveUserRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1941,8 +1875,6 @@ def fax_line_remove_user( :param fax_line_remove_user_request: (required) :type fax_line_remove_user_request: FaxLineRemoveUserRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1967,7 +1899,6 @@ def fax_line_remove_user( _param = self._fax_line_remove_user_serialize( fax_line_remove_user_request=fax_line_remove_user_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1992,12 +1923,6 @@ def fax_line_remove_user( def fax_line_remove_user_with_http_info( self, fax_line_remove_user_request: FaxLineRemoveUserRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2018,8 +1943,6 @@ def fax_line_remove_user_with_http_info( :param fax_line_remove_user_request: (required) :type fax_line_remove_user_request: FaxLineRemoveUserRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2044,7 +1967,6 @@ def fax_line_remove_user_with_http_info( _param = self._fax_line_remove_user_serialize( fax_line_remove_user_request=fax_line_remove_user_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2069,12 +1991,6 @@ def fax_line_remove_user_with_http_info( def fax_line_remove_user_without_preload_content( self, fax_line_remove_user_request: FaxLineRemoveUserRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2095,8 +2011,6 @@ def fax_line_remove_user_without_preload_content( :param fax_line_remove_user_request: (required) :type fax_line_remove_user_request: FaxLineRemoveUserRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2121,7 +2035,6 @@ def fax_line_remove_user_without_preload_content( _param = self._fax_line_remove_user_serialize( fax_line_remove_user_request=fax_line_remove_user_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2141,7 +2054,6 @@ def fax_line_remove_user_without_preload_content( def _fax_line_remove_user_serialize( self, fax_line_remove_user_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -2186,8 +2098,6 @@ def _fax_line_remove_user_serialize( # process the path parameters # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if fax_line_remove_user_request is not None and has_files is False: diff --git a/sdks/python/dropbox_sign/api/report_api.py b/sdks/python/dropbox_sign/api/report_api.py index d43e3c4e8..38b120b2a 100644 --- a/sdks/python/dropbox_sign/api/report_api.py +++ b/sdks/python/dropbox_sign/api/report_api.py @@ -17,9 +17,6 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field -from typing import Optional -from typing_extensions import Annotated from dropbox_sign.models.report_create_request import ReportCreateRequest from dropbox_sign.models.report_create_response import ReportCreateResponse @@ -45,12 +42,6 @@ def __init__(self, api_client=None) -> None: def report_create( self, report_create_request: ReportCreateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -71,8 +62,6 @@ def report_create( :param report_create_request: (required) :type report_create_request: ReportCreateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -97,7 +86,6 @@ def report_create( _param = self._report_create_serialize( report_create_request=report_create_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -122,12 +110,6 @@ def report_create( def report_create_with_http_info( self, report_create_request: ReportCreateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -148,8 +130,6 @@ def report_create_with_http_info( :param report_create_request: (required) :type report_create_request: ReportCreateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -174,7 +154,6 @@ def report_create_with_http_info( _param = self._report_create_serialize( report_create_request=report_create_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -199,12 +178,6 @@ def report_create_with_http_info( def report_create_without_preload_content( self, report_create_request: ReportCreateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -225,8 +198,6 @@ def report_create_without_preload_content( :param report_create_request: (required) :type report_create_request: ReportCreateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -251,7 +222,6 @@ def report_create_without_preload_content( _param = self._report_create_serialize( report_create_request=report_create_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -271,7 +241,6 @@ def report_create_without_preload_content( def _report_create_serialize( self, report_create_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -316,8 +285,6 @@ def _report_create_serialize( # process the path parameters # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if report_create_request is not None and has_files is False: diff --git a/sdks/python/dropbox_sign/api/signature_request_api.py b/sdks/python/dropbox_sign/api/signature_request_api.py index 310e5b0fb..77f3c71bd 100644 --- a/sdks/python/dropbox_sign/api/signature_request_api.py +++ b/sdks/python/dropbox_sign/api/signature_request_api.py @@ -88,12 +88,6 @@ def __init__(self, api_client=None) -> None: def signature_request_bulk_create_embedded_with_template( self, signature_request_bulk_create_embedded_with_template_request: SignatureRequestBulkCreateEmbeddedWithTemplateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -114,8 +108,6 @@ def signature_request_bulk_create_embedded_with_template( :param signature_request_bulk_create_embedded_with_template_request: (required) :type signature_request_bulk_create_embedded_with_template_request: SignatureRequestBulkCreateEmbeddedWithTemplateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -140,7 +132,6 @@ def signature_request_bulk_create_embedded_with_template( _param = self._signature_request_bulk_create_embedded_with_template_serialize( signature_request_bulk_create_embedded_with_template_request=signature_request_bulk_create_embedded_with_template_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -165,12 +156,6 @@ def signature_request_bulk_create_embedded_with_template( def signature_request_bulk_create_embedded_with_template_with_http_info( self, signature_request_bulk_create_embedded_with_template_request: SignatureRequestBulkCreateEmbeddedWithTemplateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -191,8 +176,6 @@ def signature_request_bulk_create_embedded_with_template_with_http_info( :param signature_request_bulk_create_embedded_with_template_request: (required) :type signature_request_bulk_create_embedded_with_template_request: SignatureRequestBulkCreateEmbeddedWithTemplateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -217,7 +200,6 @@ def signature_request_bulk_create_embedded_with_template_with_http_info( _param = self._signature_request_bulk_create_embedded_with_template_serialize( signature_request_bulk_create_embedded_with_template_request=signature_request_bulk_create_embedded_with_template_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -242,12 +224,6 @@ def signature_request_bulk_create_embedded_with_template_with_http_info( def signature_request_bulk_create_embedded_with_template_without_preload_content( self, signature_request_bulk_create_embedded_with_template_request: SignatureRequestBulkCreateEmbeddedWithTemplateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -268,8 +244,6 @@ def signature_request_bulk_create_embedded_with_template_without_preload_content :param signature_request_bulk_create_embedded_with_template_request: (required) :type signature_request_bulk_create_embedded_with_template_request: SignatureRequestBulkCreateEmbeddedWithTemplateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -294,7 +268,6 @@ def signature_request_bulk_create_embedded_with_template_without_preload_content _param = self._signature_request_bulk_create_embedded_with_template_serialize( signature_request_bulk_create_embedded_with_template_request=signature_request_bulk_create_embedded_with_template_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -314,7 +287,6 @@ def signature_request_bulk_create_embedded_with_template_without_preload_content def _signature_request_bulk_create_embedded_with_template_serialize( self, signature_request_bulk_create_embedded_with_template_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -359,8 +331,6 @@ def _signature_request_bulk_create_embedded_with_template_serialize( # process the path parameters # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if ( @@ -407,12 +377,6 @@ def _signature_request_bulk_create_embedded_with_template_serialize( def signature_request_bulk_send_with_template( self, signature_request_bulk_send_with_template_request: SignatureRequestBulkSendWithTemplateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -433,8 +397,6 @@ def signature_request_bulk_send_with_template( :param signature_request_bulk_send_with_template_request: (required) :type signature_request_bulk_send_with_template_request: SignatureRequestBulkSendWithTemplateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -459,7 +421,6 @@ def signature_request_bulk_send_with_template( _param = self._signature_request_bulk_send_with_template_serialize( signature_request_bulk_send_with_template_request=signature_request_bulk_send_with_template_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -484,12 +445,6 @@ def signature_request_bulk_send_with_template( def signature_request_bulk_send_with_template_with_http_info( self, signature_request_bulk_send_with_template_request: SignatureRequestBulkSendWithTemplateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -510,8 +465,6 @@ def signature_request_bulk_send_with_template_with_http_info( :param signature_request_bulk_send_with_template_request: (required) :type signature_request_bulk_send_with_template_request: SignatureRequestBulkSendWithTemplateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -536,7 +489,6 @@ def signature_request_bulk_send_with_template_with_http_info( _param = self._signature_request_bulk_send_with_template_serialize( signature_request_bulk_send_with_template_request=signature_request_bulk_send_with_template_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -561,12 +513,6 @@ def signature_request_bulk_send_with_template_with_http_info( def signature_request_bulk_send_with_template_without_preload_content( self, signature_request_bulk_send_with_template_request: SignatureRequestBulkSendWithTemplateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -587,8 +533,6 @@ def signature_request_bulk_send_with_template_without_preload_content( :param signature_request_bulk_send_with_template_request: (required) :type signature_request_bulk_send_with_template_request: SignatureRequestBulkSendWithTemplateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -613,7 +557,6 @@ def signature_request_bulk_send_with_template_without_preload_content( _param = self._signature_request_bulk_send_with_template_serialize( signature_request_bulk_send_with_template_request=signature_request_bulk_send_with_template_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -633,7 +576,6 @@ def signature_request_bulk_send_with_template_without_preload_content( def _signature_request_bulk_send_with_template_serialize( self, signature_request_bulk_send_with_template_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -678,8 +620,6 @@ def _signature_request_bulk_send_with_template_serialize( # process the path parameters # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if ( @@ -729,12 +669,6 @@ def signature_request_cancel( StrictStr, Field(description="The id of the incomplete SignatureRequest to cancel."), ], - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -755,8 +689,6 @@ def signature_request_cancel( :param signature_request_id: The id of the incomplete SignatureRequest to cancel. (required) :type signature_request_id: str - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -781,7 +713,6 @@ def signature_request_cancel( _param = self._signature_request_cancel_serialize( signature_request_id=signature_request_id, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -809,12 +740,6 @@ def signature_request_cancel_with_http_info( StrictStr, Field(description="The id of the incomplete SignatureRequest to cancel."), ], - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -835,8 +760,6 @@ def signature_request_cancel_with_http_info( :param signature_request_id: The id of the incomplete SignatureRequest to cancel. (required) :type signature_request_id: str - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -861,7 +784,6 @@ def signature_request_cancel_with_http_info( _param = self._signature_request_cancel_serialize( signature_request_id=signature_request_id, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -889,12 +811,6 @@ def signature_request_cancel_without_preload_content( StrictStr, Field(description="The id of the incomplete SignatureRequest to cancel."), ], - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -915,8 +831,6 @@ def signature_request_cancel_without_preload_content( :param signature_request_id: The id of the incomplete SignatureRequest to cancel. (required) :type signature_request_id: str - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -941,7 +855,6 @@ def signature_request_cancel_without_preload_content( _param = self._signature_request_cancel_serialize( signature_request_id=signature_request_id, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -961,7 +874,6 @@ def signature_request_cancel_without_preload_content( def _signature_request_cancel_serialize( self, signature_request_id, - idempotency_key, _request_auth, _content_type, _headers, @@ -986,8 +898,6 @@ def _signature_request_cancel_serialize( _path_params["signature_request_id"] = signature_request_id # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter @@ -1019,12 +929,6 @@ def _signature_request_cancel_serialize( def signature_request_create_embedded( self, signature_request_create_embedded_request: SignatureRequestCreateEmbeddedRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1045,8 +949,6 @@ def signature_request_create_embedded( :param signature_request_create_embedded_request: (required) :type signature_request_create_embedded_request: SignatureRequestCreateEmbeddedRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1071,7 +973,6 @@ def signature_request_create_embedded( _param = self._signature_request_create_embedded_serialize( signature_request_create_embedded_request=signature_request_create_embedded_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1096,12 +997,6 @@ def signature_request_create_embedded( def signature_request_create_embedded_with_http_info( self, signature_request_create_embedded_request: SignatureRequestCreateEmbeddedRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1122,8 +1017,6 @@ def signature_request_create_embedded_with_http_info( :param signature_request_create_embedded_request: (required) :type signature_request_create_embedded_request: SignatureRequestCreateEmbeddedRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1148,7 +1041,6 @@ def signature_request_create_embedded_with_http_info( _param = self._signature_request_create_embedded_serialize( signature_request_create_embedded_request=signature_request_create_embedded_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1173,12 +1065,6 @@ def signature_request_create_embedded_with_http_info( def signature_request_create_embedded_without_preload_content( self, signature_request_create_embedded_request: SignatureRequestCreateEmbeddedRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1199,8 +1085,6 @@ def signature_request_create_embedded_without_preload_content( :param signature_request_create_embedded_request: (required) :type signature_request_create_embedded_request: SignatureRequestCreateEmbeddedRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1225,7 +1109,6 @@ def signature_request_create_embedded_without_preload_content( _param = self._signature_request_create_embedded_serialize( signature_request_create_embedded_request=signature_request_create_embedded_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1245,7 +1128,6 @@ def signature_request_create_embedded_without_preload_content( def _signature_request_create_embedded_serialize( self, signature_request_create_embedded_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -1290,8 +1172,6 @@ def _signature_request_create_embedded_serialize( # process the path parameters # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if signature_request_create_embedded_request is not None and has_files is False: @@ -1335,12 +1215,6 @@ def _signature_request_create_embedded_serialize( def signature_request_create_embedded_with_template( self, signature_request_create_embedded_with_template_request: SignatureRequestCreateEmbeddedWithTemplateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1361,8 +1235,6 @@ def signature_request_create_embedded_with_template( :param signature_request_create_embedded_with_template_request: (required) :type signature_request_create_embedded_with_template_request: SignatureRequestCreateEmbeddedWithTemplateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1387,7 +1259,6 @@ def signature_request_create_embedded_with_template( _param = self._signature_request_create_embedded_with_template_serialize( signature_request_create_embedded_with_template_request=signature_request_create_embedded_with_template_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1412,12 +1283,6 @@ def signature_request_create_embedded_with_template( def signature_request_create_embedded_with_template_with_http_info( self, signature_request_create_embedded_with_template_request: SignatureRequestCreateEmbeddedWithTemplateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1438,8 +1303,6 @@ def signature_request_create_embedded_with_template_with_http_info( :param signature_request_create_embedded_with_template_request: (required) :type signature_request_create_embedded_with_template_request: SignatureRequestCreateEmbeddedWithTemplateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1464,7 +1327,6 @@ def signature_request_create_embedded_with_template_with_http_info( _param = self._signature_request_create_embedded_with_template_serialize( signature_request_create_embedded_with_template_request=signature_request_create_embedded_with_template_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1489,12 +1351,6 @@ def signature_request_create_embedded_with_template_with_http_info( def signature_request_create_embedded_with_template_without_preload_content( self, signature_request_create_embedded_with_template_request: SignatureRequestCreateEmbeddedWithTemplateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1515,8 +1371,6 @@ def signature_request_create_embedded_with_template_without_preload_content( :param signature_request_create_embedded_with_template_request: (required) :type signature_request_create_embedded_with_template_request: SignatureRequestCreateEmbeddedWithTemplateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1541,7 +1395,6 @@ def signature_request_create_embedded_with_template_without_preload_content( _param = self._signature_request_create_embedded_with_template_serialize( signature_request_create_embedded_with_template_request=signature_request_create_embedded_with_template_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1561,7 +1414,6 @@ def signature_request_create_embedded_with_template_without_preload_content( def _signature_request_create_embedded_with_template_serialize( self, signature_request_create_embedded_with_template_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -1606,8 +1458,6 @@ def _signature_request_create_embedded_with_template_serialize( # process the path parameters # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if ( @@ -1657,12 +1507,6 @@ def signature_request_edit( StrictStr, Field(description="The id of the SignatureRequest to edit.") ], signature_request_edit_request: SignatureRequestEditRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1685,8 +1529,6 @@ def signature_request_edit( :type signature_request_id: str :param signature_request_edit_request: (required) :type signature_request_edit_request: SignatureRequestEditRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1712,7 +1554,6 @@ def signature_request_edit( _param = self._signature_request_edit_serialize( signature_request_id=signature_request_id, signature_request_edit_request=signature_request_edit_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1740,12 +1581,6 @@ def signature_request_edit_with_http_info( StrictStr, Field(description="The id of the SignatureRequest to edit.") ], signature_request_edit_request: SignatureRequestEditRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1768,8 +1603,6 @@ def signature_request_edit_with_http_info( :type signature_request_id: str :param signature_request_edit_request: (required) :type signature_request_edit_request: SignatureRequestEditRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1795,7 +1628,6 @@ def signature_request_edit_with_http_info( _param = self._signature_request_edit_serialize( signature_request_id=signature_request_id, signature_request_edit_request=signature_request_edit_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1823,12 +1655,6 @@ def signature_request_edit_without_preload_content( StrictStr, Field(description="The id of the SignatureRequest to edit.") ], signature_request_edit_request: SignatureRequestEditRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1851,8 +1677,6 @@ def signature_request_edit_without_preload_content( :type signature_request_id: str :param signature_request_edit_request: (required) :type signature_request_edit_request: SignatureRequestEditRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1878,7 +1702,6 @@ def signature_request_edit_without_preload_content( _param = self._signature_request_edit_serialize( signature_request_id=signature_request_id, signature_request_edit_request=signature_request_edit_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1899,7 +1722,6 @@ def _signature_request_edit_serialize( self, signature_request_id, signature_request_edit_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -1946,8 +1768,6 @@ def _signature_request_edit_serialize( _path_params["signature_request_id"] = signature_request_id # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if signature_request_edit_request is not None and has_files is False: @@ -1994,12 +1814,6 @@ def signature_request_edit_embedded( StrictStr, Field(description="The id of the SignatureRequest to edit.") ], signature_request_edit_embedded_request: SignatureRequestEditEmbeddedRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2022,8 +1836,6 @@ def signature_request_edit_embedded( :type signature_request_id: str :param signature_request_edit_embedded_request: (required) :type signature_request_edit_embedded_request: SignatureRequestEditEmbeddedRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2049,7 +1861,6 @@ def signature_request_edit_embedded( _param = self._signature_request_edit_embedded_serialize( signature_request_id=signature_request_id, signature_request_edit_embedded_request=signature_request_edit_embedded_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2077,12 +1888,6 @@ def signature_request_edit_embedded_with_http_info( StrictStr, Field(description="The id of the SignatureRequest to edit.") ], signature_request_edit_embedded_request: SignatureRequestEditEmbeddedRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2105,8 +1910,6 @@ def signature_request_edit_embedded_with_http_info( :type signature_request_id: str :param signature_request_edit_embedded_request: (required) :type signature_request_edit_embedded_request: SignatureRequestEditEmbeddedRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2132,7 +1935,6 @@ def signature_request_edit_embedded_with_http_info( _param = self._signature_request_edit_embedded_serialize( signature_request_id=signature_request_id, signature_request_edit_embedded_request=signature_request_edit_embedded_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2160,12 +1962,6 @@ def signature_request_edit_embedded_without_preload_content( StrictStr, Field(description="The id of the SignatureRequest to edit.") ], signature_request_edit_embedded_request: SignatureRequestEditEmbeddedRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2188,8 +1984,6 @@ def signature_request_edit_embedded_without_preload_content( :type signature_request_id: str :param signature_request_edit_embedded_request: (required) :type signature_request_edit_embedded_request: SignatureRequestEditEmbeddedRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2215,7 +2009,6 @@ def signature_request_edit_embedded_without_preload_content( _param = self._signature_request_edit_embedded_serialize( signature_request_id=signature_request_id, signature_request_edit_embedded_request=signature_request_edit_embedded_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2236,7 +2029,6 @@ def _signature_request_edit_embedded_serialize( self, signature_request_id, signature_request_edit_embedded_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -2283,8 +2075,6 @@ def _signature_request_edit_embedded_serialize( _path_params["signature_request_id"] = signature_request_id # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if signature_request_edit_embedded_request is not None and has_files is False: @@ -2331,12 +2121,6 @@ def signature_request_edit_embedded_with_template( StrictStr, Field(description="The id of the SignatureRequest to edit.") ], signature_request_edit_embedded_with_template_request: SignatureRequestEditEmbeddedWithTemplateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2359,8 +2143,6 @@ def signature_request_edit_embedded_with_template( :type signature_request_id: str :param signature_request_edit_embedded_with_template_request: (required) :type signature_request_edit_embedded_with_template_request: SignatureRequestEditEmbeddedWithTemplateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2386,7 +2168,6 @@ def signature_request_edit_embedded_with_template( _param = self._signature_request_edit_embedded_with_template_serialize( signature_request_id=signature_request_id, signature_request_edit_embedded_with_template_request=signature_request_edit_embedded_with_template_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2414,12 +2195,6 @@ def signature_request_edit_embedded_with_template_with_http_info( StrictStr, Field(description="The id of the SignatureRequest to edit.") ], signature_request_edit_embedded_with_template_request: SignatureRequestEditEmbeddedWithTemplateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2442,8 +2217,6 @@ def signature_request_edit_embedded_with_template_with_http_info( :type signature_request_id: str :param signature_request_edit_embedded_with_template_request: (required) :type signature_request_edit_embedded_with_template_request: SignatureRequestEditEmbeddedWithTemplateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2469,7 +2242,6 @@ def signature_request_edit_embedded_with_template_with_http_info( _param = self._signature_request_edit_embedded_with_template_serialize( signature_request_id=signature_request_id, signature_request_edit_embedded_with_template_request=signature_request_edit_embedded_with_template_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2497,12 +2269,6 @@ def signature_request_edit_embedded_with_template_without_preload_content( StrictStr, Field(description="The id of the SignatureRequest to edit.") ], signature_request_edit_embedded_with_template_request: SignatureRequestEditEmbeddedWithTemplateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2525,8 +2291,6 @@ def signature_request_edit_embedded_with_template_without_preload_content( :type signature_request_id: str :param signature_request_edit_embedded_with_template_request: (required) :type signature_request_edit_embedded_with_template_request: SignatureRequestEditEmbeddedWithTemplateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2552,7 +2316,6 @@ def signature_request_edit_embedded_with_template_without_preload_content( _param = self._signature_request_edit_embedded_with_template_serialize( signature_request_id=signature_request_id, signature_request_edit_embedded_with_template_request=signature_request_edit_embedded_with_template_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2573,7 +2336,6 @@ def _signature_request_edit_embedded_with_template_serialize( self, signature_request_id, signature_request_edit_embedded_with_template_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -2620,8 +2382,6 @@ def _signature_request_edit_embedded_with_template_serialize( _path_params["signature_request_id"] = signature_request_id # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if ( @@ -2671,12 +2431,6 @@ def signature_request_edit_with_template( StrictStr, Field(description="The id of the SignatureRequest to edit.") ], signature_request_edit_with_template_request: SignatureRequestEditWithTemplateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2699,8 +2453,6 @@ def signature_request_edit_with_template( :type signature_request_id: str :param signature_request_edit_with_template_request: (required) :type signature_request_edit_with_template_request: SignatureRequestEditWithTemplateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2726,7 +2478,6 @@ def signature_request_edit_with_template( _param = self._signature_request_edit_with_template_serialize( signature_request_id=signature_request_id, signature_request_edit_with_template_request=signature_request_edit_with_template_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2754,12 +2505,6 @@ def signature_request_edit_with_template_with_http_info( StrictStr, Field(description="The id of the SignatureRequest to edit.") ], signature_request_edit_with_template_request: SignatureRequestEditWithTemplateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2782,8 +2527,6 @@ def signature_request_edit_with_template_with_http_info( :type signature_request_id: str :param signature_request_edit_with_template_request: (required) :type signature_request_edit_with_template_request: SignatureRequestEditWithTemplateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2809,7 +2552,6 @@ def signature_request_edit_with_template_with_http_info( _param = self._signature_request_edit_with_template_serialize( signature_request_id=signature_request_id, signature_request_edit_with_template_request=signature_request_edit_with_template_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2837,12 +2579,6 @@ def signature_request_edit_with_template_without_preload_content( StrictStr, Field(description="The id of the SignatureRequest to edit.") ], signature_request_edit_with_template_request: SignatureRequestEditWithTemplateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2865,8 +2601,6 @@ def signature_request_edit_with_template_without_preload_content( :type signature_request_id: str :param signature_request_edit_with_template_request: (required) :type signature_request_edit_with_template_request: SignatureRequestEditWithTemplateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2892,7 +2626,6 @@ def signature_request_edit_with_template_without_preload_content( _param = self._signature_request_edit_with_template_serialize( signature_request_id=signature_request_id, signature_request_edit_with_template_request=signature_request_edit_with_template_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2913,7 +2646,6 @@ def _signature_request_edit_with_template_serialize( self, signature_request_id, signature_request_edit_with_template_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -2960,8 +2692,6 @@ def _signature_request_edit_with_template_serialize( _path_params["signature_request_id"] = signature_request_id # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if ( @@ -4481,12 +4211,6 @@ def signature_request_release_hold( signature_request_id: Annotated[ StrictStr, Field(description="The id of the SignatureRequest to release.") ], - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4507,8 +4231,6 @@ def signature_request_release_hold( :param signature_request_id: The id of the SignatureRequest to release. (required) :type signature_request_id: str - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4533,7 +4255,6 @@ def signature_request_release_hold( _param = self._signature_request_release_hold_serialize( signature_request_id=signature_request_id, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4560,12 +4281,6 @@ def signature_request_release_hold_with_http_info( signature_request_id: Annotated[ StrictStr, Field(description="The id of the SignatureRequest to release.") ], - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4586,8 +4301,6 @@ def signature_request_release_hold_with_http_info( :param signature_request_id: The id of the SignatureRequest to release. (required) :type signature_request_id: str - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4612,7 +4325,6 @@ def signature_request_release_hold_with_http_info( _param = self._signature_request_release_hold_serialize( signature_request_id=signature_request_id, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4639,12 +4351,6 @@ def signature_request_release_hold_without_preload_content( signature_request_id: Annotated[ StrictStr, Field(description="The id of the SignatureRequest to release.") ], - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4665,8 +4371,6 @@ def signature_request_release_hold_without_preload_content( :param signature_request_id: The id of the SignatureRequest to release. (required) :type signature_request_id: str - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4691,7 +4395,6 @@ def signature_request_release_hold_without_preload_content( _param = self._signature_request_release_hold_serialize( signature_request_id=signature_request_id, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4711,7 +4414,6 @@ def signature_request_release_hold_without_preload_content( def _signature_request_release_hold_serialize( self, signature_request_id, - idempotency_key, _request_auth, _content_type, _headers, @@ -4736,8 +4438,6 @@ def _signature_request_release_hold_serialize( _path_params["signature_request_id"] = signature_request_id # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter @@ -4773,12 +4473,6 @@ def signature_request_remind( Field(description="The id of the SignatureRequest to send a reminder for."), ], signature_request_remind_request: SignatureRequestRemindRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4801,8 +4495,6 @@ def signature_request_remind( :type signature_request_id: str :param signature_request_remind_request: (required) :type signature_request_remind_request: SignatureRequestRemindRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4828,7 +4520,6 @@ def signature_request_remind( _param = self._signature_request_remind_serialize( signature_request_id=signature_request_id, signature_request_remind_request=signature_request_remind_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4857,12 +4548,6 @@ def signature_request_remind_with_http_info( Field(description="The id of the SignatureRequest to send a reminder for."), ], signature_request_remind_request: SignatureRequestRemindRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4885,8 +4570,6 @@ def signature_request_remind_with_http_info( :type signature_request_id: str :param signature_request_remind_request: (required) :type signature_request_remind_request: SignatureRequestRemindRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4912,7 +4595,6 @@ def signature_request_remind_with_http_info( _param = self._signature_request_remind_serialize( signature_request_id=signature_request_id, signature_request_remind_request=signature_request_remind_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4941,12 +4623,6 @@ def signature_request_remind_without_preload_content( Field(description="The id of the SignatureRequest to send a reminder for."), ], signature_request_remind_request: SignatureRequestRemindRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4969,8 +4645,6 @@ def signature_request_remind_without_preload_content( :type signature_request_id: str :param signature_request_remind_request: (required) :type signature_request_remind_request: SignatureRequestRemindRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4996,7 +4670,6 @@ def signature_request_remind_without_preload_content( _param = self._signature_request_remind_serialize( signature_request_id=signature_request_id, signature_request_remind_request=signature_request_remind_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5017,7 +4690,6 @@ def _signature_request_remind_serialize( self, signature_request_id, signature_request_remind_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -5064,8 +4736,6 @@ def _signature_request_remind_serialize( _path_params["signature_request_id"] = signature_request_id # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if signature_request_remind_request is not None and has_files is False: @@ -5111,12 +4781,6 @@ def signature_request_remove( signature_request_id: Annotated[ StrictStr, Field(description="The id of the SignatureRequest to remove.") ], - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5137,8 +4801,6 @@ def signature_request_remove( :param signature_request_id: The id of the SignatureRequest to remove. (required) :type signature_request_id: str - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5163,7 +4825,6 @@ def signature_request_remove( _param = self._signature_request_remove_serialize( signature_request_id=signature_request_id, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5190,12 +4851,6 @@ def signature_request_remove_with_http_info( signature_request_id: Annotated[ StrictStr, Field(description="The id of the SignatureRequest to remove.") ], - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5216,8 +4871,6 @@ def signature_request_remove_with_http_info( :param signature_request_id: The id of the SignatureRequest to remove. (required) :type signature_request_id: str - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5242,7 +4895,6 @@ def signature_request_remove_with_http_info( _param = self._signature_request_remove_serialize( signature_request_id=signature_request_id, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5269,12 +4921,6 @@ def signature_request_remove_without_preload_content( signature_request_id: Annotated[ StrictStr, Field(description="The id of the SignatureRequest to remove.") ], - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5295,8 +4941,6 @@ def signature_request_remove_without_preload_content( :param signature_request_id: The id of the SignatureRequest to remove. (required) :type signature_request_id: str - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5321,7 +4965,6 @@ def signature_request_remove_without_preload_content( _param = self._signature_request_remove_serialize( signature_request_id=signature_request_id, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5341,7 +4984,6 @@ def signature_request_remove_without_preload_content( def _signature_request_remove_serialize( self, signature_request_id, - idempotency_key, _request_auth, _content_type, _headers, @@ -5366,8 +5008,6 @@ def _signature_request_remove_serialize( _path_params["signature_request_id"] = signature_request_id # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter @@ -5399,12 +5039,6 @@ def _signature_request_remove_serialize( def signature_request_send( self, signature_request_send_request: SignatureRequestSendRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5425,8 +5059,6 @@ def signature_request_send( :param signature_request_send_request: (required) :type signature_request_send_request: SignatureRequestSendRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5451,7 +5083,6 @@ def signature_request_send( _param = self._signature_request_send_serialize( signature_request_send_request=signature_request_send_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5476,12 +5107,6 @@ def signature_request_send( def signature_request_send_with_http_info( self, signature_request_send_request: SignatureRequestSendRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5502,8 +5127,6 @@ def signature_request_send_with_http_info( :param signature_request_send_request: (required) :type signature_request_send_request: SignatureRequestSendRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5528,7 +5151,6 @@ def signature_request_send_with_http_info( _param = self._signature_request_send_serialize( signature_request_send_request=signature_request_send_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5553,12 +5175,6 @@ def signature_request_send_with_http_info( def signature_request_send_without_preload_content( self, signature_request_send_request: SignatureRequestSendRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5579,8 +5195,6 @@ def signature_request_send_without_preload_content( :param signature_request_send_request: (required) :type signature_request_send_request: SignatureRequestSendRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5605,7 +5219,6 @@ def signature_request_send_without_preload_content( _param = self._signature_request_send_serialize( signature_request_send_request=signature_request_send_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5625,7 +5238,6 @@ def signature_request_send_without_preload_content( def _signature_request_send_serialize( self, signature_request_send_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -5670,8 +5282,6 @@ def _signature_request_send_serialize( # process the path parameters # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if signature_request_send_request is not None and has_files is False: @@ -5715,12 +5325,6 @@ def _signature_request_send_serialize( def signature_request_send_with_template( self, signature_request_send_with_template_request: SignatureRequestSendWithTemplateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5741,8 +5345,6 @@ def signature_request_send_with_template( :param signature_request_send_with_template_request: (required) :type signature_request_send_with_template_request: SignatureRequestSendWithTemplateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5767,7 +5369,6 @@ def signature_request_send_with_template( _param = self._signature_request_send_with_template_serialize( signature_request_send_with_template_request=signature_request_send_with_template_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5792,12 +5393,6 @@ def signature_request_send_with_template( def signature_request_send_with_template_with_http_info( self, signature_request_send_with_template_request: SignatureRequestSendWithTemplateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5818,8 +5413,6 @@ def signature_request_send_with_template_with_http_info( :param signature_request_send_with_template_request: (required) :type signature_request_send_with_template_request: SignatureRequestSendWithTemplateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5844,7 +5437,6 @@ def signature_request_send_with_template_with_http_info( _param = self._signature_request_send_with_template_serialize( signature_request_send_with_template_request=signature_request_send_with_template_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5869,12 +5461,6 @@ def signature_request_send_with_template_with_http_info( def signature_request_send_with_template_without_preload_content( self, signature_request_send_with_template_request: SignatureRequestSendWithTemplateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5895,8 +5481,6 @@ def signature_request_send_with_template_without_preload_content( :param signature_request_send_with_template_request: (required) :type signature_request_send_with_template_request: SignatureRequestSendWithTemplateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5921,7 +5505,6 @@ def signature_request_send_with_template_without_preload_content( _param = self._signature_request_send_with_template_serialize( signature_request_send_with_template_request=signature_request_send_with_template_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5941,7 +5524,6 @@ def signature_request_send_with_template_without_preload_content( def _signature_request_send_with_template_serialize( self, signature_request_send_with_template_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -5986,8 +5568,6 @@ def _signature_request_send_with_template_serialize( # process the path parameters # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if ( @@ -6037,12 +5617,6 @@ def signature_request_update( StrictStr, Field(description="The id of the SignatureRequest to update.") ], signature_request_update_request: SignatureRequestUpdateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6065,8 +5639,6 @@ def signature_request_update( :type signature_request_id: str :param signature_request_update_request: (required) :type signature_request_update_request: SignatureRequestUpdateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6092,7 +5664,6 @@ def signature_request_update( _param = self._signature_request_update_serialize( signature_request_id=signature_request_id, signature_request_update_request=signature_request_update_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6120,12 +5691,6 @@ def signature_request_update_with_http_info( StrictStr, Field(description="The id of the SignatureRequest to update.") ], signature_request_update_request: SignatureRequestUpdateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6148,8 +5713,6 @@ def signature_request_update_with_http_info( :type signature_request_id: str :param signature_request_update_request: (required) :type signature_request_update_request: SignatureRequestUpdateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6175,7 +5738,6 @@ def signature_request_update_with_http_info( _param = self._signature_request_update_serialize( signature_request_id=signature_request_id, signature_request_update_request=signature_request_update_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6203,12 +5765,6 @@ def signature_request_update_without_preload_content( StrictStr, Field(description="The id of the SignatureRequest to update.") ], signature_request_update_request: SignatureRequestUpdateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6231,8 +5787,6 @@ def signature_request_update_without_preload_content( :type signature_request_id: str :param signature_request_update_request: (required) :type signature_request_update_request: SignatureRequestUpdateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6258,7 +5812,6 @@ def signature_request_update_without_preload_content( _param = self._signature_request_update_serialize( signature_request_id=signature_request_id, signature_request_update_request=signature_request_update_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6279,7 +5832,6 @@ def _signature_request_update_serialize( self, signature_request_id, signature_request_update_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -6326,8 +5878,6 @@ def _signature_request_update_serialize( _path_params["signature_request_id"] = signature_request_id # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if signature_request_update_request is not None and has_files is False: diff --git a/sdks/python/dropbox_sign/api/team_api.py b/sdks/python/dropbox_sign/api/team_api.py index 1024672b1..db6adcc16 100644 --- a/sdks/python/dropbox_sign/api/team_api.py +++ b/sdks/python/dropbox_sign/api/team_api.py @@ -55,12 +55,6 @@ def team_add_member( team_id: Annotated[ Optional[StrictStr], Field(description="The id of the team.") ] = None, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -83,8 +77,6 @@ def team_add_member( :type team_add_member_request: TeamAddMemberRequest :param team_id: The id of the team. :type team_id: str - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -110,7 +102,6 @@ def team_add_member( _param = self._team_add_member_serialize( team_add_member_request=team_add_member_request, team_id=team_id, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -138,12 +129,6 @@ def team_add_member_with_http_info( team_id: Annotated[ Optional[StrictStr], Field(description="The id of the team.") ] = None, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -166,8 +151,6 @@ def team_add_member_with_http_info( :type team_add_member_request: TeamAddMemberRequest :param team_id: The id of the team. :type team_id: str - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -193,7 +176,6 @@ def team_add_member_with_http_info( _param = self._team_add_member_serialize( team_add_member_request=team_add_member_request, team_id=team_id, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -221,12 +203,6 @@ def team_add_member_without_preload_content( team_id: Annotated[ Optional[StrictStr], Field(description="The id of the team.") ] = None, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -249,8 +225,6 @@ def team_add_member_without_preload_content( :type team_add_member_request: TeamAddMemberRequest :param team_id: The id of the team. :type team_id: str - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -276,7 +250,6 @@ def team_add_member_without_preload_content( _param = self._team_add_member_serialize( team_add_member_request=team_add_member_request, team_id=team_id, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -297,7 +270,6 @@ def _team_add_member_serialize( self, team_add_member_request, team_id, - idempotency_key, _request_auth, _content_type, _headers, @@ -346,8 +318,6 @@ def _team_add_member_serialize( _query_params.append(("team_id", team_id)) # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if team_add_member_request is not None and has_files is False: @@ -391,12 +361,6 @@ def _team_add_member_serialize( def team_create( self, team_create_request: TeamCreateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -417,8 +381,6 @@ def team_create( :param team_create_request: (required) :type team_create_request: TeamCreateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -443,7 +405,6 @@ def team_create( _param = self._team_create_serialize( team_create_request=team_create_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -468,12 +429,6 @@ def team_create( def team_create_with_http_info( self, team_create_request: TeamCreateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -494,8 +449,6 @@ def team_create_with_http_info( :param team_create_request: (required) :type team_create_request: TeamCreateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -520,7 +473,6 @@ def team_create_with_http_info( _param = self._team_create_serialize( team_create_request=team_create_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -545,12 +497,6 @@ def team_create_with_http_info( def team_create_without_preload_content( self, team_create_request: TeamCreateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -571,8 +517,6 @@ def team_create_without_preload_content( :param team_create_request: (required) :type team_create_request: TeamCreateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -597,7 +541,6 @@ def team_create_without_preload_content( _param = self._team_create_serialize( team_create_request=team_create_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -617,7 +560,6 @@ def team_create_without_preload_content( def _team_create_serialize( self, team_create_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -662,8 +604,6 @@ def _team_create_serialize( # process the path parameters # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if team_create_request is not None and has_files is False: @@ -2051,12 +1991,6 @@ def _team_members_serialize( def team_remove_member( self, team_remove_member_request: TeamRemoveMemberRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2077,8 +2011,6 @@ def team_remove_member( :param team_remove_member_request: (required) :type team_remove_member_request: TeamRemoveMemberRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2103,7 +2035,6 @@ def team_remove_member( _param = self._team_remove_member_serialize( team_remove_member_request=team_remove_member_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2128,12 +2059,6 @@ def team_remove_member( def team_remove_member_with_http_info( self, team_remove_member_request: TeamRemoveMemberRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2154,8 +2079,6 @@ def team_remove_member_with_http_info( :param team_remove_member_request: (required) :type team_remove_member_request: TeamRemoveMemberRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2180,7 +2103,6 @@ def team_remove_member_with_http_info( _param = self._team_remove_member_serialize( team_remove_member_request=team_remove_member_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2205,12 +2127,6 @@ def team_remove_member_with_http_info( def team_remove_member_without_preload_content( self, team_remove_member_request: TeamRemoveMemberRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2231,8 +2147,6 @@ def team_remove_member_without_preload_content( :param team_remove_member_request: (required) :type team_remove_member_request: TeamRemoveMemberRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2257,7 +2171,6 @@ def team_remove_member_without_preload_content( _param = self._team_remove_member_serialize( team_remove_member_request=team_remove_member_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2277,7 +2190,6 @@ def team_remove_member_without_preload_content( def _team_remove_member_serialize( self, team_remove_member_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -2322,8 +2234,6 @@ def _team_remove_member_serialize( # process the path parameters # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if team_remove_member_request is not None and has_files is False: @@ -2685,12 +2595,6 @@ def _team_sub_teams_serialize( def team_update( self, team_update_request: TeamUpdateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2711,8 +2615,6 @@ def team_update( :param team_update_request: (required) :type team_update_request: TeamUpdateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2737,7 +2639,6 @@ def team_update( _param = self._team_update_serialize( team_update_request=team_update_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2762,12 +2663,6 @@ def team_update( def team_update_with_http_info( self, team_update_request: TeamUpdateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2788,8 +2683,6 @@ def team_update_with_http_info( :param team_update_request: (required) :type team_update_request: TeamUpdateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2814,7 +2707,6 @@ def team_update_with_http_info( _param = self._team_update_serialize( team_update_request=team_update_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2839,12 +2731,6 @@ def team_update_with_http_info( def team_update_without_preload_content( self, team_update_request: TeamUpdateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2865,8 +2751,6 @@ def team_update_without_preload_content( :param team_update_request: (required) :type team_update_request: TeamUpdateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2891,7 +2775,6 @@ def team_update_without_preload_content( _param = self._team_update_serialize( team_update_request=team_update_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2911,7 +2794,6 @@ def team_update_without_preload_content( def _team_update_serialize( self, team_update_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -2956,8 +2838,6 @@ def _team_update_serialize( # process the path parameters # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if team_update_request is not None and has_files is False: diff --git a/sdks/python/dropbox_sign/api/template_api.py b/sdks/python/dropbox_sign/api/template_api.py index 1031d9334..4ae3b449b 100644 --- a/sdks/python/dropbox_sign/api/template_api.py +++ b/sdks/python/dropbox_sign/api/template_api.py @@ -65,12 +65,6 @@ def template_add_user( Field(description="The id of the Template to give the Account access to."), ], template_add_user_request: TemplateAddUserRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -93,8 +87,6 @@ def template_add_user( :type template_id: str :param template_add_user_request: (required) :type template_add_user_request: TemplateAddUserRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -120,7 +112,6 @@ def template_add_user( _param = self._template_add_user_serialize( template_id=template_id, template_add_user_request=template_add_user_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -149,12 +140,6 @@ def template_add_user_with_http_info( Field(description="The id of the Template to give the Account access to."), ], template_add_user_request: TemplateAddUserRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -177,8 +162,6 @@ def template_add_user_with_http_info( :type template_id: str :param template_add_user_request: (required) :type template_add_user_request: TemplateAddUserRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -204,7 +187,6 @@ def template_add_user_with_http_info( _param = self._template_add_user_serialize( template_id=template_id, template_add_user_request=template_add_user_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -233,12 +215,6 @@ def template_add_user_without_preload_content( Field(description="The id of the Template to give the Account access to."), ], template_add_user_request: TemplateAddUserRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -261,8 +237,6 @@ def template_add_user_without_preload_content( :type template_id: str :param template_add_user_request: (required) :type template_add_user_request: TemplateAddUserRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -288,7 +262,6 @@ def template_add_user_without_preload_content( _param = self._template_add_user_serialize( template_id=template_id, template_add_user_request=template_add_user_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -309,7 +282,6 @@ def _template_add_user_serialize( self, template_id, template_add_user_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -356,8 +328,6 @@ def _template_add_user_serialize( _path_params["template_id"] = template_id # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if template_add_user_request is not None and has_files is False: @@ -401,12 +371,6 @@ def _template_add_user_serialize( def template_create( self, template_create_request: TemplateCreateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -427,8 +391,6 @@ def template_create( :param template_create_request: (required) :type template_create_request: TemplateCreateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -453,7 +415,6 @@ def template_create( _param = self._template_create_serialize( template_create_request=template_create_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -478,12 +439,6 @@ def template_create( def template_create_with_http_info( self, template_create_request: TemplateCreateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -504,8 +459,6 @@ def template_create_with_http_info( :param template_create_request: (required) :type template_create_request: TemplateCreateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -530,7 +483,6 @@ def template_create_with_http_info( _param = self._template_create_serialize( template_create_request=template_create_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -555,12 +507,6 @@ def template_create_with_http_info( def template_create_without_preload_content( self, template_create_request: TemplateCreateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -581,8 +527,6 @@ def template_create_without_preload_content( :param template_create_request: (required) :type template_create_request: TemplateCreateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -607,7 +551,6 @@ def template_create_without_preload_content( _param = self._template_create_serialize( template_create_request=template_create_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -627,7 +570,6 @@ def template_create_without_preload_content( def _template_create_serialize( self, template_create_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -672,8 +614,6 @@ def _template_create_serialize( # process the path parameters # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if template_create_request is not None and has_files is False: @@ -717,12 +657,6 @@ def _template_create_serialize( def template_create_embedded_draft( self, template_create_embedded_draft_request: TemplateCreateEmbeddedDraftRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -743,8 +677,6 @@ def template_create_embedded_draft( :param template_create_embedded_draft_request: (required) :type template_create_embedded_draft_request: TemplateCreateEmbeddedDraftRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -769,7 +701,6 @@ def template_create_embedded_draft( _param = self._template_create_embedded_draft_serialize( template_create_embedded_draft_request=template_create_embedded_draft_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -794,12 +725,6 @@ def template_create_embedded_draft( def template_create_embedded_draft_with_http_info( self, template_create_embedded_draft_request: TemplateCreateEmbeddedDraftRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -820,8 +745,6 @@ def template_create_embedded_draft_with_http_info( :param template_create_embedded_draft_request: (required) :type template_create_embedded_draft_request: TemplateCreateEmbeddedDraftRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -846,7 +769,6 @@ def template_create_embedded_draft_with_http_info( _param = self._template_create_embedded_draft_serialize( template_create_embedded_draft_request=template_create_embedded_draft_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -871,12 +793,6 @@ def template_create_embedded_draft_with_http_info( def template_create_embedded_draft_without_preload_content( self, template_create_embedded_draft_request: TemplateCreateEmbeddedDraftRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -897,8 +813,6 @@ def template_create_embedded_draft_without_preload_content( :param template_create_embedded_draft_request: (required) :type template_create_embedded_draft_request: TemplateCreateEmbeddedDraftRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -923,7 +837,6 @@ def template_create_embedded_draft_without_preload_content( _param = self._template_create_embedded_draft_serialize( template_create_embedded_draft_request=template_create_embedded_draft_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -943,7 +856,6 @@ def template_create_embedded_draft_without_preload_content( def _template_create_embedded_draft_serialize( self, template_create_embedded_draft_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -988,8 +900,6 @@ def _template_create_embedded_draft_serialize( # process the path parameters # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if template_create_embedded_draft_request is not None and has_files is False: @@ -1035,12 +945,6 @@ def template_delete( template_id: Annotated[ StrictStr, Field(description="The id of the Template to delete.") ], - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1061,8 +965,6 @@ def template_delete( :param template_id: The id of the Template to delete. (required) :type template_id: str - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1087,7 +989,6 @@ def template_delete( _param = self._template_delete_serialize( template_id=template_id, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1114,12 +1015,6 @@ def template_delete_with_http_info( template_id: Annotated[ StrictStr, Field(description="The id of the Template to delete.") ], - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1140,8 +1035,6 @@ def template_delete_with_http_info( :param template_id: The id of the Template to delete. (required) :type template_id: str - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1166,7 +1059,6 @@ def template_delete_with_http_info( _param = self._template_delete_serialize( template_id=template_id, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1193,12 +1085,6 @@ def template_delete_without_preload_content( template_id: Annotated[ StrictStr, Field(description="The id of the Template to delete.") ], - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1219,8 +1105,6 @@ def template_delete_without_preload_content( :param template_id: The id of the Template to delete. (required) :type template_id: str - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1245,7 +1129,6 @@ def template_delete_without_preload_content( _param = self._template_delete_serialize( template_id=template_id, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1265,7 +1148,6 @@ def template_delete_without_preload_content( def _template_delete_serialize( self, template_id, - idempotency_key, _request_auth, _content_type, _headers, @@ -1290,8 +1172,6 @@ def _template_delete_serialize( _path_params["template_id"] = template_id # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter @@ -2800,12 +2680,6 @@ def template_remove_user( ), ], template_remove_user_request: TemplateRemoveUserRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2828,8 +2702,6 @@ def template_remove_user( :type template_id: str :param template_remove_user_request: (required) :type template_remove_user_request: TemplateRemoveUserRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2855,7 +2727,6 @@ def template_remove_user( _param = self._template_remove_user_serialize( template_id=template_id, template_remove_user_request=template_remove_user_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2886,12 +2757,6 @@ def template_remove_user_with_http_info( ), ], template_remove_user_request: TemplateRemoveUserRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2914,8 +2779,6 @@ def template_remove_user_with_http_info( :type template_id: str :param template_remove_user_request: (required) :type template_remove_user_request: TemplateRemoveUserRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2941,7 +2804,6 @@ def template_remove_user_with_http_info( _param = self._template_remove_user_serialize( template_id=template_id, template_remove_user_request=template_remove_user_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2972,12 +2834,6 @@ def template_remove_user_without_preload_content( ), ], template_remove_user_request: TemplateRemoveUserRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3000,8 +2856,6 @@ def template_remove_user_without_preload_content( :type template_id: str :param template_remove_user_request: (required) :type template_remove_user_request: TemplateRemoveUserRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3027,7 +2881,6 @@ def template_remove_user_without_preload_content( _param = self._template_remove_user_serialize( template_id=template_id, template_remove_user_request=template_remove_user_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3048,7 +2901,6 @@ def _template_remove_user_serialize( self, template_id, template_remove_user_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -3095,8 +2947,6 @@ def _template_remove_user_serialize( _path_params["template_id"] = template_id # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if template_remove_user_request is not None and has_files is False: @@ -3144,12 +2994,6 @@ def template_update_files( Field(description="The ID of the template whose files to update."), ], template_update_files_request: TemplateUpdateFilesRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3172,8 +3016,6 @@ def template_update_files( :type template_id: str :param template_update_files_request: (required) :type template_update_files_request: TemplateUpdateFilesRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3199,7 +3041,6 @@ def template_update_files( _param = self._template_update_files_serialize( template_id=template_id, template_update_files_request=template_update_files_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3228,12 +3069,6 @@ def template_update_files_with_http_info( Field(description="The ID of the template whose files to update."), ], template_update_files_request: TemplateUpdateFilesRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3256,8 +3091,6 @@ def template_update_files_with_http_info( :type template_id: str :param template_update_files_request: (required) :type template_update_files_request: TemplateUpdateFilesRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3283,7 +3116,6 @@ def template_update_files_with_http_info( _param = self._template_update_files_serialize( template_id=template_id, template_update_files_request=template_update_files_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3312,12 +3144,6 @@ def template_update_files_without_preload_content( Field(description="The ID of the template whose files to update."), ], template_update_files_request: TemplateUpdateFilesRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3340,8 +3166,6 @@ def template_update_files_without_preload_content( :type template_id: str :param template_update_files_request: (required) :type template_update_files_request: TemplateUpdateFilesRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3367,7 +3191,6 @@ def template_update_files_without_preload_content( _param = self._template_update_files_serialize( template_id=template_id, template_update_files_request=template_update_files_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3388,7 +3211,6 @@ def _template_update_files_serialize( self, template_id, template_update_files_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -3435,8 +3257,6 @@ def _template_update_files_serialize( _path_params["template_id"] = template_id # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if template_update_files_request is not None and has_files is False: diff --git a/sdks/python/dropbox_sign/api/unclaimed_draft_api.py b/sdks/python/dropbox_sign/api/unclaimed_draft_api.py index 2e386502f..3c9936164 100644 --- a/sdks/python/dropbox_sign/api/unclaimed_draft_api.py +++ b/sdks/python/dropbox_sign/api/unclaimed_draft_api.py @@ -18,7 +18,6 @@ from typing_extensions import Annotated from pydantic import Field, StrictStr -from typing import Optional from typing_extensions import Annotated from dropbox_sign.models.unclaimed_draft_create_embedded_request import ( UnclaimedDraftCreateEmbeddedRequest, @@ -58,12 +57,6 @@ def __init__(self, api_client=None) -> None: def unclaimed_draft_create( self, unclaimed_draft_create_request: UnclaimedDraftCreateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -84,8 +77,6 @@ def unclaimed_draft_create( :param unclaimed_draft_create_request: (required) :type unclaimed_draft_create_request: UnclaimedDraftCreateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -110,7 +101,6 @@ def unclaimed_draft_create( _param = self._unclaimed_draft_create_serialize( unclaimed_draft_create_request=unclaimed_draft_create_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -135,12 +125,6 @@ def unclaimed_draft_create( def unclaimed_draft_create_with_http_info( self, unclaimed_draft_create_request: UnclaimedDraftCreateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -161,8 +145,6 @@ def unclaimed_draft_create_with_http_info( :param unclaimed_draft_create_request: (required) :type unclaimed_draft_create_request: UnclaimedDraftCreateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -187,7 +169,6 @@ def unclaimed_draft_create_with_http_info( _param = self._unclaimed_draft_create_serialize( unclaimed_draft_create_request=unclaimed_draft_create_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -212,12 +193,6 @@ def unclaimed_draft_create_with_http_info( def unclaimed_draft_create_without_preload_content( self, unclaimed_draft_create_request: UnclaimedDraftCreateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -238,8 +213,6 @@ def unclaimed_draft_create_without_preload_content( :param unclaimed_draft_create_request: (required) :type unclaimed_draft_create_request: UnclaimedDraftCreateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -264,7 +237,6 @@ def unclaimed_draft_create_without_preload_content( _param = self._unclaimed_draft_create_serialize( unclaimed_draft_create_request=unclaimed_draft_create_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -284,7 +256,6 @@ def unclaimed_draft_create_without_preload_content( def _unclaimed_draft_create_serialize( self, unclaimed_draft_create_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -329,8 +300,6 @@ def _unclaimed_draft_create_serialize( # process the path parameters # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if unclaimed_draft_create_request is not None and has_files is False: @@ -374,12 +343,6 @@ def _unclaimed_draft_create_serialize( def unclaimed_draft_create_embedded( self, unclaimed_draft_create_embedded_request: UnclaimedDraftCreateEmbeddedRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -400,8 +363,6 @@ def unclaimed_draft_create_embedded( :param unclaimed_draft_create_embedded_request: (required) :type unclaimed_draft_create_embedded_request: UnclaimedDraftCreateEmbeddedRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -426,7 +387,6 @@ def unclaimed_draft_create_embedded( _param = self._unclaimed_draft_create_embedded_serialize( unclaimed_draft_create_embedded_request=unclaimed_draft_create_embedded_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -451,12 +411,6 @@ def unclaimed_draft_create_embedded( def unclaimed_draft_create_embedded_with_http_info( self, unclaimed_draft_create_embedded_request: UnclaimedDraftCreateEmbeddedRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -477,8 +431,6 @@ def unclaimed_draft_create_embedded_with_http_info( :param unclaimed_draft_create_embedded_request: (required) :type unclaimed_draft_create_embedded_request: UnclaimedDraftCreateEmbeddedRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -503,7 +455,6 @@ def unclaimed_draft_create_embedded_with_http_info( _param = self._unclaimed_draft_create_embedded_serialize( unclaimed_draft_create_embedded_request=unclaimed_draft_create_embedded_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -528,12 +479,6 @@ def unclaimed_draft_create_embedded_with_http_info( def unclaimed_draft_create_embedded_without_preload_content( self, unclaimed_draft_create_embedded_request: UnclaimedDraftCreateEmbeddedRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -554,8 +499,6 @@ def unclaimed_draft_create_embedded_without_preload_content( :param unclaimed_draft_create_embedded_request: (required) :type unclaimed_draft_create_embedded_request: UnclaimedDraftCreateEmbeddedRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -580,7 +523,6 @@ def unclaimed_draft_create_embedded_without_preload_content( _param = self._unclaimed_draft_create_embedded_serialize( unclaimed_draft_create_embedded_request=unclaimed_draft_create_embedded_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -600,7 +542,6 @@ def unclaimed_draft_create_embedded_without_preload_content( def _unclaimed_draft_create_embedded_serialize( self, unclaimed_draft_create_embedded_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -645,8 +586,6 @@ def _unclaimed_draft_create_embedded_serialize( # process the path parameters # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if unclaimed_draft_create_embedded_request is not None and has_files is False: @@ -690,12 +629,6 @@ def _unclaimed_draft_create_embedded_serialize( def unclaimed_draft_create_embedded_with_template( self, unclaimed_draft_create_embedded_with_template_request: UnclaimedDraftCreateEmbeddedWithTemplateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -716,8 +649,6 @@ def unclaimed_draft_create_embedded_with_template( :param unclaimed_draft_create_embedded_with_template_request: (required) :type unclaimed_draft_create_embedded_with_template_request: UnclaimedDraftCreateEmbeddedWithTemplateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -742,7 +673,6 @@ def unclaimed_draft_create_embedded_with_template( _param = self._unclaimed_draft_create_embedded_with_template_serialize( unclaimed_draft_create_embedded_with_template_request=unclaimed_draft_create_embedded_with_template_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -767,12 +697,6 @@ def unclaimed_draft_create_embedded_with_template( def unclaimed_draft_create_embedded_with_template_with_http_info( self, unclaimed_draft_create_embedded_with_template_request: UnclaimedDraftCreateEmbeddedWithTemplateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -793,8 +717,6 @@ def unclaimed_draft_create_embedded_with_template_with_http_info( :param unclaimed_draft_create_embedded_with_template_request: (required) :type unclaimed_draft_create_embedded_with_template_request: UnclaimedDraftCreateEmbeddedWithTemplateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -819,7 +741,6 @@ def unclaimed_draft_create_embedded_with_template_with_http_info( _param = self._unclaimed_draft_create_embedded_with_template_serialize( unclaimed_draft_create_embedded_with_template_request=unclaimed_draft_create_embedded_with_template_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -844,12 +765,6 @@ def unclaimed_draft_create_embedded_with_template_with_http_info( def unclaimed_draft_create_embedded_with_template_without_preload_content( self, unclaimed_draft_create_embedded_with_template_request: UnclaimedDraftCreateEmbeddedWithTemplateRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -870,8 +785,6 @@ def unclaimed_draft_create_embedded_with_template_without_preload_content( :param unclaimed_draft_create_embedded_with_template_request: (required) :type unclaimed_draft_create_embedded_with_template_request: UnclaimedDraftCreateEmbeddedWithTemplateRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -896,7 +809,6 @@ def unclaimed_draft_create_embedded_with_template_without_preload_content( _param = self._unclaimed_draft_create_embedded_with_template_serialize( unclaimed_draft_create_embedded_with_template_request=unclaimed_draft_create_embedded_with_template_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -916,7 +828,6 @@ def unclaimed_draft_create_embedded_with_template_without_preload_content( def _unclaimed_draft_create_embedded_with_template_serialize( self, unclaimed_draft_create_embedded_with_template_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -961,8 +872,6 @@ def _unclaimed_draft_create_embedded_with_template_serialize( # process the path parameters # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if ( @@ -1013,12 +922,6 @@ def unclaimed_draft_edit_and_resend( Field(description="The ID of the signature request to edit and resend."), ], unclaimed_draft_edit_and_resend_request: UnclaimedDraftEditAndResendRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1041,8 +944,6 @@ def unclaimed_draft_edit_and_resend( :type signature_request_id: str :param unclaimed_draft_edit_and_resend_request: (required) :type unclaimed_draft_edit_and_resend_request: UnclaimedDraftEditAndResendRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1068,7 +969,6 @@ def unclaimed_draft_edit_and_resend( _param = self._unclaimed_draft_edit_and_resend_serialize( signature_request_id=signature_request_id, unclaimed_draft_edit_and_resend_request=unclaimed_draft_edit_and_resend_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1097,12 +997,6 @@ def unclaimed_draft_edit_and_resend_with_http_info( Field(description="The ID of the signature request to edit and resend."), ], unclaimed_draft_edit_and_resend_request: UnclaimedDraftEditAndResendRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1125,8 +1019,6 @@ def unclaimed_draft_edit_and_resend_with_http_info( :type signature_request_id: str :param unclaimed_draft_edit_and_resend_request: (required) :type unclaimed_draft_edit_and_resend_request: UnclaimedDraftEditAndResendRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1152,7 +1044,6 @@ def unclaimed_draft_edit_and_resend_with_http_info( _param = self._unclaimed_draft_edit_and_resend_serialize( signature_request_id=signature_request_id, unclaimed_draft_edit_and_resend_request=unclaimed_draft_edit_and_resend_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1181,12 +1072,6 @@ def unclaimed_draft_edit_and_resend_without_preload_content( Field(description="The ID of the signature request to edit and resend."), ], unclaimed_draft_edit_and_resend_request: UnclaimedDraftEditAndResendRequest, - idempotency_key: Annotated[ - Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]], - Field( - description="Reuse the same key when retrying the same request. Must be 1 to 255 characters." - ), - ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1209,8 +1094,6 @@ def unclaimed_draft_edit_and_resend_without_preload_content( :type signature_request_id: str :param unclaimed_draft_edit_and_resend_request: (required) :type unclaimed_draft_edit_and_resend_request: UnclaimedDraftEditAndResendRequest - :param idempotency_key: Reuse the same key when retrying the same request. Must be 1 to 255 characters. - :type idempotency_key: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1236,7 +1119,6 @@ def unclaimed_draft_edit_and_resend_without_preload_content( _param = self._unclaimed_draft_edit_and_resend_serialize( signature_request_id=signature_request_id, unclaimed_draft_edit_and_resend_request=unclaimed_draft_edit_and_resend_request, - idempotency_key=idempotency_key, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1257,7 +1139,6 @@ def _unclaimed_draft_edit_and_resend_serialize( self, signature_request_id, unclaimed_draft_edit_and_resend_request, - idempotency_key, _request_auth, _content_type, _headers, @@ -1304,8 +1185,6 @@ def _unclaimed_draft_edit_and_resend_serialize( _path_params["signature_request_id"] = signature_request_id # process the query parameters # process the header parameters - if idempotency_key is not None: - _header_params["Idempotency-Key"] = idempotency_key # process the form parameters # process the body parameter if unclaimed_draft_edit_and_resend_request is not None and has_files is False: diff --git a/sdks/ruby/docs/AccountApi.md b/sdks/ruby/docs/AccountApi.md index aee56b868..ebae7148b 100644 --- a/sdks/ruby/docs/AccountApi.md +++ b/sdks/ruby/docs/AccountApi.md @@ -12,7 +12,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## `account_create` -> ` account_create(account_create_request, opts)` +> ` account_create(account_create_request)` Create Account @@ -48,12 +48,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> account_create_with_http_info(account_create_request, opts)` +> `, Integer, Hash)> account_create_with_http_info(account_create_request)` ```ruby begin # Create Account - data, status_code, headers = api_instance.account_create_with_http_info(account_create_request, opts) + data, status_code, headers = api_instance.account_create_with_http_info(account_create_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -67,7 +67,6 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `account_create_request` | [**AccountCreateRequest**](AccountCreateRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -153,7 +152,7 @@ end ## `account_update` -> ` account_update(account_update_request, opts)` +> ` account_update(account_update_request)` Update Account @@ -190,12 +189,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> account_update_with_http_info(account_update_request, opts)` +> `, Integer, Hash)> account_update_with_http_info(account_update_request)` ```ruby begin # Update Account - data, status_code, headers = api_instance.account_update_with_http_info(account_update_request, opts) + data, status_code, headers = api_instance.account_update_with_http_info(account_update_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -209,7 +208,6 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `account_update_request` | [**AccountUpdateRequest**](AccountUpdateRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -227,7 +225,7 @@ end ## `account_verify` -> ` account_verify(account_verify_request, opts)` +> ` account_verify(account_verify_request)` Verify Account @@ -263,12 +261,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> account_verify_with_http_info(account_verify_request, opts)` +> `, Integer, Hash)> account_verify_with_http_info(account_verify_request)` ```ruby begin # Verify Account - data, status_code, headers = api_instance.account_verify_with_http_info(account_verify_request, opts) + data, status_code, headers = api_instance.account_verify_with_http_info(account_verify_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -282,7 +280,6 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `account_verify_request` | [**AccountVerifyRequest**](AccountVerifyRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/ruby/docs/ApiAppApi.md b/sdks/ruby/docs/ApiAppApi.md index 041c09d59..10b5fac53 100644 --- a/sdks/ruby/docs/ApiAppApi.md +++ b/sdks/ruby/docs/ApiAppApi.md @@ -13,7 +13,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## `api_app_create` -> ` api_app_create(api_app_create_request, opts)` +> ` api_app_create(api_app_create_request)` Create API App @@ -66,12 +66,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> api_app_create_with_http_info(api_app_create_request, opts)` +> `, Integer, Hash)> api_app_create_with_http_info(api_app_create_request)` ```ruby begin # Create API App - data, status_code, headers = api_instance.api_app_create_with_http_info(api_app_create_request, opts) + data, status_code, headers = api_instance.api_app_create_with_http_info(api_app_create_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -85,7 +85,6 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `api_app_create_request` | [**ApiAppCreateRequest**](ApiAppCreateRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -312,7 +311,7 @@ end ## `api_app_update` -> ` api_app_update(client_id, api_app_update_request, opts)` +> ` api_app_update(client_id, api_app_update_request)` Update API App @@ -367,12 +366,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> api_app_update_with_http_info(client_id, api_app_update_request, opts)` +> `, Integer, Hash)> api_app_update_with_http_info(client_id, api_app_update_request)` ```ruby begin # Update API App - data, status_code, headers = api_instance.api_app_update_with_http_info(client_id, api_app_update_request, opts) + data, status_code, headers = api_instance.api_app_update_with_http_info(client_id, api_app_update_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -387,7 +386,6 @@ end | ---- | ---- | ----------- | ----- | | `client_id` | **String** | The client id of the API App to update. | | | `api_app_update_request` | [**ApiAppUpdateRequest**](ApiAppUpdateRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/ruby/docs/DocumentApi.md b/sdks/ruby/docs/DocumentApi.md index c1bc15884..074517671 100644 --- a/sdks/ruby/docs/DocumentApi.md +++ b/sdks/ruby/docs/DocumentApi.md @@ -9,7 +9,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## `document_detect_fields` -> ` document_detect_fields(document_field_detection_request, opts)` +> ` document_detect_fields(document_field_detection_request)` Detect Document Fields @@ -47,12 +47,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> document_detect_fields_with_http_info(document_field_detection_request, opts)` +> `, Integer, Hash)> document_detect_fields_with_http_info(document_field_detection_request)` ```ruby begin # Detect Document Fields - data, status_code, headers = api_instance.document_detect_fields_with_http_info(document_field_detection_request, opts) + data, status_code, headers = api_instance.document_detect_fields_with_http_info(document_field_detection_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -66,7 +66,6 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `document_field_detection_request` | [**DocumentFieldDetectionRequest**](DocumentFieldDetectionRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/ruby/docs/EmbeddedApi.md b/sdks/ruby/docs/EmbeddedApi.md index 2dffe9e0e..998c914b3 100644 --- a/sdks/ruby/docs/EmbeddedApi.md +++ b/sdks/ruby/docs/EmbeddedApi.md @@ -10,7 +10,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## `embedded_edit_url` -> ` embedded_edit_url(template_id, embedded_edit_url_request, opts)` +> ` embedded_edit_url(template_id, embedded_edit_url_request)` Get Embedded Template Edit URL @@ -53,12 +53,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> embedded_edit_url_with_http_info(template_id, embedded_edit_url_request, opts)` +> `, Integer, Hash)> embedded_edit_url_with_http_info(template_id, embedded_edit_url_request)` ```ruby begin # Get Embedded Template Edit URL - data, status_code, headers = api_instance.embedded_edit_url_with_http_info(template_id, embedded_edit_url_request, opts) + data, status_code, headers = api_instance.embedded_edit_url_with_http_info(template_id, embedded_edit_url_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -73,7 +73,6 @@ end | ---- | ---- | ----------- | ----- | | `template_id` | **String** | The id of the template to edit. | | | `embedded_edit_url_request` | [**EmbeddedEditUrlRequest**](EmbeddedEditUrlRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/ruby/docs/FaxApi.md b/sdks/ruby/docs/FaxApi.md index 12849432b..310c9a34b 100644 --- a/sdks/ruby/docs/FaxApi.md +++ b/sdks/ruby/docs/FaxApi.md @@ -287,7 +287,7 @@ end ## `fax_send` -> ` fax_send(fax_send_request, opts)` +> ` fax_send(fax_send_request)` Send Fax @@ -331,12 +331,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> fax_send_with_http_info(fax_send_request, opts)` +> `, Integer, Hash)> fax_send_with_http_info(fax_send_request)` ```ruby begin # Send Fax - data, status_code, headers = api_instance.fax_send_with_http_info(fax_send_request, opts) + data, status_code, headers = api_instance.fax_send_with_http_info(fax_send_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -350,7 +350,6 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `fax_send_request` | [**FaxSendRequest**](FaxSendRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/ruby/docs/FaxLineApi.md b/sdks/ruby/docs/FaxLineApi.md index c005adacc..a52f30c55 100644 --- a/sdks/ruby/docs/FaxLineApi.md +++ b/sdks/ruby/docs/FaxLineApi.md @@ -15,7 +15,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## `fax_line_add_user` -> ` fax_line_add_user(fax_line_add_user_request, opts)` +> ` fax_line_add_user(fax_line_add_user_request)` Add Fax Line User @@ -51,12 +51,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> fax_line_add_user_with_http_info(fax_line_add_user_request, opts)` +> `, Integer, Hash)> fax_line_add_user_with_http_info(fax_line_add_user_request)` ```ruby begin # Add Fax Line User - data, status_code, headers = api_instance.fax_line_add_user_with_http_info(fax_line_add_user_request, opts) + data, status_code, headers = api_instance.fax_line_add_user_with_http_info(fax_line_add_user_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -70,7 +70,6 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `fax_line_add_user_request` | [**FaxLineAddUserRequest**](FaxLineAddUserRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -159,7 +158,7 @@ end ## `fax_line_create` -> ` fax_line_create(fax_line_create_request, opts)` +> ` fax_line_create(fax_line_create_request)` Purchase Fax Line @@ -195,12 +194,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> fax_line_create_with_http_info(fax_line_create_request, opts)` +> `, Integer, Hash)> fax_line_create_with_http_info(fax_line_create_request)` ```ruby begin # Purchase Fax Line - data, status_code, headers = api_instance.fax_line_create_with_http_info(fax_line_create_request, opts) + data, status_code, headers = api_instance.fax_line_create_with_http_info(fax_line_create_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -214,7 +213,6 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `fax_line_create_request` | [**FaxLineCreateRequest**](FaxLineCreateRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -445,7 +443,7 @@ end ## `fax_line_remove_user` -> ` fax_line_remove_user(fax_line_remove_user_request, opts)` +> ` fax_line_remove_user(fax_line_remove_user_request)` Remove Fax Line Access @@ -481,12 +479,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> fax_line_remove_user_with_http_info(fax_line_remove_user_request, opts)` +> `, Integer, Hash)> fax_line_remove_user_with_http_info(fax_line_remove_user_request)` ```ruby begin # Remove Fax Line Access - data, status_code, headers = api_instance.fax_line_remove_user_with_http_info(fax_line_remove_user_request, opts) + data, status_code, headers = api_instance.fax_line_remove_user_with_http_info(fax_line_remove_user_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -500,7 +498,6 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `fax_line_remove_user_request` | [**FaxLineRemoveUserRequest**](FaxLineRemoveUserRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/ruby/docs/ReportApi.md b/sdks/ruby/docs/ReportApi.md index 5fdc526b5..9b0b90317 100644 --- a/sdks/ruby/docs/ReportApi.md +++ b/sdks/ruby/docs/ReportApi.md @@ -9,7 +9,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## `report_create` -> ` report_create(report_create_request, opts)` +> ` report_create(report_create_request)` Create Report @@ -49,12 +49,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> report_create_with_http_info(report_create_request, opts)` +> `, Integer, Hash)> report_create_with_http_info(report_create_request)` ```ruby begin # Create Report - data, status_code, headers = api_instance.report_create_with_http_info(report_create_request, opts) + data, status_code, headers = api_instance.report_create_with_http_info(report_create_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -68,7 +68,6 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `report_create_request` | [**ReportCreateRequest**](ReportCreateRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/ruby/docs/SignatureRequestApi.md b/sdks/ruby/docs/SignatureRequestApi.md index 7889862a0..e3f4b361e 100644 --- a/sdks/ruby/docs/SignatureRequestApi.md +++ b/sdks/ruby/docs/SignatureRequestApi.md @@ -28,7 +28,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## `signature_request_bulk_create_embedded_with_template` -> ` signature_request_bulk_create_embedded_with_template(signature_request_bulk_create_embedded_with_template_request, opts)` +> ` signature_request_bulk_create_embedded_with_template(signature_request_bulk_create_embedded_with_template_request)` Embedded Bulk Send with Template @@ -128,12 +128,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> signature_request_bulk_create_embedded_with_template_with_http_info(signature_request_bulk_create_embedded_with_template_request, opts)` +> `, Integer, Hash)> signature_request_bulk_create_embedded_with_template_with_http_info(signature_request_bulk_create_embedded_with_template_request)` ```ruby begin # Embedded Bulk Send with Template - data, status_code, headers = api_instance.signature_request_bulk_create_embedded_with_template_with_http_info(signature_request_bulk_create_embedded_with_template_request, opts) + data, status_code, headers = api_instance.signature_request_bulk_create_embedded_with_template_with_http_info(signature_request_bulk_create_embedded_with_template_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -147,7 +147,6 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_bulk_create_embedded_with_template_request` | [**SignatureRequestBulkCreateEmbeddedWithTemplateRequest**](SignatureRequestBulkCreateEmbeddedWithTemplateRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -165,7 +164,7 @@ end ## `signature_request_bulk_send_with_template` -> ` signature_request_bulk_send_with_template(signature_request_bulk_send_with_template_request, opts)` +> ` signature_request_bulk_send_with_template(signature_request_bulk_send_with_template_request)` Bulk Send with Template @@ -265,12 +264,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> signature_request_bulk_send_with_template_with_http_info(signature_request_bulk_send_with_template_request, opts)` +> `, Integer, Hash)> signature_request_bulk_send_with_template_with_http_info(signature_request_bulk_send_with_template_request)` ```ruby begin # Bulk Send with Template - data, status_code, headers = api_instance.signature_request_bulk_send_with_template_with_http_info(signature_request_bulk_send_with_template_request, opts) + data, status_code, headers = api_instance.signature_request_bulk_send_with_template_with_http_info(signature_request_bulk_send_with_template_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -284,7 +283,6 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_bulk_send_with_template_request` | [**SignatureRequestBulkSendWithTemplateRequest**](SignatureRequestBulkSendWithTemplateRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -302,7 +300,7 @@ end ## `signature_request_cancel` -> `signature_request_cancel(signature_request_id, opts)` +> `signature_request_cancel(signature_request_id)` Cancel Incomplete Signature Request @@ -333,12 +331,12 @@ end This returns an Array which contains the response data (`nil` in this case), status code and headers. -> ` signature_request_cancel_with_http_info(signature_request_id, opts)` +> ` signature_request_cancel_with_http_info(signature_request_id)` ```ruby begin # Cancel Incomplete Signature Request - data, status_code, headers = api_instance.signature_request_cancel_with_http_info(signature_request_id, opts) + data, status_code, headers = api_instance.signature_request_cancel_with_http_info(signature_request_id) p status_code # => 2xx p headers # => { ... } p data # => nil @@ -352,7 +350,6 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_id` | **String** | The id of the incomplete SignatureRequest to cancel. | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -370,7 +367,7 @@ nil (empty response body) ## `signature_request_create_embedded` -> ` signature_request_create_embedded(signature_request_create_embedded_request, opts)` +> ` signature_request_create_embedded(signature_request_create_embedded_request)` Create Embedded Signature Request @@ -442,12 +439,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> signature_request_create_embedded_with_http_info(signature_request_create_embedded_request, opts)` +> `, Integer, Hash)> signature_request_create_embedded_with_http_info(signature_request_create_embedded_request)` ```ruby begin # Create Embedded Signature Request - data, status_code, headers = api_instance.signature_request_create_embedded_with_http_info(signature_request_create_embedded_request, opts) + data, status_code, headers = api_instance.signature_request_create_embedded_with_http_info(signature_request_create_embedded_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -461,7 +458,6 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_create_embedded_request` | [**SignatureRequestCreateEmbeddedRequest**](SignatureRequestCreateEmbeddedRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -479,7 +475,7 @@ end ## `signature_request_create_embedded_with_template` -> ` signature_request_create_embedded_with_template(signature_request_create_embedded_with_template_request, opts)` +> ` signature_request_create_embedded_with_template(signature_request_create_embedded_with_template_request)` Create Embedded Signature Request with Template @@ -540,12 +536,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> signature_request_create_embedded_with_template_with_http_info(signature_request_create_embedded_with_template_request, opts)` +> `, Integer, Hash)> signature_request_create_embedded_with_template_with_http_info(signature_request_create_embedded_with_template_request)` ```ruby begin # Create Embedded Signature Request with Template - data, status_code, headers = api_instance.signature_request_create_embedded_with_template_with_http_info(signature_request_create_embedded_with_template_request, opts) + data, status_code, headers = api_instance.signature_request_create_embedded_with_template_with_http_info(signature_request_create_embedded_with_template_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -559,7 +555,6 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_create_embedded_with_template_request` | [**SignatureRequestCreateEmbeddedWithTemplateRequest**](SignatureRequestCreateEmbeddedWithTemplateRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -577,7 +572,7 @@ end ## `signature_request_edit` -> ` signature_request_edit(signature_request_id, signature_request_edit_request, opts)` +> ` signature_request_edit(signature_request_id, signature_request_edit_request)` Edit Signature Request @@ -659,12 +654,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> signature_request_edit_with_http_info(signature_request_id, signature_request_edit_request, opts)` +> `, Integer, Hash)> signature_request_edit_with_http_info(signature_request_id, signature_request_edit_request)` ```ruby begin # Edit Signature Request - data, status_code, headers = api_instance.signature_request_edit_with_http_info(signature_request_id, signature_request_edit_request, opts) + data, status_code, headers = api_instance.signature_request_edit_with_http_info(signature_request_id, signature_request_edit_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -679,7 +674,6 @@ end | ---- | ---- | ----------- | ----- | | `signature_request_id` | **String** | The id of the SignatureRequest to edit. | | | `signature_request_edit_request` | [**SignatureRequestEditRequest**](SignatureRequestEditRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -697,7 +691,7 @@ end ## `signature_request_edit_embedded` -> ` signature_request_edit_embedded(signature_request_id, signature_request_edit_embedded_request, opts)` +> ` signature_request_edit_embedded(signature_request_id, signature_request_edit_embedded_request)` Edit Embedded Signature Request @@ -769,12 +763,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> signature_request_edit_embedded_with_http_info(signature_request_id, signature_request_edit_embedded_request, opts)` +> `, Integer, Hash)> signature_request_edit_embedded_with_http_info(signature_request_id, signature_request_edit_embedded_request)` ```ruby begin # Edit Embedded Signature Request - data, status_code, headers = api_instance.signature_request_edit_embedded_with_http_info(signature_request_id, signature_request_edit_embedded_request, opts) + data, status_code, headers = api_instance.signature_request_edit_embedded_with_http_info(signature_request_id, signature_request_edit_embedded_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -789,7 +783,6 @@ end | ---- | ---- | ----------- | ----- | | `signature_request_id` | **String** | The id of the SignatureRequest to edit. | | | `signature_request_edit_embedded_request` | [**SignatureRequestEditEmbeddedRequest**](SignatureRequestEditEmbeddedRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -807,7 +800,7 @@ end ## `signature_request_edit_embedded_with_template` -> ` signature_request_edit_embedded_with_template(signature_request_id, signature_request_edit_embedded_with_template_request, opts)` +> ` signature_request_edit_embedded_with_template(signature_request_id, signature_request_edit_embedded_with_template_request)` Edit Embedded Signature Request with Template @@ -868,12 +861,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> signature_request_edit_embedded_with_template_with_http_info(signature_request_id, signature_request_edit_embedded_with_template_request, opts)` +> `, Integer, Hash)> signature_request_edit_embedded_with_template_with_http_info(signature_request_id, signature_request_edit_embedded_with_template_request)` ```ruby begin # Edit Embedded Signature Request with Template - data, status_code, headers = api_instance.signature_request_edit_embedded_with_template_with_http_info(signature_request_id, signature_request_edit_embedded_with_template_request, opts) + data, status_code, headers = api_instance.signature_request_edit_embedded_with_template_with_http_info(signature_request_id, signature_request_edit_embedded_with_template_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -888,7 +881,6 @@ end | ---- | ---- | ----------- | ----- | | `signature_request_id` | **String** | The id of the SignatureRequest to edit. | | | `signature_request_edit_embedded_with_template_request` | [**SignatureRequestEditEmbeddedWithTemplateRequest**](SignatureRequestEditEmbeddedWithTemplateRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -906,7 +898,7 @@ end ## `signature_request_edit_with_template` -> ` signature_request_edit_with_template(signature_request_id, signature_request_edit_with_template_request, opts)` +> ` signature_request_edit_with_template(signature_request_id, signature_request_edit_with_template_request)` Edit Signature Request With Template @@ -986,12 +978,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> signature_request_edit_with_template_with_http_info(signature_request_id, signature_request_edit_with_template_request, opts)` +> `, Integer, Hash)> signature_request_edit_with_template_with_http_info(signature_request_id, signature_request_edit_with_template_request)` ```ruby begin # Edit Signature Request With Template - data, status_code, headers = api_instance.signature_request_edit_with_template_with_http_info(signature_request_id, signature_request_edit_with_template_request, opts) + data, status_code, headers = api_instance.signature_request_edit_with_template_with_http_info(signature_request_id, signature_request_edit_with_template_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -1006,7 +998,6 @@ end | ---- | ---- | ----------- | ----- | | `signature_request_id` | **String** | The id of the SignatureRequest to edit. | | | `signature_request_edit_with_template_request` | [**SignatureRequestEditWithTemplateRequest**](SignatureRequestEditWithTemplateRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1385,7 +1376,7 @@ end ## `signature_request_release_hold` -> ` signature_request_release_hold(signature_request_id, opts)` +> ` signature_request_release_hold(signature_request_id)` Release On-Hold Signature Request @@ -1418,12 +1409,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> signature_request_release_hold_with_http_info(signature_request_id, opts)` +> `, Integer, Hash)> signature_request_release_hold_with_http_info(signature_request_id)` ```ruby begin # Release On-Hold Signature Request - data, status_code, headers = api_instance.signature_request_release_hold_with_http_info(signature_request_id, opts) + data, status_code, headers = api_instance.signature_request_release_hold_with_http_info(signature_request_id) p status_code # => 2xx p headers # => { ... } p data # => @@ -1437,7 +1428,6 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_id` | **String** | The id of the SignatureRequest to release. | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1455,7 +1445,7 @@ end ## `signature_request_remind` -> ` signature_request_remind(signature_request_id, signature_request_remind_request, opts)` +> ` signature_request_remind(signature_request_id, signature_request_remind_request)` Send Request Reminder @@ -1492,12 +1482,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> signature_request_remind_with_http_info(signature_request_id, signature_request_remind_request, opts)` +> `, Integer, Hash)> signature_request_remind_with_http_info(signature_request_id, signature_request_remind_request)` ```ruby begin # Send Request Reminder - data, status_code, headers = api_instance.signature_request_remind_with_http_info(signature_request_id, signature_request_remind_request, opts) + data, status_code, headers = api_instance.signature_request_remind_with_http_info(signature_request_id, signature_request_remind_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -1512,7 +1502,6 @@ end | ---- | ---- | ----------- | ----- | | `signature_request_id` | **String** | The id of the SignatureRequest to send a reminder for. | | | `signature_request_remind_request` | [**SignatureRequestRemindRequest**](SignatureRequestRemindRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1530,7 +1519,7 @@ end ## `signature_request_remove` -> `signature_request_remove(signature_request_id, opts)` +> `signature_request_remove(signature_request_id)` Remove Signature Request Access @@ -1560,12 +1549,12 @@ end This returns an Array which contains the response data (`nil` in this case), status code and headers. -> ` signature_request_remove_with_http_info(signature_request_id, opts)` +> ` signature_request_remove_with_http_info(signature_request_id)` ```ruby begin # Remove Signature Request Access - data, status_code, headers = api_instance.signature_request_remove_with_http_info(signature_request_id, opts) + data, status_code, headers = api_instance.signature_request_remove_with_http_info(signature_request_id) p status_code # => 2xx p headers # => { ... } p data # => nil @@ -1579,7 +1568,6 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_id` | **String** | The id of the SignatureRequest to remove. | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1597,7 +1585,7 @@ nil (empty response body) ## `signature_request_send` -> ` signature_request_send(signature_request_send_request, opts)` +> ` signature_request_send(signature_request_send_request)` Send Signature Request @@ -1679,12 +1667,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> signature_request_send_with_http_info(signature_request_send_request, opts)` +> `, Integer, Hash)> signature_request_send_with_http_info(signature_request_send_request)` ```ruby begin # Send Signature Request - data, status_code, headers = api_instance.signature_request_send_with_http_info(signature_request_send_request, opts) + data, status_code, headers = api_instance.signature_request_send_with_http_info(signature_request_send_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -1698,7 +1686,6 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_send_request` | [**SignatureRequestSendRequest**](SignatureRequestSendRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1716,7 +1703,7 @@ end ## `signature_request_send_with_template` -> ` signature_request_send_with_template(signature_request_send_with_template_request, opts)` +> ` signature_request_send_with_template(signature_request_send_with_template_request)` Send with Template @@ -1796,12 +1783,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> signature_request_send_with_template_with_http_info(signature_request_send_with_template_request, opts)` +> `, Integer, Hash)> signature_request_send_with_template_with_http_info(signature_request_send_with_template_request)` ```ruby begin # Send with Template - data, status_code, headers = api_instance.signature_request_send_with_template_with_http_info(signature_request_send_with_template_request, opts) + data, status_code, headers = api_instance.signature_request_send_with_template_with_http_info(signature_request_send_with_template_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -1815,7 +1802,6 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `signature_request_send_with_template_request` | [**SignatureRequestSendWithTemplateRequest**](SignatureRequestSendWithTemplateRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -1833,7 +1819,7 @@ end ## `signature_request_update` -> ` signature_request_update(signature_request_id, signature_request_update_request, opts)` +> ` signature_request_update(signature_request_id, signature_request_update_request)` Update Signature Request @@ -1871,12 +1857,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> signature_request_update_with_http_info(signature_request_id, signature_request_update_request, opts)` +> `, Integer, Hash)> signature_request_update_with_http_info(signature_request_id, signature_request_update_request)` ```ruby begin # Update Signature Request - data, status_code, headers = api_instance.signature_request_update_with_http_info(signature_request_id, signature_request_update_request, opts) + data, status_code, headers = api_instance.signature_request_update_with_http_info(signature_request_id, signature_request_update_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -1891,7 +1877,6 @@ end | ---- | ---- | ----------- | ----- | | `signature_request_id` | **String** | The id of the SignatureRequest to update. | | | `signature_request_update_request` | [**SignatureRequestUpdateRequest**](SignatureRequestUpdateRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/ruby/docs/TeamApi.md b/sdks/ruby/docs/TeamApi.md index c40f6ee75..b8279a3b9 100644 --- a/sdks/ruby/docs/TeamApi.md +++ b/sdks/ruby/docs/TeamApi.md @@ -77,7 +77,6 @@ end | ---- | ---- | ----------- | ----- | | `team_add_member_request` | [**TeamAddMemberRequest**](TeamAddMemberRequest.md) | | | | `team_id` | **String** | The id of the team. | [optional] | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -95,7 +94,7 @@ end ## `team_create` -> ` team_create(team_create_request, opts)` +> ` team_create(team_create_request)` Create Team @@ -131,12 +130,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> team_create_with_http_info(team_create_request, opts)` +> `, Integer, Hash)> team_create_with_http_info(team_create_request)` ```ruby begin # Create Team - data, status_code, headers = api_instance.team_create_with_http_info(team_create_request, opts) + data, status_code, headers = api_instance.team_create_with_http_info(team_create_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -150,7 +149,6 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `team_create_request` | [**TeamCreateRequest**](TeamCreateRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -509,7 +507,7 @@ end ## `team_remove_member` -> ` team_remove_member(team_remove_member_request, opts)` +> ` team_remove_member(team_remove_member_request)` Remove User from Team @@ -546,12 +544,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> team_remove_member_with_http_info(team_remove_member_request, opts)` +> `, Integer, Hash)> team_remove_member_with_http_info(team_remove_member_request)` ```ruby begin # Remove User from Team - data, status_code, headers = api_instance.team_remove_member_with_http_info(team_remove_member_request, opts) + data, status_code, headers = api_instance.team_remove_member_with_http_info(team_remove_member_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -565,7 +563,6 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `team_remove_member_request` | [**TeamRemoveMemberRequest**](TeamRemoveMemberRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -658,7 +655,7 @@ end ## `team_update` -> ` team_update(team_update_request, opts)` +> ` team_update(team_update_request)` Update Team @@ -694,12 +691,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> team_update_with_http_info(team_update_request, opts)` +> `, Integer, Hash)> team_update_with_http_info(team_update_request)` ```ruby begin # Update Team - data, status_code, headers = api_instance.team_update_with_http_info(team_update_request, opts) + data, status_code, headers = api_instance.team_update_with_http_info(team_update_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -713,7 +710,6 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `team_update_request` | [**TeamUpdateRequest**](TeamUpdateRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/ruby/docs/TemplateApi.md b/sdks/ruby/docs/TemplateApi.md index 8a9c0cba7..ffd6ec0ea 100644 --- a/sdks/ruby/docs/TemplateApi.md +++ b/sdks/ruby/docs/TemplateApi.md @@ -19,7 +19,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## `template_add_user` -> ` template_add_user(template_id, template_add_user_request, opts)` +> ` template_add_user(template_id, template_add_user_request)` Add User to Template @@ -56,12 +56,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> template_add_user_with_http_info(template_id, template_add_user_request, opts)` +> `, Integer, Hash)> template_add_user_with_http_info(template_id, template_add_user_request)` ```ruby begin # Add User to Template - data, status_code, headers = api_instance.template_add_user_with_http_info(template_id, template_add_user_request, opts) + data, status_code, headers = api_instance.template_add_user_with_http_info(template_id, template_add_user_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -76,7 +76,6 @@ end | ---- | ---- | ----------- | ----- | | `template_id` | **String** | The id of the Template to give the Account access to. | | | `template_add_user_request` | [**TemplateAddUserRequest**](TemplateAddUserRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -94,7 +93,7 @@ end ## `template_create` -> ` template_create(template_create_request, opts)` +> ` template_create(template_create_request)` Create Template @@ -206,12 +205,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> template_create_with_http_info(template_create_request, opts)` +> `, Integer, Hash)> template_create_with_http_info(template_create_request)` ```ruby begin # Create Template - data, status_code, headers = api_instance.template_create_with_http_info(template_create_request, opts) + data, status_code, headers = api_instance.template_create_with_http_info(template_create_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -225,7 +224,6 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `template_create_request` | [**TemplateCreateRequest**](TemplateCreateRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -243,7 +241,7 @@ end ## `template_create_embedded_draft` -> ` template_create_embedded_draft(template_create_embedded_draft_request, opts)` +> ` template_create_embedded_draft(template_create_embedded_draft_request)` Create Embedded Template Draft @@ -321,12 +319,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> template_create_embedded_draft_with_http_info(template_create_embedded_draft_request, opts)` +> `, Integer, Hash)> template_create_embedded_draft_with_http_info(template_create_embedded_draft_request)` ```ruby begin # Create Embedded Template Draft - data, status_code, headers = api_instance.template_create_embedded_draft_with_http_info(template_create_embedded_draft_request, opts) + data, status_code, headers = api_instance.template_create_embedded_draft_with_http_info(template_create_embedded_draft_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -340,7 +338,6 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `template_create_embedded_draft_request` | [**TemplateCreateEmbeddedDraftRequest**](TemplateCreateEmbeddedDraftRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -358,7 +355,7 @@ end ## `template_delete` -> `template_delete(template_id, opts)` +> `template_delete(template_id)` Delete Template @@ -389,12 +386,12 @@ end This returns an Array which contains the response data (`nil` in this case), status code and headers. -> ` template_delete_with_http_info(template_id, opts)` +> ` template_delete_with_http_info(template_id)` ```ruby begin # Delete Template - data, status_code, headers = api_instance.template_delete_with_http_info(template_id, opts) + data, status_code, headers = api_instance.template_delete_with_http_info(template_id) p status_code # => 2xx p headers # => { ... } p data # => nil @@ -408,7 +405,6 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `template_id` | **String** | The id of the Template to delete. | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -784,7 +780,7 @@ end ## `template_remove_user` -> ` template_remove_user(template_id, template_remove_user_request, opts)` +> ` template_remove_user(template_id, template_remove_user_request)` Remove User from Template @@ -821,12 +817,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> template_remove_user_with_http_info(template_id, template_remove_user_request, opts)` +> `, Integer, Hash)> template_remove_user_with_http_info(template_id, template_remove_user_request)` ```ruby begin # Remove User from Template - data, status_code, headers = api_instance.template_remove_user_with_http_info(template_id, template_remove_user_request, opts) + data, status_code, headers = api_instance.template_remove_user_with_http_info(template_id, template_remove_user_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -841,7 +837,6 @@ end | ---- | ---- | ----------- | ----- | | `template_id` | **String** | The id of the Template to remove the Account's access to. | | | `template_remove_user_request` | [**TemplateRemoveUserRequest**](TemplateRemoveUserRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -859,7 +854,7 @@ end ## `template_update_files` -> ` template_update_files(template_id, template_update_files_request, opts)` +> ` template_update_files(template_id, template_update_files_request)` Update Template Files @@ -898,12 +893,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> template_update_files_with_http_info(template_id, template_update_files_request, opts)` +> `, Integer, Hash)> template_update_files_with_http_info(template_id, template_update_files_request)` ```ruby begin # Update Template Files - data, status_code, headers = api_instance.template_update_files_with_http_info(template_id, template_update_files_request, opts) + data, status_code, headers = api_instance.template_update_files_with_http_info(template_id, template_update_files_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -918,7 +913,6 @@ end | ---- | ---- | ----------- | ----- | | `template_id` | **String** | The ID of the template whose files to update. | | | `template_update_files_request` | [**TemplateUpdateFilesRequest**](TemplateUpdateFilesRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/ruby/docs/UnclaimedDraftApi.md b/sdks/ruby/docs/UnclaimedDraftApi.md index 29294c8ce..2ce820254 100644 --- a/sdks/ruby/docs/UnclaimedDraftApi.md +++ b/sdks/ruby/docs/UnclaimedDraftApi.md @@ -12,7 +12,7 @@ All URIs are relative to *https://api.hellosign.com/v3* ## `unclaimed_draft_create` -> ` unclaimed_draft_create(unclaimed_draft_create_request, opts)` +> ` unclaimed_draft_create(unclaimed_draft_create_request)` Create Unclaimed Draft @@ -62,12 +62,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> unclaimed_draft_create_with_http_info(unclaimed_draft_create_request, opts)` +> `, Integer, Hash)> unclaimed_draft_create_with_http_info(unclaimed_draft_create_request)` ```ruby begin # Create Unclaimed Draft - data, status_code, headers = api_instance.unclaimed_draft_create_with_http_info(unclaimed_draft_create_request, opts) + data, status_code, headers = api_instance.unclaimed_draft_create_with_http_info(unclaimed_draft_create_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -81,7 +81,6 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `unclaimed_draft_create_request` | [**UnclaimedDraftCreateRequest**](UnclaimedDraftCreateRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -99,7 +98,7 @@ end ## `unclaimed_draft_create_embedded` -> ` unclaimed_draft_create_embedded(unclaimed_draft_create_embedded_request, opts)` +> ` unclaimed_draft_create_embedded(unclaimed_draft_create_embedded_request)` Create Embedded Unclaimed Draft @@ -140,12 +139,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> unclaimed_draft_create_embedded_with_http_info(unclaimed_draft_create_embedded_request, opts)` +> `, Integer, Hash)> unclaimed_draft_create_embedded_with_http_info(unclaimed_draft_create_embedded_request)` ```ruby begin # Create Embedded Unclaimed Draft - data, status_code, headers = api_instance.unclaimed_draft_create_embedded_with_http_info(unclaimed_draft_create_embedded_request, opts) + data, status_code, headers = api_instance.unclaimed_draft_create_embedded_with_http_info(unclaimed_draft_create_embedded_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -159,7 +158,6 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `unclaimed_draft_create_embedded_request` | [**UnclaimedDraftCreateEmbeddedRequest**](UnclaimedDraftCreateEmbeddedRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -177,7 +175,7 @@ end ## `unclaimed_draft_create_embedded_with_template` -> ` unclaimed_draft_create_embedded_with_template(unclaimed_draft_create_embedded_with_template_request, opts)` +> ` unclaimed_draft_create_embedded_with_template(unclaimed_draft_create_embedded_with_template_request)` Create Embedded Unclaimed Draft with Template @@ -237,12 +235,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> unclaimed_draft_create_embedded_with_template_with_http_info(unclaimed_draft_create_embedded_with_template_request, opts)` +> `, Integer, Hash)> unclaimed_draft_create_embedded_with_template_with_http_info(unclaimed_draft_create_embedded_with_template_request)` ```ruby begin # Create Embedded Unclaimed Draft with Template - data, status_code, headers = api_instance.unclaimed_draft_create_embedded_with_template_with_http_info(unclaimed_draft_create_embedded_with_template_request, opts) + data, status_code, headers = api_instance.unclaimed_draft_create_embedded_with_template_with_http_info(unclaimed_draft_create_embedded_with_template_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -256,7 +254,6 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `unclaimed_draft_create_embedded_with_template_request` | [**UnclaimedDraftCreateEmbeddedWithTemplateRequest**](UnclaimedDraftCreateEmbeddedWithTemplateRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type @@ -274,7 +271,7 @@ end ## `unclaimed_draft_edit_and_resend` -> ` unclaimed_draft_edit_and_resend(signature_request_id, unclaimed_draft_edit_and_resend_request, opts)` +> ` unclaimed_draft_edit_and_resend(signature_request_id, unclaimed_draft_edit_and_resend_request)` Edit and Resend Unclaimed Draft @@ -312,12 +309,12 @@ end This returns an Array which contains the response data, status code and headers. -> `, Integer, Hash)> unclaimed_draft_edit_and_resend_with_http_info(signature_request_id, unclaimed_draft_edit_and_resend_request, opts)` +> `, Integer, Hash)> unclaimed_draft_edit_and_resend_with_http_info(signature_request_id, unclaimed_draft_edit_and_resend_request)` ```ruby begin # Edit and Resend Unclaimed Draft - data, status_code, headers = api_instance.unclaimed_draft_edit_and_resend_with_http_info(signature_request_id, unclaimed_draft_edit_and_resend_request, opts) + data, status_code, headers = api_instance.unclaimed_draft_edit_and_resend_with_http_info(signature_request_id, unclaimed_draft_edit_and_resend_request) p status_code # => 2xx p headers # => { ... } p data # => @@ -332,7 +329,6 @@ end | ---- | ---- | ----------- | ----- | | `signature_request_id` | **String** | The ID of the signature request to edit and resend. | | | `unclaimed_draft_edit_and_resend_request` | [**UnclaimedDraftEditAndResendRequest**](UnclaimedDraftEditAndResendRequest.md) | | | -| `idempotency_key` | **String** | Reuse the same key when retrying the same request. Must be 1 to 255 characters. | [optional] | ### Return type diff --git a/sdks/ruby/lib/dropbox-sign/api/account_api.rb b/sdks/ruby/lib/dropbox-sign/api/account_api.rb index ffbe9f9aa..873531b58 100644 --- a/sdks/ruby/lib/dropbox-sign/api/account_api.rb +++ b/sdks/ruby/lib/dropbox-sign/api/account_api.rb @@ -27,7 +27,6 @@ def initialize(api_client = ApiClient.default) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/AccountCreateExample.rb # @param account_create_request [AccountCreateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [AccountCreateResponse] def account_create(account_create_request, opts = {}) data, _status_code, _headers = account_create_with_http_info(account_create_request, opts) @@ -39,7 +38,6 @@ def account_create(account_create_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/AccountCreateExample.rb # @param account_create_request [AccountCreateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(AccountCreateResponse, Integer, Hash)>] AccountCreateResponse data, response status code and response headers def account_create_with_http_info(account_create_request, opts = {}) if @api_client.config.debugging @@ -49,14 +47,6 @@ def account_create_with_http_info(account_create_request, opts = {}) if @api_client.config.client_side_validation && account_create_request.nil? fail ArgumentError, "Missing the required parameter 'account_create_request' when calling AccountApi.account_create" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling AccountApi.account_create, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling AccountApi.account_create, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/account/create' @@ -72,7 +62,6 @@ def account_create_with_http_info(account_create_request, opts = {}) if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -247,7 +236,6 @@ def account_get_with_http_info(opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/AccountUpdateExample.rb # @param account_update_request [AccountUpdateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [AccountGetResponse] def account_update(account_update_request, opts = {}) data, _status_code, _headers = account_update_with_http_info(account_update_request, opts) @@ -259,7 +247,6 @@ def account_update(account_update_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/AccountUpdateExample.rb # @param account_update_request [AccountUpdateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(AccountGetResponse, Integer, Hash)>] AccountGetResponse data, response status code and response headers def account_update_with_http_info(account_update_request, opts = {}) if @api_client.config.debugging @@ -269,14 +256,6 @@ def account_update_with_http_info(account_update_request, opts = {}) if @api_client.config.client_side_validation && account_update_request.nil? fail ArgumentError, "Missing the required parameter 'account_update_request' when calling AccountApi.account_update" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling AccountApi.account_update, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling AccountApi.account_update, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/account' @@ -292,7 +271,6 @@ def account_update_with_http_info(account_update_request, opts = {}) if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -370,7 +348,6 @@ def account_update_with_http_info(account_update_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/AccountVerifyExample.rb # @param account_verify_request [AccountVerifyRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [AccountVerifyResponse] def account_verify(account_verify_request, opts = {}) data, _status_code, _headers = account_verify_with_http_info(account_verify_request, opts) @@ -382,7 +359,6 @@ def account_verify(account_verify_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/AccountVerifyExample.rb # @param account_verify_request [AccountVerifyRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(AccountVerifyResponse, Integer, Hash)>] AccountVerifyResponse data, response status code and response headers def account_verify_with_http_info(account_verify_request, opts = {}) if @api_client.config.debugging @@ -392,14 +368,6 @@ def account_verify_with_http_info(account_verify_request, opts = {}) if @api_client.config.client_side_validation && account_verify_request.nil? fail ArgumentError, "Missing the required parameter 'account_verify_request' when calling AccountApi.account_verify" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling AccountApi.account_verify, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling AccountApi.account_verify, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/account/verify' @@ -415,7 +383,6 @@ def account_verify_with_http_info(account_verify_request, opts = {}) if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} diff --git a/sdks/ruby/lib/dropbox-sign/api/api_app_api.rb b/sdks/ruby/lib/dropbox-sign/api/api_app_api.rb index 4a773cbd3..0ec145b5a 100644 --- a/sdks/ruby/lib/dropbox-sign/api/api_app_api.rb +++ b/sdks/ruby/lib/dropbox-sign/api/api_app_api.rb @@ -27,7 +27,6 @@ def initialize(api_client = ApiClient.default) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/ApiAppCreateExample.rb # @param api_app_create_request [ApiAppCreateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [ApiAppGetResponse] def api_app_create(api_app_create_request, opts = {}) data, _status_code, _headers = api_app_create_with_http_info(api_app_create_request, opts) @@ -39,7 +38,6 @@ def api_app_create(api_app_create_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/ApiAppCreateExample.rb # @param api_app_create_request [ApiAppCreateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(ApiAppGetResponse, Integer, Hash)>] ApiAppGetResponse data, response status code and response headers def api_app_create_with_http_info(api_app_create_request, opts = {}) if @api_client.config.debugging @@ -49,14 +47,6 @@ def api_app_create_with_http_info(api_app_create_request, opts = {}) if @api_client.config.client_side_validation && api_app_create_request.nil? fail ArgumentError, "Missing the required parameter 'api_app_create_request' when calling ApiAppApi.api_app_create" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling ApiAppApi.api_app_create, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling ApiAppApi.api_app_create, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/api_app' @@ -72,7 +62,6 @@ def api_app_create_with_http_info(api_app_create_request, opts = {}) if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -415,7 +404,6 @@ def api_app_list_with_http_info(opts = {}) # @param client_id [String] The client id of the API App to update. # @param api_app_update_request [ApiAppUpdateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [ApiAppGetResponse] def api_app_update(client_id, api_app_update_request, opts = {}) data, _status_code, _headers = api_app_update_with_http_info(client_id, api_app_update_request, opts) @@ -428,7 +416,6 @@ def api_app_update(client_id, api_app_update_request, opts = {}) # @param client_id [String] The client id of the API App to update. # @param api_app_update_request [ApiAppUpdateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(ApiAppGetResponse, Integer, Hash)>] ApiAppGetResponse data, response status code and response headers def api_app_update_with_http_info(client_id, api_app_update_request, opts = {}) if @api_client.config.debugging @@ -442,14 +429,6 @@ def api_app_update_with_http_info(client_id, api_app_update_request, opts = {}) if @api_client.config.client_side_validation && api_app_update_request.nil? fail ArgumentError, "Missing the required parameter 'api_app_update_request' when calling ApiAppApi.api_app_update" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling ApiAppApi.api_app_update, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling ApiAppApi.api_app_update, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/api_app/{client_id}'.sub('{' + 'client_id' + '}', CGI.escape(client_id.to_s)) @@ -465,7 +444,6 @@ def api_app_update_with_http_info(client_id, api_app_update_request, opts = {}) if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} diff --git a/sdks/ruby/lib/dropbox-sign/api/document_api.rb b/sdks/ruby/lib/dropbox-sign/api/document_api.rb index 3029fbf83..84322c7e2 100644 --- a/sdks/ruby/lib/dropbox-sign/api/document_api.rb +++ b/sdks/ruby/lib/dropbox-sign/api/document_api.rb @@ -27,7 +27,6 @@ def initialize(api_client = ApiClient.default) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/DocumentDetectFieldsExample.rb # @param document_field_detection_request [DocumentFieldDetectionRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [DocumentFieldDetectionResponse] def document_detect_fields(document_field_detection_request, opts = {}) data, _status_code, _headers = document_detect_fields_with_http_info(document_field_detection_request, opts) @@ -39,7 +38,6 @@ def document_detect_fields(document_field_detection_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/DocumentDetectFieldsExample.rb # @param document_field_detection_request [DocumentFieldDetectionRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(DocumentFieldDetectionResponse, Integer, Hash)>] DocumentFieldDetectionResponse data, response status code and response headers def document_detect_fields_with_http_info(document_field_detection_request, opts = {}) if @api_client.config.debugging @@ -49,14 +47,6 @@ def document_detect_fields_with_http_info(document_field_detection_request, opts if @api_client.config.client_side_validation && document_field_detection_request.nil? fail ArgumentError, "Missing the required parameter 'document_field_detection_request' when calling DocumentApi.document_detect_fields" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling DocumentApi.document_detect_fields, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling DocumentApi.document_detect_fields, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/document/detect_fields' @@ -72,7 +62,6 @@ def document_detect_fields_with_http_info(document_field_detection_request, opts if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} diff --git a/sdks/ruby/lib/dropbox-sign/api/embedded_api.rb b/sdks/ruby/lib/dropbox-sign/api/embedded_api.rb index 197723de1..e5c021909 100644 --- a/sdks/ruby/lib/dropbox-sign/api/embedded_api.rb +++ b/sdks/ruby/lib/dropbox-sign/api/embedded_api.rb @@ -28,7 +28,6 @@ def initialize(api_client = ApiClient.default) # @param template_id [String] The id of the template to edit. # @param embedded_edit_url_request [EmbeddedEditUrlRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [EmbeddedEditUrlResponse] def embedded_edit_url(template_id, embedded_edit_url_request, opts = {}) data, _status_code, _headers = embedded_edit_url_with_http_info(template_id, embedded_edit_url_request, opts) @@ -41,7 +40,6 @@ def embedded_edit_url(template_id, embedded_edit_url_request, opts = {}) # @param template_id [String] The id of the template to edit. # @param embedded_edit_url_request [EmbeddedEditUrlRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(EmbeddedEditUrlResponse, Integer, Hash)>] EmbeddedEditUrlResponse data, response status code and response headers def embedded_edit_url_with_http_info(template_id, embedded_edit_url_request, opts = {}) if @api_client.config.debugging @@ -55,14 +53,6 @@ def embedded_edit_url_with_http_info(template_id, embedded_edit_url_request, opt if @api_client.config.client_side_validation && embedded_edit_url_request.nil? fail ArgumentError, "Missing the required parameter 'embedded_edit_url_request' when calling EmbeddedApi.embedded_edit_url" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling EmbeddedApi.embedded_edit_url, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling EmbeddedApi.embedded_edit_url, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/embedded/edit_url/{template_id}'.sub('{' + 'template_id' + '}', CGI.escape(template_id.to_s)) @@ -78,7 +68,6 @@ def embedded_edit_url_with_http_info(template_id, embedded_edit_url_request, opt if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} diff --git a/sdks/ruby/lib/dropbox-sign/api/fax_api.rb b/sdks/ruby/lib/dropbox-sign/api/fax_api.rb index 5bf83077d..04d04eb8c 100644 --- a/sdks/ruby/lib/dropbox-sign/api/fax_api.rb +++ b/sdks/ruby/lib/dropbox-sign/api/fax_api.rb @@ -400,7 +400,6 @@ def fax_list_with_http_info(opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/FaxSendExample.rb # @param fax_send_request [FaxSendRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [FaxGetResponse] def fax_send(fax_send_request, opts = {}) data, _status_code, _headers = fax_send_with_http_info(fax_send_request, opts) @@ -412,7 +411,6 @@ def fax_send(fax_send_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/FaxSendExample.rb # @param fax_send_request [FaxSendRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(FaxGetResponse, Integer, Hash)>] FaxGetResponse data, response status code and response headers def fax_send_with_http_info(fax_send_request, opts = {}) if @api_client.config.debugging @@ -422,14 +420,6 @@ def fax_send_with_http_info(fax_send_request, opts = {}) if @api_client.config.client_side_validation && fax_send_request.nil? fail ArgumentError, "Missing the required parameter 'fax_send_request' when calling FaxApi.fax_send" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling FaxApi.fax_send, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling FaxApi.fax_send, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/fax/send' @@ -445,7 +435,6 @@ def fax_send_with_http_info(fax_send_request, opts = {}) if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} diff --git a/sdks/ruby/lib/dropbox-sign/api/fax_line_api.rb b/sdks/ruby/lib/dropbox-sign/api/fax_line_api.rb index 0d4485664..232aaa736 100644 --- a/sdks/ruby/lib/dropbox-sign/api/fax_line_api.rb +++ b/sdks/ruby/lib/dropbox-sign/api/fax_line_api.rb @@ -27,7 +27,6 @@ def initialize(api_client = ApiClient.default) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/FaxLineAddUserExample.rb # @param fax_line_add_user_request [FaxLineAddUserRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [FaxLineResponse] def fax_line_add_user(fax_line_add_user_request, opts = {}) data, _status_code, _headers = fax_line_add_user_with_http_info(fax_line_add_user_request, opts) @@ -39,7 +38,6 @@ def fax_line_add_user(fax_line_add_user_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/FaxLineAddUserExample.rb # @param fax_line_add_user_request [FaxLineAddUserRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(FaxLineResponse, Integer, Hash)>] FaxLineResponse data, response status code and response headers def fax_line_add_user_with_http_info(fax_line_add_user_request, opts = {}) if @api_client.config.debugging @@ -49,14 +47,6 @@ def fax_line_add_user_with_http_info(fax_line_add_user_request, opts = {}) if @api_client.config.client_side_validation && fax_line_add_user_request.nil? fail ArgumentError, "Missing the required parameter 'fax_line_add_user_request' when calling FaxLineApi.fax_line_add_user" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling FaxLineApi.fax_line_add_user, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling FaxLineApi.fax_line_add_user, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/fax_line/add_user' @@ -72,7 +62,6 @@ def fax_line_add_user_with_http_info(fax_line_add_user_request, opts = {}) if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -270,7 +259,6 @@ def fax_line_area_code_get_with_http_info(country, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/FaxLineCreateExample.rb # @param fax_line_create_request [FaxLineCreateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [FaxLineResponse] def fax_line_create(fax_line_create_request, opts = {}) data, _status_code, _headers = fax_line_create_with_http_info(fax_line_create_request, opts) @@ -282,7 +270,6 @@ def fax_line_create(fax_line_create_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/FaxLineCreateExample.rb # @param fax_line_create_request [FaxLineCreateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(FaxLineResponse, Integer, Hash)>] FaxLineResponse data, response status code and response headers def fax_line_create_with_http_info(fax_line_create_request, opts = {}) if @api_client.config.debugging @@ -292,14 +279,6 @@ def fax_line_create_with_http_info(fax_line_create_request, opts = {}) if @api_client.config.client_side_validation && fax_line_create_request.nil? fail ArgumentError, "Missing the required parameter 'fax_line_create_request' when calling FaxLineApi.fax_line_create" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling FaxLineApi.fax_line_create, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling FaxLineApi.fax_line_create, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/fax_line/create' @@ -315,7 +294,6 @@ def fax_line_create_with_http_info(fax_line_create_request, opts = {}) if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -679,7 +657,6 @@ def fax_line_list_with_http_info(opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/FaxLineRemoveUserExample.rb # @param fax_line_remove_user_request [FaxLineRemoveUserRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [FaxLineResponse] def fax_line_remove_user(fax_line_remove_user_request, opts = {}) data, _status_code, _headers = fax_line_remove_user_with_http_info(fax_line_remove_user_request, opts) @@ -691,7 +668,6 @@ def fax_line_remove_user(fax_line_remove_user_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/FaxLineRemoveUserExample.rb # @param fax_line_remove_user_request [FaxLineRemoveUserRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(FaxLineResponse, Integer, Hash)>] FaxLineResponse data, response status code and response headers def fax_line_remove_user_with_http_info(fax_line_remove_user_request, opts = {}) if @api_client.config.debugging @@ -701,14 +677,6 @@ def fax_line_remove_user_with_http_info(fax_line_remove_user_request, opts = {}) if @api_client.config.client_side_validation && fax_line_remove_user_request.nil? fail ArgumentError, "Missing the required parameter 'fax_line_remove_user_request' when calling FaxLineApi.fax_line_remove_user" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling FaxLineApi.fax_line_remove_user, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling FaxLineApi.fax_line_remove_user, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/fax_line/remove_user' @@ -724,7 +692,6 @@ def fax_line_remove_user_with_http_info(fax_line_remove_user_request, opts = {}) if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} diff --git a/sdks/ruby/lib/dropbox-sign/api/report_api.rb b/sdks/ruby/lib/dropbox-sign/api/report_api.rb index c889678dd..a6e414821 100644 --- a/sdks/ruby/lib/dropbox-sign/api/report_api.rb +++ b/sdks/ruby/lib/dropbox-sign/api/report_api.rb @@ -27,7 +27,6 @@ def initialize(api_client = ApiClient.default) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/ReportCreateExample.rb # @param report_create_request [ReportCreateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [ReportCreateResponse] def report_create(report_create_request, opts = {}) data, _status_code, _headers = report_create_with_http_info(report_create_request, opts) @@ -39,7 +38,6 @@ def report_create(report_create_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/ReportCreateExample.rb # @param report_create_request [ReportCreateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(ReportCreateResponse, Integer, Hash)>] ReportCreateResponse data, response status code and response headers def report_create_with_http_info(report_create_request, opts = {}) if @api_client.config.debugging @@ -49,14 +47,6 @@ def report_create_with_http_info(report_create_request, opts = {}) if @api_client.config.client_side_validation && report_create_request.nil? fail ArgumentError, "Missing the required parameter 'report_create_request' when calling ReportApi.report_create" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling ReportApi.report_create, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling ReportApi.report_create, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/report/create' @@ -72,7 +62,6 @@ def report_create_with_http_info(report_create_request, opts = {}) if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} diff --git a/sdks/ruby/lib/dropbox-sign/api/signature_request_api.rb b/sdks/ruby/lib/dropbox-sign/api/signature_request_api.rb index eb09a2051..84294f5b2 100644 --- a/sdks/ruby/lib/dropbox-sign/api/signature_request_api.rb +++ b/sdks/ruby/lib/dropbox-sign/api/signature_request_api.rb @@ -27,7 +27,6 @@ def initialize(api_client = ApiClient.default) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.rb # @param signature_request_bulk_create_embedded_with_template_request [SignatureRequestBulkCreateEmbeddedWithTemplateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [BulkSendJobSendResponse] def signature_request_bulk_create_embedded_with_template(signature_request_bulk_create_embedded_with_template_request, opts = {}) data, _status_code, _headers = signature_request_bulk_create_embedded_with_template_with_http_info(signature_request_bulk_create_embedded_with_template_request, opts) @@ -39,7 +38,6 @@ def signature_request_bulk_create_embedded_with_template(signature_request_bulk_ # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.rb # @param signature_request_bulk_create_embedded_with_template_request [SignatureRequestBulkCreateEmbeddedWithTemplateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(BulkSendJobSendResponse, Integer, Hash)>] BulkSendJobSendResponse data, response status code and response headers def signature_request_bulk_create_embedded_with_template_with_http_info(signature_request_bulk_create_embedded_with_template_request, opts = {}) if @api_client.config.debugging @@ -49,14 +47,6 @@ def signature_request_bulk_create_embedded_with_template_with_http_info(signatur if @api_client.config.client_side_validation && signature_request_bulk_create_embedded_with_template_request.nil? fail ArgumentError, "Missing the required parameter 'signature_request_bulk_create_embedded_with_template_request' when calling SignatureRequestApi.signature_request_bulk_create_embedded_with_template" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_bulk_create_embedded_with_template, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_bulk_create_embedded_with_template, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/signature_request/bulk_create_embedded_with_template' @@ -72,7 +62,6 @@ def signature_request_bulk_create_embedded_with_template_with_http_info(signatur if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -150,7 +139,6 @@ def signature_request_bulk_create_embedded_with_template_with_http_info(signatur # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.rb # @param signature_request_bulk_send_with_template_request [SignatureRequestBulkSendWithTemplateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [BulkSendJobSendResponse] def signature_request_bulk_send_with_template(signature_request_bulk_send_with_template_request, opts = {}) data, _status_code, _headers = signature_request_bulk_send_with_template_with_http_info(signature_request_bulk_send_with_template_request, opts) @@ -162,7 +150,6 @@ def signature_request_bulk_send_with_template(signature_request_bulk_send_with_t # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestBulkSendWithTemplateExample.rb # @param signature_request_bulk_send_with_template_request [SignatureRequestBulkSendWithTemplateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(BulkSendJobSendResponse, Integer, Hash)>] BulkSendJobSendResponse data, response status code and response headers def signature_request_bulk_send_with_template_with_http_info(signature_request_bulk_send_with_template_request, opts = {}) if @api_client.config.debugging @@ -172,14 +159,6 @@ def signature_request_bulk_send_with_template_with_http_info(signature_request_b if @api_client.config.client_side_validation && signature_request_bulk_send_with_template_request.nil? fail ArgumentError, "Missing the required parameter 'signature_request_bulk_send_with_template_request' when calling SignatureRequestApi.signature_request_bulk_send_with_template" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_bulk_send_with_template, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_bulk_send_with_template, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/signature_request/bulk_send_with_template' @@ -195,7 +174,6 @@ def signature_request_bulk_send_with_template_with_http_info(signature_request_b if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -273,7 +251,6 @@ def signature_request_bulk_send_with_template_with_http_info(signature_request_b # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestCancelExample.rb # @param signature_request_id [String] The id of the incomplete SignatureRequest to cancel. # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [nil] def signature_request_cancel(signature_request_id, opts = {}) signature_request_cancel_with_http_info(signature_request_id, opts) @@ -285,7 +262,6 @@ def signature_request_cancel(signature_request_id, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestCancelExample.rb # @param signature_request_id [String] The id of the incomplete SignatureRequest to cancel. # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def signature_request_cancel_with_http_info(signature_request_id, opts = {}) if @api_client.config.debugging @@ -295,14 +271,6 @@ def signature_request_cancel_with_http_info(signature_request_id, opts = {}) if @api_client.config.client_side_validation && signature_request_id.nil? fail ArgumentError, "Missing the required parameter 'signature_request_id' when calling SignatureRequestApi.signature_request_cancel" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_cancel, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_cancel, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/signature_request/cancel/{signature_request_id}'.sub('{' + 'signature_request_id' + '}', CGI.escape(signature_request_id.to_s)) @@ -313,7 +281,6 @@ def signature_request_cancel_with_http_info(signature_request_id, opts = {}) header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -354,7 +321,6 @@ def signature_request_cancel_with_http_info(signature_request_id, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestCreateEmbeddedExample.rb # @param signature_request_create_embedded_request [SignatureRequestCreateEmbeddedRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [SignatureRequestGetResponse] def signature_request_create_embedded(signature_request_create_embedded_request, opts = {}) data, _status_code, _headers = signature_request_create_embedded_with_http_info(signature_request_create_embedded_request, opts) @@ -366,7 +332,6 @@ def signature_request_create_embedded(signature_request_create_embedded_request, # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestCreateEmbeddedExample.rb # @param signature_request_create_embedded_request [SignatureRequestCreateEmbeddedRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(SignatureRequestGetResponse, Integer, Hash)>] SignatureRequestGetResponse data, response status code and response headers def signature_request_create_embedded_with_http_info(signature_request_create_embedded_request, opts = {}) if @api_client.config.debugging @@ -376,14 +341,6 @@ def signature_request_create_embedded_with_http_info(signature_request_create_em if @api_client.config.client_side_validation && signature_request_create_embedded_request.nil? fail ArgumentError, "Missing the required parameter 'signature_request_create_embedded_request' when calling SignatureRequestApi.signature_request_create_embedded" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_create_embedded, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_create_embedded, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/signature_request/create_embedded' @@ -399,7 +356,6 @@ def signature_request_create_embedded_with_http_info(signature_request_create_em if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -477,7 +433,6 @@ def signature_request_create_embedded_with_http_info(signature_request_create_em # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.rb # @param signature_request_create_embedded_with_template_request [SignatureRequestCreateEmbeddedWithTemplateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [SignatureRequestGetResponse] def signature_request_create_embedded_with_template(signature_request_create_embedded_with_template_request, opts = {}) data, _status_code, _headers = signature_request_create_embedded_with_template_with_http_info(signature_request_create_embedded_with_template_request, opts) @@ -489,7 +444,6 @@ def signature_request_create_embedded_with_template(signature_request_create_emb # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestCreateEmbeddedWithTemplateExample.rb # @param signature_request_create_embedded_with_template_request [SignatureRequestCreateEmbeddedWithTemplateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(SignatureRequestGetResponse, Integer, Hash)>] SignatureRequestGetResponse data, response status code and response headers def signature_request_create_embedded_with_template_with_http_info(signature_request_create_embedded_with_template_request, opts = {}) if @api_client.config.debugging @@ -499,14 +453,6 @@ def signature_request_create_embedded_with_template_with_http_info(signature_req if @api_client.config.client_side_validation && signature_request_create_embedded_with_template_request.nil? fail ArgumentError, "Missing the required parameter 'signature_request_create_embedded_with_template_request' when calling SignatureRequestApi.signature_request_create_embedded_with_template" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_create_embedded_with_template, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_create_embedded_with_template, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/signature_request/create_embedded_with_template' @@ -522,7 +468,6 @@ def signature_request_create_embedded_with_template_with_http_info(signature_req if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -601,7 +546,6 @@ def signature_request_create_embedded_with_template_with_http_info(signature_req # @param signature_request_id [String] The id of the SignatureRequest to edit. # @param signature_request_edit_request [SignatureRequestEditRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [SignatureRequestGetResponse] def signature_request_edit(signature_request_id, signature_request_edit_request, opts = {}) data, _status_code, _headers = signature_request_edit_with_http_info(signature_request_id, signature_request_edit_request, opts) @@ -614,7 +558,6 @@ def signature_request_edit(signature_request_id, signature_request_edit_request, # @param signature_request_id [String] The id of the SignatureRequest to edit. # @param signature_request_edit_request [SignatureRequestEditRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(SignatureRequestGetResponse, Integer, Hash)>] SignatureRequestGetResponse data, response status code and response headers def signature_request_edit_with_http_info(signature_request_id, signature_request_edit_request, opts = {}) if @api_client.config.debugging @@ -628,14 +571,6 @@ def signature_request_edit_with_http_info(signature_request_id, signature_reques if @api_client.config.client_side_validation && signature_request_edit_request.nil? fail ArgumentError, "Missing the required parameter 'signature_request_edit_request' when calling SignatureRequestApi.signature_request_edit" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_edit, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_edit, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/signature_request/edit/{signature_request_id}'.sub('{' + 'signature_request_id' + '}', CGI.escape(signature_request_id.to_s)) @@ -651,7 +586,6 @@ def signature_request_edit_with_http_info(signature_request_id, signature_reques if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -730,7 +664,6 @@ def signature_request_edit_with_http_info(signature_request_id, signature_reques # @param signature_request_id [String] The id of the SignatureRequest to edit. # @param signature_request_edit_embedded_request [SignatureRequestEditEmbeddedRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [SignatureRequestGetResponse] def signature_request_edit_embedded(signature_request_id, signature_request_edit_embedded_request, opts = {}) data, _status_code, _headers = signature_request_edit_embedded_with_http_info(signature_request_id, signature_request_edit_embedded_request, opts) @@ -743,7 +676,6 @@ def signature_request_edit_embedded(signature_request_id, signature_request_edit # @param signature_request_id [String] The id of the SignatureRequest to edit. # @param signature_request_edit_embedded_request [SignatureRequestEditEmbeddedRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(SignatureRequestGetResponse, Integer, Hash)>] SignatureRequestGetResponse data, response status code and response headers def signature_request_edit_embedded_with_http_info(signature_request_id, signature_request_edit_embedded_request, opts = {}) if @api_client.config.debugging @@ -757,14 +689,6 @@ def signature_request_edit_embedded_with_http_info(signature_request_id, signatu if @api_client.config.client_side_validation && signature_request_edit_embedded_request.nil? fail ArgumentError, "Missing the required parameter 'signature_request_edit_embedded_request' when calling SignatureRequestApi.signature_request_edit_embedded" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_edit_embedded, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_edit_embedded, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/signature_request/edit_embedded/{signature_request_id}'.sub('{' + 'signature_request_id' + '}', CGI.escape(signature_request_id.to_s)) @@ -780,7 +704,6 @@ def signature_request_edit_embedded_with_http_info(signature_request_id, signatu if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -859,7 +782,6 @@ def signature_request_edit_embedded_with_http_info(signature_request_id, signatu # @param signature_request_id [String] The id of the SignatureRequest to edit. # @param signature_request_edit_embedded_with_template_request [SignatureRequestEditEmbeddedWithTemplateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [SignatureRequestGetResponse] def signature_request_edit_embedded_with_template(signature_request_id, signature_request_edit_embedded_with_template_request, opts = {}) data, _status_code, _headers = signature_request_edit_embedded_with_template_with_http_info(signature_request_id, signature_request_edit_embedded_with_template_request, opts) @@ -872,7 +794,6 @@ def signature_request_edit_embedded_with_template(signature_request_id, signatur # @param signature_request_id [String] The id of the SignatureRequest to edit. # @param signature_request_edit_embedded_with_template_request [SignatureRequestEditEmbeddedWithTemplateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(SignatureRequestGetResponse, Integer, Hash)>] SignatureRequestGetResponse data, response status code and response headers def signature_request_edit_embedded_with_template_with_http_info(signature_request_id, signature_request_edit_embedded_with_template_request, opts = {}) if @api_client.config.debugging @@ -886,14 +807,6 @@ def signature_request_edit_embedded_with_template_with_http_info(signature_reque if @api_client.config.client_side_validation && signature_request_edit_embedded_with_template_request.nil? fail ArgumentError, "Missing the required parameter 'signature_request_edit_embedded_with_template_request' when calling SignatureRequestApi.signature_request_edit_embedded_with_template" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_edit_embedded_with_template, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_edit_embedded_with_template, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/signature_request/edit_embedded_with_template/{signature_request_id}'.sub('{' + 'signature_request_id' + '}', CGI.escape(signature_request_id.to_s)) @@ -909,7 +822,6 @@ def signature_request_edit_embedded_with_template_with_http_info(signature_reque if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -988,7 +900,6 @@ def signature_request_edit_embedded_with_template_with_http_info(signature_reque # @param signature_request_id [String] The id of the SignatureRequest to edit. # @param signature_request_edit_with_template_request [SignatureRequestEditWithTemplateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [SignatureRequestGetResponse] def signature_request_edit_with_template(signature_request_id, signature_request_edit_with_template_request, opts = {}) data, _status_code, _headers = signature_request_edit_with_template_with_http_info(signature_request_id, signature_request_edit_with_template_request, opts) @@ -1001,7 +912,6 @@ def signature_request_edit_with_template(signature_request_id, signature_request # @param signature_request_id [String] The id of the SignatureRequest to edit. # @param signature_request_edit_with_template_request [SignatureRequestEditWithTemplateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(SignatureRequestGetResponse, Integer, Hash)>] SignatureRequestGetResponse data, response status code and response headers def signature_request_edit_with_template_with_http_info(signature_request_id, signature_request_edit_with_template_request, opts = {}) if @api_client.config.debugging @@ -1015,14 +925,6 @@ def signature_request_edit_with_template_with_http_info(signature_request_id, si if @api_client.config.client_side_validation && signature_request_edit_with_template_request.nil? fail ArgumentError, "Missing the required parameter 'signature_request_edit_with_template_request' when calling SignatureRequestApi.signature_request_edit_with_template" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_edit_with_template, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_edit_with_template, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/signature_request/edit_with_template/{signature_request_id}'.sub('{' + 'signature_request_id' + '}', CGI.escape(signature_request_id.to_s)) @@ -1038,7 +940,6 @@ def signature_request_edit_with_template_with_http_info(signature_request_id, si if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -1617,7 +1518,6 @@ def signature_request_list_with_http_info(opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestReleaseHoldExample.rb # @param signature_request_id [String] The id of the SignatureRequest to release. # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [SignatureRequestGetResponse] def signature_request_release_hold(signature_request_id, opts = {}) data, _status_code, _headers = signature_request_release_hold_with_http_info(signature_request_id, opts) @@ -1629,7 +1529,6 @@ def signature_request_release_hold(signature_request_id, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestReleaseHoldExample.rb # @param signature_request_id [String] The id of the SignatureRequest to release. # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(SignatureRequestGetResponse, Integer, Hash)>] SignatureRequestGetResponse data, response status code and response headers def signature_request_release_hold_with_http_info(signature_request_id, opts = {}) if @api_client.config.debugging @@ -1639,14 +1538,6 @@ def signature_request_release_hold_with_http_info(signature_request_id, opts = { if @api_client.config.client_side_validation && signature_request_id.nil? fail ArgumentError, "Missing the required parameter 'signature_request_id' when calling SignatureRequestApi.signature_request_release_hold" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_release_hold, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_release_hold, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/signature_request/release_hold/{signature_request_id}'.sub('{' + 'signature_request_id' + '}', CGI.escape(signature_request_id.to_s)) @@ -1657,7 +1548,6 @@ def signature_request_release_hold_with_http_info(signature_request_id, opts = { header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -1726,7 +1616,6 @@ def signature_request_release_hold_with_http_info(signature_request_id, opts = { # @param signature_request_id [String] The id of the SignatureRequest to send a reminder for. # @param signature_request_remind_request [SignatureRequestRemindRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [SignatureRequestGetResponse] def signature_request_remind(signature_request_id, signature_request_remind_request, opts = {}) data, _status_code, _headers = signature_request_remind_with_http_info(signature_request_id, signature_request_remind_request, opts) @@ -1739,7 +1628,6 @@ def signature_request_remind(signature_request_id, signature_request_remind_requ # @param signature_request_id [String] The id of the SignatureRequest to send a reminder for. # @param signature_request_remind_request [SignatureRequestRemindRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(SignatureRequestGetResponse, Integer, Hash)>] SignatureRequestGetResponse data, response status code and response headers def signature_request_remind_with_http_info(signature_request_id, signature_request_remind_request, opts = {}) if @api_client.config.debugging @@ -1753,14 +1641,6 @@ def signature_request_remind_with_http_info(signature_request_id, signature_requ if @api_client.config.client_side_validation && signature_request_remind_request.nil? fail ArgumentError, "Missing the required parameter 'signature_request_remind_request' when calling SignatureRequestApi.signature_request_remind" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_remind, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_remind, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/signature_request/remind/{signature_request_id}'.sub('{' + 'signature_request_id' + '}', CGI.escape(signature_request_id.to_s)) @@ -1776,7 +1656,6 @@ def signature_request_remind_with_http_info(signature_request_id, signature_requ if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -1854,7 +1733,6 @@ def signature_request_remind_with_http_info(signature_request_id, signature_requ # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestRemoveExample.rb # @param signature_request_id [String] The id of the SignatureRequest to remove. # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [nil] def signature_request_remove(signature_request_id, opts = {}) signature_request_remove_with_http_info(signature_request_id, opts) @@ -1866,7 +1744,6 @@ def signature_request_remove(signature_request_id, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestRemoveExample.rb # @param signature_request_id [String] The id of the SignatureRequest to remove. # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def signature_request_remove_with_http_info(signature_request_id, opts = {}) if @api_client.config.debugging @@ -1876,14 +1753,6 @@ def signature_request_remove_with_http_info(signature_request_id, opts = {}) if @api_client.config.client_side_validation && signature_request_id.nil? fail ArgumentError, "Missing the required parameter 'signature_request_id' when calling SignatureRequestApi.signature_request_remove" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_remove, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_remove, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/signature_request/remove/{signature_request_id}'.sub('{' + 'signature_request_id' + '}', CGI.escape(signature_request_id.to_s)) @@ -1894,7 +1763,6 @@ def signature_request_remove_with_http_info(signature_request_id, opts = {}) header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -1935,7 +1803,6 @@ def signature_request_remove_with_http_info(signature_request_id, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestSendExample.rb # @param signature_request_send_request [SignatureRequestSendRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [SignatureRequestGetResponse] def signature_request_send(signature_request_send_request, opts = {}) data, _status_code, _headers = signature_request_send_with_http_info(signature_request_send_request, opts) @@ -1947,7 +1814,6 @@ def signature_request_send(signature_request_send_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestSendExample.rb # @param signature_request_send_request [SignatureRequestSendRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(SignatureRequestGetResponse, Integer, Hash)>] SignatureRequestGetResponse data, response status code and response headers def signature_request_send_with_http_info(signature_request_send_request, opts = {}) if @api_client.config.debugging @@ -1957,14 +1823,6 @@ def signature_request_send_with_http_info(signature_request_send_request, opts = if @api_client.config.client_side_validation && signature_request_send_request.nil? fail ArgumentError, "Missing the required parameter 'signature_request_send_request' when calling SignatureRequestApi.signature_request_send" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_send, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_send, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/signature_request/send' @@ -1980,7 +1838,6 @@ def signature_request_send_with_http_info(signature_request_send_request, opts = if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -2058,7 +1915,6 @@ def signature_request_send_with_http_info(signature_request_send_request, opts = # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestSendWithTemplateExample.rb # @param signature_request_send_with_template_request [SignatureRequestSendWithTemplateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [SignatureRequestGetResponse] def signature_request_send_with_template(signature_request_send_with_template_request, opts = {}) data, _status_code, _headers = signature_request_send_with_template_with_http_info(signature_request_send_with_template_request, opts) @@ -2070,7 +1926,6 @@ def signature_request_send_with_template(signature_request_send_with_template_re # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/SignatureRequestSendWithTemplateExample.rb # @param signature_request_send_with_template_request [SignatureRequestSendWithTemplateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(SignatureRequestGetResponse, Integer, Hash)>] SignatureRequestGetResponse data, response status code and response headers def signature_request_send_with_template_with_http_info(signature_request_send_with_template_request, opts = {}) if @api_client.config.debugging @@ -2080,14 +1935,6 @@ def signature_request_send_with_template_with_http_info(signature_request_send_w if @api_client.config.client_side_validation && signature_request_send_with_template_request.nil? fail ArgumentError, "Missing the required parameter 'signature_request_send_with_template_request' when calling SignatureRequestApi.signature_request_send_with_template" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_send_with_template, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_send_with_template, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/signature_request/send_with_template' @@ -2103,7 +1950,6 @@ def signature_request_send_with_template_with_http_info(signature_request_send_w if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -2182,7 +2028,6 @@ def signature_request_send_with_template_with_http_info(signature_request_send_w # @param signature_request_id [String] The id of the SignatureRequest to update. # @param signature_request_update_request [SignatureRequestUpdateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [SignatureRequestGetResponse] def signature_request_update(signature_request_id, signature_request_update_request, opts = {}) data, _status_code, _headers = signature_request_update_with_http_info(signature_request_id, signature_request_update_request, opts) @@ -2195,7 +2040,6 @@ def signature_request_update(signature_request_id, signature_request_update_requ # @param signature_request_id [String] The id of the SignatureRequest to update. # @param signature_request_update_request [SignatureRequestUpdateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(SignatureRequestGetResponse, Integer, Hash)>] SignatureRequestGetResponse data, response status code and response headers def signature_request_update_with_http_info(signature_request_id, signature_request_update_request, opts = {}) if @api_client.config.debugging @@ -2209,14 +2053,6 @@ def signature_request_update_with_http_info(signature_request_id, signature_requ if @api_client.config.client_side_validation && signature_request_update_request.nil? fail ArgumentError, "Missing the required parameter 'signature_request_update_request' when calling SignatureRequestApi.signature_request_update" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_update, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling SignatureRequestApi.signature_request_update, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/signature_request/update/{signature_request_id}'.sub('{' + 'signature_request_id' + '}', CGI.escape(signature_request_id.to_s)) @@ -2232,7 +2068,6 @@ def signature_request_update_with_http_info(signature_request_id, signature_requ if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} diff --git a/sdks/ruby/lib/dropbox-sign/api/team_api.rb b/sdks/ruby/lib/dropbox-sign/api/team_api.rb index 40b1ea7a1..bafc56226 100644 --- a/sdks/ruby/lib/dropbox-sign/api/team_api.rb +++ b/sdks/ruby/lib/dropbox-sign/api/team_api.rb @@ -28,7 +28,6 @@ def initialize(api_client = ApiClient.default) # @param team_add_member_request [TeamAddMemberRequest] # @param [Hash] opts the optional parameters # @option opts [String] :team_id The id of the team. - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [TeamGetResponse] def team_add_member(team_add_member_request, opts = {}) data, _status_code, _headers = team_add_member_with_http_info(team_add_member_request, opts) @@ -41,7 +40,6 @@ def team_add_member(team_add_member_request, opts = {}) # @param team_add_member_request [TeamAddMemberRequest] # @param [Hash] opts the optional parameters # @option opts [String] :team_id The id of the team. - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(TeamGetResponse, Integer, Hash)>] TeamGetResponse data, response status code and response headers def team_add_member_with_http_info(team_add_member_request, opts = {}) if @api_client.config.debugging @@ -51,14 +49,6 @@ def team_add_member_with_http_info(team_add_member_request, opts = {}) if @api_client.config.client_side_validation && team_add_member_request.nil? fail ArgumentError, "Missing the required parameter 'team_add_member_request' when calling TeamApi.team_add_member" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TeamApi.team_add_member, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TeamApi.team_add_member, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/team/add_member' @@ -75,7 +65,6 @@ def team_add_member_with_http_info(team_add_member_request, opts = {}) if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -153,7 +142,6 @@ def team_add_member_with_http_info(team_add_member_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/TeamCreateExample.rb # @param team_create_request [TeamCreateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [TeamGetResponse] def team_create(team_create_request, opts = {}) data, _status_code, _headers = team_create_with_http_info(team_create_request, opts) @@ -165,7 +153,6 @@ def team_create(team_create_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/TeamCreateExample.rb # @param team_create_request [TeamCreateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(TeamGetResponse, Integer, Hash)>] TeamGetResponse data, response status code and response headers def team_create_with_http_info(team_create_request, opts = {}) if @api_client.config.debugging @@ -175,14 +162,6 @@ def team_create_with_http_info(team_create_request, opts = {}) if @api_client.config.client_side_validation && team_create_request.nil? fail ArgumentError, "Missing the required parameter 'team_create_request' when calling TeamApi.team_create" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TeamApi.team_create, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TeamApi.team_create, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/team/create' @@ -198,7 +177,6 @@ def team_create_with_http_info(team_create_request, opts = {}) if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -730,7 +708,6 @@ def team_members_with_http_info(team_id, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/TeamRemoveMemberExample.rb # @param team_remove_member_request [TeamRemoveMemberRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [TeamGetResponse] def team_remove_member(team_remove_member_request, opts = {}) data, _status_code, _headers = team_remove_member_with_http_info(team_remove_member_request, opts) @@ -742,7 +719,6 @@ def team_remove_member(team_remove_member_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/TeamRemoveMemberExample.rb # @param team_remove_member_request [TeamRemoveMemberRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(TeamGetResponse, Integer, Hash)>] TeamGetResponse data, response status code and response headers def team_remove_member_with_http_info(team_remove_member_request, opts = {}) if @api_client.config.debugging @@ -752,14 +728,6 @@ def team_remove_member_with_http_info(team_remove_member_request, opts = {}) if @api_client.config.client_side_validation && team_remove_member_request.nil? fail ArgumentError, "Missing the required parameter 'team_remove_member_request' when calling TeamApi.team_remove_member" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TeamApi.team_remove_member, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TeamApi.team_remove_member, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/team/remove_member' @@ -775,7 +743,6 @@ def team_remove_member_with_http_info(team_remove_member_request, opts = {}) if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -964,7 +931,6 @@ def team_sub_teams_with_http_info(team_id, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/TeamUpdateExample.rb # @param team_update_request [TeamUpdateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [TeamGetResponse] def team_update(team_update_request, opts = {}) data, _status_code, _headers = team_update_with_http_info(team_update_request, opts) @@ -976,7 +942,6 @@ def team_update(team_update_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/TeamUpdateExample.rb # @param team_update_request [TeamUpdateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(TeamGetResponse, Integer, Hash)>] TeamGetResponse data, response status code and response headers def team_update_with_http_info(team_update_request, opts = {}) if @api_client.config.debugging @@ -986,14 +951,6 @@ def team_update_with_http_info(team_update_request, opts = {}) if @api_client.config.client_side_validation && team_update_request.nil? fail ArgumentError, "Missing the required parameter 'team_update_request' when calling TeamApi.team_update" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TeamApi.team_update, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TeamApi.team_update, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/team' @@ -1009,7 +966,6 @@ def team_update_with_http_info(team_update_request, opts = {}) if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} diff --git a/sdks/ruby/lib/dropbox-sign/api/template_api.rb b/sdks/ruby/lib/dropbox-sign/api/template_api.rb index 93ecb7f5b..e88070145 100644 --- a/sdks/ruby/lib/dropbox-sign/api/template_api.rb +++ b/sdks/ruby/lib/dropbox-sign/api/template_api.rb @@ -28,7 +28,6 @@ def initialize(api_client = ApiClient.default) # @param template_id [String] The id of the Template to give the Account access to. # @param template_add_user_request [TemplateAddUserRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [TemplateGetResponse] def template_add_user(template_id, template_add_user_request, opts = {}) data, _status_code, _headers = template_add_user_with_http_info(template_id, template_add_user_request, opts) @@ -41,7 +40,6 @@ def template_add_user(template_id, template_add_user_request, opts = {}) # @param template_id [String] The id of the Template to give the Account access to. # @param template_add_user_request [TemplateAddUserRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(TemplateGetResponse, Integer, Hash)>] TemplateGetResponse data, response status code and response headers def template_add_user_with_http_info(template_id, template_add_user_request, opts = {}) if @api_client.config.debugging @@ -55,14 +53,6 @@ def template_add_user_with_http_info(template_id, template_add_user_request, opt if @api_client.config.client_side_validation && template_add_user_request.nil? fail ArgumentError, "Missing the required parameter 'template_add_user_request' when calling TemplateApi.template_add_user" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TemplateApi.template_add_user, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TemplateApi.template_add_user, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/template/add_user/{template_id}'.sub('{' + 'template_id' + '}', CGI.escape(template_id.to_s)) @@ -78,7 +68,6 @@ def template_add_user_with_http_info(template_id, template_add_user_request, opt if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -156,7 +145,6 @@ def template_add_user_with_http_info(template_id, template_add_user_request, opt # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/TemplateCreateExample.rb # @param template_create_request [TemplateCreateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [TemplateCreateResponse] def template_create(template_create_request, opts = {}) data, _status_code, _headers = template_create_with_http_info(template_create_request, opts) @@ -168,7 +156,6 @@ def template_create(template_create_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/TemplateCreateExample.rb # @param template_create_request [TemplateCreateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(TemplateCreateResponse, Integer, Hash)>] TemplateCreateResponse data, response status code and response headers def template_create_with_http_info(template_create_request, opts = {}) if @api_client.config.debugging @@ -178,14 +165,6 @@ def template_create_with_http_info(template_create_request, opts = {}) if @api_client.config.client_side_validation && template_create_request.nil? fail ArgumentError, "Missing the required parameter 'template_create_request' when calling TemplateApi.template_create" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TemplateApi.template_create, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TemplateApi.template_create, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/template/create' @@ -201,7 +180,6 @@ def template_create_with_http_info(template_create_request, opts = {}) if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -279,7 +257,6 @@ def template_create_with_http_info(template_create_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/TemplateCreateEmbeddedDraftExample.rb # @param template_create_embedded_draft_request [TemplateCreateEmbeddedDraftRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [TemplateCreateEmbeddedDraftResponse] def template_create_embedded_draft(template_create_embedded_draft_request, opts = {}) data, _status_code, _headers = template_create_embedded_draft_with_http_info(template_create_embedded_draft_request, opts) @@ -291,7 +268,6 @@ def template_create_embedded_draft(template_create_embedded_draft_request, opts # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/TemplateCreateEmbeddedDraftExample.rb # @param template_create_embedded_draft_request [TemplateCreateEmbeddedDraftRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(TemplateCreateEmbeddedDraftResponse, Integer, Hash)>] TemplateCreateEmbeddedDraftResponse data, response status code and response headers def template_create_embedded_draft_with_http_info(template_create_embedded_draft_request, opts = {}) if @api_client.config.debugging @@ -301,14 +277,6 @@ def template_create_embedded_draft_with_http_info(template_create_embedded_draft if @api_client.config.client_side_validation && template_create_embedded_draft_request.nil? fail ArgumentError, "Missing the required parameter 'template_create_embedded_draft_request' when calling TemplateApi.template_create_embedded_draft" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TemplateApi.template_create_embedded_draft, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TemplateApi.template_create_embedded_draft, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/template/create_embedded_draft' @@ -324,7 +292,6 @@ def template_create_embedded_draft_with_http_info(template_create_embedded_draft if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -402,7 +369,6 @@ def template_create_embedded_draft_with_http_info(template_create_embedded_draft # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/TemplateDeleteExample.rb # @param template_id [String] The id of the Template to delete. # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [nil] def template_delete(template_id, opts = {}) template_delete_with_http_info(template_id, opts) @@ -414,7 +380,6 @@ def template_delete(template_id, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/TemplateDeleteExample.rb # @param template_id [String] The id of the Template to delete. # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def template_delete_with_http_info(template_id, opts = {}) if @api_client.config.debugging @@ -424,14 +389,6 @@ def template_delete_with_http_info(template_id, opts = {}) if @api_client.config.client_side_validation && template_id.nil? fail ArgumentError, "Missing the required parameter 'template_id' when calling TemplateApi.template_delete" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TemplateApi.template_delete, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TemplateApi.template_delete, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/template/delete/{template_id}'.sub('{' + 'template_id' + '}', CGI.escape(template_id.to_s)) @@ -442,7 +399,6 @@ def template_delete_with_http_info(template_id, opts = {}) header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -993,7 +949,6 @@ def template_list_with_http_info(opts = {}) # @param template_id [String] The id of the Template to remove the Account's access to. # @param template_remove_user_request [TemplateRemoveUserRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [TemplateGetResponse] def template_remove_user(template_id, template_remove_user_request, opts = {}) data, _status_code, _headers = template_remove_user_with_http_info(template_id, template_remove_user_request, opts) @@ -1006,7 +961,6 @@ def template_remove_user(template_id, template_remove_user_request, opts = {}) # @param template_id [String] The id of the Template to remove the Account's access to. # @param template_remove_user_request [TemplateRemoveUserRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(TemplateGetResponse, Integer, Hash)>] TemplateGetResponse data, response status code and response headers def template_remove_user_with_http_info(template_id, template_remove_user_request, opts = {}) if @api_client.config.debugging @@ -1020,14 +974,6 @@ def template_remove_user_with_http_info(template_id, template_remove_user_reques if @api_client.config.client_side_validation && template_remove_user_request.nil? fail ArgumentError, "Missing the required parameter 'template_remove_user_request' when calling TemplateApi.template_remove_user" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TemplateApi.template_remove_user, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TemplateApi.template_remove_user, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/template/remove_user/{template_id}'.sub('{' + 'template_id' + '}', CGI.escape(template_id.to_s)) @@ -1043,7 +989,6 @@ def template_remove_user_with_http_info(template_id, template_remove_user_reques if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -1122,7 +1067,6 @@ def template_remove_user_with_http_info(template_id, template_remove_user_reques # @param template_id [String] The ID of the template whose files to update. # @param template_update_files_request [TemplateUpdateFilesRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [TemplateUpdateFilesResponse] def template_update_files(template_id, template_update_files_request, opts = {}) data, _status_code, _headers = template_update_files_with_http_info(template_id, template_update_files_request, opts) @@ -1135,7 +1079,6 @@ def template_update_files(template_id, template_update_files_request, opts = {}) # @param template_id [String] The ID of the template whose files to update. # @param template_update_files_request [TemplateUpdateFilesRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(TemplateUpdateFilesResponse, Integer, Hash)>] TemplateUpdateFilesResponse data, response status code and response headers def template_update_files_with_http_info(template_id, template_update_files_request, opts = {}) if @api_client.config.debugging @@ -1149,14 +1092,6 @@ def template_update_files_with_http_info(template_id, template_update_files_requ if @api_client.config.client_side_validation && template_update_files_request.nil? fail ArgumentError, "Missing the required parameter 'template_update_files_request' when calling TemplateApi.template_update_files" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TemplateApi.template_update_files, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling TemplateApi.template_update_files, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/template/update_files/{template_id}'.sub('{' + 'template_id' + '}', CGI.escape(template_id.to_s)) @@ -1172,7 +1107,6 @@ def template_update_files_with_http_info(template_id, template_update_files_requ if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} diff --git a/sdks/ruby/lib/dropbox-sign/api/unclaimed_draft_api.rb b/sdks/ruby/lib/dropbox-sign/api/unclaimed_draft_api.rb index a7c0d396a..27f4e10ab 100644 --- a/sdks/ruby/lib/dropbox-sign/api/unclaimed_draft_api.rb +++ b/sdks/ruby/lib/dropbox-sign/api/unclaimed_draft_api.rb @@ -27,7 +27,6 @@ def initialize(api_client = ApiClient.default) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/UnclaimedDraftCreateExample.rb # @param unclaimed_draft_create_request [UnclaimedDraftCreateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [UnclaimedDraftCreateResponse] def unclaimed_draft_create(unclaimed_draft_create_request, opts = {}) data, _status_code, _headers = unclaimed_draft_create_with_http_info(unclaimed_draft_create_request, opts) @@ -39,7 +38,6 @@ def unclaimed_draft_create(unclaimed_draft_create_request, opts = {}) # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/UnclaimedDraftCreateExample.rb # @param unclaimed_draft_create_request [UnclaimedDraftCreateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(UnclaimedDraftCreateResponse, Integer, Hash)>] UnclaimedDraftCreateResponse data, response status code and response headers def unclaimed_draft_create_with_http_info(unclaimed_draft_create_request, opts = {}) if @api_client.config.debugging @@ -49,14 +47,6 @@ def unclaimed_draft_create_with_http_info(unclaimed_draft_create_request, opts = if @api_client.config.client_side_validation && unclaimed_draft_create_request.nil? fail ArgumentError, "Missing the required parameter 'unclaimed_draft_create_request' when calling UnclaimedDraftApi.unclaimed_draft_create" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling UnclaimedDraftApi.unclaimed_draft_create, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling UnclaimedDraftApi.unclaimed_draft_create, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/unclaimed_draft/create' @@ -72,7 +62,6 @@ def unclaimed_draft_create_with_http_info(unclaimed_draft_create_request, opts = if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -150,7 +139,6 @@ def unclaimed_draft_create_with_http_info(unclaimed_draft_create_request, opts = # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.rb # @param unclaimed_draft_create_embedded_request [UnclaimedDraftCreateEmbeddedRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [UnclaimedDraftCreateResponse] def unclaimed_draft_create_embedded(unclaimed_draft_create_embedded_request, opts = {}) data, _status_code, _headers = unclaimed_draft_create_embedded_with_http_info(unclaimed_draft_create_embedded_request, opts) @@ -162,7 +150,6 @@ def unclaimed_draft_create_embedded(unclaimed_draft_create_embedded_request, opt # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/UnclaimedDraftCreateEmbeddedExample.rb # @param unclaimed_draft_create_embedded_request [UnclaimedDraftCreateEmbeddedRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(UnclaimedDraftCreateResponse, Integer, Hash)>] UnclaimedDraftCreateResponse data, response status code and response headers def unclaimed_draft_create_embedded_with_http_info(unclaimed_draft_create_embedded_request, opts = {}) if @api_client.config.debugging @@ -172,14 +159,6 @@ def unclaimed_draft_create_embedded_with_http_info(unclaimed_draft_create_embedd if @api_client.config.client_side_validation && unclaimed_draft_create_embedded_request.nil? fail ArgumentError, "Missing the required parameter 'unclaimed_draft_create_embedded_request' when calling UnclaimedDraftApi.unclaimed_draft_create_embedded" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling UnclaimedDraftApi.unclaimed_draft_create_embedded, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling UnclaimedDraftApi.unclaimed_draft_create_embedded, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/unclaimed_draft/create_embedded' @@ -195,7 +174,6 @@ def unclaimed_draft_create_embedded_with_http_info(unclaimed_draft_create_embedd if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -273,7 +251,6 @@ def unclaimed_draft_create_embedded_with_http_info(unclaimed_draft_create_embedd # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.rb # @param unclaimed_draft_create_embedded_with_template_request [UnclaimedDraftCreateEmbeddedWithTemplateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [UnclaimedDraftCreateResponse] def unclaimed_draft_create_embedded_with_template(unclaimed_draft_create_embedded_with_template_request, opts = {}) data, _status_code, _headers = unclaimed_draft_create_embedded_with_template_with_http_info(unclaimed_draft_create_embedded_with_template_request, opts) @@ -285,7 +262,6 @@ def unclaimed_draft_create_embedded_with_template(unclaimed_draft_create_embedde # Example: https://github.com/hellosign/dropbox-sign-ruby/blob/main/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.rb # @param unclaimed_draft_create_embedded_with_template_request [UnclaimedDraftCreateEmbeddedWithTemplateRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(UnclaimedDraftCreateResponse, Integer, Hash)>] UnclaimedDraftCreateResponse data, response status code and response headers def unclaimed_draft_create_embedded_with_template_with_http_info(unclaimed_draft_create_embedded_with_template_request, opts = {}) if @api_client.config.debugging @@ -295,14 +271,6 @@ def unclaimed_draft_create_embedded_with_template_with_http_info(unclaimed_draft if @api_client.config.client_side_validation && unclaimed_draft_create_embedded_with_template_request.nil? fail ArgumentError, "Missing the required parameter 'unclaimed_draft_create_embedded_with_template_request' when calling UnclaimedDraftApi.unclaimed_draft_create_embedded_with_template" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling UnclaimedDraftApi.unclaimed_draft_create_embedded_with_template, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling UnclaimedDraftApi.unclaimed_draft_create_embedded_with_template, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/unclaimed_draft/create_embedded_with_template' @@ -318,7 +286,6 @@ def unclaimed_draft_create_embedded_with_template_with_http_info(unclaimed_draft if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} @@ -397,7 +364,6 @@ def unclaimed_draft_create_embedded_with_template_with_http_info(unclaimed_draft # @param signature_request_id [String] The ID of the signature request to edit and resend. # @param unclaimed_draft_edit_and_resend_request [UnclaimedDraftEditAndResendRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [UnclaimedDraftCreateResponse] def unclaimed_draft_edit_and_resend(signature_request_id, unclaimed_draft_edit_and_resend_request, opts = {}) data, _status_code, _headers = unclaimed_draft_edit_and_resend_with_http_info(signature_request_id, unclaimed_draft_edit_and_resend_request, opts) @@ -410,7 +376,6 @@ def unclaimed_draft_edit_and_resend(signature_request_id, unclaimed_draft_edit_a # @param signature_request_id [String] The ID of the signature request to edit and resend. # @param unclaimed_draft_edit_and_resend_request [UnclaimedDraftEditAndResendRequest] # @param [Hash] opts the optional parameters - # @option opts [String] :idempotency_key Reuse the same key when retrying the same request. Must be 1 to 255 characters. # @return [Array<(UnclaimedDraftCreateResponse, Integer, Hash)>] UnclaimedDraftCreateResponse data, response status code and response headers def unclaimed_draft_edit_and_resend_with_http_info(signature_request_id, unclaimed_draft_edit_and_resend_request, opts = {}) if @api_client.config.debugging @@ -424,14 +389,6 @@ def unclaimed_draft_edit_and_resend_with_http_info(signature_request_id, unclaim if @api_client.config.client_side_validation && unclaimed_draft_edit_and_resend_request.nil? fail ArgumentError, "Missing the required parameter 'unclaimed_draft_edit_and_resend_request' when calling UnclaimedDraftApi.unclaimed_draft_edit_and_resend" end - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling UnclaimedDraftApi.unclaimed_draft_edit_and_resend, the character length must be smaller than or equal to 255.' - end - - if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1 - fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling UnclaimedDraftApi.unclaimed_draft_edit_and_resend, the character length must be great than or equal to 1.' - end - # resource path local_var_path = '/unclaimed_draft/edit_and_resend/{signature_request_id}'.sub('{' + 'signature_request_id' + '}', CGI.escape(signature_request_id.to_s)) @@ -447,7 +404,6 @@ def unclaimed_draft_edit_and_resend_with_http_info(signature_request_id, unclaim if !content_type.nil? header_params['Content-Type'] = content_type end - header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil? post_body = {} form_params = opts[:form_params] || {} From ae503b97754ba17c536c2a3185dd33267cbc15da Mon Sep 17 00:00:00 2001 From: John Spaetzel Date: Wed, 7 Oct 2026 16:04:45 -0700 Subject: [PATCH 4/6] Link the Idempotency-Key description to the Idempotency guide. Co-authored-by: Cursor --- openapi-fern.yaml | 2 +- openapi.yaml | 2 +- translations/en.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/openapi-fern.yaml b/openapi-fern.yaml index b589f34b3..10ab7d082 100644 --- a/openapi-fern.yaml +++ b/openapi-fern.yaml @@ -30393,7 +30393,7 @@ components: IdempotencyKey: name: Idempotency-Key in: header - description: Reuse the same key when retrying the same request. Must be 1 to 255 characters. + description: Reuse the same key when retrying the same request. Must be 1 to 255 characters. See [Idempotency](https://developers.hellosign.com/api/manual-reference-pages/idempotency) for details. required: false schema: type: string diff --git a/openapi.yaml b/openapi.yaml index f4ec75394..72da8aced 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -14963,7 +14963,7 @@ components: IdempotencyKey: name: Idempotency-Key in: header - description: 'Reuse the same key when retrying the same request. Must be 1 to 255 characters.' + description: 'Reuse the same key when retrying the same request. Must be 1 to 255 characters. See [Idempotency](https://developers.hellosign.com/api/manual-reference-pages/idempotency) for details.' required: false schema: type: string diff --git a/translations/en.yaml b/translations/en.yaml index a1777e38d..f2e65730e 100644 --- a/translations/en.yaml +++ b/translations/en.yaml @@ -1387,7 +1387,7 @@ "Common::RateLimiting::LIMIT": The maximum number of requests per hour that you can make. "Common::RateLimiting::REMAINING": The number of requests remaining in the current rate limit window. "Common::RateLimiting::RESET": The Unix time at which the rate limit will reset to its maximum. -"Common::Idempotency::KEY": Reuse the same key when retrying the same request. Must be 1 to 255 characters. +"Common::Idempotency::KEY": Reuse the same key when retrying the same request. Must be 1 to 255 characters. See [Idempotency](https://developers.hellosign.com/api/manual-reference-pages/idempotency) for details. "Common::Idempotency::REPLAYED": Present and true when replaying a stored response. "EmbeddedEditUrlResponseExample::SUMMARY": Embedded Edit URL From 7e3aa0cd8d19244110608a03ea2b5542e1b3dae9 Mon Sep 17 00:00:00 2001 From: John Spaetzel Date: Wed, 7 Oct 2026 16:22:02 -0700 Subject: [PATCH 5/6] Use a relative Idempotency link so the docs preview can open it. Co-authored-by: Cursor --- openapi-fern.yaml | 2 +- openapi.yaml | 2 +- translations/en.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/openapi-fern.yaml b/openapi-fern.yaml index 10ab7d082..d2fbc17f9 100644 --- a/openapi-fern.yaml +++ b/openapi-fern.yaml @@ -30393,7 +30393,7 @@ components: IdempotencyKey: name: Idempotency-Key in: header - description: Reuse the same key when retrying the same request. Must be 1 to 255 characters. See [Idempotency](https://developers.hellosign.com/api/manual-reference-pages/idempotency) for details. + description: Reuse the same key when retrying the same request. Must be 1 to 255 characters. See [Idempotency](/api/manual-reference-pages/idempotency) for details. required: false schema: type: string diff --git a/openapi.yaml b/openapi.yaml index 72da8aced..ad25e0a92 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -14963,7 +14963,7 @@ components: IdempotencyKey: name: Idempotency-Key in: header - description: 'Reuse the same key when retrying the same request. Must be 1 to 255 characters. See [Idempotency](https://developers.hellosign.com/api/manual-reference-pages/idempotency) for details.' + description: 'Reuse the same key when retrying the same request. Must be 1 to 255 characters. See [Idempotency](/api/manual-reference-pages/idempotency) for details.' required: false schema: type: string diff --git a/translations/en.yaml b/translations/en.yaml index f2e65730e..da630326d 100644 --- a/translations/en.yaml +++ b/translations/en.yaml @@ -1387,7 +1387,7 @@ "Common::RateLimiting::LIMIT": The maximum number of requests per hour that you can make. "Common::RateLimiting::REMAINING": The number of requests remaining in the current rate limit window. "Common::RateLimiting::RESET": The Unix time at which the rate limit will reset to its maximum. -"Common::Idempotency::KEY": Reuse the same key when retrying the same request. Must be 1 to 255 characters. See [Idempotency](https://developers.hellosign.com/api/manual-reference-pages/idempotency) for details. +"Common::Idempotency::KEY": Reuse the same key when retrying the same request. Must be 1 to 255 characters. See [Idempotency](/api/manual-reference-pages/idempotency) for details. "Common::Idempotency::REPLAYED": Present and true when replaying a stored response. "EmbeddedEditUrlResponseExample::SUMMARY": Embedded Edit URL From c316725a67048bbc17f2d91c09687cdefe9ac6ed Mon Sep 17 00:00:00 2001 From: John Spaetzel Date: Wed, 7 Oct 2026 16:23:10 -0700 Subject: [PATCH 6/6] Drop the repeated length limit from the Idempotency-Key description. Co-authored-by: Cursor --- openapi-fern.yaml | 2 +- openapi.yaml | 2 +- translations/en.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/openapi-fern.yaml b/openapi-fern.yaml index d2fbc17f9..522c2f93a 100644 --- a/openapi-fern.yaml +++ b/openapi-fern.yaml @@ -30393,7 +30393,7 @@ components: IdempotencyKey: name: Idempotency-Key in: header - description: Reuse the same key when retrying the same request. Must be 1 to 255 characters. See [Idempotency](/api/manual-reference-pages/idempotency) for details. + description: Reuse the same key when retrying the same request. See [Idempotency](/api/manual-reference-pages/idempotency) for details. required: false schema: type: string diff --git a/openapi.yaml b/openapi.yaml index ad25e0a92..237d7451d 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -14963,7 +14963,7 @@ components: IdempotencyKey: name: Idempotency-Key in: header - description: 'Reuse the same key when retrying the same request. Must be 1 to 255 characters. See [Idempotency](/api/manual-reference-pages/idempotency) for details.' + description: 'Reuse the same key when retrying the same request. See [Idempotency](/api/manual-reference-pages/idempotency) for details.' required: false schema: type: string diff --git a/translations/en.yaml b/translations/en.yaml index da630326d..ca89e64d8 100644 --- a/translations/en.yaml +++ b/translations/en.yaml @@ -1387,7 +1387,7 @@ "Common::RateLimiting::LIMIT": The maximum number of requests per hour that you can make. "Common::RateLimiting::REMAINING": The number of requests remaining in the current rate limit window. "Common::RateLimiting::RESET": The Unix time at which the rate limit will reset to its maximum. -"Common::Idempotency::KEY": Reuse the same key when retrying the same request. Must be 1 to 255 characters. See [Idempotency](/api/manual-reference-pages/idempotency) for details. +"Common::Idempotency::KEY": Reuse the same key when retrying the same request. See [Idempotency](/api/manual-reference-pages/idempotency) for details. "Common::Idempotency::REPLAYED": Present and true when replaying a stored response. "EmbeddedEditUrlResponseExample::SUMMARY": Embedded Edit URL