docusign_esign 3.1.0.pre.rc1 → 3.1.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docusign_esign-4.1.210.gem +0 -0
- data/lib/docusign_esign.rb +448 -465
- data/lib/docusign_esign/configuration.rb +1 -1
- data/lib/docusign_esign/version.rb +2 -2
- metadata +3 -22
- data/lib/docusign_esign/api/.DS_Store +0 -0
- data/lib/docusign_esign/api/comments_api.rb +0 -89
- data/lib/docusign_esign/api/trust_service_providers_api.rb +0 -73
- data/lib/docusign_esign/models/address_information_v2.rb +0 -258
- data/lib/docusign_esign/models/custom_field_v2.rb +0 -247
- data/lib/docusign_esign/models/display_appliance_document.rb +0 -258
- data/lib/docusign_esign/models/display_appliance_document_page.rb +0 -278
- data/lib/docusign_esign/models/display_appliance_envelope.rb +0 -328
- data/lib/docusign_esign/models/display_appliance_info.rb +0 -235
- data/lib/docusign_esign/models/display_appliance_page.rb +0 -278
- data/lib/docusign_esign/models/display_appliance_pdf.rb +0 -267
- data/lib/docusign_esign/models/display_appliance_recipient.rb +0 -388
- data/lib/docusign_esign/models/display_appliance_signer_attachment.rb +0 -248
- data/lib/docusign_esign/models/envelope_template_definition.rb +0 -336
- data/lib/docusign_esign/models/envelope_template_result.rb +0 -824
- data/lib/docusign_esign/models/folder_item.rb +0 -390
- data/lib/docusign_esign/models/recipient_saml_authentication.rb +0 -190
- data/lib/docusign_esign/models/saml_assertion_attribute.rb +0 -217
- data/tests/Gemfile.lock +0 -42
- data/tests/docs/private.pem +0 -27
@@ -1,247 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#DocuSign REST API
|
3
|
-
|
4
|
-
#The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
|
5
|
-
|
6
|
-
OpenAPI spec version: v2
|
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_eSign
|
15
|
-
|
16
|
-
class CustomFieldV2
|
17
|
-
# If merge field's are being used, specifies the type of the merge field. The only supported value is **salesforce**.
|
18
|
-
attr_accessor :configuration_type
|
19
|
-
|
20
|
-
attr_accessor :error_details
|
21
|
-
|
22
|
-
#
|
23
|
-
attr_accessor :field_id
|
24
|
-
|
25
|
-
#
|
26
|
-
attr_accessor :name
|
27
|
-
|
28
|
-
# When set to **true**, the signer is required to fill out this tab
|
29
|
-
attr_accessor :required
|
30
|
-
|
31
|
-
#
|
32
|
-
attr_accessor :show
|
33
|
-
|
34
|
-
# The value of the custom field.
|
35
|
-
attr_accessor :value
|
36
|
-
|
37
|
-
|
38
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
39
|
-
def self.attribute_map
|
40
|
-
{
|
41
|
-
:'configuration_type' => :'configurationType',
|
42
|
-
:'error_details' => :'errorDetails',
|
43
|
-
:'field_id' => :'fieldId',
|
44
|
-
:'name' => :'name',
|
45
|
-
:'required' => :'required',
|
46
|
-
:'show' => :'show',
|
47
|
-
:'value' => :'value'
|
48
|
-
}
|
49
|
-
end
|
50
|
-
|
51
|
-
# Attribute type mapping.
|
52
|
-
def self.swagger_types
|
53
|
-
{
|
54
|
-
:'configuration_type' => :'String',
|
55
|
-
:'error_details' => :'ErrorDetails',
|
56
|
-
:'field_id' => :'String',
|
57
|
-
:'name' => :'String',
|
58
|
-
:'required' => :'String',
|
59
|
-
:'show' => :'String',
|
60
|
-
:'value' => :'String'
|
61
|
-
}
|
62
|
-
end
|
63
|
-
|
64
|
-
# Initializes the object
|
65
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
66
|
-
def initialize(attributes = {})
|
67
|
-
return unless attributes.is_a?(Hash)
|
68
|
-
|
69
|
-
# convert string to symbol for hash key
|
70
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
71
|
-
|
72
|
-
if attributes.has_key?(:'configurationType')
|
73
|
-
self.configuration_type = attributes[:'configurationType']
|
74
|
-
end
|
75
|
-
|
76
|
-
if attributes.has_key?(:'errorDetails')
|
77
|
-
self.error_details = attributes[:'errorDetails']
|
78
|
-
end
|
79
|
-
|
80
|
-
if attributes.has_key?(:'fieldId')
|
81
|
-
self.field_id = attributes[:'fieldId']
|
82
|
-
end
|
83
|
-
|
84
|
-
if attributes.has_key?(:'name')
|
85
|
-
self.name = attributes[:'name']
|
86
|
-
end
|
87
|
-
|
88
|
-
if attributes.has_key?(:'required')
|
89
|
-
self.required = attributes[:'required']
|
90
|
-
end
|
91
|
-
|
92
|
-
if attributes.has_key?(:'show')
|
93
|
-
self.show = attributes[:'show']
|
94
|
-
end
|
95
|
-
|
96
|
-
if attributes.has_key?(:'value')
|
97
|
-
self.value = attributes[:'value']
|
98
|
-
end
|
99
|
-
|
100
|
-
end
|
101
|
-
|
102
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
103
|
-
# @return Array for valid properies with the reasons
|
104
|
-
def list_invalid_properties
|
105
|
-
invalid_properties = Array.new
|
106
|
-
return invalid_properties
|
107
|
-
end
|
108
|
-
|
109
|
-
# Check to see if the all the properties in the model are valid
|
110
|
-
# @return true if the model is valid
|
111
|
-
def valid?
|
112
|
-
return true
|
113
|
-
end
|
114
|
-
|
115
|
-
# Checks equality by comparing each attribute.
|
116
|
-
# @param [Object] Object to be compared
|
117
|
-
def ==(o)
|
118
|
-
return true if self.equal?(o)
|
119
|
-
self.class == o.class &&
|
120
|
-
configuration_type == o.configuration_type &&
|
121
|
-
error_details == o.error_details &&
|
122
|
-
field_id == o.field_id &&
|
123
|
-
name == o.name &&
|
124
|
-
required == o.required &&
|
125
|
-
show == o.show &&
|
126
|
-
value == o.value
|
127
|
-
end
|
128
|
-
|
129
|
-
# @see the `==` method
|
130
|
-
# @param [Object] Object to be compared
|
131
|
-
def eql?(o)
|
132
|
-
self == o
|
133
|
-
end
|
134
|
-
|
135
|
-
# Calculates hash code according to all attributes.
|
136
|
-
# @return [Fixnum] Hash code
|
137
|
-
def hash
|
138
|
-
[configuration_type, error_details, field_id, name, required, show, value].hash
|
139
|
-
end
|
140
|
-
|
141
|
-
# Builds the object from hash
|
142
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
143
|
-
# @return [Object] Returns the model itself
|
144
|
-
def build_from_hash(attributes)
|
145
|
-
return nil unless attributes.is_a?(Hash)
|
146
|
-
self.class.swagger_types.each_pair do |key, type|
|
147
|
-
if type =~ /\AArray<(.*)>/i
|
148
|
-
# check to ensure the input is an array given that the the attribute
|
149
|
-
# is documented as an array but the input is not
|
150
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
151
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
152
|
-
end
|
153
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
154
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
155
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
156
|
-
end
|
157
|
-
|
158
|
-
self
|
159
|
-
end
|
160
|
-
|
161
|
-
# Deserializes the data based on type
|
162
|
-
# @param string type Data type
|
163
|
-
# @param string value Value to be deserialized
|
164
|
-
# @return [Object] Deserialized data
|
165
|
-
def _deserialize(type, value)
|
166
|
-
case type.to_sym
|
167
|
-
when :DateTime
|
168
|
-
DateTime.parse(value)
|
169
|
-
when :Date
|
170
|
-
Date.parse(value)
|
171
|
-
when :String
|
172
|
-
value.to_s
|
173
|
-
when :Integer
|
174
|
-
value.to_i
|
175
|
-
when :Float
|
176
|
-
value.to_f
|
177
|
-
when :BOOLEAN
|
178
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
179
|
-
true
|
180
|
-
else
|
181
|
-
false
|
182
|
-
end
|
183
|
-
when :Object
|
184
|
-
# generic object (usually a Hash), return directly
|
185
|
-
value
|
186
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
187
|
-
inner_type = Regexp.last_match[:inner_type]
|
188
|
-
value.map { |v| _deserialize(inner_type, v) }
|
189
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
190
|
-
k_type = Regexp.last_match[:k_type]
|
191
|
-
v_type = Regexp.last_match[:v_type]
|
192
|
-
{}.tap do |hash|
|
193
|
-
value.each do |k, v|
|
194
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
195
|
-
end
|
196
|
-
end
|
197
|
-
else # model
|
198
|
-
temp_model = DocuSign_eSign.const_get(type).new
|
199
|
-
temp_model.build_from_hash(value)
|
200
|
-
end
|
201
|
-
end
|
202
|
-
|
203
|
-
# Returns the string representation of the object
|
204
|
-
# @return [String] String presentation of the object
|
205
|
-
def to_s
|
206
|
-
to_hash.to_s
|
207
|
-
end
|
208
|
-
|
209
|
-
# to_body is an alias to to_hash (backward compatibility)
|
210
|
-
# @return [Hash] Returns the object in the form of hash
|
211
|
-
def to_body
|
212
|
-
to_hash
|
213
|
-
end
|
214
|
-
|
215
|
-
# Returns the object in the form of hash
|
216
|
-
# @return [Hash] Returns the object in the form of hash
|
217
|
-
def to_hash
|
218
|
-
hash = {}
|
219
|
-
self.class.attribute_map.each_pair do |attr, param|
|
220
|
-
value = self.send(attr)
|
221
|
-
next if value.nil?
|
222
|
-
hash[param] = _to_hash(value)
|
223
|
-
end
|
224
|
-
hash
|
225
|
-
end
|
226
|
-
|
227
|
-
# Outputs non-array value in the form of hash
|
228
|
-
# For object, use to_hash. Otherwise, just return the value
|
229
|
-
# @param [Object] value Any valid value
|
230
|
-
# @return [Hash] Returns the value in the form of hash
|
231
|
-
def _to_hash(value)
|
232
|
-
if value.is_a?(Array)
|
233
|
-
value.compact.map{ |v| _to_hash(v) }
|
234
|
-
elsif value.is_a?(Hash)
|
235
|
-
{}.tap do |hash|
|
236
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
237
|
-
end
|
238
|
-
elsif value.respond_to? :to_hash
|
239
|
-
value.to_hash
|
240
|
-
else
|
241
|
-
value
|
242
|
-
end
|
243
|
-
end
|
244
|
-
|
245
|
-
end
|
246
|
-
|
247
|
-
end
|
@@ -1,258 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#DocuSign REST API
|
3
|
-
|
4
|
-
#The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
|
5
|
-
|
6
|
-
OpenAPI spec version: v2.1
|
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_eSign
|
15
|
-
|
16
|
-
class DisplayApplianceDocument
|
17
|
-
#
|
18
|
-
attr_accessor :attachment_description
|
19
|
-
|
20
|
-
# Specifies the document ID number that the tab is placed on. This must refer to an existing Document's ID attribute.
|
21
|
-
attr_accessor :document_id
|
22
|
-
|
23
|
-
#
|
24
|
-
attr_accessor :document_type
|
25
|
-
|
26
|
-
# The envelope ID of the envelope status that failed to post.
|
27
|
-
attr_accessor :envelope_id
|
28
|
-
|
29
|
-
#
|
30
|
-
attr_accessor :external_document_id
|
31
|
-
|
32
|
-
#
|
33
|
-
attr_accessor :latest_pdf_id
|
34
|
-
|
35
|
-
#
|
36
|
-
attr_accessor :name
|
37
|
-
|
38
|
-
#
|
39
|
-
attr_accessor :pages
|
40
|
-
|
41
|
-
|
42
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
43
|
-
def self.attribute_map
|
44
|
-
{
|
45
|
-
:'attachment_description' => :'attachmentDescription',
|
46
|
-
:'document_id' => :'documentId',
|
47
|
-
:'document_type' => :'documentType',
|
48
|
-
:'envelope_id' => :'envelopeId',
|
49
|
-
:'external_document_id' => :'externalDocumentId',
|
50
|
-
:'latest_pdf_id' => :'latestPDFId',
|
51
|
-
:'name' => :'name',
|
52
|
-
:'pages' => :'pages'
|
53
|
-
}
|
54
|
-
end
|
55
|
-
|
56
|
-
# Attribute type mapping.
|
57
|
-
def self.swagger_types
|
58
|
-
{
|
59
|
-
:'attachment_description' => :'String',
|
60
|
-
:'document_id' => :'String',
|
61
|
-
:'document_type' => :'String',
|
62
|
-
:'envelope_id' => :'String',
|
63
|
-
:'external_document_id' => :'String',
|
64
|
-
:'latest_pdf_id' => :'String',
|
65
|
-
:'name' => :'String',
|
66
|
-
:'pages' => :'Integer'
|
67
|
-
}
|
68
|
-
end
|
69
|
-
|
70
|
-
# Initializes the object
|
71
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
72
|
-
def initialize(attributes = {})
|
73
|
-
return unless attributes.is_a?(Hash)
|
74
|
-
|
75
|
-
# convert string to symbol for hash key
|
76
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
77
|
-
|
78
|
-
if attributes.has_key?(:'attachmentDescription')
|
79
|
-
self.attachment_description = attributes[:'attachmentDescription']
|
80
|
-
end
|
81
|
-
|
82
|
-
if attributes.has_key?(:'documentId')
|
83
|
-
self.document_id = attributes[:'documentId']
|
84
|
-
end
|
85
|
-
|
86
|
-
if attributes.has_key?(:'documentType')
|
87
|
-
self.document_type = attributes[:'documentType']
|
88
|
-
end
|
89
|
-
|
90
|
-
if attributes.has_key?(:'envelopeId')
|
91
|
-
self.envelope_id = attributes[:'envelopeId']
|
92
|
-
end
|
93
|
-
|
94
|
-
if attributes.has_key?(:'externalDocumentId')
|
95
|
-
self.external_document_id = attributes[:'externalDocumentId']
|
96
|
-
end
|
97
|
-
|
98
|
-
if attributes.has_key?(:'latestPDFId')
|
99
|
-
self.latest_pdf_id = attributes[:'latestPDFId']
|
100
|
-
end
|
101
|
-
|
102
|
-
if attributes.has_key?(:'name')
|
103
|
-
self.name = attributes[:'name']
|
104
|
-
end
|
105
|
-
|
106
|
-
if attributes.has_key?(:'pages')
|
107
|
-
self.pages = attributes[:'pages']
|
108
|
-
end
|
109
|
-
|
110
|
-
end
|
111
|
-
|
112
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
113
|
-
# @return Array for valid properies with the reasons
|
114
|
-
def list_invalid_properties
|
115
|
-
invalid_properties = Array.new
|
116
|
-
return invalid_properties
|
117
|
-
end
|
118
|
-
|
119
|
-
# Check to see if the all the properties in the model are valid
|
120
|
-
# @return true if the model is valid
|
121
|
-
def valid?
|
122
|
-
return true
|
123
|
-
end
|
124
|
-
|
125
|
-
# Checks equality by comparing each attribute.
|
126
|
-
# @param [Object] Object to be compared
|
127
|
-
def ==(o)
|
128
|
-
return true if self.equal?(o)
|
129
|
-
self.class == o.class &&
|
130
|
-
attachment_description == o.attachment_description &&
|
131
|
-
document_id == o.document_id &&
|
132
|
-
document_type == o.document_type &&
|
133
|
-
envelope_id == o.envelope_id &&
|
134
|
-
external_document_id == o.external_document_id &&
|
135
|
-
latest_pdf_id == o.latest_pdf_id &&
|
136
|
-
name == o.name &&
|
137
|
-
pages == o.pages
|
138
|
-
end
|
139
|
-
|
140
|
-
# @see the `==` method
|
141
|
-
# @param [Object] Object to be compared
|
142
|
-
def eql?(o)
|
143
|
-
self == o
|
144
|
-
end
|
145
|
-
|
146
|
-
# Calculates hash code according to all attributes.
|
147
|
-
# @return [Fixnum] Hash code
|
148
|
-
def hash
|
149
|
-
[attachment_description, document_id, document_type, envelope_id, external_document_id, latest_pdf_id, name, pages].hash
|
150
|
-
end
|
151
|
-
|
152
|
-
# Builds the object from hash
|
153
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
154
|
-
# @return [Object] Returns the model itself
|
155
|
-
def build_from_hash(attributes)
|
156
|
-
return nil unless attributes.is_a?(Hash)
|
157
|
-
self.class.swagger_types.each_pair do |key, type|
|
158
|
-
if type =~ /\AArray<(.*)>/i
|
159
|
-
# check to ensure the input is an array given that the the attribute
|
160
|
-
# is documented as an array but the input is not
|
161
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
162
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
163
|
-
end
|
164
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
165
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
166
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
167
|
-
end
|
168
|
-
|
169
|
-
self
|
170
|
-
end
|
171
|
-
|
172
|
-
# Deserializes the data based on type
|
173
|
-
# @param string type Data type
|
174
|
-
# @param string value Value to be deserialized
|
175
|
-
# @return [Object] Deserialized data
|
176
|
-
def _deserialize(type, value)
|
177
|
-
case type.to_sym
|
178
|
-
when :DateTime
|
179
|
-
DateTime.parse(value)
|
180
|
-
when :Date
|
181
|
-
Date.parse(value)
|
182
|
-
when :String
|
183
|
-
value.to_s
|
184
|
-
when :Integer
|
185
|
-
value.to_i
|
186
|
-
when :Float
|
187
|
-
value.to_f
|
188
|
-
when :BOOLEAN
|
189
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
190
|
-
true
|
191
|
-
else
|
192
|
-
false
|
193
|
-
end
|
194
|
-
when :Object
|
195
|
-
# generic object (usually a Hash), return directly
|
196
|
-
value
|
197
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
198
|
-
inner_type = Regexp.last_match[:inner_type]
|
199
|
-
value.map { |v| _deserialize(inner_type, v) }
|
200
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
201
|
-
k_type = Regexp.last_match[:k_type]
|
202
|
-
v_type = Regexp.last_match[:v_type]
|
203
|
-
{}.tap do |hash|
|
204
|
-
value.each do |k, v|
|
205
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
206
|
-
end
|
207
|
-
end
|
208
|
-
else # model
|
209
|
-
temp_model = DocuSign_eSign.const_get(type).new
|
210
|
-
temp_model.build_from_hash(value)
|
211
|
-
end
|
212
|
-
end
|
213
|
-
|
214
|
-
# Returns the string representation of the object
|
215
|
-
# @return [String] String presentation of the object
|
216
|
-
def to_s
|
217
|
-
to_hash.to_s
|
218
|
-
end
|
219
|
-
|
220
|
-
# to_body is an alias to to_hash (backward compatibility)
|
221
|
-
# @return [Hash] Returns the object in the form of hash
|
222
|
-
def to_body
|
223
|
-
to_hash
|
224
|
-
end
|
225
|
-
|
226
|
-
# Returns the object in the form of hash
|
227
|
-
# @return [Hash] Returns the object in the form of hash
|
228
|
-
def to_hash
|
229
|
-
hash = {}
|
230
|
-
self.class.attribute_map.each_pair do |attr, param|
|
231
|
-
value = self.send(attr)
|
232
|
-
next if value.nil?
|
233
|
-
hash[param] = _to_hash(value)
|
234
|
-
end
|
235
|
-
hash
|
236
|
-
end
|
237
|
-
|
238
|
-
# Outputs non-array value in the form of hash
|
239
|
-
# For object, use to_hash. Otherwise, just return the value
|
240
|
-
# @param [Object] value Any valid value
|
241
|
-
# @return [Hash] Returns the value in the form of hash
|
242
|
-
def _to_hash(value)
|
243
|
-
if value.is_a?(Array)
|
244
|
-
value.compact.map{ |v| _to_hash(v) }
|
245
|
-
elsif value.is_a?(Hash)
|
246
|
-
{}.tap do |hash|
|
247
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
248
|
-
end
|
249
|
-
elsif value.respond_to? :to_hash
|
250
|
-
value.to_hash
|
251
|
-
else
|
252
|
-
value
|
253
|
-
end
|
254
|
-
end
|
255
|
-
|
256
|
-
end
|
257
|
-
|
258
|
-
end
|