diff --git a/.swagger-codegen/VERSION b/.swagger-codegen/VERSION index 9183195..26f8b8b 100644 --- a/.swagger-codegen/VERSION +++ b/.swagger-codegen/VERSION @@ -1 +1 @@ -2.4.0 \ No newline at end of file +2.4.5 \ No newline at end of file diff --git a/README.md b/README.md index 0023ed3..3ac6268 100644 --- a/README.md +++ b/README.md @@ -3,29 +3,17 @@ [![NuGet version](https://badge.fury.io/nu/SignRequest.svg)](https://badge.fury.io/nu/SignRequest) - ## Frameworks supported - -- .NET 4.0 or later -- Windows Phone 7.1 (Mango) +- .NET Core >=1.0 +- .NET Framework >=4.6 +- Mono/Xamarin >=vNext +- UWP >=10.0 - ## Dependencies - -- [RestSharp](https://www.nuget.org/packages/RestSharp) - 105.1.0 or later -- [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 7.0.0 or later -- [JsonSubTypes](https://www.nuget.org/packages/JsonSubTypes/) - 1.2.0 or later - -The DLLs included in the package may not be the latest version. We recommend using [NuGet](https://docs.nuget.org/consume/installing-nuget) to obtain the latest version of the packages: - -``` -Install-Package RestSharp -Install-Package Newtonsoft.Json -Install-Package JsonSubTypes -``` - -NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See [RestSharp#742](https://github.com/restsharp/RestSharp/issues/742) +- FubarCoder.RestSharp.Portable.Core >=4.0.7 +- FubarCoder.RestSharp.Portable.HttpClient >=4.0.7 +- Newtonsoft.Json >=10.0.3 @@ -35,27 +23,11 @@ NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploa The SignRequest API client can be installed using NuGet with the package name [SignRequest](https://www.nuget.org/packages/SignRequest/). -### Building from Source - -Run the following command to generate the DLL - -- [Mac/Linux] `/bin/sh build.sh` -- [Windows] `build.bat` - -Then include the DLL (under the `bin` folder) in the C# project, and use the namespaces: - -```csharp -using SignRequest.Api; -using SignRequest.Client; -using SignRequest.Model; -``` - ## API Documentation Full API documentation, including code samples, can be found here: https://signrequest.com/api/v1/docs/ - ## Getting Started ```csharp @@ -94,105 +66,101 @@ namespace Example ``` - ## Documentation for API Endpoints -All URIs are relative to _https://signrequest.com/api/v1_ - -| Class | Method | HTTP request | Description | -| --------------------------- | ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------- | --------------------------------------- | -| _ApiTokensApi_ | [**ApiTokensCreate**](docs/ApiTokensApi.md#apitokenscreate) | **POST** /api-tokens/ | Create an API token | -| _ApiTokensApi_ | [**ApiTokensDelete**](docs/ApiTokensApi.md#apitokensdelete) | **DELETE** /api-tokens/{key}/ | Delete an API token | -| _ApiTokensApi_ | [**ApiTokensList**](docs/ApiTokensApi.md#apitokenslist) | **GET** /api-tokens/ | Retrieve a list of API tokens | -| _ApiTokensApi_ | [**ApiTokensRead**](docs/ApiTokensApi.md#apitokensread) | **GET** /api-tokens/{key}/ | Retrieve an API token | -| _DocumentAttachmentsApi_ | [**DocumentAttachmentsCreate**](docs/DocumentAttachmentsApi.md#documentattachmentscreate) | **POST** /document-attachments/ | Create a Document Attachment | -| _DocumentAttachmentsApi_ | [**DocumentAttachmentsList**](docs/DocumentAttachmentsApi.md#documentattachmentslist) | **GET** /document-attachments/ | Retrieve a list of Document Attachments | -| _DocumentAttachmentsApi_ | [**DocumentAttachmentsRead**](docs/DocumentAttachmentsApi.md#documentattachmentsread) | **GET** /document-attachments/{uuid}/ | Retrieve a Document Attachment | -| _DocumentsApi_ | [**DocumentsCreate**](docs/DocumentsApi.md#documentscreate) | **POST** /documents/ | Create a Document | -| _DocumentsApi_ | [**DocumentsDelete**](docs/DocumentsApi.md#documentsdelete) | **DELETE** /documents/{uuid}/ | Delete a Document | -| _DocumentsApi_ | [**DocumentsList**](docs/DocumentsApi.md#documentslist) | **GET** /documents/ | Retrieve a list of Documents | -| _DocumentsApi_ | [**DocumentsRead**](docs/DocumentsApi.md#documentsread) | **GET** /documents/{uuid}/ | Retrieve a Document | -| _DocumentsSearchApi_ | [**DocumentsSearchList**](docs/DocumentsSearchApi.md#documentssearchlist) | **GET** /documents-search/ | Search documents | -| _EventsApi_ | [**EventsList**](docs/EventsApi.md#eventslist) | **GET** /events/ | Retrieve a list of Events | -| _EventsApi_ | [**EventsRead**](docs/EventsApi.md#eventsread) | **GET** /events/{id}/ | Retrieve an Event | -| _SignrequestQuickCreateApi_ | [**SignrequestQuickCreateCreate**](docs/SignrequestQuickCreateApi.md#signrequestquickcreatecreate) | **POST** /signrequest-quick-create/ | Quick create a SignRequest | -| _SignrequestsApi_ | [**SignrequestsCancelSignrequest**](docs/SignrequestsApi.md#signrequestscancelsignrequest) | **POST** /signrequests/{uuid}/cancel_signrequest/ | Cancel a SignRequest | -| _SignrequestsApi_ | [**SignrequestsCreate**](docs/SignrequestsApi.md#signrequestscreate) | **POST** /signrequests/ | Create a SignRequest | -| _SignrequestsApi_ | [**SignrequestsList**](docs/SignrequestsApi.md#signrequestslist) | **GET** /signrequests/ | Retrieve a list of SignRequests | -| _SignrequestsApi_ | [**SignrequestsRead**](docs/SignrequestsApi.md#signrequestsread) | **GET** /signrequests/{uuid}/ | Retrieve a SignRequest | -| _SignrequestsApi_ | [**SignrequestsResendSignrequestEmail**](docs/SignrequestsApi.md#signrequestsresendsignrequestemail) | **POST** /signrequests/{uuid}/resend_signrequest_email/ | Resend a SignRequest | -| _TeamMembersApi_ | [**TeamMembersList**](docs/TeamMembersApi.md#teammemberslist) | **GET** /team-members/ | Retrieve a list of Team Members | -| _TeamMembersApi_ | [**TeamMembersRead**](docs/TeamMembersApi.md#teammembersread) | **GET** /team-members/{uuid}/ | Retrieve a Team Member | -| _TeamsApi_ | [**TeamsCreate**](docs/TeamsApi.md#teamscreate) | **POST** /teams/ | Create a Team | -| _TeamsApi_ | [**TeamsDelete**](docs/TeamsApi.md#teamsdelete) | **DELETE** /teams/{subdomain}/ | Delete a Team | -| _TeamsApi_ | [**TeamsInviteMember**](docs/TeamsApi.md#teamsinvitemember) | **POST** /teams/{subdomain}/invite_member/ | Invite a Team Member | -| _TeamsApi_ | [**TeamsList**](docs/TeamsApi.md#teamslist) | **GET** /teams/ | Retrieve a list of Teams | -| _TeamsApi_ | [**TeamsPartialUpdate**](docs/TeamsApi.md#teamspartialupdate) | **PATCH** /teams/{subdomain}/ | Update a Team | -| _TeamsApi_ | [**TeamsRead**](docs/TeamsApi.md#teamsread) | **GET** /teams/{subdomain}/ | Retrieve a Team | -| _TemplatesApi_ | [**TemplatesList**](docs/TemplatesApi.md#templateslist) | **GET** /templates/ | Retrieve a list of Templates | -| _TemplatesApi_ | [**TemplatesRead**](docs/TemplatesApi.md#templatesread) | **GET** /templates/{uuid}/ | Retrieve a Template | -| _WebhooksApi_ | [**WebhooksCreate**](docs/WebhooksApi.md#webhookscreate) | **POST** /webhooks/ | Create a Webhook | -| _WebhooksApi_ | [**WebhooksDelete**](docs/WebhooksApi.md#webhooksdelete) | **DELETE** /webhooks/{uuid}/ | Delete a Webhook | -| _WebhooksApi_ | [**WebhooksList**](docs/WebhooksApi.md#webhookslist) | **GET** /webhooks/ | Retrieve a list of Webhooks | -| _WebhooksApi_ | [**WebhooksPartialUpdate**](docs/WebhooksApi.md#webhookspartialupdate) | **PATCH** /webhooks/{uuid}/ | Partially update a Webhook | -| _WebhooksApi_ | [**WebhooksRead**](docs/WebhooksApi.md#webhooksread) | **GET** /webhooks/{uuid}/ | Retrieve a Webhook | -| _WebhooksApi_ | [**WebhooksUpdate**](docs/WebhooksApi.md#webhooksupdate) | **PUT** /webhooks/{uuid}/ | Update a Webhook | +All URIs are relative to *https://signrequest.com/api/v1* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*ApiTokensApi* | [**ApiTokensList**](docs/ApiTokensApi.md#apitokenslist) | **GET** /api-tokens/ | Retrieve a list of API tokens +*DocumentAttachmentsApi* | [**DocumentAttachmentsCreate**](docs/DocumentAttachmentsApi.md#documentattachmentscreate) | **POST** /document-attachments/ | Create a Document Attachment +*DocumentAttachmentsApi* | [**DocumentAttachmentsList**](docs/DocumentAttachmentsApi.md#documentattachmentslist) | **GET** /document-attachments/ | Retrieve a list of Document Attachments +*DocumentAttachmentsApi* | [**DocumentAttachmentsRead**](docs/DocumentAttachmentsApi.md#documentattachmentsread) | **GET** /document-attachments/{uuid}/ | Retrieve a Document Attachment +*DocumentsApi* | [**DocumentsCreate**](docs/DocumentsApi.md#documentscreate) | **POST** /documents/ | Create a Document +*DocumentsApi* | [**DocumentsDelete**](docs/DocumentsApi.md#documentsdelete) | **DELETE** /documents/{uuid}/ | Delete a Document +*DocumentsApi* | [**DocumentsList**](docs/DocumentsApi.md#documentslist) | **GET** /documents/ | Retrieve a list of Documents +*DocumentsApi* | [**DocumentsRead**](docs/DocumentsApi.md#documentsread) | **GET** /documents/{uuid}/ | Retrieve a Document +*DocumentsSearchApi* | [**DocumentsSearchList**](docs/DocumentsSearchApi.md#documentssearchlist) | **GET** /documents-search/ | Search documents +*EventsApi* | [**EventsList**](docs/EventsApi.md#eventslist) | **GET** /events/ | Retrieve a list of Events +*EventsApi* | [**EventsRead**](docs/EventsApi.md#eventsread) | **GET** /events/{id}/ | Retrieve an Event +*SignrequestQuickCreateApi* | [**SignrequestQuickCreateCreate**](docs/SignrequestQuickCreateApi.md#signrequestquickcreatecreate) | **POST** /signrequest-quick-create/ | Quick create a SignRequest +*SignrequestsApi* | [**SignrequestsCancelSignrequest**](docs/SignrequestsApi.md#signrequestscancelsignrequest) | **POST** /signrequests/{uuid}/cancel_signrequest/ | Cancel a SignRequest +*SignrequestsApi* | [**SignrequestsCreate**](docs/SignrequestsApi.md#signrequestscreate) | **POST** /signrequests/ | Create a SignRequest +*SignrequestsApi* | [**SignrequestsList**](docs/SignrequestsApi.md#signrequestslist) | **GET** /signrequests/ | Retrieve a list of SignRequests +*SignrequestsApi* | [**SignrequestsRead**](docs/SignrequestsApi.md#signrequestsread) | **GET** /signrequests/{uuid}/ | Retrieve a SignRequest +*SignrequestsApi* | [**SignrequestsResendSignrequestEmail**](docs/SignrequestsApi.md#signrequestsresendsignrequestemail) | **POST** /signrequests/{uuid}/resend_signrequest_email/ | Resend a SignRequest +*TeamMembersApi* | [**TeamMembersList**](docs/TeamMembersApi.md#teammemberslist) | **GET** /team-members/ | Retrieve a list of Team Members +*TeamMembersApi* | [**TeamMembersRead**](docs/TeamMembersApi.md#teammembersread) | **GET** /team-members/{uuid}/ | Retrieve a Team Member +*TeamsApi* | [**TeamsCreate**](docs/TeamsApi.md#teamscreate) | **POST** /teams/ | Create a Team +*TeamsApi* | [**TeamsDelete**](docs/TeamsApi.md#teamsdelete) | **DELETE** /teams/{subdomain}/ | Delete a Team +*TeamsApi* | [**TeamsInviteMember**](docs/TeamsApi.md#teamsinvitemember) | **POST** /teams/{subdomain}/invite_member/ | Invite a Team Member +*TeamsApi* | [**TeamsList**](docs/TeamsApi.md#teamslist) | **GET** /teams/ | Retrieve a list of Teams +*TeamsApi* | [**TeamsPartialUpdate**](docs/TeamsApi.md#teamspartialupdate) | **PATCH** /teams/{subdomain}/ | Update a Team +*TeamsApi* | [**TeamsRead**](docs/TeamsApi.md#teamsread) | **GET** /teams/{subdomain}/ | Retrieve a Team +*TemplatesApi* | [**TemplatesList**](docs/TemplatesApi.md#templateslist) | **GET** /templates/ | Retrieve a list of Templates +*TemplatesApi* | [**TemplatesRead**](docs/TemplatesApi.md#templatesread) | **GET** /templates/{uuid}/ | Retrieve a Template +*WebhooksApi* | [**WebhooksCreate**](docs/WebhooksApi.md#webhookscreate) | **POST** /webhooks/ | Create a Webhook +*WebhooksApi* | [**WebhooksDelete**](docs/WebhooksApi.md#webhooksdelete) | **DELETE** /webhooks/{uuid}/ | Delete a Webhook +*WebhooksApi* | [**WebhooksList**](docs/WebhooksApi.md#webhookslist) | **GET** /webhooks/ | Retrieve a list of Webhooks +*WebhooksApi* | [**WebhooksPartialUpdate**](docs/WebhooksApi.md#webhookspartialupdate) | **PATCH** /webhooks/{uuid}/ | Partially update a Webhook +*WebhooksApi* | [**WebhooksRead**](docs/WebhooksApi.md#webhooksread) | **GET** /webhooks/{uuid}/ | Retrieve a Webhook +*WebhooksApi* | [**WebhooksUpdate**](docs/WebhooksApi.md#webhooksupdate) | **PUT** /webhooks/{uuid}/ | Update a Webhook - + ## Documentation for Models -- [Model.AuthToken](docs/AuthToken.md) -- [Model.Document](docs/Document.md) -- [Model.DocumentAttachment](docs/DocumentAttachment.md) -- [Model.DocumentSearch](docs/DocumentSearch.md) -- [Model.DocumentSignerTemplateConf](docs/DocumentSignerTemplateConf.md) -- [Model.DocumentSigningLog](docs/DocumentSigningLog.md) -- [Model.DocumentSignrequest](docs/DocumentSignrequest.md) -- [Model.DocumentTeam](docs/DocumentTeam.md) -- [Model.Event](docs/Event.md) -- [Model.FileFromSf](docs/FileFromSf.md) -- [Model.InlineDocumentSignerIntegrationData](docs/InlineDocumentSignerIntegrationData.md) -- [Model.InlineIntegrationData](docs/InlineIntegrationData.md) -- [Model.InlinePrefillTags](docs/InlinePrefillTags.md) -- [Model.InlineResponse200](docs/InlineResponse200.md) -- [Model.InlineResponse2001](docs/InlineResponse2001.md) -- [Model.InlineResponse2002](docs/InlineResponse2002.md) -- [Model.InlineResponse2003](docs/InlineResponse2003.md) -- [Model.InlineResponse2004](docs/InlineResponse2004.md) -- [Model.InlineResponse2005](docs/InlineResponse2005.md) -- [Model.InlineResponse2006](docs/InlineResponse2006.md) -- [Model.InlineResponse2007](docs/InlineResponse2007.md) -- [Model.InlineResponse2008](docs/InlineResponse2008.md) -- [Model.InlineResponse2009](docs/InlineResponse2009.md) -- [Model.InlineResponse201](docs/InlineResponse201.md) -- [Model.InlineResponse2011](docs/InlineResponse2011.md) -- [Model.InlineSignRequest](docs/InlineSignRequest.md) -- [Model.InlineTeam](docs/InlineTeam.md) -- [Model.InlineTeamMember](docs/InlineTeamMember.md) -- [Model.InviteMember](docs/InviteMember.md) -- [Model.Placeholder](docs/Placeholder.md) -- [Model.RequiredAttachment](docs/RequiredAttachment.md) -- [Model.SignRequest](docs/SignRequest.md) -- [Model.SignRequestQuickCreate](docs/SignRequestQuickCreate.md) -- [Model.Signer](docs/Signer.md) -- [Model.SignerAttachment](docs/SignerAttachment.md) -- [Model.SignerInputs](docs/SignerInputs.md) -- [Model.SigningLog](docs/SigningLog.md) -- [Model.Team](docs/Team.md) -- [Model.TeamMember](docs/TeamMember.md) -- [Model.Template](docs/Template.md) -- [Model.User](docs/User.md) -- [Model.WebhookSubscription](docs/WebhookSubscription.md) + - [Model.AuthToken](docs/AuthToken.md) + - [Model.Document](docs/Document.md) + - [Model.DocumentAttachment](docs/DocumentAttachment.md) + - [Model.DocumentSearch](docs/DocumentSearch.md) + - [Model.DocumentSignerTemplateConf](docs/DocumentSignerTemplateConf.md) + - [Model.DocumentSigningLog](docs/DocumentSigningLog.md) + - [Model.DocumentSignrequest](docs/DocumentSignrequest.md) + - [Model.DocumentTeam](docs/DocumentTeam.md) + - [Model.Event](docs/Event.md) + - [Model.FileFromSf](docs/FileFromSf.md) + - [Model.InlineDocumentSignerIntegrationData](docs/InlineDocumentSignerIntegrationData.md) + - [Model.InlineIntegrationData](docs/InlineIntegrationData.md) + - [Model.InlinePrefillTags](docs/InlinePrefillTags.md) + - [Model.InlineResponse200](docs/InlineResponse200.md) + - [Model.InlineResponse2001](docs/InlineResponse2001.md) + - [Model.InlineResponse2002](docs/InlineResponse2002.md) + - [Model.InlineResponse2003](docs/InlineResponse2003.md) + - [Model.InlineResponse2004](docs/InlineResponse2004.md) + - [Model.InlineResponse2005](docs/InlineResponse2005.md) + - [Model.InlineResponse2006](docs/InlineResponse2006.md) + - [Model.InlineResponse2007](docs/InlineResponse2007.md) + - [Model.InlineResponse2008](docs/InlineResponse2008.md) + - [Model.InlineResponse2009](docs/InlineResponse2009.md) + - [Model.InlineResponse201](docs/InlineResponse201.md) + - [Model.InlineResponse2011](docs/InlineResponse2011.md) + - [Model.InlineSignRequest](docs/InlineSignRequest.md) + - [Model.InlineTeam](docs/InlineTeam.md) + - [Model.InlineTeamMember](docs/InlineTeamMember.md) + - [Model.InviteMember](docs/InviteMember.md) + - [Model.Placeholder](docs/Placeholder.md) + - [Model.RequiredAttachment](docs/RequiredAttachment.md) + - [Model.SignRequest](docs/SignRequest.md) + - [Model.SignRequestQuickCreate](docs/SignRequestQuickCreate.md) + - [Model.Signer](docs/Signer.md) + - [Model.SignerAttachment](docs/SignerAttachment.md) + - [Model.SignerInputs](docs/SignerInputs.md) + - [Model.SigningLog](docs/SigningLog.md) + - [Model.Team](docs/Team.md) + - [Model.TeamMember](docs/TeamMember.md) + - [Model.Template](docs/Template.md) + - [Model.User](docs/User.md) + - [Model.WebhookSubscription](docs/WebhookSubscription.md) - + ## Documentation for Authorization - ### Token - **Type**: API key - **API key parameter name**: Authorization - **Location**: HTTP header + diff --git a/SignRequest.sln b/SignRequest.sln index eaff106..0327621 100644 --- a/SignRequest.sln +++ b/SignRequest.sln @@ -1,10 +1,8 @@ Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2012 -VisualStudioVersion = 12.0.0.0 -MinimumVisualStudioVersion = 10.0.0.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SignRequest", "src\SignRequest\SignRequest.csproj", "{7C55D80D-01C1-41D9-A66D-B6921DC0997F}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SignRequest.Test", "src\SignRequest.Test\SignRequest.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" +# Visual Studio 14 +VisualStudioVersion = 14.0.25420.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SignRequest", "src\SignRequest\SignRequest.csproj", "{38E2E284-7F96-463C-AD94-EDDBAB7AC2FA}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -12,10 +10,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {7C55D80D-01C1-41D9-A66D-B6921DC0997F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7C55D80D-01C1-41D9-A66D-B6921DC0997F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7C55D80D-01C1-41D9-A66D-B6921DC0997F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7C55D80D-01C1-41D9-A66D-B6921DC0997F}.Release|Any CPU.Build.0 = Release|Any CPU + {38E2E284-7F96-463C-AD94-EDDBAB7AC2FA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {38E2E284-7F96-463C-AD94-EDDBAB7AC2FA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {38E2E284-7F96-463C-AD94-EDDBAB7AC2FA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {38E2E284-7F96-463C-AD94-EDDBAB7AC2FA}.Release|Any CPU.Build.0 = Release|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/docs/ApiTokensApi.md b/docs/ApiTokensApi.md index 255b493..c46b00f 100644 --- a/docs/ApiTokensApi.md +++ b/docs/ApiTokensApi.md @@ -4,139 +4,9 @@ All URIs are relative to *https://signrequest.com/api/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**ApiTokensCreate**](ApiTokensApi.md#apitokenscreate) | **POST** /api-tokens/ | Create an API token -[**ApiTokensDelete**](ApiTokensApi.md#apitokensdelete) | **DELETE** /api-tokens/{key}/ | Delete an API token [**ApiTokensList**](ApiTokensApi.md#apitokenslist) | **GET** /api-tokens/ | Retrieve a list of API tokens -[**ApiTokensRead**](ApiTokensApi.md#apitokensread) | **GET** /api-tokens/{key}/ | Retrieve an API token - -# **ApiTokensCreate** -> AuthToken ApiTokensCreate (AuthToken data) - -Create an API token - -You can create an API token in the [team api settings page](/#/teams). It is also possible to get or create a token using the REST api with your login credentials. - -### Example -```csharp -using System; -using System.Diagnostics; -using SignRequest.Api; -using SignRequest.Client; -using SignRequest.Model; - -namespace Example -{ - public class ApiTokensCreateExample - { - public void main() - { - // Configure API key authorization: Token - Configuration.Default.AddApiKey("Authorization", "YOUR_API_KEY"); - Configuration.Default.AddApiKeyPrefix("Authorization", "Token"); - - var apiInstance = new ApiTokensApi(); - var data = new AuthToken(); // AuthToken | - - try - { - // Create an API token - AuthToken result = apiInstance.ApiTokensCreate(data); - Debug.WriteLine(result); - } - catch (Exception e) - { - Debug.Print("Exception when calling ApiTokensApi.ApiTokensCreate: " + e.Message ); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **data** | [**AuthToken**](AuthToken.md)| | - -### Return type - -[**AuthToken**](AuthToken.md) - -### Authorization - -[Token](../README.md#Token) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[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) - - -# **ApiTokensDelete** -> void ApiTokensDelete (string key) - -Delete an API token - -### Example -```csharp -using System; -using System.Diagnostics; -using SignRequest.Api; -using SignRequest.Client; -using SignRequest.Model; - -namespace Example -{ - public class ApiTokensDeleteExample - { - public void main() - { - // Configure API key authorization: Token - Configuration.Default.AddApiKey("Authorization", "YOUR_API_KEY"); - Configuration.Default.AddApiKeyPrefix("Authorization", "Token"); - - var apiInstance = new ApiTokensApi(); - var key = key_example; // string | A unique value identifying this api token. - - try - { - // Delete an API token - apiInstance.ApiTokensDelete(key); - } - catch (Exception e) - { - Debug.Print("Exception when calling ApiTokensApi.ApiTokensDelete: " + e.Message ); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **key** | **string**| A unique value identifying this api token. | - -### Return type - -void (empty response body) - -### Authorization - -[Token](../README.md#Token) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[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) - # **ApiTokensList** > InlineResponse200 ApiTokensList (int? page = null, int? limit = null) @@ -202,66 +72,3 @@ Name | Type | Description | Notes [[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) - -# **ApiTokensRead** -> AuthToken ApiTokensRead (string key) - -Retrieve an API token - -### Example -```csharp -using System; -using System.Diagnostics; -using SignRequest.Api; -using SignRequest.Client; -using SignRequest.Model; - -namespace Example -{ - public class ApiTokensReadExample - { - public void main() - { - // Configure API key authorization: Token - Configuration.Default.AddApiKey("Authorization", "YOUR_API_KEY"); - Configuration.Default.AddApiKeyPrefix("Authorization", "Token"); - - var apiInstance = new ApiTokensApi(); - var key = key_example; // string | A unique value identifying this api token. - - try - { - // Retrieve an API token - AuthToken result = apiInstance.ApiTokensRead(key); - Debug.WriteLine(result); - } - catch (Exception e) - { - Debug.Print("Exception when calling ApiTokensApi.ApiTokensRead: " + e.Message ); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **key** | **string**| A unique value identifying this api token. | - -### Return type - -[**AuthToken**](AuthToken.md) - -### Authorization - -[Token](../README.md#Token) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[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/docs/Document.md b/docs/Document.md index 31cb9e8..962a179 100644 --- a/docs/Document.md +++ b/docs/Document.md @@ -21,6 +21,7 @@ Name | Type | Description | Notes **Integrations** | [**List<InlineIntegrationData>**](InlineIntegrationData.md) | | [optional] **FileFromSf** | [**FileFromSf**](FileFromSf.md) | | [optional] **AutoDeleteDays** | **int?** | Number of days after which a finished document (signed/cancelled/declined) will be automatically deleted | [optional] +**AutoExpireDays** | **int?** | Number of days after which a non finished document will be automatically expired | [optional] **Pdf** | **string** | Temporary URL to signed document as PDF, expires in five minutes | [optional] **Status** | **string** | `co`: converting, `ne`: new, `se`: sent, `vi`: viewed, `si`: signed, `do`: downloaded, `sd`: signed and downloaded, `ca`: cancelled, `de`: declined, `ec`: error converting, `es`: error sending, `xp`: expired | [optional] **Signrequest** | [**DocumentSignrequest**](DocumentSignrequest.md) | | [optional] @@ -30,6 +31,7 @@ Name | Type | Description | Notes **Attachments** | [**List<DocumentAttachment>**](DocumentAttachment.md) | | [optional] **AutoDeleteAfter** | **DateTime?** | Date and time calculated using `auto_delete_days` after which a finished document (signed/cancelled/declined) will be automatically deleted | [optional] **Sandbox** | **bool?** | Indicates whether document was created as part of a sandbox team | [optional] +**AutoExpireAfter** | **DateTime?** | Date and time calculated using `auto_expire_days` after which a non finished document will be automatically expired | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DocumentAttachment.md b/docs/DocumentAttachment.md index 0ad8562..0411206 100644 --- a/docs/DocumentAttachment.md +++ b/docs/DocumentAttachment.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Url** | **string** | | [optional] **Uuid** | **string** | | [optional] -**Name** | **string** | Defaults to filename | [optional] +**Name** | **string** | Defaults to filename, including extension | [optional] **File** | **string** | Temporary URL to document attachment, expires in five minutes | [optional] **FileFromContent** | **string** | Base64 encoded document content | [optional] **FileFromContentName** | **string** | Filename, including extension. Required when using `file_from_content`. | [optional] diff --git a/docs/DocumentSearch.md b/docs/DocumentSearch.md index c1dfa3b..c22469b 100644 --- a/docs/DocumentSearch.md +++ b/docs/DocumentSearch.md @@ -3,14 +3,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | **string** | `co`: converting, `ne`: new, `se`: sent, `vi`: viewed, `si`: signed, `do`: downloaded, `sd`: signed and downloaded, `ca`: cancelled, `de`: declined, `ec`: error converting, `es`: error sending, `xp`: expired | [optional] -**Name** | **string** | Defaults to filename | [optional] -**Who** | **string** | | -**NrExtraDocs** | **int?** | | -**FromEmail** | **string** | | **Uuid** | **string** | | [optional] **Created** | **DateTime?** | | [optional] +**Status** | **string** | `co`: converting, `ne`: new, `se`: sent, `vi`: viewed, `si`: signed, `do`: downloaded, `sd`: signed and downloaded, `ca`: cancelled, `de`: declined, `ec`: error converting, `es`: error sending, `xp`: expired | [optional] +**Who** | **string** | | +**Name** | **string** | Defaults to filename | [optional] **Autocomplete** | **string** | | +**FromEmail** | **string** | | +**NrExtraDocs** | **int?** | | **SignerEmails** | **List<string>** | | [optional] **StatusDisplay** | **string** | | [optional] **CreatedTimestamp** | **int?** | | [optional] diff --git a/docs/DocumentSignrequest.md b/docs/DocumentSignrequest.md index 74af68d..87e1d00 100644 --- a/docs/DocumentSignrequest.md +++ b/docs/DocumentSignrequest.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **DisableDate** | **bool?** | Disable adding of dates | [optional] **DisableEmails** | **bool?** | Disable all SignRequest status emails as well as the email that contains the signed documents | [optional] **DisableUploadSignatures** | **bool?** | Disable usage of uploaded signatures (images) | [optional] +**DisableBlockchainProof** | **bool?** | Disables storing timestamp proof hashes in blockchain integrations. | [optional] **TextMessageVerificationLocked** | **bool?** | When true a text message verification is needed before the signer can see the document | [optional] **Subject** | **string** | Subject of SignRequest email | [optional] **Message** | **string** | Message to include in SignRequest email, may contain the following html tags: `a`, `abbr`, `acronym`, `b`, `blockquote`, `code`, `em`, `i`, `ul`, `li`, `ol`, and `strong` | [optional] diff --git a/docs/InlineResponse201.md b/docs/InlineResponse201.md index 5cd324b..aa18262 100644 --- a/docs/InlineResponse201.md +++ b/docs/InlineResponse201.md @@ -3,8 +3,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Cancelled** | **bool?** | | **Detail** | **string** | | +**Cancelled** | **bool?** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InlineSignRequest.md b/docs/InlineSignRequest.md index 9e1ef72..919774e 100644 --- a/docs/InlineSignRequest.md +++ b/docs/InlineSignRequest.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **DisableDate** | **bool?** | Disable adding of dates | [optional] **DisableEmails** | **bool?** | Disable all SignRequest status emails as well as the email that contains the signed documents | [optional] **DisableUploadSignatures** | **bool?** | Disable usage of uploaded signatures (images) | [optional] +**DisableBlockchainProof** | **bool?** | Disables storing timestamp proof hashes in blockchain integrations. | [optional] **TextMessageVerificationLocked** | **bool?** | When true a text message verification is needed before the signer can see the document | [optional] **Subject** | **string** | Subject of SignRequest email | [optional] **Message** | **string** | Message to include in SignRequest email, may contain the following html tags: `a`, `abbr`, `acronym`, `b`, `blockquote`, `code`, `em`, `i`, `ul`, `li`, `ol`, and `strong` | [optional] diff --git a/docs/SignRequest.md b/docs/SignRequest.md index 557baa5..abc092a 100644 --- a/docs/SignRequest.md +++ b/docs/SignRequest.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **DisableDate** | **bool?** | Disable adding of dates | [optional] **DisableEmails** | **bool?** | Disable all SignRequest status emails as well as the email that contains the signed documents | [optional] **DisableUploadSignatures** | **bool?** | Disable usage of uploaded signatures (images) | [optional] +**DisableBlockchainProof** | **bool?** | Disables storing timestamp proof hashes in blockchain integrations. | [optional] **TextMessageVerificationLocked** | **bool?** | When true a text message verification is needed before the signer can see the document | [optional] **Subject** | **string** | Subject of SignRequest email | [optional] **Message** | **string** | Message to include in SignRequest email, may contain the following html tags: `a`, `abbr`, `acronym`, `b`, `blockquote`, `code`, `em`, `i`, `ul`, `li`, `ol`, and `strong` | [optional] diff --git a/docs/SignRequestQuickCreate.md b/docs/SignRequestQuickCreate.md index 6867afb..f4bc422 100644 --- a/docs/SignRequestQuickCreate.md +++ b/docs/SignRequestQuickCreate.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **DisableDate** | **bool?** | Disable adding of dates | [optional] **DisableEmails** | **bool?** | Disable all SignRequest status emails as well as the email that contains the signed documents | [optional] **DisableUploadSignatures** | **bool?** | Disable usage of uploaded signatures (images) | [optional] +**DisableBlockchainProof** | **bool?** | Disables storing timestamp proof hashes in blockchain integrations. | [optional] **TextMessageVerificationLocked** | **bool?** | When true a text message verification is needed before the signer can see the document | [optional] **Subject** | **string** | Subject of SignRequest email | [optional] **Message** | **string** | Message to include in SignRequest email, may contain the following html tags: `a`, `abbr`, `acronym`, `b`, `blockquote`, `code`, `em`, `i`, `ul`, `li`, `ol`, and `strong` | [optional] @@ -39,6 +40,7 @@ Name | Type | Description | Notes **Integrations** | [**List<InlineIntegrationData>**](InlineIntegrationData.md) | | [optional] **FileFromSf** | [**FileFromSf**](FileFromSf.md) | | [optional] **AutoDeleteDays** | **int?** | Number of days after which a finished document (signed/cancelled/declined) will be automatically deleted | [optional] +**AutoExpireDays** | **int?** | Number of days after which a non finished document will be automatically expired | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Signer.md b/docs/Signer.md index 796bd3f..75d8d08 100644 --- a/docs/Signer.md +++ b/docs/Signer.md @@ -37,6 +37,7 @@ Name | Type | Description | Notes **RedirectUrl** | **string** | | [optional] **AfterDocument** | **string** | | [optional] **Integrations** | [**List<InlineDocumentSignerIntegrationData>**](InlineDocumentSignerIntegrationData.md) | | [optional] +**Password** | **string** | Require the signer to enter this password before signing a document. This field is write only. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/src/SignRequest/Api/ApiTokensApi.cs b/src/SignRequest/Api/ApiTokensApi.cs index 1ad1520..9953696 100644 --- a/src/SignRequest/Api/ApiTokensApi.cs +++ b/src/SignRequest/Api/ApiTokensApi.cs @@ -12,7 +12,7 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; -using RestSharp; +using RestSharp.Portable; using SignRequest.Client; using SignRequest.Model; @@ -25,48 +25,6 @@ public interface IApiTokensApi : IApiAccessor { #region Synchronous Operations /// - /// Create an API token - /// - /// - /// You can create an API token in the [team api settings page](/#/teams). It is also possible to get or create a token using the REST api with your login credentials. - /// - /// Thrown when fails to make API call - /// - /// AuthToken - AuthToken ApiTokensCreate (AuthToken data); - - /// - /// Create an API token - /// - /// - /// You can create an API token in the [team api settings page](/#/teams). It is also possible to get or create a token using the REST api with your login credentials. - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of AuthToken - ApiResponse ApiTokensCreateWithHttpInfo (AuthToken data); - /// - /// Delete an API token - /// - /// - /// - /// - /// Thrown when fails to make API call - /// A unique value identifying this api token. - /// - void ApiTokensDelete (string key); - - /// - /// Delete an API token - /// - /// - /// - /// - /// Thrown when fails to make API call - /// A unique value identifying this api token. - /// ApiResponse of Object(void) - ApiResponse ApiTokensDeleteWithHttpInfo (string key); - /// /// Retrieve a list of API tokens /// /// @@ -89,72 +47,9 @@ public interface IApiTokensApi : IApiAccessor /// Number of results to return per page. (optional) /// ApiResponse of InlineResponse200 ApiResponse ApiTokensListWithHttpInfo (int? page = null, int? limit = null); - /// - /// Retrieve an API token - /// - /// - /// - /// - /// Thrown when fails to make API call - /// A unique value identifying this api token. - /// AuthToken - AuthToken ApiTokensRead (string key); - - /// - /// Retrieve an API token - /// - /// - /// - /// - /// Thrown when fails to make API call - /// A unique value identifying this api token. - /// ApiResponse of AuthToken - ApiResponse ApiTokensReadWithHttpInfo (string key); #endregion Synchronous Operations #region Asynchronous Operations /// - /// Create an API token - /// - /// - /// You can create an API token in the [team api settings page](/#/teams). It is also possible to get or create a token using the REST api with your login credentials. - /// - /// Thrown when fails to make API call - /// - /// Task of AuthToken - System.Threading.Tasks.Task ApiTokensCreateAsync (AuthToken data); - - /// - /// Create an API token - /// - /// - /// You can create an API token in the [team api settings page](/#/teams). It is also possible to get or create a token using the REST api with your login credentials. - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (AuthToken) - System.Threading.Tasks.Task> ApiTokensCreateAsyncWithHttpInfo (AuthToken data); - /// - /// Delete an API token - /// - /// - /// - /// - /// Thrown when fails to make API call - /// A unique value identifying this api token. - /// Task of void - System.Threading.Tasks.Task ApiTokensDeleteAsync (string key); - - /// - /// Delete an API token - /// - /// - /// - /// - /// Thrown when fails to make API call - /// A unique value identifying this api token. - /// Task of ApiResponse - System.Threading.Tasks.Task> ApiTokensDeleteAsyncWithHttpInfo (string key); - /// /// Retrieve a list of API tokens /// /// @@ -177,27 +72,6 @@ public interface IApiTokensApi : IApiAccessor /// Number of results to return per page. (optional) /// Task of ApiResponse (InlineResponse200) System.Threading.Tasks.Task> ApiTokensListAsyncWithHttpInfo (int? page = null, int? limit = null); - /// - /// Retrieve an API token - /// - /// - /// - /// - /// Thrown when fails to make API call - /// A unique value identifying this api token. - /// Task of AuthToken - System.Threading.Tasks.Task ApiTokensReadAsync (string key); - - /// - /// Retrieve an API token - /// - /// - /// - /// - /// Thrown when fails to make API call - /// A unique value identifying this api token. - /// Task of ApiResponse (AuthToken) - System.Threading.Tasks.Task> ApiTokensReadAsyncWithHttpInfo (string key); #endregion Asynchronous Operations } @@ -298,308 +172,6 @@ public void AddDefaultHeader(string key, string value) this.Configuration.AddDefaultHeader(key, value); } - /// - /// Create an API token You can create an API token in the [team api settings page](/#/teams). It is also possible to get or create a token using the REST api with your login credentials. - /// - /// Thrown when fails to make API call - /// - /// AuthToken - public AuthToken ApiTokensCreate (AuthToken data) - { - ApiResponse localVarResponse = ApiTokensCreateWithHttpInfo(data); - return localVarResponse.Data; - } - - /// - /// Create an API token You can create an API token in the [team api settings page](/#/teams). It is also possible to get or create a token using the REST api with your login credentials. - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of AuthToken - public ApiResponse< AuthToken > ApiTokensCreateWithHttpInfo (AuthToken data) - { - // verify the required parameter 'data' is set - if (data == null) - throw new ApiException(400, "Missing required parameter 'data' when calling ApiTokensApi->ApiTokensCreate"); - - var localVarPath = "/api-tokens/"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (data != null && data.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(data); // http body (model) parameter - } - else - { - localVarPostBody = data; // byte array - } - - // authentication (Token) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ApiTokensCreate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AuthToken) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AuthToken))); - } - - /// - /// Create an API token You can create an API token in the [team api settings page](/#/teams). It is also possible to get or create a token using the REST api with your login credentials. - /// - /// Thrown when fails to make API call - /// - /// Task of AuthToken - public async System.Threading.Tasks.Task ApiTokensCreateAsync (AuthToken data) - { - ApiResponse localVarResponse = await ApiTokensCreateAsyncWithHttpInfo(data); - return localVarResponse.Data; - - } - - /// - /// Create an API token You can create an API token in the [team api settings page](/#/teams). It is also possible to get or create a token using the REST api with your login credentials. - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (AuthToken) - public async System.Threading.Tasks.Task> ApiTokensCreateAsyncWithHttpInfo (AuthToken data) - { - // verify the required parameter 'data' is set - if (data == null) - throw new ApiException(400, "Missing required parameter 'data' when calling ApiTokensApi->ApiTokensCreate"); - - var localVarPath = "/api-tokens/"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (data != null && data.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(data); // http body (model) parameter - } - else - { - localVarPostBody = data; // byte array - } - - // authentication (Token) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ApiTokensCreate", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AuthToken) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AuthToken))); - } - - /// - /// Delete an API token - /// - /// Thrown when fails to make API call - /// A unique value identifying this api token. - /// - public void ApiTokensDelete (string key) - { - ApiTokensDeleteWithHttpInfo(key); - } - - /// - /// Delete an API token - /// - /// Thrown when fails to make API call - /// A unique value identifying this api token. - /// ApiResponse of Object(void) - public ApiResponse ApiTokensDeleteWithHttpInfo (string key) - { - // verify the required parameter 'key' is set - if (key == null) - throw new ApiException(400, "Missing required parameter 'key' when calling ApiTokensApi->ApiTokensDelete"); - - var localVarPath = "/api-tokens/{key}/"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (key != null) localVarPathParams.Add("key", this.Configuration.ApiClient.ParameterToString(key)); // path parameter - - // authentication (Token) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ApiTokensDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - - /// - /// Delete an API token - /// - /// Thrown when fails to make API call - /// A unique value identifying this api token. - /// Task of void - public async System.Threading.Tasks.Task ApiTokensDeleteAsync (string key) - { - await ApiTokensDeleteAsyncWithHttpInfo(key); - - } - - /// - /// Delete an API token - /// - /// Thrown when fails to make API call - /// A unique value identifying this api token. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> ApiTokensDeleteAsyncWithHttpInfo (string key) - { - // verify the required parameter 'key' is set - if (key == null) - throw new ApiException(400, "Missing required parameter 'key' when calling ApiTokensApi->ApiTokensDelete"); - - var localVarPath = "/api-tokens/{key}/"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (key != null) localVarPathParams.Add("key", this.Configuration.ApiClient.ParameterToString(key)); // path parameter - - // authentication (Token) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ApiTokensDelete", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - null); - } - /// /// Retrieve a list of API tokens /// @@ -623,7 +195,7 @@ public InlineResponse200 ApiTokensList (int? page = null, int? limit = null) public ApiResponse< InlineResponse200 > ApiTokensListWithHttpInfo (int? page = null, int? limit = null) { - var localVarPath = "/api-tokens/"; + var localVarPath = "./api-tokens/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -668,7 +240,7 @@ public ApiResponse< InlineResponse200 > ApiTokensListWithHttpInfo (int? page = n } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (InlineResponse200) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponse200))); } @@ -696,7 +268,7 @@ public async System.Threading.Tasks.Task ApiTokensListAsync ( public async System.Threading.Tasks.Task> ApiTokensListAsyncWithHttpInfo (int? page = null, int? limit = null) { - var localVarPath = "/api-tokens/"; + var localVarPath = "./api-tokens/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -741,154 +313,9 @@ public async System.Threading.Tasks.Task> ApiToke } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (InlineResponse200) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponse200))); } - /// - /// Retrieve an API token - /// - /// Thrown when fails to make API call - /// A unique value identifying this api token. - /// AuthToken - public AuthToken ApiTokensRead (string key) - { - ApiResponse localVarResponse = ApiTokensReadWithHttpInfo(key); - return localVarResponse.Data; - } - - /// - /// Retrieve an API token - /// - /// Thrown when fails to make API call - /// A unique value identifying this api token. - /// ApiResponse of AuthToken - public ApiResponse< AuthToken > ApiTokensReadWithHttpInfo (string key) - { - // verify the required parameter 'key' is set - if (key == null) - throw new ApiException(400, "Missing required parameter 'key' when calling ApiTokensApi->ApiTokensRead"); - - var localVarPath = "/api-tokens/{key}/"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (key != null) localVarPathParams.Add("key", this.Configuration.ApiClient.ParameterToString(key)); // path parameter - - // authentication (Token) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ApiTokensRead", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AuthToken) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AuthToken))); - } - - /// - /// Retrieve an API token - /// - /// Thrown when fails to make API call - /// A unique value identifying this api token. - /// Task of AuthToken - public async System.Threading.Tasks.Task ApiTokensReadAsync (string key) - { - ApiResponse localVarResponse = await ApiTokensReadAsyncWithHttpInfo(key); - return localVarResponse.Data; - - } - - /// - /// Retrieve an API token - /// - /// Thrown when fails to make API call - /// A unique value identifying this api token. - /// Task of ApiResponse (AuthToken) - public async System.Threading.Tasks.Task> ApiTokensReadAsyncWithHttpInfo (string key) - { - // verify the required parameter 'key' is set - if (key == null) - throw new ApiException(400, "Missing required parameter 'key' when calling ApiTokensApi->ApiTokensRead"); - - var localVarPath = "/api-tokens/{key}/"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (key != null) localVarPathParams.Add("key", this.Configuration.ApiClient.ParameterToString(key)); // path parameter - - // authentication (Token) required - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization"); - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ApiTokensRead", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AuthToken) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AuthToken))); - } - } } diff --git a/src/SignRequest/Api/DocumentAttachmentsApi.cs b/src/SignRequest/Api/DocumentAttachmentsApi.cs index 2cb7cd9..520cd1d 100644 --- a/src/SignRequest/Api/DocumentAttachmentsApi.cs +++ b/src/SignRequest/Api/DocumentAttachmentsApi.cs @@ -12,7 +12,7 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; -using RestSharp; +using RestSharp.Portable; using SignRequest.Client; using SignRequest.Model; @@ -292,7 +292,7 @@ public ApiResponse< DocumentAttachment > DocumentAttachmentsCreateWithHttpInfo ( if (data == null) throw new ApiException(400, "Missing required parameter 'data' when calling DocumentAttachmentsApi->DocumentAttachmentsCreate"); - var localVarPath = "/document-attachments/"; + var localVarPath = "./document-attachments/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -343,7 +343,7 @@ public ApiResponse< DocumentAttachment > DocumentAttachmentsCreateWithHttpInfo ( } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (DocumentAttachment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentAttachment))); } @@ -372,7 +372,7 @@ public async System.Threading.Tasks.Task> Docume if (data == null) throw new ApiException(400, "Missing required parameter 'data' when calling DocumentAttachmentsApi->DocumentAttachmentsCreate"); - var localVarPath = "/document-attachments/"; + var localVarPath = "./document-attachments/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -423,7 +423,7 @@ public async System.Threading.Tasks.Task> Docume } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (DocumentAttachment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentAttachment))); } @@ -456,7 +456,7 @@ public InlineResponse2001 DocumentAttachmentsList (string documentUuid = null, s public ApiResponse< InlineResponse2001 > DocumentAttachmentsListWithHttpInfo (string documentUuid = null, string documentExternalId = null, string created = null, int? page = null, int? limit = null) { - var localVarPath = "/document-attachments/"; + var localVarPath = "./document-attachments/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -504,7 +504,7 @@ public ApiResponse< InlineResponse2001 > DocumentAttachmentsListWithHttpInfo (st } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (InlineResponse2001) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponse2001))); } @@ -538,7 +538,7 @@ public async System.Threading.Tasks.Task DocumentAttachments public async System.Threading.Tasks.Task> DocumentAttachmentsListAsyncWithHttpInfo (string documentUuid = null, string documentExternalId = null, string created = null, int? page = null, int? limit = null) { - var localVarPath = "/document-attachments/"; + var localVarPath = "./document-attachments/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -586,7 +586,7 @@ public async System.Threading.Tasks.Task> Docume } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (InlineResponse2001) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponse2001))); } @@ -614,7 +614,7 @@ public ApiResponse< DocumentAttachment > DocumentAttachmentsReadWithHttpInfo (st if (uuid == null) throw new ApiException(400, "Missing required parameter 'uuid' when calling DocumentAttachmentsApi->DocumentAttachmentsRead"); - var localVarPath = "/document-attachments/{uuid}/"; + var localVarPath = "./document-attachments/{uuid}/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -658,7 +658,7 @@ public ApiResponse< DocumentAttachment > DocumentAttachmentsReadWithHttpInfo (st } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (DocumentAttachment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentAttachment))); } @@ -687,7 +687,7 @@ public async System.Threading.Tasks.Task> Docume if (uuid == null) throw new ApiException(400, "Missing required parameter 'uuid' when calling DocumentAttachmentsApi->DocumentAttachmentsRead"); - var localVarPath = "/document-attachments/{uuid}/"; + var localVarPath = "./document-attachments/{uuid}/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -731,7 +731,7 @@ public async System.Threading.Tasks.Task> Docume } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (DocumentAttachment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentAttachment))); } diff --git a/src/SignRequest/Api/DocumentsApi.cs b/src/SignRequest/Api/DocumentsApi.cs index 9bfaa83..3641037 100644 --- a/src/SignRequest/Api/DocumentsApi.cs +++ b/src/SignRequest/Api/DocumentsApi.cs @@ -12,7 +12,7 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; -using RestSharp; +using RestSharp.Portable; using SignRequest.Client; using SignRequest.Model; @@ -358,7 +358,7 @@ public ApiResponse< Document > DocumentsCreateWithHttpInfo (Document data) if (data == null) throw new ApiException(400, "Missing required parameter 'data' when calling DocumentsApi->DocumentsCreate"); - var localVarPath = "/documents/"; + var localVarPath = "./documents/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -409,7 +409,7 @@ public ApiResponse< Document > DocumentsCreateWithHttpInfo (Document data) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (Document) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Document))); } @@ -438,7 +438,7 @@ public async System.Threading.Tasks.Task> DocumentsCreateA if (data == null) throw new ApiException(400, "Missing required parameter 'data' when calling DocumentsApi->DocumentsCreate"); - var localVarPath = "/documents/"; + var localVarPath = "./documents/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -489,7 +489,7 @@ public async System.Threading.Tasks.Task> DocumentsCreateA } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (Document) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Document))); } @@ -516,7 +516,7 @@ public ApiResponse DocumentsDeleteWithHttpInfo (string uuid) if (uuid == null) throw new ApiException(400, "Missing required parameter 'uuid' when calling DocumentsApi->DocumentsDelete"); - var localVarPath = "/documents/{uuid}/"; + var localVarPath = "./documents/{uuid}/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -560,7 +560,7 @@ public ApiResponse DocumentsDeleteWithHttpInfo (string uuid) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } @@ -588,7 +588,7 @@ public async System.Threading.Tasks.Task> DocumentsDeleteAsy if (uuid == null) throw new ApiException(400, "Missing required parameter 'uuid' when calling DocumentsApi->DocumentsDelete"); - var localVarPath = "/documents/{uuid}/"; + var localVarPath = "./documents/{uuid}/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -632,7 +632,7 @@ public async System.Threading.Tasks.Task> DocumentsDeleteAsy } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } @@ -677,7 +677,7 @@ public InlineResponse2003 DocumentsList (string externalId = null, string signre public ApiResponse< InlineResponse2003 > DocumentsListWithHttpInfo (string externalId = null, string signrequestWho = null, string signrequestFromEmail = null, string status = null, string userEmail = null, string userFirstName = null, string userLastName = null, string created = null, string modified = null, int? page = null, int? limit = null) { - var localVarPath = "/documents/"; + var localVarPath = "./documents/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -731,7 +731,7 @@ public ApiResponse< InlineResponse2003 > DocumentsListWithHttpInfo (string exter } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (InlineResponse2003) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponse2003))); } @@ -777,7 +777,7 @@ public async System.Threading.Tasks.Task DocumentsListAsync public async System.Threading.Tasks.Task> DocumentsListAsyncWithHttpInfo (string externalId = null, string signrequestWho = null, string signrequestFromEmail = null, string status = null, string userEmail = null, string userFirstName = null, string userLastName = null, string created = null, string modified = null, int? page = null, int? limit = null) { - var localVarPath = "/documents/"; + var localVarPath = "./documents/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -831,7 +831,7 @@ public async System.Threading.Tasks.Task> Docume } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (InlineResponse2003) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponse2003))); } @@ -859,7 +859,7 @@ public ApiResponse< Document > DocumentsReadWithHttpInfo (string uuid) if (uuid == null) throw new ApiException(400, "Missing required parameter 'uuid' when calling DocumentsApi->DocumentsRead"); - var localVarPath = "/documents/{uuid}/"; + var localVarPath = "./documents/{uuid}/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -903,7 +903,7 @@ public ApiResponse< Document > DocumentsReadWithHttpInfo (string uuid) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (Document) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Document))); } @@ -932,7 +932,7 @@ public async System.Threading.Tasks.Task> DocumentsReadAsy if (uuid == null) throw new ApiException(400, "Missing required parameter 'uuid' when calling DocumentsApi->DocumentsRead"); - var localVarPath = "/documents/{uuid}/"; + var localVarPath = "./documents/{uuid}/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -976,7 +976,7 @@ public async System.Threading.Tasks.Task> DocumentsReadAsy } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (Document) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Document))); } diff --git a/src/SignRequest/Api/DocumentsSearchApi.cs b/src/SignRequest/Api/DocumentsSearchApi.cs index 91be2e7..f242794 100644 --- a/src/SignRequest/Api/DocumentsSearchApi.cs +++ b/src/SignRequest/Api/DocumentsSearchApi.cs @@ -12,7 +12,7 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; -using RestSharp; +using RestSharp.Portable; using SignRequest.Client; using SignRequest.Model; @@ -249,7 +249,7 @@ public InlineResponse2002 DocumentsSearchList (int? page = null, int? limit = nu public ApiResponse< InlineResponse2002 > DocumentsSearchListWithHttpInfo (int? page = null, int? limit = null, string q = null, string autocomplete = null, string name = null, string subdomain = null, string signerEmails = null, string status = null, string who = null, string format = null, decimal? signerData = null) { - var localVarPath = "/documents-search/"; + var localVarPath = "./documents-search/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -305,7 +305,7 @@ public ApiResponse< InlineResponse2002 > DocumentsSearchListWithHttpInfo (int? p } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (InlineResponse2002) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponse2002))); } @@ -351,7 +351,7 @@ public async System.Threading.Tasks.Task DocumentsSearchList public async System.Threading.Tasks.Task> DocumentsSearchListAsyncWithHttpInfo (int? page = null, int? limit = null, string q = null, string autocomplete = null, string name = null, string subdomain = null, string signerEmails = null, string status = null, string who = null, string format = null, decimal? signerData = null) { - var localVarPath = "/documents-search/"; + var localVarPath = "./documents-search/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -407,7 +407,7 @@ public async System.Threading.Tasks.Task> Docume } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (InlineResponse2002) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponse2002))); } diff --git a/src/SignRequest/Api/EventsApi.cs b/src/SignRequest/Api/EventsApi.cs index 2398e71..e44acb4 100644 --- a/src/SignRequest/Api/EventsApi.cs +++ b/src/SignRequest/Api/EventsApi.cs @@ -12,7 +12,7 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; -using RestSharp; +using RestSharp.Portable; using SignRequest.Client; using SignRequest.Model; @@ -315,7 +315,7 @@ public InlineResponse2004 EventsList (string documentUuid = null, string documen public ApiResponse< InlineResponse2004 > EventsListWithHttpInfo (string documentUuid = null, string documentExternalId = null, string documentSignrequestWho = null, string documentSignrequestFromEmail = null, string documentStatus = null, string documentUserEmail = null, string documentUserFirstName = null, string documentUserLastName = null, string delivered = null, string deliveredOn = null, string timestamp = null, string status = null, string eventType = null, int? page = null, int? limit = null) { - var localVarPath = "/events/"; + var localVarPath = "./events/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -373,7 +373,7 @@ public ApiResponse< InlineResponse2004 > EventsListWithHttpInfo (string document } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (InlineResponse2004) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponse2004))); } @@ -427,7 +427,7 @@ public async System.Threading.Tasks.Task EventsListAsync (st public async System.Threading.Tasks.Task> EventsListAsyncWithHttpInfo (string documentUuid = null, string documentExternalId = null, string documentSignrequestWho = null, string documentSignrequestFromEmail = null, string documentStatus = null, string documentUserEmail = null, string documentUserFirstName = null, string documentUserLastName = null, string delivered = null, string deliveredOn = null, string timestamp = null, string status = null, string eventType = null, int? page = null, int? limit = null) { - var localVarPath = "/events/"; + var localVarPath = "./events/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -485,7 +485,7 @@ public async System.Threading.Tasks.Task> Events } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (InlineResponse2004) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponse2004))); } @@ -513,7 +513,7 @@ public ApiResponse< Event > EventsReadWithHttpInfo (int? id) if (id == null) throw new ApiException(400, "Missing required parameter 'id' when calling EventsApi->EventsRead"); - var localVarPath = "/events/{id}/"; + var localVarPath = "./events/{id}/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -557,7 +557,7 @@ public ApiResponse< Event > EventsReadWithHttpInfo (int? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (Event) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Event))); } @@ -586,7 +586,7 @@ public async System.Threading.Tasks.Task> EventsReadAsyncWith if (id == null) throw new ApiException(400, "Missing required parameter 'id' when calling EventsApi->EventsRead"); - var localVarPath = "/events/{id}/"; + var localVarPath = "./events/{id}/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -630,7 +630,7 @@ public async System.Threading.Tasks.Task> EventsReadAsyncWith } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (Event) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Event))); } diff --git a/src/SignRequest/Api/SignrequestQuickCreateApi.cs b/src/SignRequest/Api/SignrequestQuickCreateApi.cs index 4a85433..4cec105 100644 --- a/src/SignRequest/Api/SignrequestQuickCreateApi.cs +++ b/src/SignRequest/Api/SignrequestQuickCreateApi.cs @@ -12,7 +12,7 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; -using RestSharp; +using RestSharp.Portable; using SignRequest.Client; using SignRequest.Model; @@ -192,7 +192,7 @@ public ApiResponse< SignRequestQuickCreate > SignrequestQuickCreateCreateWithHtt if (data == null) throw new ApiException(400, "Missing required parameter 'data' when calling SignrequestQuickCreateApi->SignrequestQuickCreateCreate"); - var localVarPath = "/signrequest-quick-create/"; + var localVarPath = "./signrequest-quick-create/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -243,7 +243,7 @@ public ApiResponse< SignRequestQuickCreate > SignrequestQuickCreateCreateWithHtt } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (SignRequestQuickCreate) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SignRequestQuickCreate))); } @@ -272,7 +272,7 @@ public async System.Threading.Tasks.Task> Si if (data == null) throw new ApiException(400, "Missing required parameter 'data' when calling SignrequestQuickCreateApi->SignrequestQuickCreateCreate"); - var localVarPath = "/signrequest-quick-create/"; + var localVarPath = "./signrequest-quick-create/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -323,7 +323,7 @@ public async System.Threading.Tasks.Task> Si } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (SignRequestQuickCreate) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SignRequestQuickCreate))); } diff --git a/src/SignRequest/Api/SignrequestsApi.cs b/src/SignRequest/Api/SignrequestsApi.cs index 1ff4a4b..6e974ae 100644 --- a/src/SignRequest/Api/SignrequestsApi.cs +++ b/src/SignRequest/Api/SignrequestsApi.cs @@ -12,7 +12,7 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; -using RestSharp; +using RestSharp.Portable; using SignRequest.Client; using SignRequest.Model; @@ -372,7 +372,7 @@ public ApiResponse< InlineResponse201 > SignrequestsCancelSignrequestWithHttpInf if (uuid == null) throw new ApiException(400, "Missing required parameter 'uuid' when calling SignrequestsApi->SignrequestsCancelSignrequest"); - var localVarPath = "/signrequests/{uuid}/cancel_signrequest/"; + var localVarPath = "./signrequests/{uuid}/cancel_signrequest/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -416,7 +416,7 @@ public ApiResponse< InlineResponse201 > SignrequestsCancelSignrequestWithHttpInf } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (InlineResponse201) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponse201))); } @@ -445,7 +445,7 @@ public async System.Threading.Tasks.Task> Signreq if (uuid == null) throw new ApiException(400, "Missing required parameter 'uuid' when calling SignrequestsApi->SignrequestsCancelSignrequest"); - var localVarPath = "/signrequests/{uuid}/cancel_signrequest/"; + var localVarPath = "./signrequests/{uuid}/cancel_signrequest/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -489,7 +489,7 @@ public async System.Threading.Tasks.Task> Signreq } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (InlineResponse201) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponse201))); } @@ -517,7 +517,7 @@ public Model.SignRequest SignrequestsCreate (Model.SignRequest data) if (data == null) throw new ApiException(400, "Missing required parameter 'data' when calling SignrequestsApi->SignrequestsCreate"); - var localVarPath = "/signrequests/"; + var localVarPath = "./signrequests/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -568,7 +568,7 @@ public Model.SignRequest SignrequestsCreate (Model.SignRequest data) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (Model.SignRequest) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Model.SignRequest))); } @@ -597,7 +597,7 @@ public Model.SignRequest SignrequestsCreate (Model.SignRequest data) if (data == null) throw new ApiException(400, "Missing required parameter 'data' when calling SignrequestsApi->SignrequestsCreate"); - var localVarPath = "/signrequests/"; + var localVarPath = "./signrequests/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -648,7 +648,7 @@ public Model.SignRequest SignrequestsCreate (Model.SignRequest data) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (Model.SignRequest) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Model.SignRequest))); } @@ -679,7 +679,7 @@ public InlineResponse2005 SignrequestsList (string who = null, string fromEmail public ApiResponse< InlineResponse2005 > SignrequestsListWithHttpInfo (string who = null, string fromEmail = null, int? page = null, int? limit = null) { - var localVarPath = "/signrequests/"; + var localVarPath = "./signrequests/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -726,7 +726,7 @@ public ApiResponse< InlineResponse2005 > SignrequestsListWithHttpInfo (string wh } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (InlineResponse2005) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponse2005))); } @@ -758,7 +758,7 @@ public async System.Threading.Tasks.Task SignrequestsListAsy public async System.Threading.Tasks.Task> SignrequestsListAsyncWithHttpInfo (string who = null, string fromEmail = null, int? page = null, int? limit = null) { - var localVarPath = "/signrequests/"; + var localVarPath = "./signrequests/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -805,7 +805,7 @@ public async System.Threading.Tasks.Task> Signre } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (InlineResponse2005) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponse2005))); } @@ -833,7 +833,7 @@ public Model.SignRequest SignrequestsRead (string uuid) if (uuid == null) throw new ApiException(400, "Missing required parameter 'uuid' when calling SignrequestsApi->SignrequestsRead"); - var localVarPath = "/signrequests/{uuid}/"; + var localVarPath = "./signrequests/{uuid}/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -877,7 +877,7 @@ public Model.SignRequest SignrequestsRead (string uuid) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (Model.SignRequest) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Model.SignRequest))); } @@ -906,7 +906,7 @@ public Model.SignRequest SignrequestsRead (string uuid) if (uuid == null) throw new ApiException(400, "Missing required parameter 'uuid' when calling SignrequestsApi->SignrequestsRead"); - var localVarPath = "/signrequests/{uuid}/"; + var localVarPath = "./signrequests/{uuid}/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -950,7 +950,7 @@ public Model.SignRequest SignrequestsRead (string uuid) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (Model.SignRequest) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Model.SignRequest))); } @@ -978,7 +978,7 @@ public ApiResponse< InlineResponse2011 > SignrequestsResendSignrequestEmailWithH if (uuid == null) throw new ApiException(400, "Missing required parameter 'uuid' when calling SignrequestsApi->SignrequestsResendSignrequestEmail"); - var localVarPath = "/signrequests/{uuid}/resend_signrequest_email/"; + var localVarPath = "./signrequests/{uuid}/resend_signrequest_email/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1022,7 +1022,7 @@ public ApiResponse< InlineResponse2011 > SignrequestsResendSignrequestEmailWithH } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (InlineResponse2011) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponse2011))); } @@ -1051,7 +1051,7 @@ public async System.Threading.Tasks.Task> Signre if (uuid == null) throw new ApiException(400, "Missing required parameter 'uuid' when calling SignrequestsApi->SignrequestsResendSignrequestEmail"); - var localVarPath = "/signrequests/{uuid}/resend_signrequest_email/"; + var localVarPath = "./signrequests/{uuid}/resend_signrequest_email/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1095,7 +1095,7 @@ public async System.Threading.Tasks.Task> Signre } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (InlineResponse2011) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponse2011))); } diff --git a/src/SignRequest/Api/TeamMembersApi.cs b/src/SignRequest/Api/TeamMembersApi.cs index cf9609d..3a35258 100644 --- a/src/SignRequest/Api/TeamMembersApi.cs +++ b/src/SignRequest/Api/TeamMembersApi.cs @@ -12,7 +12,7 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; -using RestSharp; +using RestSharp.Portable; using SignRequest.Client; using SignRequest.Model; @@ -273,7 +273,7 @@ public InlineResponse2006 TeamMembersList (string isActive = null, string isOwne public ApiResponse< InlineResponse2006 > TeamMembersListWithHttpInfo (string isActive = null, string isOwner = null, string isAdmin = null, string userEmail = null, string userFirstName = null, string userLastName = null, int? page = null, int? limit = null) { - var localVarPath = "/team-members/"; + var localVarPath = "./team-members/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -324,7 +324,7 @@ public ApiResponse< InlineResponse2006 > TeamMembersListWithHttpInfo (string isA } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (InlineResponse2006) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponse2006))); } @@ -364,7 +364,7 @@ public async System.Threading.Tasks.Task TeamMembersListAsyn public async System.Threading.Tasks.Task> TeamMembersListAsyncWithHttpInfo (string isActive = null, string isOwner = null, string isAdmin = null, string userEmail = null, string userFirstName = null, string userLastName = null, int? page = null, int? limit = null) { - var localVarPath = "/team-members/"; + var localVarPath = "./team-members/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -415,7 +415,7 @@ public async System.Threading.Tasks.Task> TeamMe } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (InlineResponse2006) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponse2006))); } @@ -443,7 +443,7 @@ public ApiResponse< TeamMember > TeamMembersReadWithHttpInfo (string uuid) if (uuid == null) throw new ApiException(400, "Missing required parameter 'uuid' when calling TeamMembersApi->TeamMembersRead"); - var localVarPath = "/team-members/{uuid}/"; + var localVarPath = "./team-members/{uuid}/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -487,7 +487,7 @@ public ApiResponse< TeamMember > TeamMembersReadWithHttpInfo (string uuid) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (TeamMember) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TeamMember))); } @@ -516,7 +516,7 @@ public async System.Threading.Tasks.Task> TeamMembersRea if (uuid == null) throw new ApiException(400, "Missing required parameter 'uuid' when calling TeamMembersApi->TeamMembersRead"); - var localVarPath = "/team-members/{uuid}/"; + var localVarPath = "./team-members/{uuid}/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -560,7 +560,7 @@ public async System.Threading.Tasks.Task> TeamMembersRea } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (TeamMember) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TeamMember))); } diff --git a/src/SignRequest/Api/TeamsApi.cs b/src/SignRequest/Api/TeamsApi.cs index 805e6a2..a269401 100644 --- a/src/SignRequest/Api/TeamsApi.cs +++ b/src/SignRequest/Api/TeamsApi.cs @@ -12,7 +12,7 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; -using RestSharp; +using RestSharp.Portable; using SignRequest.Client; using SignRequest.Model; @@ -414,7 +414,7 @@ public ApiResponse< Team > TeamsCreateWithHttpInfo (Team data) if (data == null) throw new ApiException(400, "Missing required parameter 'data' when calling TeamsApi->TeamsCreate"); - var localVarPath = "/teams/"; + var localVarPath = "./teams/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -465,7 +465,7 @@ public ApiResponse< Team > TeamsCreateWithHttpInfo (Team data) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (Team) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Team))); } @@ -494,7 +494,7 @@ public async System.Threading.Tasks.Task> TeamsCreateAsyncWith if (data == null) throw new ApiException(400, "Missing required parameter 'data' when calling TeamsApi->TeamsCreate"); - var localVarPath = "/teams/"; + var localVarPath = "./teams/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -545,7 +545,7 @@ public async System.Threading.Tasks.Task> TeamsCreateAsyncWith } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (Team) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Team))); } @@ -572,7 +572,7 @@ public ApiResponse TeamsDeleteWithHttpInfo (string subdomain) if (subdomain == null) throw new ApiException(400, "Missing required parameter 'subdomain' when calling TeamsApi->TeamsDelete"); - var localVarPath = "/teams/{subdomain}/"; + var localVarPath = "./teams/{subdomain}/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -616,7 +616,7 @@ public ApiResponse TeamsDeleteWithHttpInfo (string subdomain) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } @@ -644,7 +644,7 @@ public async System.Threading.Tasks.Task> TeamsDeleteAsyncWi if (subdomain == null) throw new ApiException(400, "Missing required parameter 'subdomain' when calling TeamsApi->TeamsDelete"); - var localVarPath = "/teams/{subdomain}/"; + var localVarPath = "./teams/{subdomain}/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -688,7 +688,7 @@ public async System.Threading.Tasks.Task> TeamsDeleteAsyncWi } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } @@ -721,7 +721,7 @@ public ApiResponse< InviteMember > TeamsInviteMemberWithHttpInfo (string subdoma if (data == null) throw new ApiException(400, "Missing required parameter 'data' when calling TeamsApi->TeamsInviteMember"); - var localVarPath = "/teams/{subdomain}/invite_member/"; + var localVarPath = "./teams/{subdomain}/invite_member/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -773,7 +773,7 @@ public ApiResponse< InviteMember > TeamsInviteMemberWithHttpInfo (string subdoma } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (InviteMember) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InviteMember))); } @@ -807,7 +807,7 @@ public async System.Threading.Tasks.Task> TeamsInviteM if (data == null) throw new ApiException(400, "Missing required parameter 'data' when calling TeamsApi->TeamsInviteMember"); - var localVarPath = "/teams/{subdomain}/invite_member/"; + var localVarPath = "./teams/{subdomain}/invite_member/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -859,7 +859,7 @@ public async System.Threading.Tasks.Task> TeamsInviteM } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (InviteMember) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InviteMember))); } @@ -886,7 +886,7 @@ public InlineResponse2007 TeamsList (int? page = null, int? limit = null) public ApiResponse< InlineResponse2007 > TeamsListWithHttpInfo (int? page = null, int? limit = null) { - var localVarPath = "/teams/"; + var localVarPath = "./teams/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -931,7 +931,7 @@ public ApiResponse< InlineResponse2007 > TeamsListWithHttpInfo (int? page = null } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (InlineResponse2007) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponse2007))); } @@ -959,7 +959,7 @@ public async System.Threading.Tasks.Task TeamsListAsync (int public async System.Threading.Tasks.Task> TeamsListAsyncWithHttpInfo (int? page = null, int? limit = null) { - var localVarPath = "/teams/"; + var localVarPath = "./teams/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1004,7 +1004,7 @@ public async System.Threading.Tasks.Task> TeamsL } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (InlineResponse2007) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponse2007))); } @@ -1037,7 +1037,7 @@ public ApiResponse< Team > TeamsPartialUpdateWithHttpInfo (string subdomain, Tea if (data == null) throw new ApiException(400, "Missing required parameter 'data' when calling TeamsApi->TeamsPartialUpdate"); - var localVarPath = "/teams/{subdomain}/"; + var localVarPath = "./teams/{subdomain}/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1089,7 +1089,7 @@ public ApiResponse< Team > TeamsPartialUpdateWithHttpInfo (string subdomain, Tea } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (Team) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Team))); } @@ -1123,7 +1123,7 @@ public async System.Threading.Tasks.Task> TeamsPartialUpdateAs if (data == null) throw new ApiException(400, "Missing required parameter 'data' when calling TeamsApi->TeamsPartialUpdate"); - var localVarPath = "/teams/{subdomain}/"; + var localVarPath = "./teams/{subdomain}/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1175,7 +1175,7 @@ public async System.Threading.Tasks.Task> TeamsPartialUpdateAs } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (Team) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Team))); } @@ -1203,7 +1203,7 @@ public ApiResponse< Team > TeamsReadWithHttpInfo (string subdomain) if (subdomain == null) throw new ApiException(400, "Missing required parameter 'subdomain' when calling TeamsApi->TeamsRead"); - var localVarPath = "/teams/{subdomain}/"; + var localVarPath = "./teams/{subdomain}/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1247,7 +1247,7 @@ public ApiResponse< Team > TeamsReadWithHttpInfo (string subdomain) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (Team) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Team))); } @@ -1276,7 +1276,7 @@ public async System.Threading.Tasks.Task> TeamsReadAsyncWithHt if (subdomain == null) throw new ApiException(400, "Missing required parameter 'subdomain' when calling TeamsApi->TeamsRead"); - var localVarPath = "/teams/{subdomain}/"; + var localVarPath = "./teams/{subdomain}/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1320,7 +1320,7 @@ public async System.Threading.Tasks.Task> TeamsReadAsyncWithHt } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (Team) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Team))); } diff --git a/src/SignRequest/Api/TemplatesApi.cs b/src/SignRequest/Api/TemplatesApi.cs index 06abb91..43c26ff 100644 --- a/src/SignRequest/Api/TemplatesApi.cs +++ b/src/SignRequest/Api/TemplatesApi.cs @@ -12,7 +12,7 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; -using RestSharp; +using RestSharp.Portable; using SignRequest.Client; using SignRequest.Model; @@ -237,7 +237,7 @@ public InlineResponse2008 TemplatesList (int? page = null, int? limit = null) public ApiResponse< InlineResponse2008 > TemplatesListWithHttpInfo (int? page = null, int? limit = null) { - var localVarPath = "/templates/"; + var localVarPath = "./templates/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -282,7 +282,7 @@ public ApiResponse< InlineResponse2008 > TemplatesListWithHttpInfo (int? page = } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (InlineResponse2008) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponse2008))); } @@ -310,7 +310,7 @@ public async System.Threading.Tasks.Task TemplatesListAsync public async System.Threading.Tasks.Task> TemplatesListAsyncWithHttpInfo (int? page = null, int? limit = null) { - var localVarPath = "/templates/"; + var localVarPath = "./templates/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -355,7 +355,7 @@ public async System.Threading.Tasks.Task> Templa } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (InlineResponse2008) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponse2008))); } @@ -383,7 +383,7 @@ public ApiResponse< Template > TemplatesReadWithHttpInfo (string uuid) if (uuid == null) throw new ApiException(400, "Missing required parameter 'uuid' when calling TemplatesApi->TemplatesRead"); - var localVarPath = "/templates/{uuid}/"; + var localVarPath = "./templates/{uuid}/"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -427,7 +427,7 @@ public ApiResponse< Template > TemplatesReadWithHttpInfo (string uuid) } return new ApiResponse