docusign_esign 3.19.0 → 3.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -0
  3. data/lib/docusign_esign/api/accounts_api.rb +4 -4
  4. data/lib/docusign_esign/api/connect_api.rb +51 -0
  5. data/lib/docusign_esign/api/envelopes_api.rb +16 -65
  6. data/lib/docusign_esign/api/folders_api.rb +8 -0
  7. data/lib/docusign_esign/api/templates_api.rb +0 -73
  8. data/lib/docusign_esign/client/api_client.rb +1 -1
  9. data/lib/docusign_esign/models/account_identity_verification_workflow.rb +11 -1
  10. data/lib/docusign_esign/models/account_settings_information.rb +338 -15
  11. data/lib/docusign_esign/models/account_ui_settings.rb +20 -1
  12. data/lib/docusign_esign/models/bulk_sending_copy.rb +13 -1
  13. data/lib/docusign_esign/models/bulk_sending_copy_recipient.rb +10 -1
  14. data/lib/docusign_esign/models/bulksending_copy_doc_gen_form_field.rb +194 -0
  15. data/lib/docusign_esign/models/connect_custom_configuration.rb +21 -1
  16. data/lib/docusign_esign/models/connect_o_auth_config.rb +11 -1
  17. data/lib/docusign_esign/models/contact.rb +10 -1
  18. data/lib/docusign_esign/models/delayed_routing.rb +3 -3
  19. data/lib/docusign_esign/models/delegation_info.rb +12 -12
  20. data/lib/docusign_esign/models/doc_gen_form_field.rb +224 -0
  21. data/lib/docusign_esign/models/doc_gen_syntax_error.rb +204 -0
  22. data/lib/docusign_esign/models/document.rb +23 -1
  23. data/lib/docusign_esign/models/envelope.rb +11 -1
  24. data/lib/docusign_esign/models/envelope_definition.rb +11 -1
  25. data/lib/docusign_esign/models/envelope_delay_rule.rb +3 -2
  26. data/lib/docusign_esign/models/envelope_document.rb +45 -1
  27. data/lib/docusign_esign/models/envelope_template.rb +21 -1
  28. data/lib/docusign_esign/models/event_notification.rb +21 -1
  29. data/lib/docusign_esign/models/id_evidence_view_link.rb +3 -3
  30. data/lib/docusign_esign/models/initial_here.rb +1 -1
  31. data/lib/docusign_esign/models/jurisdiction_summary.rb +214 -0
  32. data/lib/docusign_esign/models/locale_policy_tab.rb +14 -4
  33. data/lib/docusign_esign/models/notary_contact_details.rb +196 -0
  34. data/lib/docusign_esign/models/numerical.rb +1279 -0
  35. data/lib/docusign_esign/models/recipient_form_data.rb +12 -12
  36. data/lib/docusign_esign/models/recipient_identity_verification.rb +14 -4
  37. data/lib/docusign_esign/models/scheduled_sending.rb +3 -3
  38. data/lib/docusign_esign/models/tab_metadata.rb +11 -1
  39. data/lib/docusign_esign/models/tabs.rb +13 -1
  40. data/lib/docusign_esign/models/template_role.rb +11 -1
  41. data/lib/docusign_esign/models/template_tabs.rb +13 -1
  42. data/lib/docusign_esign/models/user_account_management_granular_information.rb +20 -1
  43. data/lib/docusign_esign/version.rb +1 -1
  44. data/lib/docusign_esign.rb +6 -4
  45. metadata +8 -2
@@ -38,6 +38,15 @@ module DocuSign_eSign
38
38
  # Metadata that indicates if the sender can edit the `display` property. Not applicable for template documents.
39
39
  attr_accessor :display_metadata
40
40
 
41
+ #
42
+ attr_accessor :doc_gen_document_status
43
+
44
+ #
45
+ attr_accessor :doc_gen_errors
46
+
47
+ #
48
+ attr_accessor :doc_gen_form_fields
49
+
41
50
  #
42
51
  attr_accessor :document_base64
43
52
 
@@ -59,6 +68,9 @@ module DocuSign_eSign
59
68
  # Metadata that indicates if the sender can edit the `includeInDownload` property. Not applicable for template documents.
60
69
  attr_accessor :include_in_download_metadata
61
70
 
71
+ #
72
+ attr_accessor :is_doc_gen_document
73
+
62
74
  #
63
75
  attr_accessor :name
64
76
 
@@ -103,6 +115,9 @@ module DocuSign_eSign
103
115
  :'contains_pdf_form_fields' => :'containsPdfFormFields',
104
116
  :'display' => :'display',
105
117
  :'display_metadata' => :'displayMetadata',
118
+ :'doc_gen_document_status' => :'docGenDocumentStatus',
119
+ :'doc_gen_errors' => :'docGenErrors',
120
+ :'doc_gen_form_fields' => :'docGenFormFields',
106
121
  :'document_base64' => :'documentBase64',
107
122
  :'document_fields' => :'documentFields',
108
123
  :'document_id' => :'documentId',
@@ -110,6 +125,7 @@ module DocuSign_eSign
110
125
  :'error_details' => :'errorDetails',
111
126
  :'include_in_download' => :'includeInDownload',
112
127
  :'include_in_download_metadata' => :'includeInDownloadMetadata',
128
+ :'is_doc_gen_document' => :'isDocGenDocument',
113
129
  :'name' => :'name',
114
130
  :'name_metadata' => :'nameMetadata',
115
131
  :'order' => :'order',
@@ -135,6 +151,9 @@ module DocuSign_eSign
135
151
  :'contains_pdf_form_fields' => :'String',
136
152
  :'display' => :'String',
137
153
  :'display_metadata' => :'PropertyMetadata',
154
+ :'doc_gen_document_status' => :'String',
155
+ :'doc_gen_errors' => :'Array<DocGenSyntaxError>',
156
+ :'doc_gen_form_fields' => :'Array<DocGenFormField>',
138
157
  :'document_base64' => :'String',
139
158
  :'document_fields' => :'Array<NameValue>',
140
159
  :'document_id' => :'String',
@@ -142,6 +161,7 @@ module DocuSign_eSign
142
161
  :'error_details' => :'ErrorDetails',
143
162
  :'include_in_download' => :'String',
144
163
  :'include_in_download_metadata' => :'PropertyMetadata',
164
+ :'is_doc_gen_document' => :'String',
145
165
  :'name' => :'String',
146
166
  :'name_metadata' => :'PropertyMetadata',
147
167
  :'order' => :'String',
@@ -200,6 +220,22 @@ module DocuSign_eSign
200
220
  self.display_metadata = attributes[:'displayMetadata']
201
221
  end
202
222
 
223
+ if attributes.has_key?(:'docGenDocumentStatus')
224
+ self.doc_gen_document_status = attributes[:'docGenDocumentStatus']
225
+ end
226
+
227
+ if attributes.has_key?(:'docGenErrors')
228
+ if (value = attributes[:'docGenErrors']).is_a?(Array)
229
+ self.doc_gen_errors = value
230
+ end
231
+ end
232
+
233
+ if attributes.has_key?(:'docGenFormFields')
234
+ if (value = attributes[:'docGenFormFields']).is_a?(Array)
235
+ self.doc_gen_form_fields = value
236
+ end
237
+ end
238
+
203
239
  if attributes.has_key?(:'documentBase64')
204
240
  self.document_base64 = attributes[:'documentBase64']
205
241
  end
@@ -230,6 +266,10 @@ module DocuSign_eSign
230
266
  self.include_in_download_metadata = attributes[:'includeInDownloadMetadata']
231
267
  end
232
268
 
269
+ if attributes.has_key?(:'isDocGenDocument')
270
+ self.is_doc_gen_document = attributes[:'isDocGenDocument']
271
+ end
272
+
233
273
  if attributes.has_key?(:'name')
234
274
  self.name = attributes[:'name']
235
275
  end
@@ -303,6 +343,9 @@ module DocuSign_eSign
303
343
  contains_pdf_form_fields == o.contains_pdf_form_fields &&
304
344
  display == o.display &&
305
345
  display_metadata == o.display_metadata &&
346
+ doc_gen_document_status == o.doc_gen_document_status &&
347
+ doc_gen_errors == o.doc_gen_errors &&
348
+ doc_gen_form_fields == o.doc_gen_form_fields &&
306
349
  document_base64 == o.document_base64 &&
307
350
  document_fields == o.document_fields &&
308
351
  document_id == o.document_id &&
@@ -310,6 +353,7 @@ module DocuSign_eSign
310
353
  error_details == o.error_details &&
311
354
  include_in_download == o.include_in_download &&
312
355
  include_in_download_metadata == o.include_in_download_metadata &&
356
+ is_doc_gen_document == o.is_doc_gen_document &&
313
357
  name == o.name &&
314
358
  name_metadata == o.name_metadata &&
315
359
  order == o.order &&
@@ -332,7 +376,7 @@ module DocuSign_eSign
332
376
  # Calculates hash code according to all attributes.
333
377
  # @return [Fixnum] Hash code
334
378
  def hash
335
- [added_recipient_ids, attachment_tab_id, authoritative_copy, authoritative_copy_metadata, available_document_types, contains_pdf_form_fields, display, display_metadata, document_base64, document_fields, document_id, document_id_guid, error_details, include_in_download, include_in_download_metadata, name, name_metadata, order, pages, signer_must_acknowledge, signer_must_acknowledge_metadata, size_bytes, template_locked, template_required, type, uri].hash
379
+ [added_recipient_ids, attachment_tab_id, authoritative_copy, authoritative_copy_metadata, available_document_types, contains_pdf_form_fields, display, display_metadata, doc_gen_document_status, doc_gen_errors, doc_gen_form_fields, document_base64, document_fields, document_id, document_id_guid, error_details, include_in_download, include_in_download_metadata, is_doc_gen_document, name, name_metadata, order, pages, signer_must_acknowledge, signer_must_acknowledge_metadata, size_bytes, template_locked, template_required, type, uri].hash
336
380
  end
337
381
 
338
382
  # Builds the object from hash
@@ -58,6 +58,9 @@ module DocuSign_eSign
58
58
  #
59
59
  attr_accessor :brand_lock
60
60
 
61
+ #
62
+ attr_accessor :burn_default_tab_data
63
+
61
64
  # Retrieves a URI for an endpoint that allows you to easily retrieve certificate information.
62
65
  attr_accessor :certificate_uri
63
66
 
@@ -190,6 +193,9 @@ module DocuSign_eSign
190
193
  # When set to **true**, indicates that this module is enabled on the account.
191
194
  attr_accessor :is21_cfr_part11
192
195
 
196
+ #
197
+ attr_accessor :is_doc_gen_template
198
+
193
199
  #
194
200
  attr_accessor :is_dynamic_envelope
195
201
 
@@ -331,6 +337,7 @@ module DocuSign_eSign
331
337
  :'auto_navigation' => :'autoNavigation',
332
338
  :'brand_id' => :'brandId',
333
339
  :'brand_lock' => :'brandLock',
340
+ :'burn_default_tab_data' => :'burnDefaultTabData',
334
341
  :'certificate_uri' => :'certificateUri',
335
342
  :'completed_date_time' => :'completedDateTime',
336
343
  :'copy_recipient_data' => :'copyRecipientData',
@@ -375,6 +382,7 @@ module DocuSign_eSign
375
382
  :'holder' => :'holder',
376
383
  :'initial_sent_date_time' => :'initialSentDateTime',
377
384
  :'is21_cfr_part11' => :'is21CFRPart11',
385
+ :'is_doc_gen_template' => :'isDocGenTemplate',
378
386
  :'is_dynamic_envelope' => :'isDynamicEnvelope',
379
387
  :'is_signature_provider_envelope' => :'isSignatureProviderEnvelope',
380
388
  :'last_modified' => :'lastModified',
@@ -437,6 +445,7 @@ module DocuSign_eSign
437
445
  :'auto_navigation' => :'String',
438
446
  :'brand_id' => :'String',
439
447
  :'brand_lock' => :'String',
448
+ :'burn_default_tab_data' => :'String',
440
449
  :'certificate_uri' => :'String',
441
450
  :'completed_date_time' => :'String',
442
451
  :'copy_recipient_data' => :'String',
@@ -481,6 +490,7 @@ module DocuSign_eSign
481
490
  :'holder' => :'String',
482
491
  :'initial_sent_date_time' => :'String',
483
492
  :'is21_cfr_part11' => :'String',
493
+ :'is_doc_gen_template' => :'String',
484
494
  :'is_dynamic_envelope' => :'String',
485
495
  :'is_signature_provider_envelope' => :'String',
486
496
  :'last_modified' => :'String',
@@ -593,6 +603,10 @@ module DocuSign_eSign
593
603
  self.brand_lock = attributes[:'brandLock']
594
604
  end
595
605
 
606
+ if attributes.has_key?(:'burnDefaultTabData')
607
+ self.burn_default_tab_data = attributes[:'burnDefaultTabData']
608
+ end
609
+
596
610
  if attributes.has_key?(:'certificateUri')
597
611
  self.certificate_uri = attributes[:'certificateUri']
598
612
  end
@@ -779,6 +793,10 @@ module DocuSign_eSign
779
793
  self.is21_cfr_part11 = attributes[:'is21CFRPart11']
780
794
  end
781
795
 
796
+ if attributes.has_key?(:'isDocGenTemplate')
797
+ self.is_doc_gen_template = attributes[:'isDocGenTemplate']
798
+ end
799
+
782
800
  if attributes.has_key?(:'isDynamicEnvelope')
783
801
  self.is_dynamic_envelope = attributes[:'isDynamicEnvelope']
784
802
  end
@@ -979,6 +997,7 @@ module DocuSign_eSign
979
997
  auto_navigation == o.auto_navigation &&
980
998
  brand_id == o.brand_id &&
981
999
  brand_lock == o.brand_lock &&
1000
+ burn_default_tab_data == o.burn_default_tab_data &&
982
1001
  certificate_uri == o.certificate_uri &&
983
1002
  completed_date_time == o.completed_date_time &&
984
1003
  copy_recipient_data == o.copy_recipient_data &&
@@ -1023,6 +1042,7 @@ module DocuSign_eSign
1023
1042
  holder == o.holder &&
1024
1043
  initial_sent_date_time == o.initial_sent_date_time &&
1025
1044
  is21_cfr_part11 == o.is21_cfr_part11 &&
1045
+ is_doc_gen_template == o.is_doc_gen_template &&
1026
1046
  is_dynamic_envelope == o.is_dynamic_envelope &&
1027
1047
  is_signature_provider_envelope == o.is_signature_provider_envelope &&
1028
1048
  last_modified == o.last_modified &&
@@ -1075,7 +1095,7 @@ module DocuSign_eSign
1075
1095
  # Calculates hash code according to all attributes.
1076
1096
  # @return [Fixnum] Hash code
1077
1097
  def hash
1078
- [access_control_list_base64, allow_comments, allow_markup, allow_reassign, allow_view_history, any_signer, asynchronous, attachments_uri, authoritative_copy, authoritative_copy_default, auto_match, auto_match_specified_by_user, auto_navigation, brand_id, brand_lock, certificate_uri, completed_date_time, copy_recipient_data, created, created_date_time, custom_fields, custom_fields_uri, declined_date_time, deleted_date_time, delivered_date_time, description, disable_responsive_document, document_base64, documents, documents_combined_uri, documents_uri, email_blurb, email_settings, email_subject, enable_wet_sign, enforce_signer_visibility, envelope_attachments, envelope_custom_metadata, envelope_documents, envelope_id, envelope_id_stamping, envelope_location, envelope_metadata, envelope_uri, expire_after, expire_date_time, expire_enabled, external_envelope_id, favorited_by_me, folder_id, folder_ids, folder_name, folders, has_comments, has_form_data_changed, has_wav_file, holder, initial_sent_date_time, is21_cfr_part11, is_dynamic_envelope, is_signature_provider_envelope, last_modified, last_modified_by, last_modified_date_time, last_used, location, lock_information, message_lock, name, new_password, notification, notification_uri, owner, page_count, password, password_protected, power_form, power_forms, purge_completed_date, purge_request_date, purge_state, recipients, recipients_lock, recipients_uri, sender, sent_date_time, shared, signer_can_sign_on_mobile, signing_location, status, status_changed_date_time, status_date_time, template_id, templates_uri, transaction_id, uri, use_disclosure, voided_date_time, voided_reason, workflow].hash
1098
+ [access_control_list_base64, allow_comments, allow_markup, allow_reassign, allow_view_history, any_signer, asynchronous, attachments_uri, authoritative_copy, authoritative_copy_default, auto_match, auto_match_specified_by_user, auto_navigation, brand_id, brand_lock, burn_default_tab_data, certificate_uri, completed_date_time, copy_recipient_data, created, created_date_time, custom_fields, custom_fields_uri, declined_date_time, deleted_date_time, delivered_date_time, description, disable_responsive_document, document_base64, documents, documents_combined_uri, documents_uri, email_blurb, email_settings, email_subject, enable_wet_sign, enforce_signer_visibility, envelope_attachments, envelope_custom_metadata, envelope_documents, envelope_id, envelope_id_stamping, envelope_location, envelope_metadata, envelope_uri, expire_after, expire_date_time, expire_enabled, external_envelope_id, favorited_by_me, folder_id, folder_ids, folder_name, folders, has_comments, has_form_data_changed, has_wav_file, holder, initial_sent_date_time, is21_cfr_part11, is_doc_gen_template, is_dynamic_envelope, is_signature_provider_envelope, last_modified, last_modified_by, last_modified_date_time, last_used, location, lock_information, message_lock, name, new_password, notification, notification_uri, owner, page_count, password, password_protected, power_form, power_forms, purge_completed_date, purge_request_date, purge_state, recipients, recipients_lock, recipients_uri, sender, sent_date_time, shared, signer_can_sign_on_mobile, signing_location, status, status_changed_date_time, status_date_time, template_id, templates_uri, transaction_id, uri, use_disclosure, voided_date_time, voided_reason, workflow].hash
1079
1099
  end
1080
1100
 
1081
1101
  # Builds the object from hash
@@ -44,12 +44,18 @@ module DocuSign_eSign
44
44
  #
45
45
  attr_accessor :include_hmac
46
46
 
47
+ #
48
+ attr_accessor :include_o_auth
49
+
47
50
  # When set to **true**, the sender account ID is included as a envelope custom field in the data.
48
51
  attr_accessor :include_sender_account_as_custom_field
49
52
 
50
53
  # When set to **true**, the envelope time zone information is included in the message.
51
54
  attr_accessor :include_time_zone
52
55
 
56
+ #
57
+ attr_accessor :integrator_managed
58
+
53
59
  # When set to **true**, logging is turned on for envelope events on the Web Console Connect page.
54
60
  attr_accessor :logging_enabled
55
61
 
@@ -84,8 +90,10 @@ module DocuSign_eSign
84
90
  :'include_documents' => :'includeDocuments',
85
91
  :'include_envelope_void_reason' => :'includeEnvelopeVoidReason',
86
92
  :'include_hmac' => :'includeHMAC',
93
+ :'include_o_auth' => :'includeOAuth',
87
94
  :'include_sender_account_as_custom_field' => :'includeSenderAccountAsCustomField',
88
95
  :'include_time_zone' => :'includeTimeZone',
96
+ :'integrator_managed' => :'integratorManaged',
89
97
  :'logging_enabled' => :'loggingEnabled',
90
98
  :'recipient_events' => :'recipientEvents',
91
99
  :'require_acknowledgment' => :'requireAcknowledgment',
@@ -109,8 +117,10 @@ module DocuSign_eSign
109
117
  :'include_documents' => :'String',
110
118
  :'include_envelope_void_reason' => :'String',
111
119
  :'include_hmac' => :'String',
120
+ :'include_o_auth' => :'String',
112
121
  :'include_sender_account_as_custom_field' => :'String',
113
122
  :'include_time_zone' => :'String',
123
+ :'integrator_managed' => :'String',
114
124
  :'logging_enabled' => :'String',
115
125
  :'recipient_events' => :'Array<RecipientEvent>',
116
126
  :'require_acknowledgment' => :'String',
@@ -173,6 +183,10 @@ module DocuSign_eSign
173
183
  self.include_hmac = attributes[:'includeHMAC']
174
184
  end
175
185
 
186
+ if attributes.has_key?(:'includeOAuth')
187
+ self.include_o_auth = attributes[:'includeOAuth']
188
+ end
189
+
176
190
  if attributes.has_key?(:'includeSenderAccountAsCustomField')
177
191
  self.include_sender_account_as_custom_field = attributes[:'includeSenderAccountAsCustomField']
178
192
  end
@@ -181,6 +195,10 @@ module DocuSign_eSign
181
195
  self.include_time_zone = attributes[:'includeTimeZone']
182
196
  end
183
197
 
198
+ if attributes.has_key?(:'integratorManaged')
199
+ self.integrator_managed = attributes[:'integratorManaged']
200
+ end
201
+
184
202
  if attributes.has_key?(:'loggingEnabled')
185
203
  self.logging_enabled = attributes[:'loggingEnabled']
186
204
  end
@@ -240,8 +258,10 @@ module DocuSign_eSign
240
258
  include_documents == o.include_documents &&
241
259
  include_envelope_void_reason == o.include_envelope_void_reason &&
242
260
  include_hmac == o.include_hmac &&
261
+ include_o_auth == o.include_o_auth &&
243
262
  include_sender_account_as_custom_field == o.include_sender_account_as_custom_field &&
244
263
  include_time_zone == o.include_time_zone &&
264
+ integrator_managed == o.integrator_managed &&
245
265
  logging_enabled == o.logging_enabled &&
246
266
  recipient_events == o.recipient_events &&
247
267
  require_acknowledgment == o.require_acknowledgment &&
@@ -260,7 +280,7 @@ module DocuSign_eSign
260
280
  # Calculates hash code according to all attributes.
261
281
  # @return [Fixnum] Hash code
262
282
  def hash
263
- [delivery_mode, envelope_events, event_data, events, include_certificate_of_completion, include_certificate_with_soap, include_document_fields, include_documents, include_envelope_void_reason, include_hmac, include_sender_account_as_custom_field, include_time_zone, logging_enabled, recipient_events, require_acknowledgment, sign_message_with_x509_cert, soap_name_space, url, use_soap_interface].hash
283
+ [delivery_mode, envelope_events, event_data, events, include_certificate_of_completion, include_certificate_with_soap, include_document_fields, include_documents, include_envelope_void_reason, include_hmac, include_o_auth, include_sender_account_as_custom_field, include_time_zone, integrator_managed, logging_enabled, recipient_events, require_acknowledgment, sign_message_with_x509_cert, soap_name_space, url, use_soap_interface].hash
264
284
  end
265
285
 
266
286
  # Builds the object from hash
@@ -19,7 +19,7 @@ module DocuSign_eSign
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
20
20
  def self.attribute_map
21
21
  {
22
- :'view_link' => :'ViewLink'
22
+ :'view_link' => :'viewLink'
23
23
  }
24
24
  end
25
25
 
@@ -38,8 +38,8 @@ module DocuSign_eSign
38
38
  # convert string to symbol for hash key
39
39
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
40
40
 
41
- if attributes.has_key?(:'ViewLink')
42
- self.view_link = attributes[:'ViewLink']
41
+ if attributes.has_key?(:'viewLink')
42
+ self.view_link = attributes[:'viewLink']
43
43
  end
44
44
  end
45
45
 
@@ -169,7 +169,7 @@ module DocuSign_eSign
169
169
  # Metadata that indicates whether the `recipientId` property is editable.
170
170
  attr_accessor :recipient_id_metadata
171
171
 
172
- # Sets the size for the InitialHere tab. It can be value from 0.5 to 1.0, where 1.0 represents full size and 0.5 is 50% size.
172
+ # Sets the size for the InitialHere tab. It can be value from 0.5 to 1.0, where 1.0 represents full size and 0.5 is 50% size.
173
173
  attr_accessor :scale_value
174
174
 
175
175
  # Metadata that indicates whether the `scaleValue` property is editable.
@@ -0,0 +1,214 @@
1
+ =begin
2
+ #DocuSign REST API
3
+
4
+ #The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
5
+
6
+ OpenAPI spec version: v2.1
7
+ Contact: devcenter@docusign.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ =end
11
+
12
+ require 'date'
13
+
14
+ module DocuSign_eSign
15
+ class JurisdictionSummary
16
+ #
17
+ attr_accessor :authorized_for_i_pen
18
+
19
+ #
20
+ attr_accessor :authorized_for_ron
21
+
22
+ #
23
+ attr_accessor :jurisdiction_id
24
+
25
+ #
26
+ attr_accessor :jurisdiction_name
27
+
28
+ # Attribute mapping from ruby-style variable name to JSON key.
29
+ def self.attribute_map
30
+ {
31
+ :'authorized_for_i_pen' => :'authorizedForIPen',
32
+ :'authorized_for_ron' => :'authorizedForRon',
33
+ :'jurisdiction_id' => :'jurisdictionId',
34
+ :'jurisdiction_name' => :'jurisdictionName'
35
+ }
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.swagger_types
40
+ {
41
+ :'authorized_for_i_pen' => :'String',
42
+ :'authorized_for_ron' => :'String',
43
+ :'jurisdiction_id' => :'String',
44
+ :'jurisdiction_name' => :'String'
45
+ }
46
+ end
47
+
48
+ # Initializes the object
49
+ # @param [Hash] attributes Model attributes in the form of hash
50
+ def initialize(attributes = {})
51
+ return unless attributes.is_a?(Hash)
52
+
53
+ # convert string to symbol for hash key
54
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
55
+
56
+ if attributes.has_key?(:'authorizedForIPen')
57
+ self.authorized_for_i_pen = attributes[:'authorizedForIPen']
58
+ end
59
+
60
+ if attributes.has_key?(:'authorizedForRon')
61
+ self.authorized_for_ron = attributes[:'authorizedForRon']
62
+ end
63
+
64
+ if attributes.has_key?(:'jurisdictionId')
65
+ self.jurisdiction_id = attributes[:'jurisdictionId']
66
+ end
67
+
68
+ if attributes.has_key?(:'jurisdictionName')
69
+ self.jurisdiction_name = attributes[:'jurisdictionName']
70
+ end
71
+ end
72
+
73
+ # Show invalid properties with the reasons. Usually used together with valid?
74
+ # @return Array for valid properties with the reasons
75
+ def list_invalid_properties
76
+ invalid_properties = Array.new
77
+ invalid_properties
78
+ end
79
+
80
+ # Check to see if the all the properties in the model are valid
81
+ # @return true if the model is valid
82
+ def valid?
83
+ true
84
+ end
85
+
86
+ # Checks equality by comparing each attribute.
87
+ # @param [Object] Object to be compared
88
+ def ==(o)
89
+ return true if self.equal?(o)
90
+ self.class == o.class &&
91
+ authorized_for_i_pen == o.authorized_for_i_pen &&
92
+ authorized_for_ron == o.authorized_for_ron &&
93
+ jurisdiction_id == o.jurisdiction_id &&
94
+ jurisdiction_name == o.jurisdiction_name
95
+ end
96
+
97
+ # @see the `==` method
98
+ # @param [Object] Object to be compared
99
+ def eql?(o)
100
+ self == o
101
+ end
102
+
103
+ # Calculates hash code according to all attributes.
104
+ # @return [Fixnum] Hash code
105
+ def hash
106
+ [authorized_for_i_pen, authorized_for_ron, jurisdiction_id, jurisdiction_name].hash
107
+ end
108
+
109
+ # Builds the object from hash
110
+ # @param [Hash] attributes Model attributes in the form of hash
111
+ # @return [Object] Returns the model itself
112
+ def build_from_hash(attributes)
113
+ return nil unless attributes.is_a?(Hash)
114
+ self.class.swagger_types.each_pair do |key, type|
115
+ if type =~ /\AArray<(.*)>/i
116
+ # check to ensure the input is an array given that the attribute
117
+ # is documented as an array but the input is not
118
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
119
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
120
+ end
121
+ elsif !attributes[self.class.attribute_map[key]].nil?
122
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
123
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
124
+ end
125
+
126
+ self
127
+ end
128
+
129
+ # Deserializes the data based on type
130
+ # @param string type Data type
131
+ # @param string value Value to be deserialized
132
+ # @return [Object] Deserialized data
133
+ def _deserialize(type, value)
134
+ case type.to_sym
135
+ when :DateTime
136
+ DateTime.parse(value)
137
+ when :Date
138
+ Date.parse(value)
139
+ when :String
140
+ value.to_s
141
+ when :Integer
142
+ value.to_i
143
+ when :Float
144
+ value.to_f
145
+ when :BOOLEAN
146
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
147
+ true
148
+ else
149
+ false
150
+ end
151
+ when :Object
152
+ # generic object (usually a Hash), return directly
153
+ value
154
+ when /\AArray<(?<inner_type>.+)>\z/
155
+ inner_type = Regexp.last_match[:inner_type]
156
+ value.map { |v| _deserialize(inner_type, v) }
157
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
158
+ k_type = Regexp.last_match[:k_type]
159
+ v_type = Regexp.last_match[:v_type]
160
+ {}.tap do |hash|
161
+ value.each do |k, v|
162
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
163
+ end
164
+ end
165
+ else # model
166
+ temp_model = DocuSign_eSign.const_get(type).new
167
+ temp_model.build_from_hash(value)
168
+ end
169
+ end
170
+
171
+ # Returns the string representation of the object
172
+ # @return [String] String presentation of the object
173
+ def to_s
174
+ to_hash.to_s
175
+ end
176
+
177
+ # to_body is an alias to to_hash (backward compatibility)
178
+ # @return [Hash] Returns the object in the form of hash
179
+ def to_body
180
+ to_hash
181
+ end
182
+
183
+ # Returns the object in the form of hash
184
+ # @return [Hash] Returns the object in the form of hash
185
+ def to_hash
186
+ hash = {}
187
+ self.class.attribute_map.each_pair do |attr, param|
188
+ value = self.send(attr)
189
+ next if value.nil?
190
+ hash[param] = _to_hash(value)
191
+ end
192
+ hash
193
+ end
194
+
195
+ # Outputs non-array value in the form of hash
196
+ # For object, use to_hash. Otherwise, just return the value
197
+ # @param [Object] value Any valid value
198
+ # @return [Hash] Returns the value in the form of hash
199
+ def _to_hash(value)
200
+ if value.is_a?(Array)
201
+ value.compact.map { |v| _to_hash(v) }
202
+ elsif value.is_a?(Hash)
203
+ {}.tap do |hash|
204
+ value.each { |k, v| hash[k] = _to_hash(v) }
205
+ end
206
+ elsif value.respond_to? :to_hash
207
+ value.to_hash
208
+ else
209
+ value
210
+ end
211
+ end
212
+
213
+ end
214
+ end
@@ -52,6 +52,9 @@ module DocuSign_eSign
52
52
  #
53
53
  attr_accessor :time_zone
54
54
 
55
+ #
56
+ attr_accessor :use_long_currency_format
57
+
55
58
  # Attribute mapping from ruby-style variable name to JSON key.
56
59
  def self.attribute_map
57
60
  {
@@ -67,7 +70,8 @@ module DocuSign_eSign
67
70
  :'initial_format' => :'initialFormat',
68
71
  :'name_format' => :'nameFormat',
69
72
  :'time_format' => :'timeFormat',
70
- :'time_zone' => :'timeZone'
73
+ :'time_zone' => :'timeZone',
74
+ :'use_long_currency_format' => :'useLongCurrencyFormat'
71
75
  }
72
76
  end
73
77
 
@@ -86,7 +90,8 @@ module DocuSign_eSign
86
90
  :'initial_format' => :'String',
87
91
  :'name_format' => :'String',
88
92
  :'time_format' => :'String',
89
- :'time_zone' => :'String'
93
+ :'time_zone' => :'String',
94
+ :'use_long_currency_format' => :'String'
90
95
  }
91
96
  end
92
97
 
@@ -149,6 +154,10 @@ module DocuSign_eSign
149
154
  if attributes.has_key?(:'timeZone')
150
155
  self.time_zone = attributes[:'timeZone']
151
156
  end
157
+
158
+ if attributes.has_key?(:'useLongCurrencyFormat')
159
+ self.use_long_currency_format = attributes[:'useLongCurrencyFormat']
160
+ end
152
161
  end
153
162
 
154
163
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -181,7 +190,8 @@ module DocuSign_eSign
181
190
  initial_format == o.initial_format &&
182
191
  name_format == o.name_format &&
183
192
  time_format == o.time_format &&
184
- time_zone == o.time_zone
193
+ time_zone == o.time_zone &&
194
+ use_long_currency_format == o.use_long_currency_format
185
195
  end
186
196
 
187
197
  # @see the `==` method
@@ -193,7 +203,7 @@ module DocuSign_eSign
193
203
  # Calculates hash code according to all attributes.
194
204
  # @return [Fixnum] Hash code
195
205
  def hash
196
- [address_format, calendar_type, culture_name, currency_code, currency_negative_format, currency_positive_format, custom_date_format, custom_time_format, date_format, initial_format, name_format, time_format, time_zone].hash
206
+ [address_format, calendar_type, culture_name, currency_code, currency_negative_format, currency_positive_format, custom_date_format, custom_time_format, date_format, initial_format, name_format, time_format, time_zone, use_long_currency_format].hash
197
207
  end
198
208
 
199
209
  # Builds the object from hash