docusign_esign 3.20.0 → 3.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/lib/docusign_esign/api/connect_api.rb +51 -0
  4. data/lib/docusign_esign/api/envelopes_api.rb +11 -64
  5. data/lib/docusign_esign/api/folders_api.rb +8 -0
  6. data/lib/docusign_esign/api/templates_api.rb +0 -73
  7. data/lib/docusign_esign/client/api_client.rb +1 -1
  8. data/lib/docusign_esign/models/account_settings_information.rb +127 -13
  9. data/lib/docusign_esign/models/bulk_sending_copy.rb +13 -1
  10. data/lib/docusign_esign/models/bulk_sending_copy_recipient.rb +10 -1
  11. data/lib/docusign_esign/models/bulksending_copy_doc_gen_form_field.rb +194 -0
  12. data/lib/docusign_esign/models/connect_custom_configuration.rb +11 -1
  13. data/lib/docusign_esign/models/contact.rb +10 -1
  14. data/lib/docusign_esign/models/delegation_info.rb +12 -12
  15. data/lib/docusign_esign/models/envelope.rb +11 -1
  16. data/lib/docusign_esign/models/envelope_definition.rb +11 -1
  17. data/lib/docusign_esign/models/envelope_template.rb +11 -1
  18. data/lib/docusign_esign/models/event_notification.rb +11 -1
  19. data/lib/docusign_esign/models/id_evidence_view_link.rb +3 -3
  20. data/lib/docusign_esign/models/jurisdiction_summary.rb +214 -0
  21. data/lib/docusign_esign/models/locale_policy_tab.rb +14 -4
  22. data/lib/docusign_esign/models/notary_contact_details.rb +196 -0
  23. data/lib/docusign_esign/models/numerical.rb +1279 -0
  24. data/lib/docusign_esign/models/recipient_form_data.rb +12 -12
  25. data/lib/docusign_esign/models/recipient_identity_verification.rb +14 -4
  26. data/lib/docusign_esign/models/tab_metadata.rb +11 -1
  27. data/lib/docusign_esign/models/tabs.rb +13 -1
  28. data/lib/docusign_esign/models/template_role.rb +11 -1
  29. data/lib/docusign_esign/models/template_tabs.rb +13 -1
  30. data/lib/docusign_esign/models/user_account_management_granular_information.rb +20 -1
  31. data/lib/docusign_esign/version.rb +1 -1
  32. data/lib/docusign_esign.rb +4 -4
  33. metadata +6 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 477e5213535e6c2f998d01072c446759562edb20431bd323c6219baf5c650109
4
- data.tar.gz: 915073908f3294a0ca4b315c182dfb71c53d12b0d21276ac65004cddd6159d0e
3
+ metadata.gz: 2d87bcd4f4a605609fa81a94eba9ca07eaf48d975798ec98ece2bd8d65bbf502
4
+ data.tar.gz: fe921298587fcfa02bae98fc4ddef4480981ec4fe8d4b2263401e906153d211c
5
5
  SHA512:
6
- metadata.gz: 75e63c7b8a4c5a24e71adb5bd3b45c35e05914eefe4f549a3cf479771303f630c6ee266ad9d7ef6814dbe2834aa45b6860db9d8f3d07223de02b261620471f03
7
- data.tar.gz: 80fefa370f1ac3329f739cd23549a108c0c7fbfcec0c3748527f86478b1d08af7a9cede21ab830008d1d83900711da626eae8d85f94c7fb00aef1f33f6a31b66
6
+ metadata.gz: 0f074758ac67625662bf7d420b64c314dc07d7a75d19fb2eb3d135f89582023f562929eefe813cf491f575e722c88ff75e571bcf43e0fd4d6092fae7d882886f
7
+ data.tar.gz: '09910623ccb46a5b49224835c2d4baaadc5e40b278c2d4c4502c0c9e2668a2504a4eae1ec55a2128201b2173cecbfcb44fd5677eb40edc472c3e3d841fdf245b'
data/CHANGELOG.md CHANGED
@@ -3,6 +3,11 @@ 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.21.0] - eSignature API v2.1-22.4.02.00 - 2023-02-02
7
+ ### Changed
8
+ - Added support for version v2.1-22.4.02.00 of the DocuSign ESignature API.
9
+ - Updated the SDK release version.
10
+
6
11
  ## [v3.20.0] - eSignature API v2.1-22.3.01.00 - 2022-11-18
7
12
  ### Changed
8
13
  - Added support for version v2.1-22.3.01.00 of the DocuSign ESignature API.
@@ -1147,6 +1147,57 @@ module DocuSign_eSign
1147
1147
  return data, status_code, headers
1148
1148
  end
1149
1149
 
1150
+ # Updates the existing Connect OAuth Config for the account.
1151
+ #
1152
+ # @param account_id The external account number (int) or account ID Guid.
1153
+ # @param connect_o_auth_config (optional parameter)
1154
+ # @return [ConnectOAuthConfig]
1155
+ def update_connect_o_auth_config(account_id, connect_o_auth_config)
1156
+ data, _status_code, _headers = update_connect_o_auth_config_with_http_info(account_id, connect_o_auth_config)
1157
+ return data
1158
+ end
1159
+
1160
+ # Updates the existing Connect OAuth Config for the account.
1161
+ #
1162
+ # @param account_id The external account number (int) or account ID Guid.
1163
+ # @param connect_o_auth_config (optional parameter)
1164
+ # @return [Array<(ConnectOAuthConfig, Fixnum, Hash)>] ConnectOAuthConfig data, response status code and response headers
1165
+ def update_connect_o_auth_config_with_http_info(account_id, connect_o_auth_config)
1166
+ if @api_client.config.debugging
1167
+ @api_client.config.logger.debug "Calling API: ConnectApi.update_connect_o_auth_config ..."
1168
+ end
1169
+ # verify the required parameter 'account_id' is set
1170
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling ConnectApi.update_connect_o_auth_config" if account_id.nil?
1171
+ # resource path
1172
+ local_var_path = "/v2.1/accounts/{accountId}/connect/oauth".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s)
1173
+
1174
+ # query parameters
1175
+ query_params = {}
1176
+
1177
+ # header parameters
1178
+ header_params = {}
1179
+ # HTTP header 'Accept' (if needed)
1180
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1181
+
1182
+ # form parameters
1183
+ form_params = {}
1184
+
1185
+ # http body (model)
1186
+ post_body = @api_client.object_to_http_body(connect_o_auth_config)
1187
+ auth_names = []
1188
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1189
+ :header_params => header_params,
1190
+ :query_params => query_params,
1191
+ :form_params => form_params,
1192
+ :body => post_body,
1193
+ :auth_names => auth_names,
1194
+ :return_type => 'ConnectOAuthConfig')
1195
+ if @api_client.config.debugging
1196
+ @api_client.config.logger.debug "API called: ConnectApi#update_connect_o_auth_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1197
+ end
1198
+ return data, status_code, headers
1199
+ end
1200
+
1150
1201
  # Reserved
1151
1202
  # Reserved:
1152
1203
  # @param account_id The external account number (int) or account ID Guid.
@@ -80,7 +80,7 @@ module DocuSign_eSign
80
80
  end
81
81
 
82
82
  class GetConsumerDisclosureOptions
83
- # 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.
83
+ # 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.
84
84
  attr_accessor :lang_code2
85
85
 
86
86
  def self.default
@@ -6223,9 +6223,10 @@ module DocuSign_eSign
6223
6223
  # @param account_id The external account number (int) or account ID Guid.
6224
6224
  # @param document_id The ID of the document being accessed.
6225
6225
  # @param envelope_id The envelopeId Guid of the envelope being accessed.
6226
+ # @param document_file_bytes Updated document content.
6226
6227
  # @return [EnvelopeDocument]
6227
- def update_document(account_id, document_id, envelope_id)
6228
- data, _status_code, _headers = update_document_with_http_info(account_id, document_id, envelope_id)
6228
+ def update_document(account_id, document_id, envelope_id, document_file_bytes)
6229
+ data, _status_code, _headers = update_document_with_http_info(account_id, document_id, envelope_id, document_file_bytes)
6229
6230
  return data
6230
6231
  end
6231
6232
 
@@ -6234,8 +6235,9 @@ module DocuSign_eSign
6234
6235
  # @param account_id The external account number (int) or account ID Guid.
6235
6236
  # @param document_id The ID of the document being accessed.
6236
6237
  # @param envelope_id The envelopeId Guid of the envelope being accessed.
6238
+ # @param document_file_bytes Updated document content.
6237
6239
  # @return [Array<(EnvelopeDocument, Fixnum, Hash)>] EnvelopeDocument data, response status code and response headers
6238
- def update_document_with_http_info(account_id, document_id, envelope_id)
6240
+ def update_document_with_http_info(account_id, document_id, envelope_id, document_file_bytes)
6239
6241
  if @api_client.config.debugging
6240
6242
  @api_client.config.logger.debug "Calling API: EnvelopesApi.update_document ..."
6241
6243
  end
@@ -6245,6 +6247,8 @@ module DocuSign_eSign
6245
6247
  fail ArgumentError, "Missing the required parameter 'document_id' when calling EnvelopesApi.update_document" if document_id.nil?
6246
6248
  # verify the required parameter 'envelope_id' is set
6247
6249
  fail ArgumentError, "Missing the required parameter 'envelope_id' when calling EnvelopesApi.update_document" if envelope_id.nil?
6250
+ # verify the required parameter 'document_file_bytes' is set
6251
+ fail ArgumentError, "Missing the required parameter 'document_file_bytes' when calling EnvelopesApi.update_document" if document_file_bytes.nil?
6248
6252
  # resource path
6249
6253
  local_var_path = "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/documents/{documentId}".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'documentId' + '}', document_id.to_s).sub('{' + 'envelopeId' + '}', envelope_id.to_s)
6250
6254
 
@@ -6255,12 +6259,14 @@ module DocuSign_eSign
6255
6259
  header_params = {}
6256
6260
  # HTTP header 'Accept' (if needed)
6257
6261
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
6262
+ # HTTP header 'Content-Type'
6263
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/pdf'])
6258
6264
 
6259
6265
  # form parameters
6260
6266
  form_params = {}
6261
6267
 
6262
6268
  # http body (model)
6263
- post_body = nil
6269
+ post_body = @api_client.object_to_http_body(document_file_bytes)
6264
6270
  auth_names = []
6265
6271
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
6266
6272
  :header_params => header_params,
@@ -7237,65 +7243,6 @@ module DocuSign_eSign
7237
7243
  return data, status_code, headers
7238
7244
  end
7239
7245
 
7240
- # Retrieves a PDF document from the envelope with no CoC.
7241
- #
7242
- # @param account_id The external account number (int) or account ID Guid.
7243
- # @param envelope_id The envelopeId Guid of the envelope being accessed.
7244
- # @param regen_document_id
7245
- # @param document (optional parameter)
7246
- # @return [File]
7247
- def update_regen_document(account_id, envelope_id, regen_document_id, document)
7248
- data, _status_code, _headers = update_regen_document_with_http_info(account_id, envelope_id, regen_document_id, document)
7249
- return data
7250
- end
7251
-
7252
- # Retrieves a PDF document from the envelope with no CoC.
7253
- #
7254
- # @param account_id The external account number (int) or account ID Guid.
7255
- # @param envelope_id The envelopeId Guid of the envelope being accessed.
7256
- # @param regen_document_id
7257
- # @param document (optional parameter)
7258
- # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
7259
- def update_regen_document_with_http_info(account_id, envelope_id, regen_document_id, document)
7260
- if @api_client.config.debugging
7261
- @api_client.config.logger.debug "Calling API: EnvelopesApi.update_regen_document ..."
7262
- end
7263
- # verify the required parameter 'account_id' is set
7264
- fail ArgumentError, "Missing the required parameter 'account_id' when calling EnvelopesApi.update_regen_document" if account_id.nil?
7265
- # verify the required parameter 'envelope_id' is set
7266
- fail ArgumentError, "Missing the required parameter 'envelope_id' when calling EnvelopesApi.update_regen_document" if envelope_id.nil?
7267
- # verify the required parameter 'regen_document_id' is set
7268
- fail ArgumentError, "Missing the required parameter 'regen_document_id' when calling EnvelopesApi.update_regen_document" if regen_document_id.nil?
7269
- # resource path
7270
- local_var_path = "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/documents/{regenDocumentId}/regen".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'envelopeId' + '}', envelope_id.to_s).sub('{' + 'regenDocumentId' + '}', regen_document_id.to_s)
7271
-
7272
- # query parameters
7273
- query_params = {}
7274
-
7275
- # header parameters
7276
- header_params = {}
7277
- # HTTP header 'Accept' (if needed)
7278
- header_params['Accept'] = @api_client.select_header_accept(['application/pdf'])
7279
-
7280
- # form parameters
7281
- form_params = {}
7282
-
7283
- # http body (model)
7284
- post_body = @api_client.object_to_http_body(document)
7285
- auth_names = []
7286
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
7287
- :header_params => header_params,
7288
- :query_params => query_params,
7289
- :form_params => form_params,
7290
- :body => post_body,
7291
- :auth_names => auth_names,
7292
- :return_type => 'File')
7293
- if @api_client.config.debugging
7294
- @api_client.config.logger.debug "API called: EnvelopesApi#update_regen_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
7295
- end
7296
- return data, status_code, headers
7297
- end
7298
-
7299
7246
  # Updates the tabs for a recipient.
7300
7247
  # Updates one or more tabs for a recipient in a draft envelope.
7301
7248
  # @param account_id The external account number (int) or account ID Guid.
@@ -14,6 +14,9 @@ require "uri"
14
14
  module DocuSign_eSign
15
15
 
16
16
  class ListOptions
17
+ #
18
+ attr_accessor :count
19
+
17
20
  #
18
21
  attr_accessor :include
19
22
 
@@ -23,6 +26,9 @@ module DocuSign_eSign
23
26
  #
24
27
  attr_accessor :start_position
25
28
 
29
+ #
30
+ attr_accessor :sub_folder_depth
31
+
26
32
  # Specifies the items that are returned. Valid values are: * include - The folder list will return normal folders plus template folders. * only - Only the list of template folders are returned.
27
33
  attr_accessor :template
28
34
 
@@ -128,9 +134,11 @@ module DocuSign_eSign
128
134
 
129
135
  # query parameters
130
136
  query_params = {}
137
+ query_params[:'count'] = options.count if !options.count.nil?
131
138
  query_params[:'include'] = options.include if !options.include.nil?
132
139
  query_params[:'include_items'] = options.include_items if !options.include_items.nil?
133
140
  query_params[:'start_position'] = options.start_position if !options.start_position.nil?
141
+ query_params[:'sub_folder_depth'] = options.sub_folder_depth if !options.sub_folder_depth.nil?
134
142
  query_params[:'template'] = options.template if !options.template.nil?
135
143
  query_params[:'user_filter'] = options.user_filter if !options.user_filter.nil?
136
144
 
@@ -97,18 +97,6 @@ module DocuSign_eSign
97
97
  end
98
98
  end
99
99
 
100
- class ListBulkRecipientsOptions
101
- #
102
- attr_accessor :include_tabs
103
-
104
- #
105
- attr_accessor :start_position
106
-
107
- def self.default
108
- @@default ||= ListBulkRecipientsOptions.new
109
- end
110
- end
111
-
112
100
  class ListDocumentsOptions
113
101
  #
114
102
  attr_accessor :include_tabs
@@ -2087,67 +2075,6 @@ module DocuSign_eSign
2087
2075
  return data, status_code, headers
2088
2076
  end
2089
2077
 
2090
- # Gets the bulk recipient file from a template.
2091
- # Retrieves the bulk recipient file information from a template that has a bulk recipient.
2092
- # @param account_id The external account number (int) or account ID Guid.
2093
- # @param recipient_id The ID of the recipient being accessed.
2094
- # @param template_id The ID of the template being accessed.
2095
- # @param DocuSign_eSign::ListBulkRecipientsOptions Options for modifying the behavior of the function.
2096
- # @return [BulkRecipientsResponse]
2097
- def list_bulk_recipients(account_id, recipient_id, template_id, options = DocuSign_eSign::ListBulkRecipientsOptions.default)
2098
- data, _status_code, _headers = list_bulk_recipients_with_http_info(account_id, recipient_id, template_id, options)
2099
- return data
2100
- end
2101
-
2102
- # Gets the bulk recipient file from a template.
2103
- # Retrieves the bulk recipient file information from a template that has a bulk recipient.
2104
- # @param account_id The external account number (int) or account ID Guid.
2105
- # @param recipient_id The ID of the recipient being accessed.
2106
- # @param template_id The ID of the template being accessed.
2107
- # @param DocuSign_eSign::ListBulkRecipientsOptions Options for modifying the behavior of the function.
2108
- # @return [Array<(BulkRecipientsResponse, Fixnum, Hash)>] BulkRecipientsResponse data, response status code and response headers
2109
- def list_bulk_recipients_with_http_info(account_id, recipient_id, template_id, options = DocuSign_eSign::ListBulkRecipientsOptions.default)
2110
- if @api_client.config.debugging
2111
- @api_client.config.logger.debug "Calling API: TemplatesApi.list_bulk_recipients ..."
2112
- end
2113
- # verify the required parameter 'account_id' is set
2114
- fail ArgumentError, "Missing the required parameter 'account_id' when calling TemplatesApi.list_bulk_recipients" if account_id.nil?
2115
- # verify the required parameter 'recipient_id' is set
2116
- fail ArgumentError, "Missing the required parameter 'recipient_id' when calling TemplatesApi.list_bulk_recipients" if recipient_id.nil?
2117
- # verify the required parameter 'template_id' is set
2118
- fail ArgumentError, "Missing the required parameter 'template_id' when calling TemplatesApi.list_bulk_recipients" if template_id.nil?
2119
- # resource path
2120
- local_var_path = "/v2.1/accounts/{accountId}/templates/{templateId}/recipients/{recipientId}/bulk_recipients".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'recipientId' + '}', recipient_id.to_s).sub('{' + 'templateId' + '}', template_id.to_s)
2121
-
2122
- # query parameters
2123
- query_params = {}
2124
- query_params[:'include_tabs'] = options.include_tabs if !options.include_tabs.nil?
2125
- query_params[:'start_position'] = options.start_position if !options.start_position.nil?
2126
-
2127
- # header parameters
2128
- header_params = {}
2129
- # HTTP header 'Accept' (if needed)
2130
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2131
-
2132
- # form parameters
2133
- form_params = {}
2134
-
2135
- # http body (model)
2136
- post_body = nil
2137
- auth_names = []
2138
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2139
- :header_params => header_params,
2140
- :query_params => query_params,
2141
- :form_params => form_params,
2142
- :body => post_body,
2143
- :auth_names => auth_names,
2144
- :return_type => 'BulkRecipientsResponse')
2145
- if @api_client.config.debugging
2146
- @api_client.config.logger.debug "API called: TemplatesApi#list_bulk_recipients\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2147
- end
2148
- return data, status_code, headers
2149
- end
2150
-
2151
2078
  # Gets the custom document fields from a template.
2152
2079
  # Retrieves the custom document field information from an existing template.
2153
2080
  # @param account_id The external account number (int) or account ID Guid.
@@ -35,7 +35,7 @@ module DocuSign_eSign
35
35
  # @option config [Configuration] Configuration for initializing the object, default to Configuration.default
36
36
  def initialize(config = Configuration.default)
37
37
  @config = config
38
- @user_agent = "Swagger-Codegen/3.20.0/ruby"
38
+ @user_agent = "Swagger-Codegen/3.21.0/ruby"
39
39
  @default_headers = {
40
40
  'Content-Type' => "application/json",
41
41
  'User-Agent' => @user_agent