docusign_esign 3.4.0.rc1 → 3.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +1 -1
  3. data/Gemfile.lock +73 -0
  4. data/README.md +7 -5
  5. data/docusign_esign-2.6.0.gem +0 -0
  6. data/docusign_esign-2.6.0.rc1.gem +0 -0
  7. data/docusign_esign-2.7.0.rc1.gem +0 -0
  8. data/docusign_esign-3.5.0.gem +0 -0
  9. data/docusign_esign-3.5.0.rc1.gem +0 -0
  10. data/docusign_esign-3.6.0.rc1.gem +0 -0
  11. data/lib/docusign_esign.rb +34 -0
  12. data/lib/docusign_esign/.DS_Store +0 -0
  13. data/lib/docusign_esign/api/.DS_Store +0 -0
  14. data/lib/docusign_esign/api/accounts_api.rb +949 -35
  15. data/lib/docusign_esign/api/bulk_envelopes_api.rb +126 -4
  16. data/lib/docusign_esign/api/envelopes_api.rb +376 -2
  17. data/lib/docusign_esign/client/.DS_Store +0 -0
  18. data/lib/docusign_esign/models/account_settings_information.rb +30 -1
  19. data/lib/docusign_esign/models/account_signature.rb +497 -0
  20. data/lib/docusign_esign/models/account_signature_definition.rb +338 -0
  21. data/lib/docusign_esign/models/account_signatures_information.rb +187 -0
  22. data/lib/docusign_esign/models/bulk_send_batch_status.rb +287 -0
  23. data/lib/docusign_esign/models/bulk_send_batch_summaries.rb +277 -0
  24. data/lib/docusign_esign/models/bulk_send_batch_summary.rb +255 -0
  25. data/lib/docusign_esign/models/bulk_send_error_status.rb +207 -0
  26. data/lib/docusign_esign/models/conditional_recipient_rule.rb +216 -0
  27. data/lib/docusign_esign/models/conditional_recipient_rule_condition.rb +207 -0
  28. data/lib/docusign_esign/models/conditional_recipient_rule_filter.rb +235 -0
  29. data/lib/docusign_esign/models/correct_view_request.rb +14 -4
  30. data/lib/docusign_esign/models/e_note_configuration.rb +11 -1
  31. data/lib/docusign_esign/models/envelope.rb +13 -4
  32. data/lib/docusign_esign/models/envelope_definition.rb +13 -4
  33. data/lib/docusign_esign/models/envelope_template.rb +13 -4
  34. data/lib/docusign_esign/models/in_person_signer.rb +11 -1
  35. data/lib/docusign_esign/models/new_user.rb +11 -1
  36. data/lib/docusign_esign/models/notary_certificate.rb +869 -0
  37. data/lib/docusign_esign/models/notary_recipient.rb +1097 -0
  38. data/lib/docusign_esign/models/notary_seal.rb +983 -0
  39. data/lib/docusign_esign/models/proof_service_resource_token.rb +14 -4
  40. data/lib/docusign_esign/models/recipient_additional_notification.rb +14 -4
  41. data/lib/docusign_esign/models/recipient_group.rb +207 -0
  42. data/lib/docusign_esign/models/recipient_option.rb +225 -0
  43. data/lib/docusign_esign/models/recipient_routing.rb +184 -0
  44. data/lib/docusign_esign/models/recipient_rules.rb +187 -0
  45. data/lib/docusign_esign/models/recipients.rb +13 -1
  46. data/lib/docusign_esign/models/report_in_product_csv_run_request.rb +437 -0
  47. data/lib/docusign_esign/models/report_in_product_field.rb +215 -0
  48. data/lib/docusign_esign/models/report_in_product_get.rb +466 -0
  49. data/lib/docusign_esign/models/report_in_product_list.rb +187 -0
  50. data/lib/docusign_esign/models/report_in_product_list_item.rb +315 -0
  51. data/lib/docusign_esign/models/report_in_product_run_request.rb +397 -0
  52. data/lib/docusign_esign/models/report_in_product_run_response.rb +247 -0
  53. data/lib/docusign_esign/models/report_in_product_run_response_row.rb +194 -0
  54. data/lib/docusign_esign/models/report_in_product_run_response_row_fields.rb +1395 -0
  55. data/lib/docusign_esign/models/report_in_product_save_response.rb +185 -0
  56. data/lib/docusign_esign/models/report_in_product_sent_by_details.rb +199 -0
  57. data/lib/docusign_esign/models/sender_email_notifications.rb +11 -1
  58. data/lib/docusign_esign/models/signature_group.rb +205 -0
  59. data/lib/docusign_esign/models/signature_group_def.rb +195 -0
  60. data/lib/docusign_esign/models/signature_user.rb +215 -0
  61. data/lib/docusign_esign/models/signature_user_def.rb +205 -0
  62. data/lib/docusign_esign/models/signer.rb +11 -1
  63. data/lib/docusign_esign/models/tab_metadata.rb +21 -1
  64. data/lib/docusign_esign/models/tabs.rb +25 -1
  65. data/lib/docusign_esign/models/template_recipients.rb +13 -1
  66. data/lib/docusign_esign/models/template_tabs.rb +25 -1
  67. data/lib/docusign_esign/models/user_account_management_granular_information.rb +20 -1
  68. data/lib/docusign_esign/models/witness.rb +11 -1
  69. data/lib/docusign_esign/models/workflow.rb +207 -0
  70. data/lib/docusign_esign/models/workflow_step.rb +254 -0
  71. data/lib/docusign_esign/version.rb +1 -1
  72. data/tests/Gemfile.lock +3 -3
  73. metadata +48 -5
  74. data/docusign_esign-2.4.0.gem +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0965575ce7a6de9d7307a9e2fd7e6d04a8258be249d30e5f69cb2c8ee7cb92a3'
4
- data.tar.gz: 72f1ef0eebf7a85436cf6362ab3c638dc0b860a8c7efffd3658ba1df1ad5a12d
3
+ metadata.gz: 22e9083ff6332eb2de919309e6811019e3bdce2ebb5da85f7da7a11efcfa5cd9
4
+ data.tar.gz: 1c0cc8001de140b6a75b5efbafc3eb0ad6dbd974b6e69f3f0c81098efcdf13e8
5
5
  SHA512:
6
- metadata.gz: aacf59edc8248055b4d1dfc03bca931a47275a61fada09aae8f3b94046bb90c7e1a16d4628af0f616447857ab4abee29cba5b6ff01f7e7cb48da7411519f26a2
7
- data.tar.gz: 3f56a1ba3b58bee3a30abcf5b0783006912f077bc66cafb85cf6ee299a05abfddac3586c1fa621d3b900191755215cd337c6d17e330a63373c8097bc9bd3601a
6
+ metadata.gz: 1e88b1e9bb3133dda333a4cdd7f8981bedf5aabb27da2129aeaa985b8daff7da2a6614687c6419abb73c8226069b11addf65f079cda4643f52dda1b210da66b2
7
+ data.tar.gz: 53d0a327855e8d286f9dd7fdf6a29c8ba0782e729c20db06c0b4cf19c630597793c612855c8ac41afe878c8b6fa527f0b39371dfb0a5ef31e4af433172fdb01d
@@ -3,7 +3,7 @@ All notable changes to this project will be documented in this file.
3
3
 
4
4
  See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes.
5
5
 
6
- ## [v3.3.0] - eSignature API v2.1-20.1.00 - 2020-05-31
6
+ ## [v3.3.0] - eSignature API v2.1-20.1.02 - 2020-05-31
7
7
  ### Changed
8
8
  - Added support for version v2.1-20.1.02 of the DocuSign eSignature API.
9
9
  - Updated the SDK release version.
@@ -0,0 +1,73 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ docusign_esign (3.6.0.rc1)
5
+ json (~> 2.1, >= 2.1.0)
6
+ jwt (~> 2.2, >= 2.2.1)
7
+ typhoeus (~> 1.0, >= 1.0.1)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ ZenTest (4.12.0)
13
+ addressable (2.7.0)
14
+ public_suffix (>= 2.0.2, < 5.0)
15
+ autotest (4.4.6)
16
+ ZenTest (>= 4.4.1)
17
+ autotest-fsevent (0.2.17)
18
+ sys-uname
19
+ autotest-growl (0.2.16)
20
+ autotest-rails-pure (4.1.2)
21
+ crack (0.4.3)
22
+ safe_yaml (~> 1.0.0)
23
+ diff-lcs (1.4.4)
24
+ ethon (0.12.0)
25
+ ffi (>= 1.3.0)
26
+ ffi (1.13.1)
27
+ hashdiff (1.0.1)
28
+ json (2.3.1)
29
+ jwt (2.2.1)
30
+ public_suffix (4.0.5)
31
+ rake (12.3.3)
32
+ rspec (3.9.0)
33
+ rspec-core (~> 3.9.0)
34
+ rspec-expectations (~> 3.9.0)
35
+ rspec-mocks (~> 3.9.0)
36
+ rspec-core (3.9.2)
37
+ rspec-support (~> 3.9.3)
38
+ rspec-expectations (3.9.2)
39
+ diff-lcs (>= 1.2.0, < 2.0)
40
+ rspec-support (~> 3.9.0)
41
+ rspec-mocks (3.9.1)
42
+ diff-lcs (>= 1.2.0, < 2.0)
43
+ rspec-support (~> 3.9.0)
44
+ rspec-support (3.9.3)
45
+ safe_yaml (1.0.5)
46
+ sys-uname (1.2.1)
47
+ ffi (>= 1.0.0)
48
+ typhoeus (1.4.0)
49
+ ethon (>= 0.9.0)
50
+ vcr (3.0.3)
51
+ webmock (1.24.6)
52
+ addressable (>= 2.3.6)
53
+ crack (>= 0.3.2)
54
+ hashdiff
55
+
56
+ PLATFORMS
57
+ ruby
58
+
59
+ DEPENDENCIES
60
+ autotest (~> 4.4, >= 4.4.6)
61
+ autotest-fsevent (~> 0.2, >= 0.2.11)
62
+ autotest-growl (~> 0.2, >= 0.2.16)
63
+ autotest-rails-pure (~> 4.1, >= 4.1.2)
64
+ docusign_esign!
65
+ rake (~> 12.3.3)
66
+ rspec (~> 3.4, >= 3.4.0)
67
+ rspec-expectations (~> 3.8, >= 3.8.0)
68
+ rspec-mocks (~> 3.8, >= 3.8.0)
69
+ vcr (~> 3.0, >= 3.0.1)
70
+ webmock (~> 1.24, >= 1.24.3)
71
+
72
+ BUNDLED WITH
73
+ 1.17.2
data/README.md CHANGED
@@ -45,7 +45,7 @@ This client has the following external dependencies:
45
45
 
46
46
  ### Launchers
47
47
 
48
- DocuSign provides a sample application referred to as a [Launcher](https://github.com/docusign/eg-03-ruby-auth-code-grant). The Launcher contains a set of 14 common use cases and associated source files. These examples use DocuSign's [Authorization Code Grant](https://developers.docusign.com/esign-rest-api/guides/authentication/oauth2-code-grant) flow.
48
+ DocuSign provides a sample application code referred to as a [Launcher](https://github.com/docusign/code-examples-ruby). The Launcher contains a set of 31 common use cases and associated source files. These examples use either DocuSign&#39;s [Authorization Code Grant](https://developers.docusign.com/esign-rest-api/guides/authentication/oauth2-code-grant) or [JSON Web Tokens (JWT)](https://developers.docusign.com/esign-rest-api/guides/authentication/oauth2-jsonwebtoken) flows.
49
49
 
50
50
  ### Proof-of-concept applications
51
51
 
@@ -57,10 +57,6 @@ For details regarding which type of OAuth grant will work best for your DocuSign
57
57
 
58
58
  For security purposes, DocuSign recommends using the [Authorization Code Grant](https://developers.docusign.com/esign-rest-api/guides/authentication/oauth2-code-grant) flow.
59
59
 
60
- There are other use-case scenarios, such as **single-page applications** (SPA) that use **Cross-Origin Resource Sharing** (CORS), or where there may not be a user to interact with your Service Account. For these use cases, DocuSign also supports [JWT](https://developers.docusign.com/esign-rest-api/guides/authentication/oauth2-jsonwebtoken) and [Implicit](https://developers.docusign.com/esign-rest-api/guides/authentication/oauth2-implicit) grants. For code examples, see the links below:
61
-
62
- - [JWT (JSON Web Token)](https://github.com/docusign/eg-03-ruby-auth-code-grant)
63
- - Implicit Grant (coming soon)
64
60
 
65
61
  ## Support
66
62
 
@@ -76,3 +72,9 @@ The DocuSign Ruby Client is licensed under the [MIT License](https://github.com/
76
72
  [downloads-url]: https://rubygems.org/gems/docusign_esign
77
73
  [travis-image]: https://img.shields.io/travis/docusign/docusign-ruby-client.svg?style=flat
78
74
  [travis-url]: https://travis-ci.org/docusign/docusign-ruby-client
75
+
76
+ ### Additional Resources
77
+ * [DocuSign Developer Center](https://developers.docusign.com)
78
+ * [DocuSign API on Twitter](https://twitter.com/docusignapi)
79
+ * [DocuSign For Developers on LinkedIn](https://www.linkedin.com/showcase/docusign-for-developers/)
80
+ * [DocuSign For Developers on YouTube](https://www.youtube.com/channel/UCJSJ2kMs_qeQotmw4-lX2NQ)
Binary file
Binary file
@@ -43,9 +43,12 @@ require 'docusign_esign/models/account_role_settings'
43
43
  require 'docusign_esign/models/account_seals'
44
44
  require 'docusign_esign/models/account_settings_information'
45
45
  require 'docusign_esign/models/account_shared_access'
46
+ require 'docusign_esign/models/account_signature'
47
+ require 'docusign_esign/models/account_signature_definition'
46
48
  require 'docusign_esign/models/account_signature_provider'
47
49
  require 'docusign_esign/models/account_signature_provider_option'
48
50
  require 'docusign_esign/models/account_signature_providers'
51
+ require 'docusign_esign/models/account_signatures_information'
49
52
  require 'docusign_esign/models/account_ui_settings'
50
53
  require 'docusign_esign/models/add_on'
51
54
  require 'docusign_esign/models/address_information'
@@ -105,6 +108,10 @@ require 'docusign_esign/models/bulk_recipients_request'
105
108
  require 'docusign_esign/models/bulk_recipients_response'
106
109
  require 'docusign_esign/models/bulk_recipients_summary_response'
107
110
  require 'docusign_esign/models/bulk_recipients_update_response'
111
+ require 'docusign_esign/models/bulk_send_batch_status'
112
+ require 'docusign_esign/models/bulk_send_batch_summaries'
113
+ require 'docusign_esign/models/bulk_send_batch_summary'
114
+ require 'docusign_esign/models/bulk_send_error_status'
108
115
  require 'docusign_esign/models/bulk_send_request'
109
116
  require 'docusign_esign/models/bulk_send_response'
110
117
  require 'docusign_esign/models/bulk_send_test_response'
@@ -132,6 +139,9 @@ require 'docusign_esign/models/comment_thread'
132
139
  require 'docusign_esign/models/comments_publish'
133
140
  require 'docusign_esign/models/company'
134
141
  require 'docusign_esign/models/composite_template'
142
+ require 'docusign_esign/models/conditional_recipient_rule'
143
+ require 'docusign_esign/models/conditional_recipient_rule_condition'
144
+ require 'docusign_esign/models/conditional_recipient_rule_filter'
135
145
  require 'docusign_esign/models/connect_config_results'
136
146
  require 'docusign_esign/models/connect_custom_configuration'
137
147
  require 'docusign_esign/models/connect_debug_log'
@@ -279,6 +289,7 @@ require 'docusign_esign/models/new_users_definition'
279
289
  require 'docusign_esign/models/new_users_summary'
280
290
  require 'docusign_esign/models/notarize'
281
291
  require 'docusign_esign/models/notary'
292
+ require 'docusign_esign/models/notary_certificate'
282
293
  require 'docusign_esign/models/notary_host'
283
294
  require 'docusign_esign/models/notary_journal'
284
295
  require 'docusign_esign/models/notary_journal_credible_witness'
@@ -286,7 +297,9 @@ require 'docusign_esign/models/notary_journal_list'
286
297
  require 'docusign_esign/models/notary_journal_meta_data'
287
298
  require 'docusign_esign/models/notary_jurisdiction'
288
299
  require 'docusign_esign/models/notary_jurisdiction_list'
300
+ require 'docusign_esign/models/notary_recipient'
289
301
  require 'docusign_esign/models/notary_result'
302
+ require 'docusign_esign/models/notary_seal'
290
303
  require 'docusign_esign/models/note'
291
304
  require 'docusign_esign/models/notification'
292
305
  require 'docusign_esign/models/notification_default_settings'
@@ -333,14 +346,18 @@ require 'docusign_esign/models/recipient_domain'
333
346
  require 'docusign_esign/models/recipient_email_notification'
334
347
  require 'docusign_esign/models/recipient_event'
335
348
  require 'docusign_esign/models/recipient_form_data'
349
+ require 'docusign_esign/models/recipient_group'
336
350
  require 'docusign_esign/models/recipient_identity_input_option'
337
351
  require 'docusign_esign/models/recipient_identity_phone_number'
338
352
  require 'docusign_esign/models/recipient_identity_verification'
339
353
  require 'docusign_esign/models/recipient_names_response'
354
+ require 'docusign_esign/models/recipient_option'
340
355
  require 'docusign_esign/models/recipient_phone_authentication'
341
356
  require 'docusign_esign/models/recipient_phone_number'
342
357
  require 'docusign_esign/models/recipient_preview_request'
343
358
  require 'docusign_esign/models/recipient_proof_file'
359
+ require 'docusign_esign/models/recipient_routing'
360
+ require 'docusign_esign/models/recipient_rules'
344
361
  require 'docusign_esign/models/recipient_sms_authentication'
345
362
  require 'docusign_esign/models/recipient_signature_information'
346
363
  require 'docusign_esign/models/recipient_signature_provider'
@@ -351,6 +368,17 @@ require 'docusign_esign/models/recipients'
351
368
  require 'docusign_esign/models/recipients_update_summary'
352
369
  require 'docusign_esign/models/referral_information'
353
370
  require 'docusign_esign/models/reminders'
371
+ require 'docusign_esign/models/report_in_product_csv_run_request'
372
+ require 'docusign_esign/models/report_in_product_field'
373
+ require 'docusign_esign/models/report_in_product_get'
374
+ require 'docusign_esign/models/report_in_product_list'
375
+ require 'docusign_esign/models/report_in_product_list_item'
376
+ require 'docusign_esign/models/report_in_product_run_request'
377
+ require 'docusign_esign/models/report_in_product_run_response'
378
+ require 'docusign_esign/models/report_in_product_run_response_row'
379
+ require 'docusign_esign/models/report_in_product_run_response_row_fields'
380
+ require 'docusign_esign/models/report_in_product_save_response'
381
+ require 'docusign_esign/models/report_in_product_sent_by_details'
354
382
  require 'docusign_esign/models/resource_information'
355
383
  require 'docusign_esign/models/return_url_request'
356
384
  require 'docusign_esign/models/seal_identifier'
@@ -363,8 +391,12 @@ require 'docusign_esign/models/service_version'
363
391
  require 'docusign_esign/models/settings_metadata'
364
392
  require 'docusign_esign/models/shared_item'
365
393
  require 'docusign_esign/models/sign_here'
394
+ require 'docusign_esign/models/signature_group'
395
+ require 'docusign_esign/models/signature_group_def'
366
396
  require 'docusign_esign/models/signature_provider_required_option'
367
397
  require 'docusign_esign/models/signature_type'
398
+ require 'docusign_esign/models/signature_user'
399
+ require 'docusign_esign/models/signature_user_def'
368
400
  require 'docusign_esign/models/signer'
369
401
  require 'docusign_esign/models/signer_attachment'
370
402
  require 'docusign_esign/models/signer_email_notifications'
@@ -424,6 +456,8 @@ require 'docusign_esign/models/view'
424
456
  require 'docusign_esign/models/view_url'
425
457
  require 'docusign_esign/models/watermark'
426
458
  require 'docusign_esign/models/witness'
459
+ require 'docusign_esign/models/workflow'
460
+ require 'docusign_esign/models/workflow_step'
427
461
  require 'docusign_esign/models/workspace'
428
462
  require 'docusign_esign/models/workspace_folder_contents'
429
463
  require 'docusign_esign/models/workspace_item'
@@ -23,6 +23,15 @@ module DocuSign_eSign
23
23
  end
24
24
  end
25
25
 
26
+ class CreateAccountSignaturesOptions
27
+ #
28
+ attr_accessor :decode_only
29
+
30
+ def self.default
31
+ @@default ||= CreateAccountSignaturesOptions.new
32
+ end
33
+ end
34
+
26
35
  class CreateCustomFieldOptions
27
36
  #
28
37
  attr_accessor :apply_to_templates
@@ -68,6 +77,30 @@ module DocuSign_eSign
68
77
  end
69
78
  end
70
79
 
80
+ class GetAccountSignatureImageOptions
81
+ #
82
+ attr_accessor :include_chrome
83
+
84
+ def self.default
85
+ @@default ||= GetAccountSignatureImageOptions.new
86
+ end
87
+ end
88
+
89
+ class GetAccountSignaturesOptions
90
+ #
91
+ attr_accessor :stamp_format
92
+
93
+ #
94
+ attr_accessor :stamp_name
95
+
96
+ #
97
+ attr_accessor :stamp_type
98
+
99
+ def self.default
100
+ @@default ||= GetAccountSignaturesOptions.new
101
+ end
102
+ end
103
+
71
104
  class GetBillingChargesOptions
72
105
  # Specifies which billing charges to return. Valid values are: * envelopes * seats
73
106
  attr_accessor :include_charges
@@ -179,6 +212,24 @@ module DocuSign_eSign
179
212
  end
180
213
  end
181
214
 
215
+ class UpdateAccountSignatureByIdOptions
216
+ #
217
+ attr_accessor :close_existing_signature
218
+
219
+ def self.default
220
+ @@default ||= UpdateAccountSignatureByIdOptions.new
221
+ end
222
+ end
223
+
224
+ class UpdateAccountSignatureImageOptions
225
+ #
226
+ attr_accessor :transparent_png
227
+
228
+ def self.default
229
+ @@default ||= UpdateAccountSignatureImageOptions.new
230
+ end
231
+ end
232
+
182
233
  class UpdateConsumerDisclosureOptions
183
234
  #
184
235
  attr_accessor :include_metadata
@@ -279,6 +330,60 @@ module DocuSign_eSign
279
330
  return data, status_code, headers
280
331
  end
281
332
 
333
+ # Adds/updates one or more account signatures. This request may include images in multi-part format.
334
+ #
335
+ # @param account_id The external account number (int) or account ID Guid.
336
+ # @param account_signatures_information (optional parameter)
337
+ # @param DocuSign_eSign::CreateAccountSignaturesOptions Options for modifying the behavior of the function.
338
+ # @return [AccountSignaturesInformation]
339
+ def create_account_signatures(account_id, account_signatures_information, options = DocuSign_eSign::CreateAccountSignaturesOptions.default)
340
+ data, _status_code, _headers = create_account_signatures_with_http_info(account_id, account_signatures_information, options)
341
+ return data
342
+ end
343
+
344
+ # Adds/updates one or more account signatures. This request may include images in multi-part format.
345
+ #
346
+ # @param account_id The external account number (int) or account ID Guid.
347
+ # @param account_signatures_information (optional parameter)
348
+ # @param DocuSign_eSign::CreateAccountSignaturesOptions Options for modifying the behavior of the function.
349
+ # @return [Array<(AccountSignaturesInformation, Fixnum, Hash)>] AccountSignaturesInformation data, response status code and response headers
350
+ def create_account_signatures_with_http_info(account_id, account_signatures_information, options = DocuSign_eSign::CreateAccountSignaturesOptions.default)
351
+ if @api_client.config.debugging
352
+ @api_client.config.logger.debug "Calling API: AccountsApi.create_account_signatures ..."
353
+ end
354
+ # verify the required parameter 'account_id' is set
355
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.create_account_signatures" if account_id.nil?
356
+ # resource path
357
+ local_var_path = "/v2.1/accounts/{accountId}/signatures".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s)
358
+
359
+ # query parameters
360
+ query_params = {}
361
+ query_params[:'decode_only'] = options.decode_only if !options.decode_only.nil?
362
+
363
+ # header parameters
364
+ header_params = {}
365
+ # HTTP header 'Accept' (if needed)
366
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
367
+
368
+ # form parameters
369
+ form_params = {}
370
+
371
+ # http body (model)
372
+ post_body = @api_client.object_to_http_body(account_signatures_information)
373
+ auth_names = []
374
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
375
+ :header_params => header_params,
376
+ :query_params => query_params,
377
+ :form_params => form_params,
378
+ :body => post_body,
379
+ :auth_names => auth_names,
380
+ :return_type => 'AccountSignaturesInformation')
381
+ if @api_client.config.debugging
382
+ @api_client.config.logger.debug "API called: AccountsApi#create_account_signatures\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
383
+ end
384
+ return data, status_code, headers
385
+ end
386
+
282
387
  # Creates one or more brand profile files for the account.
283
388
  # Creates one or more brand profile files for the account. The Account Branding feature (accountSettings properties `canSelfBrandSend` and `canSelfBrandSig`) must be set to **true** for the account to use this call. An error is returned if `brandId` property for a brand profile is already set for the account. To upload a new version of an existing brand profile, you must delete the profile and then upload the newer version. When brand profile files are being uploaded, they must be combined into one zip file and the `Content-Type` must be `application/zip`.
284
389
  # @param account_id The external account number (int) or account ID Guid.
@@ -438,6 +543,57 @@ module DocuSign_eSign
438
543
  return data, status_code, headers
439
544
  end
440
545
 
546
+ # Creates a customized report
547
+ #
548
+ # @param account_id The external account number (int) or account ID Guid.
549
+ # @param report_in_product_run_request (optional parameter)
550
+ # @return [ReportInProductSaveResponse]
551
+ def create_report_in_product_create(account_id, report_in_product_run_request)
552
+ data, _status_code, _headers = create_report_in_product_create_with_http_info(account_id, report_in_product_run_request)
553
+ return data
554
+ end
555
+
556
+ # Creates a customized report
557
+ #
558
+ # @param account_id The external account number (int) or account ID Guid.
559
+ # @param report_in_product_run_request (optional parameter)
560
+ # @return [Array<(ReportInProductSaveResponse, Fixnum, Hash)>] ReportInProductSaveResponse data, response status code and response headers
561
+ def create_report_in_product_create_with_http_info(account_id, report_in_product_run_request)
562
+ if @api_client.config.debugging
563
+ @api_client.config.logger.debug "Calling API: AccountsApi.create_report_in_product_create ..."
564
+ end
565
+ # verify the required parameter 'account_id' is set
566
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.create_report_in_product_create" if account_id.nil?
567
+ # resource path
568
+ local_var_path = "/v2.1/accounts/{accountId}/reports".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s)
569
+
570
+ # query parameters
571
+ query_params = {}
572
+
573
+ # header parameters
574
+ header_params = {}
575
+ # HTTP header 'Accept' (if needed)
576
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
577
+
578
+ # form parameters
579
+ form_params = {}
580
+
581
+ # http body (model)
582
+ post_body = @api_client.object_to_http_body(report_in_product_run_request)
583
+ auth_names = []
584
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
585
+ :header_params => header_params,
586
+ :query_params => query_params,
587
+ :form_params => form_params,
588
+ :body => post_body,
589
+ :auth_names => auth_names,
590
+ :return_type => 'ReportInProductSaveResponse')
591
+ if @api_client.config.debugging
592
+ @api_client.config.logger.debug "API called: AccountsApi#create_report_in_product_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
593
+ end
594
+ return data, status_code, headers
595
+ end
596
+
441
597
  # Deletes the specified account.
442
598
  # This closes the specified account. You must be an account admin to close your account. Once closed, an account must be reopened by DocuSign.
443
599
  # @param account_id The external account number (int) or account ID Guid.
@@ -486,6 +642,115 @@ module DocuSign_eSign
486
642
  return data, status_code, headers
487
643
  end
488
644
 
645
+ # Close the specified signature by Id.
646
+ #
647
+ # @param account_id The external account number (int) or account ID Guid.
648
+ # @param signature_id The ID of the signature being accessed.
649
+ # @return [nil]
650
+ def delete_account_signature(account_id, signature_id)
651
+ delete_account_signature_with_http_info(account_id, signature_id)
652
+ return nil
653
+ end
654
+
655
+ # Close the specified signature by Id.
656
+ #
657
+ # @param account_id The external account number (int) or account ID Guid.
658
+ # @param signature_id The ID of the signature being accessed.
659
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
660
+ def delete_account_signature_with_http_info(account_id, signature_id)
661
+ if @api_client.config.debugging
662
+ @api_client.config.logger.debug "Calling API: AccountsApi.delete_account_signature ..."
663
+ end
664
+ # verify the required parameter 'account_id' is set
665
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.delete_account_signature" if account_id.nil?
666
+ # verify the required parameter 'signature_id' is set
667
+ fail ArgumentError, "Missing the required parameter 'signature_id' when calling AccountsApi.delete_account_signature" if signature_id.nil?
668
+ # resource path
669
+ local_var_path = "/v2.1/accounts/{accountId}/signatures/{signatureId}".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'signatureId' + '}', signature_id.to_s)
670
+
671
+ # query parameters
672
+ query_params = {}
673
+
674
+ # header parameters
675
+ header_params = {}
676
+ # HTTP header 'Accept' (if needed)
677
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
678
+
679
+ # form parameters
680
+ form_params = {}
681
+
682
+ # http body (model)
683
+ post_body = nil
684
+ auth_names = []
685
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
686
+ :header_params => header_params,
687
+ :query_params => query_params,
688
+ :form_params => form_params,
689
+ :body => post_body,
690
+ :auth_names => auth_names)
691
+ if @api_client.config.debugging
692
+ @api_client.config.logger.debug "API called: AccountsApi#delete_account_signature\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
693
+ end
694
+ return data, status_code, headers
695
+ end
696
+
697
+ # Deletes a signature, initials, or stamps image.
698
+ #
699
+ # @param account_id The external account number (int) or account ID Guid.
700
+ # @param image_type One of **signature_image** or **initials_image**.
701
+ # @param signature_id The ID of the signature being accessed.
702
+ # @return [AccountSignature]
703
+ def delete_account_signature_image(account_id, image_type, signature_id)
704
+ data, _status_code, _headers = delete_account_signature_image_with_http_info(account_id, image_type, signature_id)
705
+ return data
706
+ end
707
+
708
+ # Deletes a signature, initials, or stamps image.
709
+ #
710
+ # @param account_id The external account number (int) or account ID Guid.
711
+ # @param image_type One of **signature_image** or **initials_image**.
712
+ # @param signature_id The ID of the signature being accessed.
713
+ # @return [Array<(AccountSignature, Fixnum, Hash)>] AccountSignature data, response status code and response headers
714
+ def delete_account_signature_image_with_http_info(account_id, image_type, signature_id)
715
+ if @api_client.config.debugging
716
+ @api_client.config.logger.debug "Calling API: AccountsApi.delete_account_signature_image ..."
717
+ end
718
+ # verify the required parameter 'account_id' is set
719
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.delete_account_signature_image" if account_id.nil?
720
+ # verify the required parameter 'image_type' is set
721
+ fail ArgumentError, "Missing the required parameter 'image_type' when calling AccountsApi.delete_account_signature_image" if image_type.nil?
722
+ # verify the required parameter 'signature_id' is set
723
+ fail ArgumentError, "Missing the required parameter 'signature_id' when calling AccountsApi.delete_account_signature_image" if signature_id.nil?
724
+ # resource path
725
+ local_var_path = "/v2.1/accounts/{accountId}/signatures/{signatureId}/{imageType}".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'imageType' + '}', image_type.to_s).sub('{' + 'signatureId' + '}', signature_id.to_s)
726
+
727
+ # query parameters
728
+ query_params = {}
729
+
730
+ # header parameters
731
+ header_params = {}
732
+ # HTTP header 'Accept' (if needed)
733
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
734
+
735
+ # form parameters
736
+ form_params = {}
737
+
738
+ # http body (model)
739
+ post_body = nil
740
+ auth_names = []
741
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
742
+ :header_params => header_params,
743
+ :query_params => query_params,
744
+ :form_params => form_params,
745
+ :body => post_body,
746
+ :auth_names => auth_names,
747
+ :return_type => 'AccountSignature')
748
+ if @api_client.config.debugging
749
+ @api_client.config.logger.debug "API called: AccountsApi#delete_account_signature_image\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
750
+ end
751
+ return data, status_code, headers
752
+ end
753
+
489
754
  # Removes a brand.
490
755
  #
491
756
  # @param account_id The external account number (int) or account ID Guid.
@@ -858,6 +1123,59 @@ module DocuSign_eSign
858
1123
  return data, status_code, headers
859
1124
  end
860
1125
 
1126
+ # Removes a customized report
1127
+ #
1128
+ # @param account_id The external account number (int) or account ID Guid.
1129
+ # @param id
1130
+ # @return [ReportInProductSaveResponse]
1131
+ def delete_report_in_product(account_id, id)
1132
+ data, _status_code, _headers = delete_report_in_product_with_http_info(account_id, id)
1133
+ return data
1134
+ end
1135
+
1136
+ # Removes a customized report
1137
+ #
1138
+ # @param account_id The external account number (int) or account ID Guid.
1139
+ # @param id
1140
+ # @return [Array<(ReportInProductSaveResponse, Fixnum, Hash)>] ReportInProductSaveResponse data, response status code and response headers
1141
+ def delete_report_in_product_with_http_info(account_id, id)
1142
+ if @api_client.config.debugging
1143
+ @api_client.config.logger.debug "Calling API: AccountsApi.delete_report_in_product ..."
1144
+ end
1145
+ # verify the required parameter 'account_id' is set
1146
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.delete_report_in_product" if account_id.nil?
1147
+ # verify the required parameter 'id' is set
1148
+ fail ArgumentError, "Missing the required parameter 'id' when calling AccountsApi.delete_report_in_product" if id.nil?
1149
+ # resource path
1150
+ local_var_path = "/v2.1/accounts/{accountId}/reports/{id}".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'id' + '}', id.to_s)
1151
+
1152
+ # query parameters
1153
+ query_params = {}
1154
+
1155
+ # header parameters
1156
+ header_params = {}
1157
+ # HTTP header 'Accept' (if needed)
1158
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1159
+
1160
+ # form parameters
1161
+ form_params = {}
1162
+
1163
+ # http body (model)
1164
+ post_body = nil
1165
+ auth_names = []
1166
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
1167
+ :header_params => header_params,
1168
+ :query_params => query_params,
1169
+ :form_params => form_params,
1170
+ :body => post_body,
1171
+ :auth_names => auth_names,
1172
+ :return_type => 'ReportInProductSaveResponse')
1173
+ if @api_client.config.debugging
1174
+ @api_client.config.logger.debug "API called: AccountsApi#delete_report_in_product\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1175
+ end
1176
+ return data, status_code, headers
1177
+ end
1178
+
861
1179
  # Get the list of identity verification options for an account
862
1180
  #
863
1181
  # @param account_id The external account number (int) or account ID Guid.
@@ -959,6 +1277,173 @@ module DocuSign_eSign
959
1277
  return data, status_code, headers
960
1278
  end
961
1279
 
1280
+ # Returns information about a single signature by specifed signatureId.
1281
+ #
1282
+ # @param account_id The external account number (int) or account ID Guid.
1283
+ # @param signature_id The ID of the signature being accessed.
1284
+ # @return [AccountSignature]
1285
+ def get_account_signature(account_id, signature_id)
1286
+ data, _status_code, _headers = get_account_signature_with_http_info(account_id, signature_id)
1287
+ return data
1288
+ end
1289
+
1290
+ # Returns information about a single signature by specifed signatureId.
1291
+ #
1292
+ # @param account_id The external account number (int) or account ID Guid.
1293
+ # @param signature_id The ID of the signature being accessed.
1294
+ # @return [Array<(AccountSignature, Fixnum, Hash)>] AccountSignature data, response status code and response headers
1295
+ def get_account_signature_with_http_info(account_id, signature_id)
1296
+ if @api_client.config.debugging
1297
+ @api_client.config.logger.debug "Calling API: AccountsApi.get_account_signature ..."
1298
+ end
1299
+ # verify the required parameter 'account_id' is set
1300
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.get_account_signature" if account_id.nil?
1301
+ # verify the required parameter 'signature_id' is set
1302
+ fail ArgumentError, "Missing the required parameter 'signature_id' when calling AccountsApi.get_account_signature" if signature_id.nil?
1303
+ # resource path
1304
+ local_var_path = "/v2.1/accounts/{accountId}/signatures/{signatureId}".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'signatureId' + '}', signature_id.to_s)
1305
+
1306
+ # query parameters
1307
+ query_params = {}
1308
+
1309
+ # header parameters
1310
+ header_params = {}
1311
+ # HTTP header 'Accept' (if needed)
1312
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1313
+
1314
+ # form parameters
1315
+ form_params = {}
1316
+
1317
+ # http body (model)
1318
+ post_body = nil
1319
+ auth_names = []
1320
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1321
+ :header_params => header_params,
1322
+ :query_params => query_params,
1323
+ :form_params => form_params,
1324
+ :body => post_body,
1325
+ :auth_names => auth_names,
1326
+ :return_type => 'AccountSignature')
1327
+ if @api_client.config.debugging
1328
+ @api_client.config.logger.debug "API called: AccountsApi#get_account_signature\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1329
+ end
1330
+ return data, status_code, headers
1331
+ end
1332
+
1333
+ # Returns a signature, initials, or stamps image.
1334
+ #
1335
+ # @param account_id The external account number (int) or account ID Guid.
1336
+ # @param image_type One of **signature_image** or **initials_image**.
1337
+ # @param signature_id The ID of the signature being accessed.
1338
+ # @param DocuSign_eSign::GetAccountSignatureImageOptions Options for modifying the behavior of the function.
1339
+ # @return [File]
1340
+ def get_account_signature_image(account_id, image_type, signature_id, options = DocuSign_eSign::GetAccountSignatureImageOptions.default)
1341
+ data, _status_code, _headers = get_account_signature_image_with_http_info(account_id, image_type, signature_id, options)
1342
+ return data
1343
+ end
1344
+
1345
+ # Returns a signature, initials, or stamps image.
1346
+ #
1347
+ # @param account_id The external account number (int) or account ID Guid.
1348
+ # @param image_type One of **signature_image** or **initials_image**.
1349
+ # @param signature_id The ID of the signature being accessed.
1350
+ # @param DocuSign_eSign::GetAccountSignatureImageOptions Options for modifying the behavior of the function.
1351
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
1352
+ def get_account_signature_image_with_http_info(account_id, image_type, signature_id, options = DocuSign_eSign::GetAccountSignatureImageOptions.default)
1353
+ if @api_client.config.debugging
1354
+ @api_client.config.logger.debug "Calling API: AccountsApi.get_account_signature_image ..."
1355
+ end
1356
+ # verify the required parameter 'account_id' is set
1357
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.get_account_signature_image" if account_id.nil?
1358
+ # verify the required parameter 'image_type' is set
1359
+ fail ArgumentError, "Missing the required parameter 'image_type' when calling AccountsApi.get_account_signature_image" if image_type.nil?
1360
+ # verify the required parameter 'signature_id' is set
1361
+ fail ArgumentError, "Missing the required parameter 'signature_id' when calling AccountsApi.get_account_signature_image" if signature_id.nil?
1362
+ # resource path
1363
+ local_var_path = "/v2.1/accounts/{accountId}/signatures/{signatureId}/{imageType}".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'imageType' + '}', image_type.to_s).sub('{' + 'signatureId' + '}', signature_id.to_s)
1364
+
1365
+ # query parameters
1366
+ query_params = {}
1367
+ query_params[:'include_chrome'] = options.include_chrome if !options.include_chrome.nil?
1368
+
1369
+ # header parameters
1370
+ header_params = {}
1371
+ # HTTP header 'Accept' (if needed)
1372
+ header_params['Accept'] = @api_client.select_header_accept(['image/gif'])
1373
+
1374
+ # form parameters
1375
+ form_params = {}
1376
+
1377
+ # http body (model)
1378
+ post_body = nil
1379
+ auth_names = []
1380
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1381
+ :header_params => header_params,
1382
+ :query_params => query_params,
1383
+ :form_params => form_params,
1384
+ :body => post_body,
1385
+ :auth_names => auth_names,
1386
+ :return_type => 'File')
1387
+ if @api_client.config.debugging
1388
+ @api_client.config.logger.debug "API called: AccountsApi#get_account_signature_image\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1389
+ end
1390
+ return data, status_code, headers
1391
+ end
1392
+
1393
+ # Returns the managed signature definitions for the account
1394
+ #
1395
+ # @param account_id The external account number (int) or account ID Guid.
1396
+ # @param DocuSign_eSign::GetAccountSignaturesOptions Options for modifying the behavior of the function.
1397
+ # @return [AccountSignaturesInformation]
1398
+ def get_account_signatures(account_id, options = DocuSign_eSign::GetAccountSignaturesOptions.default)
1399
+ data, _status_code, _headers = get_account_signatures_with_http_info(account_id, options)
1400
+ return data
1401
+ end
1402
+
1403
+ # Returns the managed signature definitions for the account
1404
+ #
1405
+ # @param account_id The external account number (int) or account ID Guid.
1406
+ # @param DocuSign_eSign::GetAccountSignaturesOptions Options for modifying the behavior of the function.
1407
+ # @return [Array<(AccountSignaturesInformation, Fixnum, Hash)>] AccountSignaturesInformation data, response status code and response headers
1408
+ def get_account_signatures_with_http_info(account_id, options = DocuSign_eSign::GetAccountSignaturesOptions.default)
1409
+ if @api_client.config.debugging
1410
+ @api_client.config.logger.debug "Calling API: AccountsApi.get_account_signatures ..."
1411
+ end
1412
+ # verify the required parameter 'account_id' is set
1413
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.get_account_signatures" if account_id.nil?
1414
+ # resource path
1415
+ local_var_path = "/v2.1/accounts/{accountId}/signatures".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s)
1416
+
1417
+ # query parameters
1418
+ query_params = {}
1419
+ query_params[:'stamp_format'] = options.stamp_format if !options.stamp_format.nil?
1420
+ query_params[:'stamp_name'] = options.stamp_name if !options.stamp_name.nil?
1421
+ query_params[:'stamp_type'] = options.stamp_type if !options.stamp_type.nil?
1422
+
1423
+ # header parameters
1424
+ header_params = {}
1425
+ # HTTP header 'Accept' (if needed)
1426
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1427
+
1428
+ # form parameters
1429
+ form_params = {}
1430
+
1431
+ # http body (model)
1432
+ post_body = nil
1433
+ auth_names = []
1434
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1435
+ :header_params => header_params,
1436
+ :query_params => query_params,
1437
+ :form_params => form_params,
1438
+ :body => post_body,
1439
+ :auth_names => auth_names,
1440
+ :return_type => 'AccountSignaturesInformation')
1441
+ if @api_client.config.debugging
1442
+ @api_client.config.logger.debug "API called: AccountsApi#get_account_signatures\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1443
+ end
1444
+ return data, status_code, headers
1445
+ end
1446
+
962
1447
  # Returns tab settings list for specified account
963
1448
  #
964
1449
  # @param account_id The external account number (int) or account ID Guid.
@@ -1391,7 +1876,7 @@ module DocuSign_eSign
1391
1876
  # Gets the Electronic Record and Signature Disclosure.
1392
1877
  # Retrieves the Electronic Record and Signature Disclosure, with HTML formatting, for the requested envelope recipient. This might be different than the current account disclosure depending on account settings, such as branding, and when the account disclosure was last updated. An optional query string can be included to return the language for the disclosure.
1393
1878
  # @param account_id The external account number (int) or account ID Guid.
1394
- # @param lang_code The simple type enumeration the language used in the response. The supported languages, with the language value shown in parenthesis, are:Arabic (ar), Armenian (hy), Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Bahasa Indonesia (id), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Bahasa Melayu (ms), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro), Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk) and Vietnamese (vi). Additionally, the value can be set to �browser� to automatically detect the browser language being used by the viewer and display the disclosure in that language.
1879
+ # @param lang_code The simple type enumeration the language used in the response. The supported languages, with the language value shown in parenthesis, are:Arabic (ar), Armenian (hy), Armenian (hy), Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Bahasa Indonesia (id), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Bahasa Melayu (ms), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro), Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk) and Vietnamese (vi). Additionally, the value can be set to �browser� to automatically detect the browser language being used by the viewer and display the disclosure in that language.
1395
1880
  # @return [ConsumerDisclosure]
1396
1881
  def get_consumer_disclosure(account_id, lang_code)
1397
1882
  data, _status_code, _headers = get_consumer_disclosure_with_http_info(account_id, lang_code)
@@ -1401,7 +1886,7 @@ module DocuSign_eSign
1401
1886
  # Gets the Electronic Record and Signature Disclosure.
1402
1887
  # Retrieves the Electronic Record and Signature Disclosure, with HTML formatting, for the requested envelope recipient. This might be different than the current account disclosure depending on account settings, such as branding, and when the account disclosure was last updated. An optional query string can be included to return the language for the disclosure.
1403
1888
  # @param account_id The external account number (int) or account ID Guid.
1404
- # @param lang_code The simple type enumeration the language used in the response. The supported languages, with the language value shown in parenthesis, are:Arabic (ar), Armenian (hy), Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Bahasa Indonesia (id), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Bahasa Melayu (ms), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro), Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk) and Vietnamese (vi). Additionally, the value can be set to �browser� to automatically detect the browser language being used by the viewer and display the disclosure in that language.
1889
+ # @param lang_code The simple type enumeration the language used in the response. The supported languages, with the language value shown in parenthesis, are:Arabic (ar), Armenian (hy), Armenian (hy), Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Bahasa Indonesia (id), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Bahasa Melayu (ms), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro), Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk) and Vietnamese (vi). Additionally, the value can be set to �browser� to automatically detect the browser language being used by the viewer and display the disclosure in that language.
1405
1890
  # @return [Array<(ConsumerDisclosure, Fixnum, Hash)>] ConsumerDisclosure data, response status code and response headers
1406
1891
  def get_consumer_disclosure_with_http_info(account_id, lang_code)
1407
1892
  if @api_client.config.debugging
@@ -1786,34 +2271,132 @@ module DocuSign_eSign
1786
2271
  # Returns a permissions profile in the specified account.
1787
2272
  #
1788
2273
  # @param account_id The external account number (int) or account ID Guid.
1789
- # @param permission_profile_id
1790
- # @param DocuSign_eSign::GetPermissionProfileOptions Options for modifying the behavior of the function.
1791
- # @return [PermissionProfile]
1792
- def get_permission_profile(account_id, permission_profile_id, options = DocuSign_eSign::GetPermissionProfileOptions.default)
1793
- data, _status_code, _headers = get_permission_profile_with_http_info(account_id, permission_profile_id, options)
2274
+ # @param permission_profile_id
2275
+ # @param DocuSign_eSign::GetPermissionProfileOptions Options for modifying the behavior of the function.
2276
+ # @return [PermissionProfile]
2277
+ def get_permission_profile(account_id, permission_profile_id, options = DocuSign_eSign::GetPermissionProfileOptions.default)
2278
+ data, _status_code, _headers = get_permission_profile_with_http_info(account_id, permission_profile_id, options)
2279
+ return data
2280
+ end
2281
+
2282
+ # Returns a permissions profile in the specified account.
2283
+ #
2284
+ # @param account_id The external account number (int) or account ID Guid.
2285
+ # @param permission_profile_id
2286
+ # @param DocuSign_eSign::GetPermissionProfileOptions Options for modifying the behavior of the function.
2287
+ # @return [Array<(PermissionProfile, Fixnum, Hash)>] PermissionProfile data, response status code and response headers
2288
+ def get_permission_profile_with_http_info(account_id, permission_profile_id, options = DocuSign_eSign::GetPermissionProfileOptions.default)
2289
+ if @api_client.config.debugging
2290
+ @api_client.config.logger.debug "Calling API: AccountsApi.get_permission_profile ..."
2291
+ end
2292
+ # verify the required parameter 'account_id' is set
2293
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.get_permission_profile" if account_id.nil?
2294
+ # verify the required parameter 'permission_profile_id' is set
2295
+ fail ArgumentError, "Missing the required parameter 'permission_profile_id' when calling AccountsApi.get_permission_profile" if permission_profile_id.nil?
2296
+ # resource path
2297
+ local_var_path = "/v2.1/accounts/{accountId}/permission_profiles/{permissionProfileId}".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'permissionProfileId' + '}', permission_profile_id.to_s)
2298
+
2299
+ # query parameters
2300
+ query_params = {}
2301
+ query_params[:'include'] = options.include if !options.include.nil?
2302
+
2303
+ # header parameters
2304
+ header_params = {}
2305
+ # HTTP header 'Accept' (if needed)
2306
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2307
+
2308
+ # form parameters
2309
+ form_params = {}
2310
+
2311
+ # http body (model)
2312
+ post_body = nil
2313
+ auth_names = []
2314
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2315
+ :header_params => header_params,
2316
+ :query_params => query_params,
2317
+ :form_params => form_params,
2318
+ :body => post_body,
2319
+ :auth_names => auth_names,
2320
+ :return_type => 'PermissionProfile')
2321
+ if @api_client.config.debugging
2322
+ @api_client.config.logger.debug "API called: AccountsApi#get_permission_profile\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2323
+ end
2324
+ return data, status_code, headers
2325
+ end
2326
+
2327
+ # Retrieves the account provisioning information for the account.
2328
+ # Retrieves the account provisioning information for the account.
2329
+ # @return [ProvisioningInformation]
2330
+ def get_provisioning()
2331
+ data, _status_code, _headers = get_provisioning_with_http_info()
2332
+ return data
2333
+ end
2334
+
2335
+ # Retrieves the account provisioning information for the account.
2336
+ # Retrieves the account provisioning information for the account.
2337
+ # @return [Array<(ProvisioningInformation, Fixnum, Hash)>] ProvisioningInformation data, response status code and response headers
2338
+ def get_provisioning_with_http_info()
2339
+ if @api_client.config.debugging
2340
+ @api_client.config.logger.debug "Calling API: AccountsApi.get_provisioning ..."
2341
+ end
2342
+ # resource path
2343
+ local_var_path = "/v2.1/accounts/provisioning".sub('{format}','json')
2344
+
2345
+ # query parameters
2346
+ query_params = {}
2347
+
2348
+ # header parameters
2349
+ header_params = {}
2350
+ # HTTP header 'Accept' (if needed)
2351
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2352
+
2353
+ # form parameters
2354
+ form_params = {}
2355
+
2356
+ # http body (model)
2357
+ post_body = nil
2358
+ auth_names = []
2359
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2360
+ :header_params => header_params,
2361
+ :query_params => query_params,
2362
+ :form_params => form_params,
2363
+ :body => post_body,
2364
+ :auth_names => auth_names,
2365
+ :return_type => 'ProvisioningInformation')
2366
+ if @api_client.config.debugging
2367
+ @api_client.config.logger.debug "API called: AccountsApi#get_provisioning\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2368
+ end
2369
+ return data, status_code, headers
2370
+ end
2371
+
2372
+ # Gets the specified report
2373
+ #
2374
+ # @param account_id The external account number (int) or account ID Guid.
2375
+ # @param id
2376
+ # @return [ReportInProductGet]
2377
+ def get_report_in_product(account_id, id)
2378
+ data, _status_code, _headers = get_report_in_product_with_http_info(account_id, id)
1794
2379
  return data
1795
2380
  end
1796
2381
 
1797
- # Returns a permissions profile in the specified account.
2382
+ # Gets the specified report
1798
2383
  #
1799
2384
  # @param account_id The external account number (int) or account ID Guid.
1800
- # @param permission_profile_id
1801
- # @param DocuSign_eSign::GetPermissionProfileOptions Options for modifying the behavior of the function.
1802
- # @return [Array<(PermissionProfile, Fixnum, Hash)>] PermissionProfile data, response status code and response headers
1803
- def get_permission_profile_with_http_info(account_id, permission_profile_id, options = DocuSign_eSign::GetPermissionProfileOptions.default)
2385
+ # @param id
2386
+ # @return [Array<(ReportInProductGet, Fixnum, Hash)>] ReportInProductGet data, response status code and response headers
2387
+ def get_report_in_product_with_http_info(account_id, id)
1804
2388
  if @api_client.config.debugging
1805
- @api_client.config.logger.debug "Calling API: AccountsApi.get_permission_profile ..."
2389
+ @api_client.config.logger.debug "Calling API: AccountsApi.get_report_in_product ..."
1806
2390
  end
1807
2391
  # verify the required parameter 'account_id' is set
1808
- fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.get_permission_profile" if account_id.nil?
1809
- # verify the required parameter 'permission_profile_id' is set
1810
- fail ArgumentError, "Missing the required parameter 'permission_profile_id' when calling AccountsApi.get_permission_profile" if permission_profile_id.nil?
2392
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.get_report_in_product" if account_id.nil?
2393
+ # verify the required parameter 'id' is set
2394
+ fail ArgumentError, "Missing the required parameter 'id' when calling AccountsApi.get_report_in_product" if id.nil?
1811
2395
  # resource path
1812
- local_var_path = "/v2.1/accounts/{accountId}/permission_profiles/{permissionProfileId}".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'permissionProfileId' + '}', permission_profile_id.to_s)
2396
+ local_var_path = "/v2.1/accounts/{accountId}/reports/{id}".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'id' + '}', id.to_s)
1813
2397
 
1814
2398
  # query parameters
1815
2399
  query_params = {}
1816
- query_params[:'include'] = options.include if !options.include.nil?
1817
2400
 
1818
2401
  # header parameters
1819
2402
  header_params = {}
@@ -1832,30 +2415,34 @@ module DocuSign_eSign
1832
2415
  :form_params => form_params,
1833
2416
  :body => post_body,
1834
2417
  :auth_names => auth_names,
1835
- :return_type => 'PermissionProfile')
2418
+ :return_type => 'ReportInProductGet')
1836
2419
  if @api_client.config.debugging
1837
- @api_client.config.logger.debug "API called: AccountsApi#get_permission_profile\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2420
+ @api_client.config.logger.debug "API called: AccountsApi#get_report_in_product\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1838
2421
  end
1839
2422
  return data, status_code, headers
1840
2423
  end
1841
2424
 
1842
- # Retrieves the account provisioning information for the account.
1843
- # Retrieves the account provisioning information for the account.
1844
- # @return [ProvisioningInformation]
1845
- def get_provisioning()
1846
- data, _status_code, _headers = get_provisioning_with_http_info()
2425
+ # Gets the descriptors for all of an account's active reports (for listings)
2426
+ #
2427
+ # @param account_id The external account number (int) or account ID Guid.
2428
+ # @return [ReportInProductList]
2429
+ def get_report_in_product_list(account_id)
2430
+ data, _status_code, _headers = get_report_in_product_list_with_http_info(account_id)
1847
2431
  return data
1848
2432
  end
1849
2433
 
1850
- # Retrieves the account provisioning information for the account.
1851
- # Retrieves the account provisioning information for the account.
1852
- # @return [Array<(ProvisioningInformation, Fixnum, Hash)>] ProvisioningInformation data, response status code and response headers
1853
- def get_provisioning_with_http_info()
2434
+ # Gets the descriptors for all of an account&#39;s active reports (for listings)
2435
+ #
2436
+ # @param account_id The external account number (int) or account ID Guid.
2437
+ # @return [Array<(ReportInProductList, Fixnum, Hash)>] ReportInProductList data, response status code and response headers
2438
+ def get_report_in_product_list_with_http_info(account_id)
1854
2439
  if @api_client.config.debugging
1855
- @api_client.config.logger.debug "Calling API: AccountsApi.get_provisioning ..."
2440
+ @api_client.config.logger.debug "Calling API: AccountsApi.get_report_in_product_list ..."
1856
2441
  end
2442
+ # verify the required parameter 'account_id' is set
2443
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.get_report_in_product_list" if account_id.nil?
1857
2444
  # resource path
1858
- local_var_path = "/v2.1/accounts/provisioning".sub('{format}','json')
2445
+ local_var_path = "/v2.1/accounts/{accountId}/reports".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s)
1859
2446
 
1860
2447
  # query parameters
1861
2448
  query_params = {}
@@ -1877,9 +2464,9 @@ module DocuSign_eSign
1877
2464
  :form_params => form_params,
1878
2465
  :body => post_body,
1879
2466
  :auth_names => auth_names,
1880
- :return_type => 'ProvisioningInformation')
2467
+ :return_type => 'ReportInProductList')
1881
2468
  if @api_client.config.debugging
1882
- @api_client.config.logger.debug "API called: AccountsApi#get_provisioning\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2469
+ @api_client.config.logger.debug "API called: AccountsApi#get_report_in_product_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1883
2470
  end
1884
2471
  return data, status_code, headers
1885
2472
  end
@@ -2496,6 +3083,177 @@ module DocuSign_eSign
2496
3083
  return data, status_code, headers
2497
3084
  end
2498
3085
 
3086
+ # Updates a account signature.
3087
+ #
3088
+ # @param account_id The external account number (int) or account ID Guid.
3089
+ # @param account_signatures_information (optional parameter)
3090
+ # @return [AccountSignaturesInformation]
3091
+ def update_account_signature(account_id, account_signatures_information)
3092
+ data, _status_code, _headers = update_account_signature_with_http_info(account_id, account_signatures_information)
3093
+ return data
3094
+ end
3095
+
3096
+ # Updates a account signature.
3097
+ #
3098
+ # @param account_id The external account number (int) or account ID Guid.
3099
+ # @param account_signatures_information (optional parameter)
3100
+ # @return [Array<(AccountSignaturesInformation, Fixnum, Hash)>] AccountSignaturesInformation data, response status code and response headers
3101
+ def update_account_signature_with_http_info(account_id, account_signatures_information)
3102
+ if @api_client.config.debugging
3103
+ @api_client.config.logger.debug "Calling API: AccountsApi.update_account_signature ..."
3104
+ end
3105
+ # verify the required parameter 'account_id' is set
3106
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.update_account_signature" if account_id.nil?
3107
+ # resource path
3108
+ local_var_path = "/v2.1/accounts/{accountId}/signatures".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s)
3109
+
3110
+ # query parameters
3111
+ query_params = {}
3112
+
3113
+ # header parameters
3114
+ header_params = {}
3115
+ # HTTP header 'Accept' (if needed)
3116
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3117
+
3118
+ # form parameters
3119
+ form_params = {}
3120
+
3121
+ # http body (model)
3122
+ post_body = @api_client.object_to_http_body(account_signatures_information)
3123
+ auth_names = []
3124
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3125
+ :header_params => header_params,
3126
+ :query_params => query_params,
3127
+ :form_params => form_params,
3128
+ :body => post_body,
3129
+ :auth_names => auth_names,
3130
+ :return_type => 'AccountSignaturesInformation')
3131
+ if @api_client.config.debugging
3132
+ @api_client.config.logger.debug "API called: AccountsApi#update_account_signature\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3133
+ end
3134
+ return data, status_code, headers
3135
+ end
3136
+
3137
+ # Updates a account signature.
3138
+ #
3139
+ # @param account_id The external account number (int) or account ID Guid.
3140
+ # @param signature_id The ID of the signature being accessed.
3141
+ # @param account_signature_definition (optional parameter)
3142
+ # @param DocuSign_eSign::UpdateAccountSignatureByIdOptions Options for modifying the behavior of the function.
3143
+ # @return [AccountSignature]
3144
+ def update_account_signature_by_id(account_id, signature_id, account_signature_definition, options = DocuSign_eSign::UpdateAccountSignatureByIdOptions.default)
3145
+ data, _status_code, _headers = update_account_signature_by_id_with_http_info(account_id, signature_id, account_signature_definition, options)
3146
+ return data
3147
+ end
3148
+
3149
+ # Updates a account signature.
3150
+ #
3151
+ # @param account_id The external account number (int) or account ID Guid.
3152
+ # @param signature_id The ID of the signature being accessed.
3153
+ # @param account_signature_definition (optional parameter)
3154
+ # @param DocuSign_eSign::UpdateAccountSignatureByIdOptions Options for modifying the behavior of the function.
3155
+ # @return [Array<(AccountSignature, Fixnum, Hash)>] AccountSignature data, response status code and response headers
3156
+ def update_account_signature_by_id_with_http_info(account_id, signature_id, account_signature_definition, options = DocuSign_eSign::UpdateAccountSignatureByIdOptions.default)
3157
+ if @api_client.config.debugging
3158
+ @api_client.config.logger.debug "Calling API: AccountsApi.update_account_signature_by_id ..."
3159
+ end
3160
+ # verify the required parameter 'account_id' is set
3161
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.update_account_signature_by_id" if account_id.nil?
3162
+ # verify the required parameter 'signature_id' is set
3163
+ fail ArgumentError, "Missing the required parameter 'signature_id' when calling AccountsApi.update_account_signature_by_id" if signature_id.nil?
3164
+ # resource path
3165
+ local_var_path = "/v2.1/accounts/{accountId}/signatures/{signatureId}".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'signatureId' + '}', signature_id.to_s)
3166
+
3167
+ # query parameters
3168
+ query_params = {}
3169
+ query_params[:'close_existing_signature'] = options.close_existing_signature if !options.close_existing_signature.nil?
3170
+
3171
+ # header parameters
3172
+ header_params = {}
3173
+ # HTTP header 'Accept' (if needed)
3174
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3175
+
3176
+ # form parameters
3177
+ form_params = {}
3178
+
3179
+ # http body (model)
3180
+ post_body = @api_client.object_to_http_body(account_signature_definition)
3181
+ auth_names = []
3182
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3183
+ :header_params => header_params,
3184
+ :query_params => query_params,
3185
+ :form_params => form_params,
3186
+ :body => post_body,
3187
+ :auth_names => auth_names,
3188
+ :return_type => 'AccountSignature')
3189
+ if @api_client.config.debugging
3190
+ @api_client.config.logger.debug "API called: AccountsApi#update_account_signature_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3191
+ end
3192
+ return data, status_code, headers
3193
+ end
3194
+
3195
+ # Sets a signature, initials, or stamps image.
3196
+ #
3197
+ # @param account_id The external account number (int) or account ID Guid.
3198
+ # @param image_type One of **signature_image** or **initials_image**.
3199
+ # @param signature_id The ID of the signature being accessed.
3200
+ # @param DocuSign_eSign::UpdateAccountSignatureImageOptions Options for modifying the behavior of the function.
3201
+ # @return [AccountSignature]
3202
+ def update_account_signature_image(account_id, image_type, signature_id, options = DocuSign_eSign::UpdateAccountSignatureImageOptions.default)
3203
+ data, _status_code, _headers = update_account_signature_image_with_http_info(account_id, image_type, signature_id, options)
3204
+ return data
3205
+ end
3206
+
3207
+ # Sets a signature, initials, or stamps image.
3208
+ #
3209
+ # @param account_id The external account number (int) or account ID Guid.
3210
+ # @param image_type One of **signature_image** or **initials_image**.
3211
+ # @param signature_id The ID of the signature being accessed.
3212
+ # @param DocuSign_eSign::UpdateAccountSignatureImageOptions Options for modifying the behavior of the function.
3213
+ # @return [Array<(AccountSignature, Fixnum, Hash)>] AccountSignature data, response status code and response headers
3214
+ def update_account_signature_image_with_http_info(account_id, image_type, signature_id, options = DocuSign_eSign::UpdateAccountSignatureImageOptions.default)
3215
+ if @api_client.config.debugging
3216
+ @api_client.config.logger.debug "Calling API: AccountsApi.update_account_signature_image ..."
3217
+ end
3218
+ # verify the required parameter 'account_id' is set
3219
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.update_account_signature_image" if account_id.nil?
3220
+ # verify the required parameter 'image_type' is set
3221
+ fail ArgumentError, "Missing the required parameter 'image_type' when calling AccountsApi.update_account_signature_image" if image_type.nil?
3222
+ # verify the required parameter 'signature_id' is set
3223
+ fail ArgumentError, "Missing the required parameter 'signature_id' when calling AccountsApi.update_account_signature_image" if signature_id.nil?
3224
+ # resource path
3225
+ local_var_path = "/v2.1/accounts/{accountId}/signatures/{signatureId}/{imageType}".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'imageType' + '}', image_type.to_s).sub('{' + 'signatureId' + '}', signature_id.to_s)
3226
+
3227
+ # query parameters
3228
+ query_params = {}
3229
+ query_params[:'transparent_png'] = options.transparent_png if !options.transparent_png.nil?
3230
+
3231
+ # header parameters
3232
+ header_params = {}
3233
+ # HTTP header 'Accept' (if needed)
3234
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3235
+ # HTTP header 'Content-Type'
3236
+ header_params['Content-Type'] = @api_client.select_header_content_type(['image/gif'])
3237
+
3238
+ # form parameters
3239
+ form_params = {}
3240
+
3241
+ # http body (model)
3242
+ post_body = nil
3243
+ auth_names = []
3244
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3245
+ :header_params => header_params,
3246
+ :query_params => query_params,
3247
+ :form_params => form_params,
3248
+ :body => post_body,
3249
+ :auth_names => auth_names,
3250
+ :return_type => 'AccountSignature')
3251
+ if @api_client.config.debugging
3252
+ @api_client.config.logger.debug "API called: AccountsApi#update_account_signature_image\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3253
+ end
3254
+ return data, status_code, headers
3255
+ end
3256
+
2499
3257
  # Modifies tab settings for specified account
2500
3258
  #
2501
3259
  # @param account_id The external account number (int) or account ID Guid.
@@ -2724,7 +3482,7 @@ module DocuSign_eSign
2724
3482
  # Update Consumer Disclosure.
2725
3483
  #
2726
3484
  # @param account_id The external account number (int) or account ID Guid.
2727
- # @param lang_code The simple type enumeration the language used in the response. The supported languages, with the language value shown in parenthesis, are:Arabic (ar), Armenian (hy), Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Bahasa Indonesia (id), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Bahasa Melayu (ms), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro), Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk) and Vietnamese (vi). Additionally, the value can be set to �browser� to automatically detect the browser language being used by the viewer and display the disclosure in that language.
3485
+ # @param lang_code The simple type enumeration the language used in the response. The supported languages, with the language value shown in parenthesis, are:Arabic (ar), Armenian (hy), Armenian (hy), Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Bahasa Indonesia (id), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Bahasa Melayu (ms), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro), Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk) and Vietnamese (vi). Additionally, the value can be set to �browser� to automatically detect the browser language being used by the viewer and display the disclosure in that language.
2728
3486
  # @param consumer_disclosure (optional parameter)
2729
3487
  # @param DocuSign_eSign::UpdateConsumerDisclosureOptions Options for modifying the behavior of the function.
2730
3488
  # @return [ConsumerDisclosure]
@@ -2736,7 +3494,7 @@ module DocuSign_eSign
2736
3494
  # Update Consumer Disclosure.
2737
3495
  #
2738
3496
  # @param account_id The external account number (int) or account ID Guid.
2739
- # @param lang_code The simple type enumeration the language used in the response. The supported languages, with the language value shown in parenthesis, are:Arabic (ar), Armenian (hy), Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Bahasa Indonesia (id), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Bahasa Melayu (ms), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro), Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk) and Vietnamese (vi). Additionally, the value can be set to �browser� to automatically detect the browser language being used by the viewer and display the disclosure in that language.
3497
+ # @param lang_code The simple type enumeration the language used in the response. The supported languages, with the language value shown in parenthesis, are:Arabic (ar), Armenian (hy), Armenian (hy), Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Bahasa Indonesia (id), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Bahasa Melayu (ms), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro), Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk) and Vietnamese (vi). Additionally, the value can be set to �browser� to automatically detect the browser language being used by the viewer and display the disclosure in that language.
2740
3498
  # @param consumer_disclosure (optional parameter)
2741
3499
  # @param DocuSign_eSign::UpdateConsumerDisclosureOptions Options for modifying the behavior of the function.
2742
3500
  # @return [Array<(ConsumerDisclosure, Fixnum, Hash)>] ConsumerDisclosure data, response status code and response headers
@@ -3150,6 +3908,162 @@ module DocuSign_eSign
3150
3908
  return data, status_code, headers
3151
3909
  end
3152
3910
 
3911
+ # Returns the result set from running the specified report
3912
+ #
3913
+ # @param account_id The external account number (int) or account ID Guid.
3914
+ # @param report_in_product_run_request (optional parameter)
3915
+ # @return [ReportInProductRunResponse]
3916
+ def update_report_in_product_run_results(account_id, report_in_product_run_request)
3917
+ data, _status_code, _headers = update_report_in_product_run_results_with_http_info(account_id, report_in_product_run_request)
3918
+ return data
3919
+ end
3920
+
3921
+ # Returns the result set from running the specified report
3922
+ #
3923
+ # @param account_id The external account number (int) or account ID Guid.
3924
+ # @param report_in_product_run_request (optional parameter)
3925
+ # @return [Array<(ReportInProductRunResponse, Fixnum, Hash)>] ReportInProductRunResponse data, response status code and response headers
3926
+ def update_report_in_product_run_results_with_http_info(account_id, report_in_product_run_request)
3927
+ if @api_client.config.debugging
3928
+ @api_client.config.logger.debug "Calling API: AccountsApi.update_report_in_product_run_results ..."
3929
+ end
3930
+ # verify the required parameter 'account_id' is set
3931
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.update_report_in_product_run_results" if account_id.nil?
3932
+ # resource path
3933
+ local_var_path = "/v2.1/accounts/{accountId}/reports/report_results".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s)
3934
+
3935
+ # query parameters
3936
+ query_params = {}
3937
+
3938
+ # header parameters
3939
+ header_params = {}
3940
+ # HTTP header 'Accept' (if needed)
3941
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3942
+
3943
+ # form parameters
3944
+ form_params = {}
3945
+
3946
+ # http body (model)
3947
+ post_body = @api_client.object_to_http_body(report_in_product_run_request)
3948
+ auth_names = []
3949
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3950
+ :header_params => header_params,
3951
+ :query_params => query_params,
3952
+ :form_params => form_params,
3953
+ :body => post_body,
3954
+ :auth_names => auth_names,
3955
+ :return_type => 'ReportInProductRunResponse')
3956
+ if @api_client.config.debugging
3957
+ @api_client.config.logger.debug "API called: AccountsApi#update_report_in_product_run_results\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3958
+ end
3959
+ return data, status_code, headers
3960
+ end
3961
+
3962
+ # Saves a customized report
3963
+ #
3964
+ # @param account_id The external account number (int) or account ID Guid.
3965
+ # @param id
3966
+ # @param report_in_product_run_request (optional parameter)
3967
+ # @return [ReportInProductSaveResponse]
3968
+ def update_report_in_product_save(account_id, id, report_in_product_run_request)
3969
+ data, _status_code, _headers = update_report_in_product_save_with_http_info(account_id, id, report_in_product_run_request)
3970
+ return data
3971
+ end
3972
+
3973
+ # Saves a customized report
3974
+ #
3975
+ # @param account_id The external account number (int) or account ID Guid.
3976
+ # @param id
3977
+ # @param report_in_product_run_request (optional parameter)
3978
+ # @return [Array<(ReportInProductSaveResponse, Fixnum, Hash)>] ReportInProductSaveResponse data, response status code and response headers
3979
+ def update_report_in_product_save_with_http_info(account_id, id, report_in_product_run_request)
3980
+ if @api_client.config.debugging
3981
+ @api_client.config.logger.debug "Calling API: AccountsApi.update_report_in_product_save ..."
3982
+ end
3983
+ # verify the required parameter 'account_id' is set
3984
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.update_report_in_product_save" if account_id.nil?
3985
+ # verify the required parameter 'id' is set
3986
+ fail ArgumentError, "Missing the required parameter 'id' when calling AccountsApi.update_report_in_product_save" if id.nil?
3987
+ # resource path
3988
+ local_var_path = "/v2.1/accounts/{accountId}/reports/{id}".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'id' + '}', id.to_s)
3989
+
3990
+ # query parameters
3991
+ query_params = {}
3992
+
3993
+ # header parameters
3994
+ header_params = {}
3995
+ # HTTP header 'Accept' (if needed)
3996
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3997
+
3998
+ # form parameters
3999
+ form_params = {}
4000
+
4001
+ # http body (model)
4002
+ post_body = @api_client.object_to_http_body(report_in_product_run_request)
4003
+ auth_names = []
4004
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4005
+ :header_params => header_params,
4006
+ :query_params => query_params,
4007
+ :form_params => form_params,
4008
+ :body => post_body,
4009
+ :auth_names => auth_names,
4010
+ :return_type => 'ReportInProductSaveResponse')
4011
+ if @api_client.config.debugging
4012
+ @api_client.config.logger.debug "API called: AccountsApi#update_report_in_product_save\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4013
+ end
4014
+ return data, status_code, headers
4015
+ end
4016
+
4017
+ # Returns the specified report as a CSV string
4018
+ #
4019
+ # @param account_id The external account number (int) or account ID Guid.
4020
+ # @param report_in_product_csv_run_request (optional parameter)
4021
+ # @return [nil]
4022
+ def update_report_results_csv(account_id, report_in_product_csv_run_request)
4023
+ update_report_results_csv_with_http_info(account_id, report_in_product_csv_run_request)
4024
+ return nil
4025
+ end
4026
+
4027
+ # Returns the specified report as a CSV string
4028
+ #
4029
+ # @param account_id The external account number (int) or account ID Guid.
4030
+ # @param report_in_product_csv_run_request (optional parameter)
4031
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
4032
+ def update_report_results_csv_with_http_info(account_id, report_in_product_csv_run_request)
4033
+ if @api_client.config.debugging
4034
+ @api_client.config.logger.debug "Calling API: AccountsApi.update_report_results_csv ..."
4035
+ end
4036
+ # verify the required parameter 'account_id' is set
4037
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.update_report_results_csv" if account_id.nil?
4038
+ # resource path
4039
+ local_var_path = "/v2.1/accounts/{accountId}/reports/report_results_csv".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s)
4040
+
4041
+ # query parameters
4042
+ query_params = {}
4043
+
4044
+ # header parameters
4045
+ header_params = {}
4046
+ # HTTP header 'Accept' (if needed)
4047
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4048
+
4049
+ # form parameters
4050
+ form_params = {}
4051
+
4052
+ # http body (model)
4053
+ post_body = @api_client.object_to_http_body(report_in_product_csv_run_request)
4054
+ auth_names = []
4055
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4056
+ :header_params => header_params,
4057
+ :query_params => query_params,
4058
+ :form_params => form_params,
4059
+ :body => post_body,
4060
+ :auth_names => auth_names)
4061
+ if @api_client.config.debugging
4062
+ @api_client.config.logger.debug "API called: AccountsApi#update_report_results_csv\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4063
+ end
4064
+ return data, status_code, headers
4065
+ end
4066
+
3153
4067
  # Updates the account settings for an account.
3154
4068
  # Updates the account settings for the specified account.
3155
4069
  # @param account_id The external account number (int) or account ID Guid.