docusign_click 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/docusign_click/client/api_client.rb +8 -3
- data/lib/docusign_click/models/agree_button_styles.rb +395 -0
- data/lib/docusign_click/models/agreement_statement_styles.rb +269 -0
- data/lib/docusign_click/models/base_agree_button_styles.rb +364 -0
- data/lib/docusign_click/models/container_styles.rb +225 -0
- data/lib/docusign_click/models/disclosure_link_styles.rb +218 -0
- data/lib/docusign_click/models/document_link_styles.rb +283 -0
- data/lib/docusign_click/models/document_link_styles_focus.rb +264 -0
- data/lib/docusign_click/models/header_styles.rb +279 -0
- data/lib/docusign_click/models/user_agreement_response.rb +2 -5
- data/lib/docusign_click/models/user_agreement_response_style.rb +279 -0
- data/lib/docusign_click/version.rb +1 -1
- data/lib/docusign_click.rb +9 -0
- metadata +11 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eaa121544e86baaa9ca03ff14b3a35d15652eb32e66f677065032072875fd619
|
4
|
+
data.tar.gz: 322cddd3b298475f9c49ded7efb8e6a13a3405c4d31050357a519d5006b49b09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da5364f104328dde243a839148c57ef86b2c6af874caf421a104ed2e0bd0821af13b514c839a9ee63e1aac9ce4a7e1bcd2930355db0a3e9a8a48f1ecdbc36568
|
7
|
+
data.tar.gz: 79e4dc275e5d3587b11377d61dc8b1f68a26d3211d5bf92da856f5c3c7eb4aa48fe0d8560ff87090393a130650dc4863ca244f2dcbbf8cf83bab81d3f82d8c70
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
# DocuSign Click Ruby Client Changelog
|
2
2
|
See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes.
|
3
3
|
|
4
|
+
## [v1.4.0] - Click API v1-22.4.02.00 - 2023-06-12
|
5
|
+
### Changed
|
6
|
+
- Added support for version v1-22.4.02.00 of the DocuSign Click API.
|
7
|
+
- Updated the SDK release version.
|
8
|
+
|
4
9
|
## [v1.3.0] - Click API v1-22.4.01.00 - 2023-02-13
|
5
10
|
### Changed
|
6
11
|
- Added support for version v1-22.4.01.00 of the DocuSign Click API.
|
@@ -35,7 +35,7 @@ module DocuSign_Click
|
|
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.
|
38
|
+
@user_agent = "Swagger-Codegen/1.4.0/ruby"
|
39
39
|
@default_headers = {
|
40
40
|
'Content-Type' => "application/json",
|
41
41
|
'User-Agent' => @user_agent
|
@@ -106,7 +106,7 @@ module DocuSign_Click
|
|
106
106
|
|
107
107
|
# set ssl_verifyhosts option based on @config.verify_ssl_host (true/false)
|
108
108
|
_verify_ssl_host = @config.verify_ssl_host ? 2 : 0
|
109
|
-
|
109
|
+
|
110
110
|
req_opts = {
|
111
111
|
:method => http_method,
|
112
112
|
:headers => header_params,
|
@@ -281,7 +281,12 @@ module DocuSign_Click
|
|
281
281
|
# let typhoeus handle File, Array and nil parameters
|
282
282
|
data[key] = value
|
283
283
|
else
|
284
|
-
|
284
|
+
if header_params['Content-Type'] == 'multipart/form-data'
|
285
|
+
header_params['Content-Disposition'] = 'form-data; name=file; filename=' + key
|
286
|
+
data = value
|
287
|
+
else
|
288
|
+
data[key] = value.to_s
|
289
|
+
end
|
285
290
|
end
|
286
291
|
end
|
287
292
|
elsif body
|
@@ -0,0 +1,395 @@
|
|
1
|
+
=begin
|
2
|
+
#DocuSign Click API
|
3
|
+
|
4
|
+
#Elastic signing (also known as DocuSign Click) lets you capture consent to standard agreement terms with a single click: terms and conditions, terms of service, terms of use, privacy policies, and more. The Click API lets you include this customizable elastic template solution in your DocuSign integrations.
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
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_Click
|
15
|
+
# Control the display of the Agree button.
|
16
|
+
class AgreeButtonStyles
|
17
|
+
# Control the element's style when element is disabled
|
18
|
+
attr_accessor :disabled
|
19
|
+
|
20
|
+
# Control the elements's style when element is focused
|
21
|
+
attr_accessor :focus
|
22
|
+
|
23
|
+
# control the element's hover style when hovered
|
24
|
+
attr_accessor :hover
|
25
|
+
|
26
|
+
# Control the background color of the element.
|
27
|
+
attr_accessor :background_color
|
28
|
+
|
29
|
+
# Control the border of the element.
|
30
|
+
attr_accessor :border
|
31
|
+
|
32
|
+
# Control the border color of the element.
|
33
|
+
attr_accessor :border_color
|
34
|
+
|
35
|
+
# Control the border radius of the element.
|
36
|
+
attr_accessor :border_radius
|
37
|
+
|
38
|
+
# Control the border style of the element.
|
39
|
+
attr_accessor :border_style
|
40
|
+
|
41
|
+
# Control the border width of the element.
|
42
|
+
attr_accessor :border_width
|
43
|
+
|
44
|
+
# Control the display of the box shadow of the agree button.
|
45
|
+
attr_accessor :box_shadow
|
46
|
+
|
47
|
+
# Control the fore-ground color of the element.
|
48
|
+
attr_accessor :color
|
49
|
+
|
50
|
+
# Control the font family of the text.
|
51
|
+
attr_accessor :font_family
|
52
|
+
|
53
|
+
# Control the font size of the text.
|
54
|
+
attr_accessor :font_size
|
55
|
+
|
56
|
+
# Control the font style of the text.
|
57
|
+
attr_accessor :font_style
|
58
|
+
|
59
|
+
# Control the font weight of the text.
|
60
|
+
attr_accessor :font_weight
|
61
|
+
|
62
|
+
# Control the height of the agree button.
|
63
|
+
attr_accessor :height
|
64
|
+
|
65
|
+
# Control the margin of the element.
|
66
|
+
attr_accessor :margin
|
67
|
+
|
68
|
+
# Control the opacity of the element
|
69
|
+
attr_accessor :opacity
|
70
|
+
|
71
|
+
# Control the outline of the element
|
72
|
+
attr_accessor :outline
|
73
|
+
|
74
|
+
# Conrol the outline offset of the element
|
75
|
+
attr_accessor :outline_offset
|
76
|
+
|
77
|
+
# Control the padding of the element.
|
78
|
+
attr_accessor :padding
|
79
|
+
|
80
|
+
# Control the width of the agree button.
|
81
|
+
attr_accessor :width
|
82
|
+
|
83
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
84
|
+
def self.attribute_map
|
85
|
+
{
|
86
|
+
:'disabled' => :':disabled',
|
87
|
+
:'focus' => :':focus',
|
88
|
+
:'hover' => :':hover',
|
89
|
+
:'background_color' => :'backgroundColor',
|
90
|
+
:'border' => :'border',
|
91
|
+
:'border_color' => :'borderColor',
|
92
|
+
:'border_radius' => :'borderRadius',
|
93
|
+
:'border_style' => :'borderStyle',
|
94
|
+
:'border_width' => :'borderWidth',
|
95
|
+
:'box_shadow' => :'boxShadow',
|
96
|
+
:'color' => :'color',
|
97
|
+
:'font_family' => :'fontFamily',
|
98
|
+
:'font_size' => :'fontSize',
|
99
|
+
:'font_style' => :'fontStyle',
|
100
|
+
:'font_weight' => :'fontWeight',
|
101
|
+
:'height' => :'height',
|
102
|
+
:'margin' => :'margin',
|
103
|
+
:'opacity' => :'opacity',
|
104
|
+
:'outline' => :'outline',
|
105
|
+
:'outline_offset' => :'outlineOffset',
|
106
|
+
:'padding' => :'padding',
|
107
|
+
:'width' => :'width'
|
108
|
+
}
|
109
|
+
end
|
110
|
+
|
111
|
+
# Attribute type mapping.
|
112
|
+
def self.swagger_types
|
113
|
+
{
|
114
|
+
:'disabled' => :'BaseAgreeButtonStyles',
|
115
|
+
:'focus' => :'BaseAgreeButtonStyles',
|
116
|
+
:'hover' => :'BaseAgreeButtonStyles',
|
117
|
+
:'background_color' => :'String',
|
118
|
+
:'border' => :'String',
|
119
|
+
:'border_color' => :'String',
|
120
|
+
:'border_radius' => :'String',
|
121
|
+
:'border_style' => :'String',
|
122
|
+
:'border_width' => :'String',
|
123
|
+
:'box_shadow' => :'String',
|
124
|
+
:'color' => :'String',
|
125
|
+
:'font_family' => :'String',
|
126
|
+
:'font_size' => :'String',
|
127
|
+
:'font_style' => :'String',
|
128
|
+
:'font_weight' => :'Object',
|
129
|
+
:'height' => :'String',
|
130
|
+
:'margin' => :'String',
|
131
|
+
:'opacity' => :'String',
|
132
|
+
:'outline' => :'String',
|
133
|
+
:'outline_offset' => :'String',
|
134
|
+
:'padding' => :'String',
|
135
|
+
:'width' => :'String'
|
136
|
+
}
|
137
|
+
end
|
138
|
+
|
139
|
+
# Initializes the object
|
140
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
141
|
+
def initialize(attributes = {})
|
142
|
+
return unless attributes.is_a?(Hash)
|
143
|
+
|
144
|
+
# convert string to symbol for hash key
|
145
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
146
|
+
|
147
|
+
if attributes.has_key?(:':disabled')
|
148
|
+
self.disabled = attributes[:':disabled']
|
149
|
+
end
|
150
|
+
|
151
|
+
if attributes.has_key?(:':focus')
|
152
|
+
self.focus = attributes[:':focus']
|
153
|
+
end
|
154
|
+
|
155
|
+
if attributes.has_key?(:':hover')
|
156
|
+
self.hover = attributes[:':hover']
|
157
|
+
end
|
158
|
+
|
159
|
+
if attributes.has_key?(:'backgroundColor')
|
160
|
+
self.background_color = attributes[:'backgroundColor']
|
161
|
+
end
|
162
|
+
|
163
|
+
if attributes.has_key?(:'border')
|
164
|
+
self.border = attributes[:'border']
|
165
|
+
end
|
166
|
+
|
167
|
+
if attributes.has_key?(:'borderColor')
|
168
|
+
self.border_color = attributes[:'borderColor']
|
169
|
+
end
|
170
|
+
|
171
|
+
if attributes.has_key?(:'borderRadius')
|
172
|
+
self.border_radius = attributes[:'borderRadius']
|
173
|
+
end
|
174
|
+
|
175
|
+
if attributes.has_key?(:'borderStyle')
|
176
|
+
self.border_style = attributes[:'borderStyle']
|
177
|
+
end
|
178
|
+
|
179
|
+
if attributes.has_key?(:'borderWidth')
|
180
|
+
self.border_width = attributes[:'borderWidth']
|
181
|
+
end
|
182
|
+
|
183
|
+
if attributes.has_key?(:'boxShadow')
|
184
|
+
self.box_shadow = attributes[:'boxShadow']
|
185
|
+
end
|
186
|
+
|
187
|
+
if attributes.has_key?(:'color')
|
188
|
+
self.color = attributes[:'color']
|
189
|
+
end
|
190
|
+
|
191
|
+
if attributes.has_key?(:'fontFamily')
|
192
|
+
self.font_family = attributes[:'fontFamily']
|
193
|
+
end
|
194
|
+
|
195
|
+
if attributes.has_key?(:'fontSize')
|
196
|
+
self.font_size = attributes[:'fontSize']
|
197
|
+
end
|
198
|
+
|
199
|
+
if attributes.has_key?(:'fontStyle')
|
200
|
+
self.font_style = attributes[:'fontStyle']
|
201
|
+
end
|
202
|
+
|
203
|
+
if attributes.has_key?(:'fontWeight')
|
204
|
+
self.font_weight = attributes[:'fontWeight']
|
205
|
+
end
|
206
|
+
|
207
|
+
if attributes.has_key?(:'height')
|
208
|
+
self.height = attributes[:'height']
|
209
|
+
end
|
210
|
+
|
211
|
+
if attributes.has_key?(:'margin')
|
212
|
+
self.margin = attributes[:'margin']
|
213
|
+
end
|
214
|
+
|
215
|
+
if attributes.has_key?(:'opacity')
|
216
|
+
self.opacity = attributes[:'opacity']
|
217
|
+
end
|
218
|
+
|
219
|
+
if attributes.has_key?(:'outline')
|
220
|
+
self.outline = attributes[:'outline']
|
221
|
+
end
|
222
|
+
|
223
|
+
if attributes.has_key?(:'outlineOffset')
|
224
|
+
self.outline_offset = attributes[:'outlineOffset']
|
225
|
+
end
|
226
|
+
|
227
|
+
if attributes.has_key?(:'padding')
|
228
|
+
self.padding = attributes[:'padding']
|
229
|
+
end
|
230
|
+
|
231
|
+
if attributes.has_key?(:'width')
|
232
|
+
self.width = attributes[:'width']
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
237
|
+
# @return Array for valid properties with the reasons
|
238
|
+
def list_invalid_properties
|
239
|
+
invalid_properties = Array.new
|
240
|
+
invalid_properties
|
241
|
+
end
|
242
|
+
|
243
|
+
# Check to see if the all the properties in the model are valid
|
244
|
+
# @return true if the model is valid
|
245
|
+
def valid?
|
246
|
+
true
|
247
|
+
end
|
248
|
+
|
249
|
+
# Checks equality by comparing each attribute.
|
250
|
+
# @param [Object] Object to be compared
|
251
|
+
def ==(o)
|
252
|
+
return true if self.equal?(o)
|
253
|
+
self.class == o.class &&
|
254
|
+
disabled == o.disabled &&
|
255
|
+
focus == o.focus &&
|
256
|
+
hover == o.hover &&
|
257
|
+
background_color == o.background_color &&
|
258
|
+
border == o.border &&
|
259
|
+
border_color == o.border_color &&
|
260
|
+
border_radius == o.border_radius &&
|
261
|
+
border_style == o.border_style &&
|
262
|
+
border_width == o.border_width &&
|
263
|
+
box_shadow == o.box_shadow &&
|
264
|
+
color == o.color &&
|
265
|
+
font_family == o.font_family &&
|
266
|
+
font_size == o.font_size &&
|
267
|
+
font_style == o.font_style &&
|
268
|
+
font_weight == o.font_weight &&
|
269
|
+
height == o.height &&
|
270
|
+
margin == o.margin &&
|
271
|
+
opacity == o.opacity &&
|
272
|
+
outline == o.outline &&
|
273
|
+
outline_offset == o.outline_offset &&
|
274
|
+
padding == o.padding &&
|
275
|
+
width == o.width
|
276
|
+
end
|
277
|
+
|
278
|
+
# @see the `==` method
|
279
|
+
# @param [Object] Object to be compared
|
280
|
+
def eql?(o)
|
281
|
+
self == o
|
282
|
+
end
|
283
|
+
|
284
|
+
# Calculates hash code according to all attributes.
|
285
|
+
# @return [Fixnum] Hash code
|
286
|
+
def hash
|
287
|
+
[disabled, focus, hover, background_color, border, border_color, border_radius, border_style, border_width, box_shadow, color, font_family, font_size, font_style, font_weight, height, margin, opacity, outline, outline_offset, padding, width].hash
|
288
|
+
end
|
289
|
+
|
290
|
+
# Builds the object from hash
|
291
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
292
|
+
# @return [Object] Returns the model itself
|
293
|
+
def build_from_hash(attributes)
|
294
|
+
return nil unless attributes.is_a?(Hash)
|
295
|
+
self.class.swagger_types.each_pair do |key, type|
|
296
|
+
if type =~ /\AArray<(.*)>/i
|
297
|
+
# check to ensure the input is an array given that the attribute
|
298
|
+
# is documented as an array but the input is not
|
299
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
300
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
301
|
+
end
|
302
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
303
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
304
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
305
|
+
end
|
306
|
+
|
307
|
+
self
|
308
|
+
end
|
309
|
+
|
310
|
+
# Deserializes the data based on type
|
311
|
+
# @param string type Data type
|
312
|
+
# @param string value Value to be deserialized
|
313
|
+
# @return [Object] Deserialized data
|
314
|
+
def _deserialize(type, value)
|
315
|
+
case type.to_sym
|
316
|
+
when :DateTime
|
317
|
+
DateTime.parse(value)
|
318
|
+
when :Date
|
319
|
+
Date.parse(value)
|
320
|
+
when :String
|
321
|
+
value.to_s
|
322
|
+
when :Integer
|
323
|
+
value.to_i
|
324
|
+
when :Float
|
325
|
+
value.to_f
|
326
|
+
when :BOOLEAN
|
327
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
328
|
+
true
|
329
|
+
else
|
330
|
+
false
|
331
|
+
end
|
332
|
+
when :Object
|
333
|
+
# generic object (usually a Hash), return directly
|
334
|
+
value
|
335
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
336
|
+
inner_type = Regexp.last_match[:inner_type]
|
337
|
+
value.map { |v| _deserialize(inner_type, v) }
|
338
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
339
|
+
k_type = Regexp.last_match[:k_type]
|
340
|
+
v_type = Regexp.last_match[:v_type]
|
341
|
+
{}.tap do |hash|
|
342
|
+
value.each do |k, v|
|
343
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
344
|
+
end
|
345
|
+
end
|
346
|
+
else # model
|
347
|
+
temp_model = DocuSign_Click.const_get(type).new
|
348
|
+
temp_model.build_from_hash(value)
|
349
|
+
end
|
350
|
+
end
|
351
|
+
|
352
|
+
# Returns the string representation of the object
|
353
|
+
# @return [String] String presentation of the object
|
354
|
+
def to_s
|
355
|
+
to_hash.to_s
|
356
|
+
end
|
357
|
+
|
358
|
+
# to_body is an alias to to_hash (backward compatibility)
|
359
|
+
# @return [Hash] Returns the object in the form of hash
|
360
|
+
def to_body
|
361
|
+
to_hash
|
362
|
+
end
|
363
|
+
|
364
|
+
# Returns the object in the form of hash
|
365
|
+
# @return [Hash] Returns the object in the form of hash
|
366
|
+
def to_hash
|
367
|
+
hash = {}
|
368
|
+
self.class.attribute_map.each_pair do |attr, param|
|
369
|
+
value = self.send(attr)
|
370
|
+
next if value.nil?
|
371
|
+
hash[param] = _to_hash(value)
|
372
|
+
end
|
373
|
+
hash
|
374
|
+
end
|
375
|
+
|
376
|
+
# Outputs non-array value in the form of hash
|
377
|
+
# For object, use to_hash. Otherwise, just return the value
|
378
|
+
# @param [Object] value Any valid value
|
379
|
+
# @return [Hash] Returns the value in the form of hash
|
380
|
+
def _to_hash(value)
|
381
|
+
if value.is_a?(Array)
|
382
|
+
value.compact.map { |v| _to_hash(v) }
|
383
|
+
elsif value.is_a?(Hash)
|
384
|
+
{}.tap do |hash|
|
385
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
386
|
+
end
|
387
|
+
elsif value.respond_to? :to_hash
|
388
|
+
value.to_hash
|
389
|
+
else
|
390
|
+
value
|
391
|
+
end
|
392
|
+
end
|
393
|
+
|
394
|
+
end
|
395
|
+
end
|