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.
@@ -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
@@ -0,0 +1,29 @@
1
+ =begin
2
+ #Web Forms API version 1.1
3
+
4
+ #The Web Forms API facilitates generating semantic HTML forms around everyday contracts.
5
+
6
+ OpenAPI spec version: 1.1.0
7
+ Contact: devcenter@docusign.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ =end
11
+
12
+ require 'date'
13
+
14
+ module DocuSign_WebForms
15
+ class WebFormType
16
+
17
+ STANDALONE = 'standalone'.freeze
18
+ HAS_ESIGN_TEMPLATE = 'hasEsignTemplate'.freeze
19
+
20
+ # Builds the enum from string
21
+ # @param [String] The enum value in the form of the string
22
+ # @return [String] The enum value
23
+ def build_from_hash(value)
24
+ constantValues = WebFormType.constants.select { |c| WebFormType::const_get(c) == value }
25
+ raise "Invalid ENUM value #{value} for class #WebFormType" if constantValues.empty?
26
+ value
27
+ end
28
+ end
29
+ end
@@ -10,5 +10,5 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  =end
11
11
 
12
12
  module DocuSign_WebForms
13
- VERSION = '1.0.2.rc12'
13
+ VERSION = '2.0.0.rc1'
14
14
  end
@@ -19,6 +19,7 @@ require 'docusign_webforms/configuration'
19
19
  require 'docusign_webforms/client/auth/oauth'
20
20
 
21
21
  # Models
22
+ require 'docusign_webforms/models/authentication_method'
22
23
  require 'docusign_webforms/models/create_instance_request_body'
23
24
  require 'docusign_webforms/models/http_error'
24
25
  require 'docusign_webforms/models/http_success'
@@ -38,6 +39,7 @@ require 'docusign_webforms/models/web_form_source'
38
39
  require 'docusign_webforms/models/web_form_state'
39
40
  require 'docusign_webforms/models/web_form_summary'
40
41
  require 'docusign_webforms/models/web_form_summary_list'
42
+ require 'docusign_webforms/models/web_form_type'
41
43
  require 'docusign_webforms/models/web_form_user_info'
42
44
  require 'docusign_webforms/models/web_form_values'
43
45
 
data/tests/Gemfile CHANGED
@@ -2,4 +2,5 @@ source 'https://rubygems.org'
2
2
 
3
3
  gem 'rspec'
4
4
 
5
+ gem 'ffi', '1.16.3'
5
6
  gem 'docusign_webforms', path: '../'
@@ -0,0 +1 @@
1
+