docusign_esign 3.0.0 → 3.1.0.pre.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -2
- data/lib/docusign_esign.rb +464 -447
- data/{tests → lib/docusign_esign/api}/.DS_Store +0 -0
- data/lib/docusign_esign/api/accounts_api.rb +69 -8
- data/lib/docusign_esign/api/authentication_api.rb +8 -8
- data/lib/docusign_esign/api/bulk_envelopes_api.rb +335 -0
- data/lib/docusign_esign/api/connect_api.rb +400 -0
- data/lib/docusign_esign/api/envelopes_api.rb +77 -588
- data/lib/docusign_esign/api/notary_api.rb +439 -0
- data/lib/docusign_esign/api/organizations_api.rb +232 -0
- data/lib/docusign_esign/api/tsps_api.rb +256 -0
- data/lib/docusign_esign/models/account_settings_information.rb +125 -10
- data/lib/docusign_esign/models/account_ui_settings.rb +60 -4
- data/lib/docusign_esign/models/admin_message.rb +198 -0
- data/lib/docusign_esign/models/agent.rb +21 -1
- data/lib/docusign_esign/models/approve.rb +29 -1
- data/lib/docusign_esign/models/ask_an_admin.rb +218 -0
- data/lib/docusign_esign/models/carbon_copy.rb +39 -1
- data/lib/docusign_esign/models/certified_delivery.rb +39 -1
- data/lib/docusign_esign/models/checkbox.rb +29 -1
- data/lib/docusign_esign/models/comment_thread.rb +29 -1
- data/lib/docusign_esign/models/company.rb +29 -1
- data/lib/docusign_esign/models/complete_sign_request.rb +22 -2
- data/lib/docusign_esign/models/connect_custom_configuration.rb +19 -19
- data/lib/docusign_esign/models/credential.rb +12 -2
- data/lib/docusign_esign/models/date.rb +29 -1
- data/lib/docusign_esign/models/date_signed.rb +29 -1
- data/lib/docusign_esign/models/decline.rb +29 -1
- data/lib/docusign_esign/models/document.rb +53 -1
- data/lib/docusign_esign/models/document_fields_information.rb +1 -1
- data/lib/docusign_esign/models/document_html_display_settings.rb +11 -1
- data/lib/docusign_esign/models/document_security_store.rb +1 -1
- data/lib/docusign_esign/models/document_update_info.rb +1 -1
- data/lib/docusign_esign/models/editor.rb +21 -1
- data/lib/docusign_esign/models/email.rb +29 -1
- data/lib/docusign_esign/models/email_address.rb +29 -1
- data/lib/docusign_esign/models/envelope_document.rb +11 -1
- data/lib/docusign_esign/models/envelope_id.rb +29 -1
- data/lib/docusign_esign/models/envelope_template.rb +1 -11
- data/lib/docusign_esign/models/first_name.rb +29 -1
- data/lib/docusign_esign/models/formula_tab.rb +29 -1
- data/lib/docusign_esign/models/full_name.rb +29 -1
- data/lib/docusign_esign/models/in_person_signer.rb +21 -1
- data/lib/docusign_esign/models/initial_here.rb +29 -1
- data/lib/docusign_esign/models/intermediary.rb +21 -1
- data/lib/docusign_esign/models/last_name.rb +29 -1
- data/lib/docusign_esign/models/list.rb +29 -1
- data/lib/docusign_esign/models/notarize.rb +29 -1
- data/lib/docusign_esign/models/notary.rb +217 -0
- data/lib/docusign_esign/models/notary_host.rb +21 -1
- data/lib/docusign_esign/models/notary_jurisdiction.rb +246 -0
- data/lib/docusign_esign/models/notary_jurisdiction_list.rb +250 -0
- data/lib/docusign_esign/models/notary_result.rb +199 -0
- data/lib/docusign_esign/models/note.rb +29 -1
- data/lib/docusign_esign/models/number.rb +29 -1
- data/lib/docusign_esign/models/ocr_request.rb +238 -0
- data/lib/docusign_esign/models/offline_attributes.rb +238 -0
- data/lib/docusign_esign/models/poly_line_overlay.rb +29 -1
- data/lib/docusign_esign/models/proof_service_resource_token.rb +188 -0
- data/lib/docusign_esign/models/proof_service_view_link.rb +188 -0
- data/lib/docusign_esign/models/radio.rb +20 -1
- data/lib/docusign_esign/models/recipient_email_notification.rb +1 -1
- data/lib/docusign_esign/models/recipient_proof_file.rb +188 -0
- data/lib/docusign_esign/models/revision.rb +11 -2
- data/lib/docusign_esign/models/seal_sign.rb +21 -1
- data/lib/docusign_esign/models/sender.rb +1 -1
- data/lib/docusign_esign/models/sign_hash_document.rb +12 -3
- data/lib/docusign_esign/models/sign_hash_session_info_response.rb +12 -3
- data/lib/docusign_esign/models/sign_here.rb +38 -1
- data/lib/docusign_esign/models/sign_session_info_request.rb +12 -2
- data/lib/docusign_esign/models/signature_data_info.rb +1 -1
- data/lib/docusign_esign/models/signer.rb +31 -2
- data/lib/docusign_esign/models/signer_attachment.rb +29 -1
- data/lib/docusign_esign/models/smart_contract_information.rb +198 -0
- data/lib/docusign_esign/models/smart_section.rb +29 -1
- data/lib/docusign_esign/models/smart_section_display_settings.rb +11 -1
- data/lib/docusign_esign/models/ssn.rb +29 -1
- data/lib/docusign_esign/models/stamp.rb +336 -0
- data/lib/docusign_esign/models/tab_group.rb +29 -1
- data/lib/docusign_esign/models/text.rb +29 -1
- data/lib/docusign_esign/models/time_stamp_field.rb +1 -1
- data/lib/docusign_esign/models/title.rb +29 -1
- data/lib/docusign_esign/models/tsp_health_check_request.rb +1 -1
- data/lib/docusign_esign/models/tsp_health_check_status_description.rb +1 -1
- data/lib/docusign_esign/models/update_transaction_request.rb +1 -1
- data/lib/docusign_esign/models/update_transaction_response.rb +1 -1
- data/lib/docusign_esign/models/usage_history.rb +1 -1
- data/lib/docusign_esign/models/user.rb +27 -5
- data/lib/docusign_esign/models/user_info_response.rb +1 -1
- data/lib/docusign_esign/models/user_information.rb +1 -1
- data/lib/docusign_esign/models/user_signature.rb +14 -4
- data/lib/docusign_esign/models/view.rb +29 -1
- data/lib/docusign_esign/models/witness.rb +30 -1
- data/lib/docusign_esign/models/zip.rb +29 -1
- data/lib/docusign_esign/version.rb +1 -1
- data/tests/Gemfile.lock +1 -1
- metadata +20 -7
- data/Gemfile.lock +0 -73
- data/docusign_esign-2.1.0.gem +0 -0
@@ -13,6 +13,15 @@ require "uri"
|
|
13
13
|
|
14
14
|
module DocuSign_eSign
|
15
15
|
|
16
|
+
class GetNotaryOptions
|
17
|
+
#
|
18
|
+
attr_accessor :include_jurisdictions
|
19
|
+
|
20
|
+
def self.default
|
21
|
+
@@default ||= GetNotaryOptions.new
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
16
25
|
class ListNotaryJournalsOptions
|
17
26
|
#
|
18
27
|
attr_accessor :count
|
@@ -36,6 +45,338 @@ module DocuSign_eSign
|
|
36
45
|
@api_client = api_client
|
37
46
|
end
|
38
47
|
|
48
|
+
# Add a notary to the system
|
49
|
+
#
|
50
|
+
# @param notary (optional parameter)
|
51
|
+
# @return [Notary]
|
52
|
+
def create_notary(notary)
|
53
|
+
data, _status_code, _headers = create_notary_with_http_info( notary)
|
54
|
+
return data
|
55
|
+
end
|
56
|
+
|
57
|
+
# Add a notary to the system
|
58
|
+
#
|
59
|
+
# @param notary (optional parameter)
|
60
|
+
# @return [Array<(Notary, Fixnum, Hash)>] Notary data, response status code and response headers
|
61
|
+
def create_notary_with_http_info(notary)
|
62
|
+
if @api_client.config.debugging
|
63
|
+
@api_client.config.logger.debug "Calling API: NotaryApi.create_notary ..."
|
64
|
+
end
|
65
|
+
# resource path
|
66
|
+
local_var_path = "/v2.1/current_user/notary".sub('{format}','json')
|
67
|
+
|
68
|
+
# query parameters
|
69
|
+
query_params = {}
|
70
|
+
|
71
|
+
# header parameters
|
72
|
+
header_params = {}
|
73
|
+
# HTTP header 'Accept' (if needed)
|
74
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
75
|
+
|
76
|
+
# form parameters
|
77
|
+
form_params = {}
|
78
|
+
|
79
|
+
# http body (model)
|
80
|
+
post_body = @api_client.object_to_http_body(notary)
|
81
|
+
auth_names = []
|
82
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
83
|
+
:header_params => header_params,
|
84
|
+
:query_params => query_params,
|
85
|
+
:form_params => form_params,
|
86
|
+
:body => post_body,
|
87
|
+
:auth_names => auth_names,
|
88
|
+
:return_type => 'Notary')
|
89
|
+
if @api_client.config.debugging
|
90
|
+
@api_client.config.logger.debug "API called: NotaryApi#create_notary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
91
|
+
end
|
92
|
+
return data, status_code, headers
|
93
|
+
end
|
94
|
+
|
95
|
+
# Add a notary jurisdiction to the system
|
96
|
+
#
|
97
|
+
# @param notary_jurisdiction (optional parameter)
|
98
|
+
# @return [NotaryJurisdiction]
|
99
|
+
def create_notary_jurisdictions(notary_jurisdiction)
|
100
|
+
data, _status_code, _headers = create_notary_jurisdictions_with_http_info( notary_jurisdiction)
|
101
|
+
return data
|
102
|
+
end
|
103
|
+
|
104
|
+
# Add a notary jurisdiction to the system
|
105
|
+
#
|
106
|
+
# @param notary_jurisdiction (optional parameter)
|
107
|
+
# @return [Array<(NotaryJurisdiction, Fixnum, Hash)>] NotaryJurisdiction data, response status code and response headers
|
108
|
+
def create_notary_jurisdictions_with_http_info(notary_jurisdiction)
|
109
|
+
if @api_client.config.debugging
|
110
|
+
@api_client.config.logger.debug "Calling API: NotaryApi.create_notary_jurisdictions ..."
|
111
|
+
end
|
112
|
+
# resource path
|
113
|
+
local_var_path = "/v2.1/current_user/notary/jurisdictions".sub('{format}','json')
|
114
|
+
|
115
|
+
# query parameters
|
116
|
+
query_params = {}
|
117
|
+
|
118
|
+
# header parameters
|
119
|
+
header_params = {}
|
120
|
+
# HTTP header 'Accept' (if needed)
|
121
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
122
|
+
|
123
|
+
# form parameters
|
124
|
+
form_params = {}
|
125
|
+
|
126
|
+
# http body (model)
|
127
|
+
post_body = @api_client.object_to_http_body(notary_jurisdiction)
|
128
|
+
auth_names = []
|
129
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
130
|
+
:header_params => header_params,
|
131
|
+
:query_params => query_params,
|
132
|
+
:form_params => form_params,
|
133
|
+
:body => post_body,
|
134
|
+
:auth_names => auth_names,
|
135
|
+
:return_type => 'NotaryJurisdiction')
|
136
|
+
if @api_client.config.debugging
|
137
|
+
@api_client.config.logger.debug "API called: NotaryApi#create_notary_jurisdictions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
138
|
+
end
|
139
|
+
return data, status_code, headers
|
140
|
+
end
|
141
|
+
|
142
|
+
# Delete a notary jurisdiction a specified user.
|
143
|
+
#
|
144
|
+
# @param jurisdiction_id
|
145
|
+
# @return [nil]
|
146
|
+
def delete_notary_jurisdiction(jurisdiction_id)
|
147
|
+
delete_notary_jurisdiction_with_http_info(jurisdiction_id)
|
148
|
+
return nil
|
149
|
+
end
|
150
|
+
|
151
|
+
# Delete a notary jurisdiction a specified user.
|
152
|
+
#
|
153
|
+
# @param jurisdiction_id
|
154
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
155
|
+
def delete_notary_jurisdiction_with_http_info(jurisdiction_id)
|
156
|
+
if @api_client.config.debugging
|
157
|
+
@api_client.config.logger.debug "Calling API: NotaryApi.delete_notary_jurisdiction ..."
|
158
|
+
end
|
159
|
+
# verify the required parameter 'jurisdiction_id' is set
|
160
|
+
fail ArgumentError, "Missing the required parameter 'jurisdiction_id' when calling NotaryApi.delete_notary_jurisdiction" if jurisdiction_id.nil?
|
161
|
+
# resource path
|
162
|
+
local_var_path = "/v2.1/current_user/notary/jurisdictions/{jurisdictionId}".sub('{format}','json').sub('{' + 'jurisdictionId' + '}', jurisdiction_id.to_s)
|
163
|
+
|
164
|
+
# query parameters
|
165
|
+
query_params = {}
|
166
|
+
|
167
|
+
# header parameters
|
168
|
+
header_params = {}
|
169
|
+
# HTTP header 'Accept' (if needed)
|
170
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
171
|
+
|
172
|
+
# form parameters
|
173
|
+
form_params = {}
|
174
|
+
|
175
|
+
# http body (model)
|
176
|
+
post_body = nil
|
177
|
+
auth_names = []
|
178
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
179
|
+
:header_params => header_params,
|
180
|
+
:query_params => query_params,
|
181
|
+
:form_params => form_params,
|
182
|
+
:body => post_body,
|
183
|
+
:auth_names => auth_names)
|
184
|
+
if @api_client.config.debugging
|
185
|
+
@api_client.config.logger.debug "API called: NotaryApi#delete_notary_jurisdiction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
186
|
+
end
|
187
|
+
return data, status_code, headers
|
188
|
+
end
|
189
|
+
|
190
|
+
# Get notary settings for a user
|
191
|
+
#
|
192
|
+
# @param DocuSign_eSign::GetNotaryOptions Options for modifying the behavior of the function.
|
193
|
+
# @return [NotaryResult]
|
194
|
+
def get_notary(options = DocuSign_eSign::GetNotaryOptions.default)
|
195
|
+
data, _status_code, _headers = get_notary_with_http_info(options)
|
196
|
+
return data
|
197
|
+
end
|
198
|
+
|
199
|
+
# Get notary settings for a user
|
200
|
+
#
|
201
|
+
# @param DocuSign_eSign::GetNotaryOptions Options for modifying the behavior of the function.
|
202
|
+
# @return [Array<(NotaryResult, Fixnum, Hash)>] NotaryResult data, response status code and response headers
|
203
|
+
def get_notary_with_http_info(options = DocuSign_eSign::GetNotaryOptions.default)
|
204
|
+
if @api_client.config.debugging
|
205
|
+
@api_client.config.logger.debug "Calling API: NotaryApi.get_notary ..."
|
206
|
+
end
|
207
|
+
# resource path
|
208
|
+
local_var_path = "/v2.1/current_user/notary".sub('{format}','json')
|
209
|
+
|
210
|
+
# query parameters
|
211
|
+
query_params = {}
|
212
|
+
query_params[:'include_jurisdictions'] = options.include_jurisdictions if !options.include_jurisdictions.nil?
|
213
|
+
|
214
|
+
# header parameters
|
215
|
+
header_params = {}
|
216
|
+
# HTTP header 'Accept' (if needed)
|
217
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
218
|
+
|
219
|
+
# form parameters
|
220
|
+
form_params = {}
|
221
|
+
|
222
|
+
# http body (model)
|
223
|
+
post_body = nil
|
224
|
+
auth_names = []
|
225
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
226
|
+
:header_params => header_params,
|
227
|
+
:query_params => query_params,
|
228
|
+
:form_params => form_params,
|
229
|
+
:body => post_body,
|
230
|
+
:auth_names => auth_names,
|
231
|
+
:return_type => 'NotaryResult')
|
232
|
+
if @api_client.config.debugging
|
233
|
+
@api_client.config.logger.debug "API called: NotaryApi#get_notary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
234
|
+
end
|
235
|
+
return data, status_code, headers
|
236
|
+
end
|
237
|
+
|
238
|
+
# Get notary a jurisdiction for a user
|
239
|
+
#
|
240
|
+
# @param jurisdiction_id
|
241
|
+
# @return [NotaryJurisdiction]
|
242
|
+
def get_notary_jurisdiction(jurisdiction_id)
|
243
|
+
data, _status_code, _headers = get_notary_jurisdiction_with_http_info(jurisdiction_id)
|
244
|
+
return data
|
245
|
+
end
|
246
|
+
|
247
|
+
# Get notary a jurisdiction for a user
|
248
|
+
#
|
249
|
+
# @param jurisdiction_id
|
250
|
+
# @return [Array<(NotaryJurisdiction, Fixnum, Hash)>] NotaryJurisdiction data, response status code and response headers
|
251
|
+
def get_notary_jurisdiction_with_http_info(jurisdiction_id)
|
252
|
+
if @api_client.config.debugging
|
253
|
+
@api_client.config.logger.debug "Calling API: NotaryApi.get_notary_jurisdiction ..."
|
254
|
+
end
|
255
|
+
# verify the required parameter 'jurisdiction_id' is set
|
256
|
+
fail ArgumentError, "Missing the required parameter 'jurisdiction_id' when calling NotaryApi.get_notary_jurisdiction" if jurisdiction_id.nil?
|
257
|
+
# resource path
|
258
|
+
local_var_path = "/v2.1/current_user/notary/jurisdictions/{jurisdictionId}".sub('{format}','json').sub('{' + 'jurisdictionId' + '}', jurisdiction_id.to_s)
|
259
|
+
|
260
|
+
# query parameters
|
261
|
+
query_params = {}
|
262
|
+
|
263
|
+
# header parameters
|
264
|
+
header_params = {}
|
265
|
+
# HTTP header 'Accept' (if needed)
|
266
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
267
|
+
|
268
|
+
# form parameters
|
269
|
+
form_params = {}
|
270
|
+
|
271
|
+
# http body (model)
|
272
|
+
post_body = nil
|
273
|
+
auth_names = []
|
274
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
275
|
+
:header_params => header_params,
|
276
|
+
:query_params => query_params,
|
277
|
+
:form_params => form_params,
|
278
|
+
:body => post_body,
|
279
|
+
:auth_names => auth_names,
|
280
|
+
:return_type => 'NotaryJurisdiction')
|
281
|
+
if @api_client.config.debugging
|
282
|
+
@api_client.config.logger.debug "API called: NotaryApi#get_notary_jurisdiction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
283
|
+
end
|
284
|
+
return data, status_code, headers
|
285
|
+
end
|
286
|
+
|
287
|
+
# Get notary seal for a jurisdiction
|
288
|
+
#
|
289
|
+
# @param jurisdiction_id
|
290
|
+
# @return [nil]
|
291
|
+
def get_notary_jurisdiction_seal(jurisdiction_id)
|
292
|
+
get_notary_jurisdiction_seal_with_http_info(jurisdiction_id)
|
293
|
+
return nil
|
294
|
+
end
|
295
|
+
|
296
|
+
# Get notary seal for a jurisdiction
|
297
|
+
#
|
298
|
+
# @param jurisdiction_id
|
299
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
300
|
+
def get_notary_jurisdiction_seal_with_http_info(jurisdiction_id)
|
301
|
+
if @api_client.config.debugging
|
302
|
+
@api_client.config.logger.debug "Calling API: NotaryApi.get_notary_jurisdiction_seal ..."
|
303
|
+
end
|
304
|
+
# verify the required parameter 'jurisdiction_id' is set
|
305
|
+
fail ArgumentError, "Missing the required parameter 'jurisdiction_id' when calling NotaryApi.get_notary_jurisdiction_seal" if jurisdiction_id.nil?
|
306
|
+
# resource path
|
307
|
+
local_var_path = "/v2.1/current_user/notary/jurisdictions/{jurisdictionId}/seal".sub('{format}','json').sub('{' + 'jurisdictionId' + '}', jurisdiction_id.to_s)
|
308
|
+
|
309
|
+
# query parameters
|
310
|
+
query_params = {}
|
311
|
+
|
312
|
+
# header parameters
|
313
|
+
header_params = {}
|
314
|
+
# HTTP header 'Accept' (if needed)
|
315
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
316
|
+
|
317
|
+
# form parameters
|
318
|
+
form_params = {}
|
319
|
+
|
320
|
+
# http body (model)
|
321
|
+
post_body = nil
|
322
|
+
auth_names = []
|
323
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
324
|
+
:header_params => header_params,
|
325
|
+
:query_params => query_params,
|
326
|
+
:form_params => form_params,
|
327
|
+
:body => post_body,
|
328
|
+
:auth_names => auth_names)
|
329
|
+
if @api_client.config.debugging
|
330
|
+
@api_client.config.logger.debug "API called: NotaryApi#get_notary_jurisdiction_seal\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
331
|
+
end
|
332
|
+
return data, status_code, headers
|
333
|
+
end
|
334
|
+
|
335
|
+
# Get notary jurisdictions for a user
|
336
|
+
#
|
337
|
+
# @return [NotaryJurisdictionList]
|
338
|
+
def get_notary_jurisdictions()
|
339
|
+
data, _status_code, _headers = get_notary_jurisdictions_with_http_info()
|
340
|
+
return data
|
341
|
+
end
|
342
|
+
|
343
|
+
# Get notary jurisdictions for a user
|
344
|
+
#
|
345
|
+
# @return [Array<(NotaryJurisdictionList, Fixnum, Hash)>] NotaryJurisdictionList data, response status code and response headers
|
346
|
+
def get_notary_jurisdictions_with_http_info()
|
347
|
+
if @api_client.config.debugging
|
348
|
+
@api_client.config.logger.debug "Calling API: NotaryApi.get_notary_jurisdictions ..."
|
349
|
+
end
|
350
|
+
# resource path
|
351
|
+
local_var_path = "/v2.1/current_user/notary/jurisdictions".sub('{format}','json')
|
352
|
+
|
353
|
+
# query parameters
|
354
|
+
query_params = {}
|
355
|
+
|
356
|
+
# header parameters
|
357
|
+
header_params = {}
|
358
|
+
# HTTP header 'Accept' (if needed)
|
359
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
360
|
+
|
361
|
+
# form parameters
|
362
|
+
form_params = {}
|
363
|
+
|
364
|
+
# http body (model)
|
365
|
+
post_body = nil
|
366
|
+
auth_names = []
|
367
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
368
|
+
:header_params => header_params,
|
369
|
+
:query_params => query_params,
|
370
|
+
:form_params => form_params,
|
371
|
+
:body => post_body,
|
372
|
+
:auth_names => auth_names,
|
373
|
+
:return_type => 'NotaryJurisdictionList')
|
374
|
+
if @api_client.config.debugging
|
375
|
+
@api_client.config.logger.debug "API called: NotaryApi#get_notary_jurisdictions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
376
|
+
end
|
377
|
+
return data, status_code, headers
|
378
|
+
end
|
379
|
+
|
39
380
|
# Get notary jurisdictions for a user
|
40
381
|
#
|
41
382
|
# @param DocuSign_eSign::ListNotaryJournalsOptions Options for modifying the behavior of the function.
|
@@ -85,5 +426,103 @@ module DocuSign_eSign
|
|
85
426
|
end
|
86
427
|
return data, status_code, headers
|
87
428
|
end
|
429
|
+
|
430
|
+
# Update a notary
|
431
|
+
#
|
432
|
+
# @param notary (optional parameter)
|
433
|
+
# @return [Notary]
|
434
|
+
def update_notary(notary)
|
435
|
+
data, _status_code, _headers = update_notary_with_http_info( notary)
|
436
|
+
return data
|
437
|
+
end
|
438
|
+
|
439
|
+
# Update a notary
|
440
|
+
#
|
441
|
+
# @param notary (optional parameter)
|
442
|
+
# @return [Array<(Notary, Fixnum, Hash)>] Notary data, response status code and response headers
|
443
|
+
def update_notary_with_http_info(notary)
|
444
|
+
if @api_client.config.debugging
|
445
|
+
@api_client.config.logger.debug "Calling API: NotaryApi.update_notary ..."
|
446
|
+
end
|
447
|
+
# resource path
|
448
|
+
local_var_path = "/v2.1/current_user/notary".sub('{format}','json')
|
449
|
+
|
450
|
+
# query parameters
|
451
|
+
query_params = {}
|
452
|
+
|
453
|
+
# header parameters
|
454
|
+
header_params = {}
|
455
|
+
# HTTP header 'Accept' (if needed)
|
456
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
457
|
+
|
458
|
+
# form parameters
|
459
|
+
form_params = {}
|
460
|
+
|
461
|
+
# http body (model)
|
462
|
+
post_body = @api_client.object_to_http_body(notary)
|
463
|
+
auth_names = []
|
464
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
465
|
+
:header_params => header_params,
|
466
|
+
:query_params => query_params,
|
467
|
+
:form_params => form_params,
|
468
|
+
:body => post_body,
|
469
|
+
:auth_names => auth_names,
|
470
|
+
:return_type => 'Notary')
|
471
|
+
if @api_client.config.debugging
|
472
|
+
@api_client.config.logger.debug "API called: NotaryApi#update_notary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
473
|
+
end
|
474
|
+
return data, status_code, headers
|
475
|
+
end
|
476
|
+
|
477
|
+
# Update a notary jurisdiction
|
478
|
+
#
|
479
|
+
# @param jurisdiction_id
|
480
|
+
# @param notary_jurisdiction (optional parameter)
|
481
|
+
# @return [NotaryJurisdiction]
|
482
|
+
def update_notary_jurisdiction(jurisdiction_id, notary_jurisdiction)
|
483
|
+
data, _status_code, _headers = update_notary_jurisdiction_with_http_info(jurisdiction_id, notary_jurisdiction)
|
484
|
+
return data
|
485
|
+
end
|
486
|
+
|
487
|
+
# Update a notary jurisdiction
|
488
|
+
#
|
489
|
+
# @param jurisdiction_id
|
490
|
+
# @param notary_jurisdiction (optional parameter)
|
491
|
+
# @return [Array<(NotaryJurisdiction, Fixnum, Hash)>] NotaryJurisdiction data, response status code and response headers
|
492
|
+
def update_notary_jurisdiction_with_http_info(jurisdiction_id, notary_jurisdiction)
|
493
|
+
if @api_client.config.debugging
|
494
|
+
@api_client.config.logger.debug "Calling API: NotaryApi.update_notary_jurisdiction ..."
|
495
|
+
end
|
496
|
+
# verify the required parameter 'jurisdiction_id' is set
|
497
|
+
fail ArgumentError, "Missing the required parameter 'jurisdiction_id' when calling NotaryApi.update_notary_jurisdiction" if jurisdiction_id.nil?
|
498
|
+
# resource path
|
499
|
+
local_var_path = "/v2.1/current_user/notary/jurisdictions/{jurisdictionId}".sub('{format}','json').sub('{' + 'jurisdictionId' + '}', jurisdiction_id.to_s)
|
500
|
+
|
501
|
+
# query parameters
|
502
|
+
query_params = {}
|
503
|
+
|
504
|
+
# header parameters
|
505
|
+
header_params = {}
|
506
|
+
# HTTP header 'Accept' (if needed)
|
507
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
508
|
+
|
509
|
+
# form parameters
|
510
|
+
form_params = {}
|
511
|
+
|
512
|
+
# http body (model)
|
513
|
+
post_body = @api_client.object_to_http_body(notary_jurisdiction)
|
514
|
+
auth_names = []
|
515
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
516
|
+
:header_params => header_params,
|
517
|
+
:query_params => query_params,
|
518
|
+
:form_params => form_params,
|
519
|
+
:body => post_body,
|
520
|
+
:auth_names => auth_names,
|
521
|
+
:return_type => 'NotaryJurisdiction')
|
522
|
+
if @api_client.config.debugging
|
523
|
+
@api_client.config.logger.debug "API called: NotaryApi#update_notary_jurisdiction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
524
|
+
end
|
525
|
+
return data, status_code, headers
|
526
|
+
end
|
88
527
|
end
|
89
528
|
end
|