docusign_webforms 1.0.2.rc12 → 2.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3dc9fa45ecc3ab8e935a1027dd8eea0278a3c0cb8e5b816dbd4f38e2a03f8585
4
- data.tar.gz: a6f920301abaa3fda047bbcca3115b249a9d93f807c44297fcf5fdd503ebfa0f
3
+ metadata.gz: 9b1642132527e05f85e512329d0cedc6e9659a760bc7bc705c92eb67cfe5feca
4
+ data.tar.gz: f8c386cdeb0ad54f02da2a305a45cdc2c7b4c44d27891b1fb7b51a9054a670be
5
5
  SHA512:
6
- metadata.gz: 457d474d6b4229ffdea62f06051d67293cda3f60cc6ca392f577b2874f7edca6d915c7046dfd0dcc6f73bc3fe5721a3f3b1851783f26ae05f3a19b7a0865922f
7
- data.tar.gz: d3e43ba2dabcedc0eed54638257c00eda70cd9122519ab0156eb0cb3ee5648ca184fdfb3cc076626b21aa733942ad1fcef59b408a21038c357f4285a860ed177
6
+ metadata.gz: 6c3b1fdf0a6acd269c96533b6ce21a9fd6cb2206430bb0f45e9c706a4e5b006d80cbb23b11bbe0dc0268fb2e54d902d3cac5da4a1d4f98e4351753fccd88d25b
7
+ data.tar.gz: 947cb41469d02f3d4a1e5f0e99e62b24db7c784b7e2c8f1f8d3e8c8fed469dda635412a90e6c51b9f932c2209cdbd5763b61eb402516a67e05b2696e5b1af706
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## [v2.0.0.rc1] - WebForms API v1.1.0-1.0.4 - 2024-09-24
2
+ ### Changed
3
+ - Added support for version v1.1.0-1.0.4 of the DocuSign WebForms API.
4
+ - Updated the SDK release version.
5
+
6
+ ## Important Action Required
7
+ - User needs to update the base URL in your codebase (if passing to SDK explicitly) and remove the /v1.1 component at the end of the URL for the SDK to work properly with this release.
8
+
9
+ ## [v1.0.0] - WebForms API v1.1.0-1.0.2 - 2024-02-14
10
+ ## Version 1.0.0 (Initial Release)
11
+ - Introducing the SDK based on the OpenAPI specification of DocuSign WebForms APIs.
12
+ - This release marks the initial availability of the SDK, providing developers with the necessary tools to interact with DocuSign WebForms APIs seamlessly.
1
13
  ## [v1.0.2.rc12] - WebForms API v1.1.0-1.0.2 - 2024-02-09
2
14
  ### Breaking Changes
3
15
 
data/README.md CHANGED
@@ -1,131 +1,95 @@
1
- # docusign_webforms
2
-
3
- DocuSign_WebForms - the Ruby gem for the Web Forms API version 1.1
4
-
5
- The Web Forms API facilitates generating semantic HTML forms around everyday contracts.
6
-
7
- This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
-
9
- - API version: 1.1.0
10
- - Package version: 1.0.2.rc12
11
- - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
- For more information, please visit [https://developers.docusign.com/](https://developers.docusign.com/)
13
-
1
+ # The Official Docusign WebForms Ruby Client SDK
2
+
3
+ The Docusign SDK makes integrating Docusign into your apps and websites a seamless experience.
4
+
5
+ ## Table of Contents
6
+ - [Introduction](#introduction)
7
+ - [Installation](#installation)
8
+ * [Version Information](#versionInformation)
9
+ * [Requirements](#requirements)
10
+ * [Compatibility](#compatibility)
11
+ * [Installation via your application's Gemfile](#installationViaGem)
12
+ * [Manual Installation](#manualInstallation)
13
+ - [Dependencies](#dependencies)
14
+ - [API Reference](#apiReference)
15
+ - [Code Examples](#codeExamples)
16
+ - [OAuth Implementations](#oauthImplementations)
17
+ - [Changelog](#changeLog)
18
+ - [Support](#support)
19
+ - [License](#license)
20
+ - [Additional Resources](#additionalResources)
21
+
22
+ <a id="introduction"></a>
23
+ ## Introduction
24
+ Leverage the power of Web Forms in your agreement processes. Enjoy greater flexibility to manage forms using your own code including the creation and management of form instances with prefilled data. This API works with Docusign JS to enable the embedding of a web form instance in your web application.
25
+
26
+ <a id="installation"></a>
14
27
  ## Installation
15
-
16
- ### Build a gem
17
-
18
- To build the Ruby code into a gem:
19
-
20
- ```shell
21
- gem build docusign_webforms.gemspec
22
- ```
23
-
24
- Then either install the gem locally:
25
-
26
- ```shell
27
- gem install ./docusign_webforms-1.0.2.rc12.gem
28
- ```
29
- (for development, run `gem install --dev ./docusign_webforms-1.0.2.rc12.gem` to install the development dependencies)
30
-
31
- or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
-
33
- Finally add this to the Gemfile:
34
-
35
- gem 'docusign_webforms', '~> 1.0.2.rc12'
36
-
37
- ### Install from Git
38
-
39
- If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
40
-
41
- gem 'docusign_webforms', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
42
-
43
- ### Include the Ruby code directly
44
-
45
- Include the Ruby code directly using `-I` as follows:
46
-
47
- ```shell
48
- ruby -Ilib script.rb
49
- ```
50
-
51
- ## Getting Started
52
-
53
- Please follow the [installation](#installation) procedure and then run the following code:
54
- ```ruby
55
- # Load the gem
56
- require 'docusign_webforms'
57
-
58
- # Setup authorization
59
- DocuSign_WebForms.configure do |config|
60
- # Configure OAuth2 access token for authorization: docusignAccessCode
61
- config.access_token = 'YOUR ACCESS TOKEN'
62
- end
63
-
64
- api_instance = DocuSign_WebForms::FormInstanceManagementApi.new
65
-
66
- account_id = 'account_id_example' # String | Account identifier in which the web form resides
67
-
68
- form_id = 'form_id_example' # String | Unique identifier for a web form entity that is consistent for it's lifetime
69
-
70
- create_instance_body = DocuSign_WebForms::CreateInstanceRequestBody.new # CreateInstanceRequestBody | Request body containing properties that will be used to create instance.
71
-
72
-
73
- begin
74
- #Creates an instance of the web form
75
- result = api_instance.create_instance(account_id, form_id, create_instance_body)
76
- p result
77
- rescue DocuSign_WebForms::ApiError => e
78
- puts "Exception when calling FormInstanceManagementApi->create_instance: #{e}"
79
- end
80
-
81
- ```
82
-
83
- ## Documentation for API Endpoints
84
-
85
- All URIs are relative to *https://www.docusign.net/webforms/v1.1*
86
-
87
- Class | Method | HTTP request | Description
88
- ------------ | ------------- | ------------- | -------------
89
- *DocuSign_WebForms::FormInstanceManagementApi* | [**create_instance**](docs/FormInstanceManagementApi.md#create_instance) | **POST** /accounts/{account_id}/forms/{form_id}/instances | Creates an instance of the web form
90
- *DocuSign_WebForms::FormInstanceManagementApi* | [**get_instance**](docs/FormInstanceManagementApi.md#get_instance) | **GET** /accounts/{account_id}/forms/{form_id}/instances/{instance_id} | Get form instance
91
- *DocuSign_WebForms::FormInstanceManagementApi* | [**list_instances**](docs/FormInstanceManagementApi.md#list_instances) | **GET** /accounts/{account_id}/forms/{form_id}/instances | List instances
92
- *DocuSign_WebForms::FormInstanceManagementApi* | [**refresh_token**](docs/FormInstanceManagementApi.md#refresh_token) | **POST** /accounts/{account_id}/forms/{form_id}/instances/{instance_id}/refresh | Refreshes the instance token
93
- *DocuSign_WebForms::FormManagementApi* | [**get_form**](docs/FormManagementApi.md#get_form) | **GET** /accounts/{account_id}/forms/{form_id} | Get Form
94
- *DocuSign_WebForms::FormManagementApi* | [**list_forms**](docs/FormManagementApi.md#list_forms) | **GET** /accounts/{account_id}/forms | List Forms
95
-
96
-
97
- ## Documentation for Models
98
-
99
- - [DocuSign_WebForms::CreateInstanceRequestBody](docs/CreateInstanceRequestBody.md)
100
- - [DocuSign_WebForms::HttpError](docs/HttpError.md)
101
- - [DocuSign_WebForms::HttpSuccess](docs/HttpSuccess.md)
102
- - [DocuSign_WebForms::InstanceSource](docs/InstanceSource.md)
103
- - [DocuSign_WebForms::InstanceStatus](docs/InstanceStatus.md)
104
- - [DocuSign_WebForms::TemplateProperties](docs/TemplateProperties.md)
105
- - [DocuSign_WebForms::WebForm](docs/WebForm.md)
106
- - [DocuSign_WebForms::WebFormComponentType](docs/WebFormComponentType.md)
107
- - [DocuSign_WebForms::WebFormContent](docs/WebFormContent.md)
108
- - [DocuSign_WebForms::WebFormInstance](docs/WebFormInstance.md)
109
- - [DocuSign_WebForms::WebFormInstanceEnvelopes](docs/WebFormInstanceEnvelopes.md)
110
- - [DocuSign_WebForms::WebFormInstanceList](docs/WebFormInstanceList.md)
111
- - [DocuSign_WebForms::WebFormInstanceMetadata](docs/WebFormInstanceMetadata.md)
112
- - [DocuSign_WebForms::WebFormMetadata](docs/WebFormMetadata.md)
113
- - [DocuSign_WebForms::WebFormProperties](docs/WebFormProperties.md)
114
- - [DocuSign_WebForms::WebFormSource](docs/WebFormSource.md)
115
- - [DocuSign_WebForms::WebFormState](docs/WebFormState.md)
116
- - [DocuSign_WebForms::WebFormSummary](docs/WebFormSummary.md)
117
- - [DocuSign_WebForms::WebFormSummaryList](docs/WebFormSummaryList.md)
118
- - [DocuSign_WebForms::WebFormUserInfo](docs/WebFormUserInfo.md)
119
- - [DocuSign_WebForms::WebFormValues](docs/WebFormValues.md)
120
-
121
-
122
- ## Documentation for Authorization
123
-
124
-
125
- ### docusignAccessCode
126
-
127
- - **Type**: OAuth
128
- - **Flow**: accessCode
129
- - **Authorization URL**: https://account.docusign.com/oauth/auth
130
- - **Scopes**: N/A
131
-
28
+ This client SDK is provided as open source, which enables you to customize its functionality to suit your particular use case. To do so, download or clone the repository. If the SDK’s given functionality meets your integration needs, or if you’re working through our [code examples](https://developers.docusign.com/docs/web-forms-api/how-to/) from the [Docusign Developer Center](https://developers.docusign.com/), you merely need to install it by following the instructions below.
29
+
30
+ <a id="versionInformation"></a>
31
+ ### Version Information
32
+ - **API version**: 1.1.0
33
+ - **Latest SDK version**: 2.0.0.rc1
34
+
35
+ <a id="requirements"></a>
36
+ ## Requirements
37
+ * Ruby 1.9+
38
+ * Free [developer account](https://go.docusign.com/o/sandbox/?postActivateUrl=https://developers.docusign.com/)
39
+
40
+ <a id="compatibility"></a>
41
+ ## Compatibility
42
+ * Ruby 1.9+
43
+
44
+ <a id="installationViaGem"></a>
45
+ ### Installation via your application's Gemfile:
46
+ 1. In your application's Gemfile, add:
47
+ `gem 'docusign_webforms'`
48
+ 2. Open your preferred console.
49
+ 3. In your project directory, execute the installer by typing: **bundle install**
50
+
51
+ <a id="manualInstallation"></a>
52
+ ### Manual Installation:
53
+ 1. Open your preferred console.
54
+ 2. In the console, type: **gem install docusign_webforms**
55
+
56
+ <a id="dependencies"></a>
57
+ ### SDK Dependencies
58
+ This client has the following external dependencies:
59
+ * Jwt v2.2.1
60
+ * Json v2.1.0
61
+ * addressable v2.7.0
62
+ * Typhoeus v1.0.1
63
+
64
+ <a id="apiReference"></a>
65
+ ## API Reference
66
+ You can refer to the API reference [here](https://developers.docusign.com/docs/web-forms-api/reference/).
67
+
68
+ <a id="codeExamples"></a>
69
+ ## Code examples
70
+ Explore our GitHub repository for the [Launcher](https://github.com/docusign/code-examples-ruby/), a self-executing package housing code examples for the WebForms Ruby SDK. This package showcases several common use cases and their respective source files. Additionally, you can download a version preconfigured for your Docusign developer account from [Quickstart](https://developers.docusign.com/docs/esign-rest-api/quickstart/). These examples support both the [Authorization Code Grant](https://developers.docusign.com/platform/auth/authcode/) and [JSON Web Token (JWT)](https://developers.docusign.com/platform/auth/jwt/) authentication workflows.
71
+
72
+ <a id="oauthImplementations"></a>
73
+ ## OAuth implementations
74
+ For details regarding which type of OAuth grant will work best for your Docusign integration, see [Choose OAuth Type](https://developers.docusign.com/platform/auth/choose/) in the [Docusign Developer Center](https://developers.docusign.com/).
75
+
76
+ For security purposes, Docusign recommends using the [Authorization Code Grant](https://developers.docusign.com/platform/auth/authcode/) flow.
77
+
78
+ <a id="changeLog"></a>
79
+ ## Changelog
80
+ You can refer to the complete changelog [here](https://github.com/docusign/docusign-webforms-ruby-client/blob/master/CHANGELOG.md).
81
+
82
+ <a id="support"></a>
83
+ ## Support
84
+ Log issues against this client SDK through GitHub. You can also reach out to us through [Docusign Community](https://community.docusign.com/developer-59) and [Stack Overflow](https://stackoverflow.com/questions/tagged/docusignapi).
85
+
86
+ <a id="license"></a>
87
+ ## License
88
+ The Docusign WebForms Ruby Client SDK is licensed under the [MIT License](https://github.com/docusign/docusign-webforms-ruby-client/blob/master/LICENSE).
89
+
90
+ <a id="additionalResources"></a>
91
+ ### Additional resources
92
+ * [Docusign Developer Center](https://developers.docusign.com/)
93
+ * [Docusign API on Twitter](https://twitter.com/docusignapi)
94
+ * [Docusign For Developers on LinkedIn](https://www.linkedin.com/showcase/docusign-for-developers/)
95
+ * [Docusign For Developers on YouTube](https://www.youtube.com/channel/UCJSJ2kMs_qeQotmw4-lX2NQ)
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
22
22
  s.email = ["devcenter@docusign.com"]
23
23
  s.homepage = "https://github.com/docusign/docusign-webforms-ruby-client"
24
24
  s.summary = "Web Forms API version 1.1 Ruby Gem"
25
- s.description = "The DocuSign package makes integrating DocuSign into your apps and websites a super fast and painless process. The library is open sourced on GitHub, look for the docusign-webforms-ruby-client repository."
25
+ s.description = "The Docusign package makes integrating Docusign into your apps and websites a super fast and painless process. The library is open sourced on GitHub, look for the docusign-webforms-ruby-client repository."
26
26
  s.license = "MIT"
27
27
  s.required_ruby_version = ">= 1.9"
28
28
 
@@ -58,7 +58,7 @@ module DocuSign_WebForms
58
58
  # verify the required parameter 'create_instance_body' is set
59
59
  fail ArgumentError, "Missing the required parameter 'create_instance_body' when calling FormInstanceManagementApi.create_instance" if create_instance_body.nil?
60
60
  # resource path
61
- local_var_path = "/accounts/{account_id}/forms/{form_id}/instances".sub('{format}','json').sub('{' + 'account_id' + '}', account_id.to_s).sub('{' + 'form_id' + '}', form_id.to_s)
61
+ local_var_path = "/v1.1/accounts/{accountId}/forms/{formId}/instances".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'formId' + '}', form_id.to_s)
62
62
 
63
63
  # query parameters
64
64
  query_params = {}
@@ -117,7 +117,7 @@ module DocuSign_WebForms
117
117
  # verify the required parameter 'instance_id' is set
118
118
  fail ArgumentError, "Missing the required parameter 'instance_id' when calling FormInstanceManagementApi.get_instance" if instance_id.nil?
119
119
  # resource path
120
- local_var_path = "/accounts/{account_id}/forms/{form_id}/instances/{instance_id}".sub('{format}','json').sub('{' + 'account_id' + '}', account_id.to_s).sub('{' + 'form_id' + '}', form_id.to_s).sub('{' + 'instance_id' + '}', instance_id.to_s)
120
+ local_var_path = "/v1.1/accounts/{accountId}/forms/{formId}/instances/{instanceId}".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'formId' + '}', form_id.to_s).sub('{' + 'instanceId' + '}', instance_id.to_s)
121
121
 
122
122
  # query parameters
123
123
  query_params = {}
@@ -178,7 +178,7 @@ module DocuSign_WebForms
178
178
  end
179
179
 
180
180
  # resource path
181
- local_var_path = "/accounts/{account_id}/forms/{form_id}/instances".sub('{format}','json').sub('{' + 'account_id' + '}', account_id.to_s).sub('{' + 'form_id' + '}', form_id.to_s)
181
+ local_var_path = "/v1.1/accounts/{accountId}/forms/{formId}/instances".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'formId' + '}', form_id.to_s)
182
182
 
183
183
  # query parameters
184
184
  query_params = {}
@@ -238,7 +238,7 @@ module DocuSign_WebForms
238
238
  # verify the required parameter 'instance_id' is set
239
239
  fail ArgumentError, "Missing the required parameter 'instance_id' when calling FormInstanceManagementApi.refresh_token" if instance_id.nil?
240
240
  # resource path
241
- local_var_path = "/accounts/{account_id}/forms/{form_id}/instances/{instance_id}/refresh".sub('{format}','json').sub('{' + 'account_id' + '}', account_id.to_s).sub('{' + 'form_id' + '}', form_id.to_s).sub('{' + 'instance_id' + '}', instance_id.to_s)
241
+ local_var_path = "/v1.1/accounts/{accountId}/forms/{formId}/instances/{instanceId}/refresh".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'formId' + '}', form_id.to_s).sub('{' + 'instanceId' + '}', instance_id.to_s)
242
242
 
243
243
  # query parameters
244
244
  query_params = {}
@@ -90,7 +90,7 @@ module DocuSign_WebForms
90
90
  end
91
91
 
92
92
  # resource path
93
- local_var_path = "/accounts/{account_id}/forms/{form_id}".sub('{format}','json').sub('{' + 'account_id' + '}', account_id.to_s).sub('{' + 'form_id' + '}', form_id.to_s)
93
+ local_var_path = "/v1.1/accounts/{accountId}/forms/{formId}".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'formId' + '}', form_id.to_s)
94
94
 
95
95
  # query parameters
96
96
  query_params = {}
@@ -151,7 +151,7 @@ module DocuSign_WebForms
151
151
  end
152
152
 
153
153
  # resource path
154
- local_var_path = "/accounts/{account_id}/forms".sub('{format}','json').sub('{' + 'account_id' + '}', account_id.to_s)
154
+ local_var_path = "/v1.1/accounts/{accountId}/forms".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s)
155
155
 
156
156
  # query parameters
157
157
  query_params = {}
@@ -35,7 +35,7 @@ module DocuSign_WebForms
35
35
  # @option config [Configuration] Configuration for initializing the object, default to Configuration.default
36
36
  def initialize(config = Configuration.default)
37
37
  @config = config
38
- @user_agent = "Swagger-Codegen/1.1.0/1.0.2.rc12/ruby-#{RUBY_VERSION}p#{RUBY_PATCHLEVEL}"
38
+ @user_agent = "Swagger-Codegen/1.1.0/2.0.0.rc1/ruby-#{RUBY_VERSION}p#{RUBY_PATCHLEVEL}"
39
39
  @default_headers = {
40
40
  'Content-Type' => "application/json",
41
41
  'User-Agent' => @user_agent
@@ -409,8 +409,6 @@ module DocuSign_WebForms
409
409
  # Derive OAuth Base Path if not given
410
410
  if self.base_path.nil? or self.base_path.start_with?("https://demo") or self.base_path.start_with?("http://demo") or self.base_path.start_with?("https://apps-d") or self.base_path.start_with?("http://apps-d")
411
411
  self.oauth_base_path = OAuth::DEMO_OAUTH_BASE_PATH
412
- elsif self.base_path.start_with?("https://stage") or self.base_path.start_with?("http://stage") or self.base_path.start_with?("https://apps-s") or self.base_path.start_with?("http://apps-s")
413
- self.oauth_base_path = OAuth::STAGE_OAUTH_BASE_PATH
414
412
  else
415
413
  self.oauth_base_path = OAuth::PRODUCTION_OAUTH_BASE_PATH
416
414
  end
@@ -426,7 +424,7 @@ module DocuSign_WebForms
426
424
  end
427
425
 
428
426
  # Helper method to configure the OAuth accessCode/implicit flow parameters
429
- # @param [String] client_id DocuSign OAuth Client Id(AKA Integrator Key)
427
+ # @param [String] client_id Docusign OAuth Client Id(AKA Integrator Key)
430
428
  # @param scopes The list of requested scopes. Client applications may be scoped to a limited set of system access.
431
429
  # @param [String] redirect_uri This determines where to deliver the response containing the authorization code
432
430
  # @param [String] response_type Determines the response type of the authorization request, NOTE: these response types are mutually exclusive for a client application. A public/native client application may only request a response type
@@ -446,8 +444,8 @@ module DocuSign_WebForms
446
444
  end
447
445
 
448
446
  # Request JWT User Token
449
- # @param [String] client_id DocuSign OAuth Client Id(AKA Integrator Key)
450
- # @param [String] user_id DocuSign user Id to be impersonated
447
+ # @param [String] client_id Docusign OAuth Client Id(AKA Integrator Key)
448
+ # @param [String] user_id Docusign user Id to be impersonated
451
449
  # @param [String] private_key_or_filename the RSA private key
452
450
  # @param [Number] expires_in number of seconds remaining before the JWT assertion is considered as invalid
453
451
  # @param scopes The list of requested scopes. Client applications may be scoped to a limited set of system access.
@@ -497,7 +495,7 @@ module DocuSign_WebForms
497
495
  end
498
496
 
499
497
  # Request JWT User Token
500
- # @param [String] client_id DocuSign OAuth Client Id(AKA Integrator Key)
498
+ # @param [String] client_id Docusign OAuth Client Id(AKA Integrator Key)
501
499
  # @param [String] private_key_or_filename the RSA private key
502
500
  # @param [Number] expires_in number of seconds remaining before the JWT assertion is considered as invalid
503
501
  # @param scopes The list of requested scopes. Client applications may be scoped to a limited set of system access.
@@ -559,8 +557,8 @@ module DocuSign_WebForms
559
557
  end
560
558
 
561
559
  # GenerateAccessToken will exchange the authorization code for an access token and refresh tokens.
562
- # @param [String] client_id DocuSign OAuth Client Id(AKA Integrator Key)
563
- # @param [String] client_secret The secret key you generated when you set up the integration in DocuSign Admin console.
560
+ # @param [String] client_id Docusign OAuth Client Id(AKA Integrator Key)
561
+ # @param [String] client_secret The secret key you generated when you set up the integration in Docusign Admin console.
564
562
  # @param [String] code The authorization code
565
563
  def generate_access_token(client_id, client_secret, code)
566
564
  raise ArgumentError.new('client_id cannot be empty') if client_id.empty?
@@ -14,8 +14,6 @@ module DocuSign_WebForms
14
14
  DEMO_OAUTH_BASE_PATH = "account-d.docusign.com"
15
15
  # Production server base path
16
16
  PRODUCTION_OAUTH_BASE_PATH = "account.docusign.com"
17
- # Stage server base path
18
- STAGE_OAUTH_BASE_PATH = "account-s.docusign.com"
19
17
  # JWT Grant Type
20
18
  GRANT_TYPE_JWT = "urn:ietf:params:oauth:grant-type:jwt-bearer"
21
19
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Web Forms API version 1.1
3
3
 
4
- #The Web Forms API facilitates generating semantic HTML forms around everyday contracts.
4
+ #The Web Forms API facilitates generating semantic HTML forms around everyday contracts.
5
5
 
6
6
  OpenAPI spec version: 1.1.0
7
7
  Contact: devcenter@docusign.com
@@ -124,8 +124,8 @@ module DocuSign_WebForms
124
124
 
125
125
  def initialize
126
126
  @scheme = 'https'
127
- @host = 'apps-d.docusign.com/api'
128
- @base_path = '/webforms/v1.1'
127
+ @host = 'apps-d.docusign.com'
128
+ @base_path = '/api/webforms'
129
129
  @api_key = {}
130
130
  @api_key_prefix = {}
131
131
  @timeout = 0
@@ -200,4 +200,4 @@ module DocuSign_WebForms
200
200
  }
201
201
  end
202
202
  end
203
- end
203
+ end
@@ -12,164 +12,34 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
12
12
  require 'date'
13
13
 
14
14
  module DocuSign_WebForms
15
- # A value that most closely matches the technique your application used to authenticate the recipient / signer.
16
15
  class AuthenticationMethod
17
- # Attribute mapping from ruby-style variable name to JSON key.
18
- def self.attribute_map
19
- {
20
- }
16
+
17
+ BIOMETRIC = 'Biometric'.freeze
18
+ EMAIL = 'Email'.freeze
19
+ HTTP_BASIC_AUTH = 'HTTPBasicAuth'.freeze
20
+ KERBEROS = 'Kerberos'.freeze
21
+ KNOWLEDGE_BASED_AUTH = 'KnowledgeBasedAuth'.freeze
22
+ NONE = 'None'.freeze
23
+ PAPER_DOCUMENTS = 'PaperDocuments'.freeze
24
+ PASSWORD = 'Password'.freeze
25
+ RSA_SECURE_ID = 'RSASecureID'.freeze
26
+ SINGLE_SIGN_ON_CA_SITEMINDER = 'SingleSignOn_CASiteminder'.freeze
27
+ SINGLE_SIGN_ON_INFO_CARD = 'SingleSignOn_InfoCard'.freeze
28
+ SINGLE_SIGN_ON_MICROSOFT_ACTIVE_DIRECTORY = 'SingleSignOn_MicrosoftActiveDirectory'.freeze
29
+ SINGLE_SIGN_ON_OTHER = 'SingleSignOn_Other'.freeze
30
+ SINGLE_SIGN_ON_PASSPORT = 'SingleSignOn_Passport'.freeze
31
+ SINGLE_SIGN_ON_SAML = 'SingleSignOn_SAML'.freeze
32
+ SMARTCARD = 'Smartcard'.freeze
33
+ SSL_MUTUAL_AUTH = 'SSLMutualAuth'.freeze
34
+ X509_CERTIFICATE = 'X509Certificate'.freeze
35
+
36
+ # Builds the enum from string
37
+ # @param [String] The enum value in the form of the string
38
+ # @return [String] The enum value
39
+ def build_from_hash(value)
40
+ constantValues = AuthenticationMethod.constants.select { |c| AuthenticationMethod::const_get(c) == value }
41
+ raise "Invalid ENUM value #{value} for class #AuthenticationMethod" if constantValues.empty?
42
+ value
21
43
  end
22
-
23
- # Attribute type mapping.
24
- def self.swagger_types
25
- {
26
- }
27
- end
28
-
29
- # Initializes the object
30
- # @param [Hash] attributes Model attributes in the form of hash
31
- def initialize(attributes = {})
32
- return unless attributes.is_a?(Hash)
33
-
34
- # convert string to symbol for hash key
35
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
36
- end
37
-
38
- # Show invalid properties with the reasons. Usually used together with valid?
39
- # @return Array for valid properties with the reasons
40
- def list_invalid_properties
41
- invalid_properties = Array.new
42
- invalid_properties
43
- end
44
-
45
- # Check to see if the all the properties in the model are valid
46
- # @return true if the model is valid
47
- def valid?
48
- true
49
- end
50
-
51
- # Checks equality by comparing each attribute.
52
- # @param [Object] Object to be compared
53
- def ==(o)
54
- return true if self.equal?(o)
55
- self.class == o.class
56
- end
57
-
58
- # @see the `==` method
59
- # @param [Object] Object to be compared
60
- def eql?(o)
61
- self == o
62
- end
63
-
64
- # Calculates hash code according to all attributes.
65
- # @return [Fixnum] Hash code
66
- def hash
67
- [].hash
68
- end
69
-
70
- # Builds the object from hash
71
- # @param [Hash] attributes Model attributes in the form of hash
72
- # @return [Object] Returns the model itself
73
- def build_from_hash(attributes)
74
- return nil unless attributes.is_a?(Hash)
75
- self.class.swagger_types.each_pair do |key, type|
76
- if type =~ /\AArray<(.*)>/i
77
- # check to ensure the input is an array given that the attribute
78
- # is documented as an array but the input is not
79
- if attributes[self.class.attribute_map[key]].is_a?(Array)
80
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
81
- end
82
- elsif !attributes[self.class.attribute_map[key]].nil?
83
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
84
- end # or else data not found in attributes(hash), not an issue as the data can be optional
85
- end
86
-
87
- self
88
- end
89
-
90
- # Deserializes the data based on type
91
- # @param string type Data type
92
- # @param string value Value to be deserialized
93
- # @return [Object] Deserialized data
94
- def _deserialize(type, value)
95
- case type.to_sym
96
- when :DateTime
97
- DateTime.parse(value)
98
- when :Date
99
- Date.parse(value)
100
- when :String
101
- value.to_s
102
- when :Integer
103
- value.to_i
104
- when :Float
105
- value.to_f
106
- when :BOOLEAN
107
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
108
- true
109
- else
110
- false
111
- end
112
- when :Object
113
- # generic object (usually a Hash), return directly
114
- value
115
- when /\AArray<(?<inner_type>.+)>\z/
116
- inner_type = Regexp.last_match[:inner_type]
117
- value.map { |v| _deserialize(inner_type, v) }
118
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
119
- k_type = Regexp.last_match[:k_type]
120
- v_type = Regexp.last_match[:v_type]
121
- {}.tap do |hash|
122
- value.each do |k, v|
123
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
124
- end
125
- end
126
- else # model
127
- temp_model = DocuSign_WebForms.const_get(type).new
128
- temp_model.build_from_hash(value)
129
- end
130
- end
131
-
132
- # Returns the string representation of the object
133
- # @return [String] String presentation of the object
134
- def to_s
135
- to_hash.to_s
136
- end
137
-
138
- # to_body is an alias to to_hash (backward compatibility)
139
- # @return [Hash] Returns the object in the form of hash
140
- def to_body
141
- to_hash
142
- end
143
-
144
- # Returns the object in the form of hash
145
- # @return [Hash] Returns the object in the form of hash
146
- def to_hash
147
- hash = {}
148
- self.class.attribute_map.each_pair do |attr, param|
149
- value = self.send(attr)
150
- next if value.nil?
151
- hash[param] = _to_hash(value)
152
- end
153
- hash
154
- end
155
-
156
- # Outputs non-array value in the form of hash
157
- # For object, use to_hash. Otherwise, just return the value
158
- # @param [Object] value Any valid value
159
- # @return [Hash] Returns the value in the form of hash
160
- def _to_hash(value)
161
- if value.is_a?(Array)
162
- value.compact.map { |v| _to_hash(v) }
163
- elsif value.is_a?(Hash)
164
- {}.tap do |hash|
165
- value.each { |k, v| hash[k] = _to_hash(v) }
166
- end
167
- elsif value.respond_to? :to_hash
168
- value.to_hash
169
- else
170
- value
171
- end
172
- end
173
-
174
44
  end
175
45
  end
@@ -54,7 +54,7 @@ module DocuSign_WebForms
54
54
  :'form_values' => :'WebFormValues',
55
55
  :'client_user_id' => :'String',
56
56
  :'authentication_instant' => :'DateTime',
57
- :'authentication_method' => :'String',
57
+ :'authentication_method' => :'AuthenticationMethod',
58
58
  :'assertion_id' => :'String',
59
59
  :'security_domain' => :'String',
60
60
  :'return_url' => :'String',
@@ -18,6 +18,7 @@ module DocuSign_WebForms
18
18
  API_EMBEDDED = 'API_EMBEDDED'.freeze
19
19
  API_REMOTE = 'API_REMOTE'.freeze
20
20
  UI_REMOTE = 'UI_REMOTE'.freeze
21
+ WORKFLOW = 'WORKFLOW'.freeze
21
22
 
22
23
  # Builds the enum from string
23
24
  # @param [String] The enum value in the form of the string
@@ -15,6 +15,7 @@ module DocuSign_WebForms
15
15
  class InstanceStatus
16
16
 
17
17
  INITIATED = 'INITIATED'.freeze
18
+ IN_PROGRESS = 'IN_PROGRESS'.freeze
18
19
  SUBMITTED = 'SUBMITTED'.freeze
19
20
  EXPIRED = 'EXPIRED'.freeze
20
21
  FAILED = 'FAILED'.freeze