docusign_webforms 1.0.0 → 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: 44ad6eb9bab79860fb32cc306964fee0b2cb4e69996b1f9701a8d2d8a0017ea6
4
- data.tar.gz: c2145c157fff24b3c379cb98cd75c30df54e43a55b14a032d0d9b6e91f81e784
3
+ metadata.gz: 9b1642132527e05f85e512329d0cedc6e9659a760bc7bc705c92eb67cfe5feca
4
+ data.tar.gz: f8c386cdeb0ad54f02da2a305a45cdc2c7b4c44d27891b1fb7b51a9054a670be
5
5
  SHA512:
6
- metadata.gz: cf3d12c87e3efb97d6e519df41dcfde4abf39050eb9a98499722ea4083ffcebfa39bd7633d73d9c143e5b790a0d30928a7e6ef0699b3476093e6c8ff442e9f15
7
- data.tar.gz: 93a91c89e7f742b581d592904dc4f1f32020a0f1aa7af34530c4bcbf765231a3c16f101a644911dac3003b81a982da81b9f0185522011da38cedc6af31b9b692
6
+ metadata.gz: 6c3b1fdf0a6acd269c96533b6ce21a9fd6cb2206430bb0f45e9c706a4e5b006d80cbb23b11bbe0dc0268fb2e54d902d3cac5da4a1d4f98e4351753fccd88d25b
7
+ data.tar.gz: 947cb41469d02f3d4a1e5f0e99e62b24db7c784b7e2c8f1f8d3e8c8fed469dda635412a90e6c51b9f932c2209cdbd5763b61eb402516a67e05b2696e5b1af706
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
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
+
1
9
  ## [v1.0.0] - WebForms API v1.1.0-1.0.2 - 2024-02-14
2
10
  ## Version 1.0.0 (Initial Release)
3
11
  - Introducing the SDK based on the OpenAPI specification of DocuSign WebForms APIs.
data/README.md CHANGED
@@ -1,132 +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.0
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.0.gem
28
- ```
29
- (for development, run `gem install --dev ./docusign_webforms-1.0.0.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.0'
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::AuthenticationMethod](docs/AuthenticationMethod.md)
100
- - [DocuSign_WebForms::CreateInstanceRequestBody](docs/CreateInstanceRequestBody.md)
101
- - [DocuSign_WebForms::HttpError](docs/HttpError.md)
102
- - [DocuSign_WebForms::HttpSuccess](docs/HttpSuccess.md)
103
- - [DocuSign_WebForms::InstanceSource](docs/InstanceSource.md)
104
- - [DocuSign_WebForms::InstanceStatus](docs/InstanceStatus.md)
105
- - [DocuSign_WebForms::TemplateProperties](docs/TemplateProperties.md)
106
- - [DocuSign_WebForms::WebForm](docs/WebForm.md)
107
- - [DocuSign_WebForms::WebFormComponentType](docs/WebFormComponentType.md)
108
- - [DocuSign_WebForms::WebFormContent](docs/WebFormContent.md)
109
- - [DocuSign_WebForms::WebFormInstance](docs/WebFormInstance.md)
110
- - [DocuSign_WebForms::WebFormInstanceEnvelopes](docs/WebFormInstanceEnvelopes.md)
111
- - [DocuSign_WebForms::WebFormInstanceList](docs/WebFormInstanceList.md)
112
- - [DocuSign_WebForms::WebFormInstanceMetadata](docs/WebFormInstanceMetadata.md)
113
- - [DocuSign_WebForms::WebFormMetadata](docs/WebFormMetadata.md)
114
- - [DocuSign_WebForms::WebFormProperties](docs/WebFormProperties.md)
115
- - [DocuSign_WebForms::WebFormSource](docs/WebFormSource.md)
116
- - [DocuSign_WebForms::WebFormState](docs/WebFormState.md)
117
- - [DocuSign_WebForms::WebFormSummary](docs/WebFormSummary.md)
118
- - [DocuSign_WebForms::WebFormSummaryList](docs/WebFormSummaryList.md)
119
- - [DocuSign_WebForms::WebFormUserInfo](docs/WebFormUserInfo.md)
120
- - [DocuSign_WebForms::WebFormValues](docs/WebFormValues.md)
121
-
122
-
123
- ## Documentation for Authorization
124
-
125
-
126
- ### docusignAccessCode
127
-
128
- - **Type**: OAuth
129
- - **Flow**: accessCode
130
- - **Authorization URL**: https://account.docusign.com/oauth/auth
131
- - **Scopes**: N/A
132
-
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.0/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
@@ -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
@@ -24,6 +24,9 @@ module DocuSign_WebForms
24
24
  # Is the form currently enabled and available for data collection
25
25
  attr_accessor :is_enabled
26
26
 
27
+ # Has the form created through upload
28
+ attr_accessor :is_uploaded
29
+
27
30
  # Does the form have draft changes that need to be published?
28
31
  attr_accessor :has_draft_changes
29
32
 
@@ -44,6 +47,7 @@ module DocuSign_WebForms
44
47
  :'account_id' => :'accountId',
45
48
  :'is_published' => :'isPublished',
46
49
  :'is_enabled' => :'isEnabled',
50
+ :'is_uploaded' => :'isUploaded',
47
51
  :'has_draft_changes' => :'hasDraftChanges',
48
52
  :'form_state' => :'formState',
49
53
  :'form_properties' => :'formProperties',
@@ -60,6 +64,7 @@ module DocuSign_WebForms
60
64
  :'account_id' => :'String',
61
65
  :'is_published' => :'BOOLEAN',
62
66
  :'is_enabled' => :'BOOLEAN',
67
+ :'is_uploaded' => :'BOOLEAN',
63
68
  :'has_draft_changes' => :'BOOLEAN',
64
69
  :'form_state' => :'WebFormState',
65
70
  :'form_properties' => :'WebFormProperties',
@@ -93,6 +98,10 @@ module DocuSign_WebForms
93
98
  self.is_enabled = attributes[:'isEnabled']
94
99
  end
95
100
 
101
+ if attributes.has_key?(:'isUploaded')
102
+ self.is_uploaded = attributes[:'isUploaded']
103
+ end
104
+
96
105
  if attributes.has_key?(:'hasDraftChanges')
97
106
  self.has_draft_changes = attributes[:'hasDraftChanges']
98
107
  end
@@ -140,6 +149,7 @@ module DocuSign_WebForms
140
149
  account_id == o.account_id &&
141
150
  is_published == o.is_published &&
142
151
  is_enabled == o.is_enabled &&
152
+ is_uploaded == o.is_uploaded &&
143
153
  has_draft_changes == o.has_draft_changes &&
144
154
  form_state == o.form_state &&
145
155
  form_properties == o.form_properties &&
@@ -157,7 +167,7 @@ module DocuSign_WebForms
157
167
  # Calculates hash code according to all attributes.
158
168
  # @return [Fixnum] Hash code
159
169
  def hash
160
- [id, account_id, is_published, is_enabled, has_draft_changes, form_state, form_properties, form_metadata, version_id, form_content].hash
170
+ [id, account_id, is_published, is_enabled, is_uploaded, has_draft_changes, form_state, form_properties, form_metadata, version_id, form_content].hash
161
171
  end
162
172
 
163
173
  # Builds the object from hash
@@ -14,9 +14,15 @@ require 'date'
14
14
  module DocuSign_WebForms
15
15
  # Form metadata
16
16
  class WebFormMetadata
17
- # The source from which the webform is created. Accepted values are [upload, templates, blank]
17
+ # The source from which the webform is created. Accepted values are [templates, blank, form]
18
18
  attr_accessor :source
19
19
 
20
+ # Represents webform type. Possible values are [standalone, hasEsignTemplate]
21
+ attr_accessor :type
22
+
23
+ # The source form id from which the webform is created.
24
+ attr_accessor :source_form_id
25
+
20
26
  # The user that created the form or has been transferred ownership
21
27
  attr_accessor :owner
22
28
 
@@ -78,6 +84,8 @@ module DocuSign_WebForms
78
84
  def self.attribute_map
79
85
  {
80
86
  :'source' => :'source',
87
+ :'type' => :'type',
88
+ :'source_form_id' => :'sourceFormId',
81
89
  :'owner' => :'owner',
82
90
  :'sender' => :'sender',
83
91
  :'last_modified_by' => :'lastModifiedBy',
@@ -104,6 +112,8 @@ module DocuSign_WebForms
104
112
  def self.swagger_types
105
113
  {
106
114
  :'source' => :'WebFormSource',
115
+ :'type' => :'WebFormType',
116
+ :'source_form_id' => :'String',
107
117
  :'owner' => :'WebFormUserInfo',
108
118
  :'sender' => :'WebFormUserInfo',
109
119
  :'last_modified_by' => :'WebFormUserInfo',
@@ -138,6 +148,14 @@ module DocuSign_WebForms
138
148
  self.source = attributes[:'source']
139
149
  end
140
150
 
151
+ if attributes.has_key?(:'type')
152
+ self.type = attributes[:'type']
153
+ end
154
+
155
+ if attributes.has_key?(:'sourceFormId')
156
+ self.source_form_id = attributes[:'sourceFormId']
157
+ end
158
+
141
159
  if attributes.has_key?(:'owner')
142
160
  self.owner = attributes[:'owner']
143
161
  end
@@ -236,6 +254,8 @@ module DocuSign_WebForms
236
254
  return true if self.equal?(o)
237
255
  self.class == o.class &&
238
256
  source == o.source &&
257
+ type == o.type &&
258
+ source_form_id == o.source_form_id &&
239
259
  owner == o.owner &&
240
260
  sender == o.sender &&
241
261
  last_modified_by == o.last_modified_by &&
@@ -266,7 +286,7 @@ module DocuSign_WebForms
266
286
  # Calculates hash code according to all attributes.
267
287
  # @return [Fixnum] Hash code
268
288
  def hash
269
- [source, owner, sender, last_modified_by, form_content_modified_by, form_properties_modified_by, last_published_by, last_enabled_by, last_disabled_by, archived_date_time, created_date_time, last_modified_date_time, form_content_modified_date_time, form_properties_modified_date_time, last_published_date_time, last_enabled_date_time, last_disabled_date_time, last_sender_consent_date_time, published_slug, published_component_names].hash
289
+ [source, type, source_form_id, owner, sender, last_modified_by, form_content_modified_by, form_properties_modified_by, last_published_by, last_enabled_by, last_disabled_by, archived_date_time, created_date_time, last_modified_date_time, form_content_modified_date_time, form_properties_modified_date_time, last_published_date_time, last_enabled_date_time, last_disabled_date_time, last_sender_consent_date_time, published_slug, published_component_names].hash
270
290
  end
271
291
 
272
292
  # Builds the object from hash
@@ -16,6 +16,7 @@ module DocuSign_WebForms
16
16
 
17
17
  TEMPLATES = 'templates'.freeze
18
18
  BLANK = 'blank'.freeze
19
+ FORM = 'form'.freeze
19
20
 
20
21
  # Builds the enum from string
21
22
  # @param [String] The enum value in the form of the string
@@ -24,6 +24,9 @@ module DocuSign_WebForms
24
24
  # Is the form currently enabled and available for data collection
25
25
  attr_accessor :is_enabled
26
26
 
27
+ # Has the form created through upload
28
+ attr_accessor :is_uploaded
29
+
27
30
  # Does the form have draft changes that need to be published?
28
31
  attr_accessor :has_draft_changes
29
32
 
@@ -40,6 +43,7 @@ module DocuSign_WebForms
40
43
  :'account_id' => :'accountId',
41
44
  :'is_published' => :'isPublished',
42
45
  :'is_enabled' => :'isEnabled',
46
+ :'is_uploaded' => :'isUploaded',
43
47
  :'has_draft_changes' => :'hasDraftChanges',
44
48
  :'form_state' => :'formState',
45
49
  :'form_properties' => :'formProperties',
@@ -54,6 +58,7 @@ module DocuSign_WebForms
54
58
  :'account_id' => :'String',
55
59
  :'is_published' => :'BOOLEAN',
56
60
  :'is_enabled' => :'BOOLEAN',
61
+ :'is_uploaded' => :'BOOLEAN',
57
62
  :'has_draft_changes' => :'BOOLEAN',
58
63
  :'form_state' => :'WebFormState',
59
64
  :'form_properties' => :'WebFormProperties',
@@ -85,6 +90,10 @@ module DocuSign_WebForms
85
90
  self.is_enabled = attributes[:'isEnabled']
86
91
  end
87
92
 
93
+ if attributes.has_key?(:'isUploaded')
94
+ self.is_uploaded = attributes[:'isUploaded']
95
+ end
96
+
88
97
  if attributes.has_key?(:'hasDraftChanges')
89
98
  self.has_draft_changes = attributes[:'hasDraftChanges']
90
99
  end
@@ -124,6 +133,7 @@ module DocuSign_WebForms
124
133
  account_id == o.account_id &&
125
134
  is_published == o.is_published &&
126
135
  is_enabled == o.is_enabled &&
136
+ is_uploaded == o.is_uploaded &&
127
137
  has_draft_changes == o.has_draft_changes &&
128
138
  form_state == o.form_state &&
129
139
  form_properties == o.form_properties &&
@@ -139,7 +149,7 @@ module DocuSign_WebForms
139
149
  # Calculates hash code according to all attributes.
140
150
  # @return [Fixnum] Hash code
141
151
  def hash
142
- [id, account_id, is_published, is_enabled, has_draft_changes, form_state, form_properties, form_metadata].hash
152
+ [id, account_id, is_published, is_enabled, is_uploaded, has_draft_changes, form_state, form_properties, form_metadata].hash
143
153
  end
144
154
 
145
155
  # Builds the object from hash