docusign_esign 3.4.0 → 3.5.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +73 -0
  3. data/docusign_esign-2.6.0.rc1.gem +0 -0
  4. data/lib/docusign_esign.rb +24 -0
  5. data/lib/docusign_esign/.DS_Store +0 -0
  6. data/lib/docusign_esign/api/.DS_Store +0 -0
  7. data/lib/docusign_esign/api/accounts_api.rb +362 -0
  8. data/lib/docusign_esign/api/bulk_envelopes_api.rb +126 -4
  9. data/lib/docusign_esign/api/envelopes_api.rb +320 -0
  10. data/lib/docusign_esign/client/.DS_Store +0 -0
  11. data/lib/docusign_esign/models/account_settings_information.rb +11 -1
  12. data/lib/docusign_esign/models/bulk_send_batch_status.rb +287 -0
  13. data/lib/docusign_esign/models/bulk_send_batch_summaries.rb +277 -0
  14. data/lib/docusign_esign/models/bulk_send_batch_summary.rb +255 -0
  15. data/lib/docusign_esign/models/bulk_send_error_status.rb +207 -0
  16. data/lib/docusign_esign/models/conditional_recipient_rule.rb +216 -0
  17. data/lib/docusign_esign/models/conditional_recipient_rule_condition.rb +207 -0
  18. data/lib/docusign_esign/models/conditional_recipient_rule_filter.rb +235 -0
  19. data/lib/docusign_esign/models/e_note_configuration.rb +11 -1
  20. data/lib/docusign_esign/models/envelope.rb +13 -4
  21. data/lib/docusign_esign/models/envelope_definition.rb +13 -4
  22. data/lib/docusign_esign/models/envelope_template.rb +13 -4
  23. data/lib/docusign_esign/models/new_user.rb +11 -1
  24. data/lib/docusign_esign/models/proof_service_resource_token.rb +14 -4
  25. data/lib/docusign_esign/models/recipient_additional_notification.rb +14 -4
  26. data/lib/docusign_esign/models/recipient_group.rb +207 -0
  27. data/lib/docusign_esign/models/recipient_option.rb +225 -0
  28. data/lib/docusign_esign/models/recipient_routing.rb +184 -0
  29. data/lib/docusign_esign/models/recipient_rules.rb +187 -0
  30. data/lib/docusign_esign/models/report_in_product_csv_run_request.rb +437 -0
  31. data/lib/docusign_esign/models/report_in_product_field.rb +215 -0
  32. data/lib/docusign_esign/models/report_in_product_get.rb +466 -0
  33. data/lib/docusign_esign/models/report_in_product_list.rb +187 -0
  34. data/lib/docusign_esign/models/report_in_product_list_item.rb +315 -0
  35. data/lib/docusign_esign/models/report_in_product_run_request.rb +397 -0
  36. data/lib/docusign_esign/models/report_in_product_run_response.rb +247 -0
  37. data/lib/docusign_esign/models/report_in_product_run_response_row.rb +194 -0
  38. data/lib/docusign_esign/models/report_in_product_run_response_row_fields.rb +1395 -0
  39. data/lib/docusign_esign/models/report_in_product_save_response.rb +185 -0
  40. data/lib/docusign_esign/models/report_in_product_sent_by_details.rb +199 -0
  41. data/lib/docusign_esign/models/sender_email_notifications.rb +11 -1
  42. data/lib/docusign_esign/models/tab_metadata.rb +21 -1
  43. data/lib/docusign_esign/models/workflow.rb +207 -0
  44. data/lib/docusign_esign/models/workflow_step.rb +254 -0
  45. data/lib/docusign_esign/version.rb +1 -1
  46. data/tests/Gemfile.lock +3 -3
  47. metadata +33 -7
  48. data/docusign_esign-2.4.0.gem +0 -0
  49. data/docusign_esign-2.5.0.rc1.gem +0 -0
  50. data/docusign_esign-3.4.0.rc1.gem +0 -0
@@ -14,6 +14,9 @@ require 'date'
14
14
 
15
15
  module DocuSign_eSign
16
16
  class ENoteConfiguration
17
+ #
18
+ attr_accessor :api_key
19
+
17
20
  #
18
21
  attr_accessor :connect_configured
19
22
 
@@ -32,6 +35,7 @@ module DocuSign_eSign
32
35
  # Attribute mapping from ruby-style variable name to JSON key.
33
36
  def self.attribute_map
34
37
  {
38
+ :'api_key' => :'apiKey',
35
39
  :'connect_configured' => :'connectConfigured',
36
40
  :'e_note_configured' => :'eNoteConfigured',
37
41
  :'organization' => :'organization',
@@ -43,6 +47,7 @@ module DocuSign_eSign
43
47
  # Attribute type mapping.
44
48
  def self.swagger_types
45
49
  {
50
+ :'api_key' => :'String',
46
51
  :'connect_configured' => :'String',
47
52
  :'e_note_configured' => :'String',
48
53
  :'organization' => :'String',
@@ -59,6 +64,10 @@ module DocuSign_eSign
59
64
  # convert string to symbol for hash key
60
65
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
61
66
 
67
+ if attributes.has_key?(:'apiKey')
68
+ self.api_key = attributes[:'apiKey']
69
+ end
70
+
62
71
  if attributes.has_key?(:'connectConfigured')
63
72
  self.connect_configured = attributes[:'connectConfigured']
64
73
  end
@@ -98,6 +107,7 @@ module DocuSign_eSign
98
107
  def ==(o)
99
108
  return true if self.equal?(o)
100
109
  self.class == o.class &&
110
+ api_key == o.api_key &&
101
111
  connect_configured == o.connect_configured &&
102
112
  e_note_configured == o.e_note_configured &&
103
113
  organization == o.organization &&
@@ -114,7 +124,7 @@ module DocuSign_eSign
114
124
  # Calculates hash code according to all attributes.
115
125
  # @return [Fixnum] Hash code
116
126
  def hash
117
- [connect_configured, e_note_configured, organization, password, user_name].hash
127
+ [api_key, connect_configured, e_note_configured, organization, password, user_name].hash
118
128
  end
119
129
 
120
130
  # Builds the object from hash
@@ -231,6 +231,8 @@ module DocuSign_eSign
231
231
  # The reason the envelope or template was voided.
232
232
  attr_accessor :voided_reason
233
233
 
234
+ attr_accessor :workflow
235
+
234
236
  # Attribute mapping from ruby-style variable name to JSON key.
235
237
  def self.attribute_map
236
238
  {
@@ -308,7 +310,8 @@ module DocuSign_eSign
308
310
  :'transaction_id' => :'transactionId',
309
311
  :'use_disclosure' => :'useDisclosure',
310
312
  :'voided_date_time' => :'voidedDateTime',
311
- :'voided_reason' => :'voidedReason'
313
+ :'voided_reason' => :'voidedReason',
314
+ :'workflow' => :'workflow'
312
315
  }
313
316
  end
314
317
 
@@ -389,7 +392,8 @@ module DocuSign_eSign
389
392
  :'transaction_id' => :'String',
390
393
  :'use_disclosure' => :'String',
391
394
  :'voided_date_time' => :'String',
392
- :'voided_reason' => :'String'
395
+ :'voided_reason' => :'String',
396
+ :'workflow' => :'Workflow'
393
397
  }
394
398
  end
395
399
 
@@ -706,6 +710,10 @@ module DocuSign_eSign
706
710
  if attributes.has_key?(:'voidedReason')
707
711
  self.voided_reason = attributes[:'voidedReason']
708
712
  end
713
+
714
+ if attributes.has_key?(:'workflow')
715
+ self.workflow = attributes[:'workflow']
716
+ end
709
717
  end
710
718
 
711
719
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -800,7 +808,8 @@ module DocuSign_eSign
800
808
  transaction_id == o.transaction_id &&
801
809
  use_disclosure == o.use_disclosure &&
802
810
  voided_date_time == o.voided_date_time &&
803
- voided_reason == o.voided_reason
811
+ voided_reason == o.voided_reason &&
812
+ workflow == o.workflow
804
813
  end
805
814
 
806
815
  # @see the `==` method
@@ -812,7 +821,7 @@ module DocuSign_eSign
812
821
  # Calculates hash code according to all attributes.
813
822
  # @return [Fixnum] Hash code
814
823
  def hash
815
- [access_control_list_base64, allow_comments, allow_markup, allow_reassign, allow_view_history, any_signer, asynchronous, attachments_uri, authoritative_copy, authoritative_copy_default, auto_navigation, brand_id, brand_lock, certificate_uri, completed_date_time, copy_recipient_data, created_date_time, custom_fields, custom_fields_uri, declined_date_time, deleted_date_time, delivered_date_time, disable_responsive_document, documents_combined_uri, documents_uri, email_blurb, email_settings, email_subject, enable_wet_sign, enforce_signer_visibility, envelope_attachments, envelope_documents, envelope_id, envelope_id_stamping, envelope_location, envelope_metadata, envelope_uri, expire_after, expire_date_time, expire_enabled, external_envelope_id, 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_date_time, location, lock_information, message_lock, notification, notification_uri, power_form, purge_completed_date, purge_request_date, purge_state, recipients, recipients_lock, recipients_uri, sender, sent_date_time, signer_can_sign_on_mobile, signing_location, status, status_changed_date_time, status_date_time, templates_uri, transaction_id, use_disclosure, voided_date_time, voided_reason].hash
824
+ [access_control_list_base64, allow_comments, allow_markup, allow_reassign, allow_view_history, any_signer, asynchronous, attachments_uri, authoritative_copy, authoritative_copy_default, auto_navigation, brand_id, brand_lock, certificate_uri, completed_date_time, copy_recipient_data, created_date_time, custom_fields, custom_fields_uri, declined_date_time, deleted_date_time, delivered_date_time, disable_responsive_document, documents_combined_uri, documents_uri, email_blurb, email_settings, email_subject, enable_wet_sign, enforce_signer_visibility, envelope_attachments, envelope_documents, envelope_id, envelope_id_stamping, envelope_location, envelope_metadata, envelope_uri, expire_after, expire_date_time, expire_enabled, external_envelope_id, 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_date_time, location, lock_information, message_lock, notification, notification_uri, power_form, purge_completed_date, purge_request_date, purge_state, recipients, recipients_lock, recipients_uri, sender, sent_date_time, signer_can_sign_on_mobile, signing_location, status, status_changed_date_time, status_date_time, templates_uri, transaction_id, use_disclosure, voided_date_time, voided_reason, workflow].hash
816
825
  end
817
826
 
818
827
  # Builds the object from hash
@@ -260,6 +260,8 @@ module DocuSign_eSign
260
260
  # The reason the envelope or template was voided.
261
261
  attr_accessor :voided_reason
262
262
 
263
+ attr_accessor :workflow
264
+
263
265
  # Attribute mapping from ruby-style variable name to JSON key.
264
266
  def self.attribute_map
265
267
  {
@@ -347,7 +349,8 @@ module DocuSign_eSign
347
349
  :'transaction_id' => :'transactionId',
348
350
  :'use_disclosure' => :'useDisclosure',
349
351
  :'voided_date_time' => :'voidedDateTime',
350
- :'voided_reason' => :'voidedReason'
352
+ :'voided_reason' => :'voidedReason',
353
+ :'workflow' => :'workflow'
351
354
  }
352
355
  end
353
356
 
@@ -438,7 +441,8 @@ module DocuSign_eSign
438
441
  :'transaction_id' => :'String',
439
442
  :'use_disclosure' => :'String',
440
443
  :'voided_date_time' => :'String',
441
- :'voided_reason' => :'String'
444
+ :'voided_reason' => :'String',
445
+ :'workflow' => :'Workflow'
442
446
  }
443
447
  end
444
448
 
@@ -805,6 +809,10 @@ module DocuSign_eSign
805
809
  if attributes.has_key?(:'voidedReason')
806
810
  self.voided_reason = attributes[:'voidedReason']
807
811
  end
812
+
813
+ if attributes.has_key?(:'workflow')
814
+ self.workflow = attributes[:'workflow']
815
+ end
808
816
  end
809
817
 
810
818
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -909,7 +917,8 @@ module DocuSign_eSign
909
917
  transaction_id == o.transaction_id &&
910
918
  use_disclosure == o.use_disclosure &&
911
919
  voided_date_time == o.voided_date_time &&
912
- voided_reason == o.voided_reason
920
+ voided_reason == o.voided_reason &&
921
+ workflow == o.workflow
913
922
  end
914
923
 
915
924
  # @see the `==` method
@@ -921,7 +930,7 @@ module DocuSign_eSign
921
930
  # Calculates hash code according to all attributes.
922
931
  # @return [Fixnum] Hash code
923
932
  def hash
924
- [access_control_list_base64, accessibility, allow_comments, allow_markup, allow_reassign, allow_recipient_recursion, allow_view_history, any_signer, asynchronous, attachments, attachments_uri, authoritative_copy, authoritative_copy_default, auto_navigation, brand_id, brand_lock, certificate_uri, completed_date_time, composite_templates, copy_recipient_data, created_date_time, custom_fields, custom_fields_uri, declined_date_time, deleted_date_time, delivered_date_time, disable_responsive_document, documents, documents_combined_uri, documents_uri, email_blurb, email_settings, email_subject, enable_wet_sign, enforce_signer_visibility, envelope_attachments, envelope_documents, envelope_id, envelope_id_stamping, envelope_location, envelope_metadata, envelope_uri, event_notification, event_notifications, expire_after, expire_date_time, expire_enabled, external_envelope_id, 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_date_time, location, lock_information, message_lock, notification, notification_uri, password, power_form, purge_completed_date, purge_request_date, purge_state, recipients, recipients_lock, recipients_uri, sender, sent_date_time, signer_can_sign_on_mobile, signing_location, status, status_changed_date_time, status_date_time, template_id, template_roles, templates_uri, transaction_id, use_disclosure, voided_date_time, voided_reason].hash
933
+ [access_control_list_base64, accessibility, allow_comments, allow_markup, allow_reassign, allow_recipient_recursion, allow_view_history, any_signer, asynchronous, attachments, attachments_uri, authoritative_copy, authoritative_copy_default, auto_navigation, brand_id, brand_lock, certificate_uri, completed_date_time, composite_templates, copy_recipient_data, created_date_time, custom_fields, custom_fields_uri, declined_date_time, deleted_date_time, delivered_date_time, disable_responsive_document, documents, documents_combined_uri, documents_uri, email_blurb, email_settings, email_subject, enable_wet_sign, enforce_signer_visibility, envelope_attachments, envelope_documents, envelope_id, envelope_id_stamping, envelope_location, envelope_metadata, envelope_uri, event_notification, event_notifications, expire_after, expire_date_time, expire_enabled, external_envelope_id, 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_date_time, location, lock_information, message_lock, notification, notification_uri, password, power_form, purge_completed_date, purge_request_date, purge_state, recipients, recipients_lock, recipients_uri, sender, sent_date_time, signer_can_sign_on_mobile, signing_location, status, status_changed_date_time, status_date_time, template_id, template_roles, templates_uri, transaction_id, use_disclosure, voided_date_time, voided_reason, workflow].hash
925
934
  end
926
935
 
927
936
  # Builds the object from hash
@@ -295,6 +295,8 @@ module DocuSign_eSign
295
295
  # The reason the envelope or template was voided.
296
296
  attr_accessor :voided_reason
297
297
 
298
+ attr_accessor :workflow
299
+
298
300
  # Attribute mapping from ruby-style variable name to JSON key.
299
301
  def self.attribute_map
300
302
  {
@@ -394,7 +396,8 @@ module DocuSign_eSign
394
396
  :'uri' => :'uri',
395
397
  :'use_disclosure' => :'useDisclosure',
396
398
  :'voided_date_time' => :'voidedDateTime',
397
- :'voided_reason' => :'voidedReason'
399
+ :'voided_reason' => :'voidedReason',
400
+ :'workflow' => :'workflow'
398
401
  }
399
402
  end
400
403
 
@@ -497,7 +500,8 @@ module DocuSign_eSign
497
500
  :'uri' => :'String',
498
501
  :'use_disclosure' => :'String',
499
502
  :'voided_date_time' => :'String',
500
- :'voided_reason' => :'String'
503
+ :'voided_reason' => :'String',
504
+ :'workflow' => :'Workflow'
501
505
  }
502
506
  end
503
507
 
@@ -908,6 +912,10 @@ module DocuSign_eSign
908
912
  if attributes.has_key?(:'voidedReason')
909
913
  self.voided_reason = attributes[:'voidedReason']
910
914
  end
915
+
916
+ if attributes.has_key?(:'workflow')
917
+ self.workflow = attributes[:'workflow']
918
+ end
911
919
  end
912
920
 
913
921
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -1024,7 +1032,8 @@ module DocuSign_eSign
1024
1032
  uri == o.uri &&
1025
1033
  use_disclosure == o.use_disclosure &&
1026
1034
  voided_date_time == o.voided_date_time &&
1027
- voided_reason == o.voided_reason
1035
+ voided_reason == o.voided_reason &&
1036
+ workflow == o.workflow
1028
1037
  end
1029
1038
 
1030
1039
  # @see the `==` method
@@ -1036,7 +1045,7 @@ module DocuSign_eSign
1036
1045
  # Calculates hash code according to all attributes.
1037
1046
  # @return [Fixnum] Hash code
1038
1047
  def hash
1039
- [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, documents, documents_combined_uri, documents_uri, email_blurb, email_settings, email_subject, enable_wet_sign, enforce_signer_visibility, envelope_attachments, 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].hash
1048
+ [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, documents, documents_combined_uri, documents_uri, email_blurb, email_settings, email_subject, enable_wet_sign, enforce_signer_visibility, envelope_attachments, 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
1040
1049
  end
1041
1050
 
1042
1051
  # Builds the object from hash
@@ -25,6 +25,9 @@ module DocuSign_eSign
25
25
 
26
26
  attr_accessor :error_details
27
27
 
28
+ #
29
+ attr_accessor :membership_id
30
+
28
31
  #
29
32
  attr_accessor :permission_profile_id
30
33
 
@@ -50,6 +53,7 @@ module DocuSign_eSign
50
53
  :'created_date_time' => :'createdDateTime',
51
54
  :'email' => :'email',
52
55
  :'error_details' => :'errorDetails',
56
+ :'membership_id' => :'membershipId',
53
57
  :'permission_profile_id' => :'permissionProfileId',
54
58
  :'permission_profile_name' => :'permissionProfileName',
55
59
  :'uri' => :'uri',
@@ -66,6 +70,7 @@ module DocuSign_eSign
66
70
  :'created_date_time' => :'String',
67
71
  :'email' => :'String',
68
72
  :'error_details' => :'ErrorDetails',
73
+ :'membership_id' => :'String',
69
74
  :'permission_profile_id' => :'String',
70
75
  :'permission_profile_name' => :'String',
71
76
  :'uri' => :'String',
@@ -99,6 +104,10 @@ module DocuSign_eSign
99
104
  self.error_details = attributes[:'errorDetails']
100
105
  end
101
106
 
107
+ if attributes.has_key?(:'membershipId')
108
+ self.membership_id = attributes[:'membershipId']
109
+ end
110
+
102
111
  if attributes.has_key?(:'permissionProfileId')
103
112
  self.permission_profile_id = attributes[:'permissionProfileId']
104
113
  end
@@ -146,6 +155,7 @@ module DocuSign_eSign
146
155
  created_date_time == o.created_date_time &&
147
156
  email == o.email &&
148
157
  error_details == o.error_details &&
158
+ membership_id == o.membership_id &&
149
159
  permission_profile_id == o.permission_profile_id &&
150
160
  permission_profile_name == o.permission_profile_name &&
151
161
  uri == o.uri &&
@@ -163,7 +173,7 @@ module DocuSign_eSign
163
173
  # Calculates hash code according to all attributes.
164
174
  # @return [Fixnum] Hash code
165
175
  def hash
166
- [api_password, created_date_time, email, error_details, permission_profile_id, permission_profile_name, uri, user_id, user_name, user_status].hash
176
+ [api_password, created_date_time, email, error_details, membership_id, permission_profile_id, permission_profile_name, uri, user_id, user_name, user_status].hash
167
177
  end
168
178
 
169
179
  # Builds the object from hash
@@ -14,19 +14,24 @@ require 'date'
14
14
 
15
15
  module DocuSign_eSign
16
16
  class ProofServiceResourceToken
17
+ #
18
+ attr_accessor :proof_base_uri
19
+
17
20
  #
18
21
  attr_accessor :resource_token
19
22
 
20
23
  # Attribute mapping from ruby-style variable name to JSON key.
21
24
  def self.attribute_map
22
25
  {
23
- :'resource_token' => :'ResourceToken'
26
+ :'proof_base_uri' => :'proofBaseURI',
27
+ :'resource_token' => :'resourceToken'
24
28
  }
25
29
  end
26
30
 
27
31
  # Attribute type mapping.
28
32
  def self.swagger_types
29
33
  {
34
+ :'proof_base_uri' => :'String',
30
35
  :'resource_token' => :'String'
31
36
  }
32
37
  end
@@ -39,8 +44,12 @@ module DocuSign_eSign
39
44
  # convert string to symbol for hash key
40
45
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
41
46
 
42
- if attributes.has_key?(:'ResourceToken')
43
- self.resource_token = attributes[:'ResourceToken']
47
+ if attributes.has_key?(:'proofBaseURI')
48
+ self.proof_base_uri = attributes[:'proofBaseURI']
49
+ end
50
+
51
+ if attributes.has_key?(:'resourceToken')
52
+ self.resource_token = attributes[:'resourceToken']
44
53
  end
45
54
  end
46
55
 
@@ -62,6 +71,7 @@ module DocuSign_eSign
62
71
  def ==(o)
63
72
  return true if self.equal?(o)
64
73
  self.class == o.class &&
74
+ proof_base_uri == o.proof_base_uri &&
65
75
  resource_token == o.resource_token
66
76
  end
67
77
 
@@ -74,7 +84,7 @@ module DocuSign_eSign
74
84
  # Calculates hash code according to all attributes.
75
85
  # @return [Fixnum] Hash code
76
86
  def hash
77
- [resource_token].hash
87
+ [proof_base_uri, resource_token].hash
78
88
  end
79
89
 
80
90
  # Builds the object from hash
@@ -21,12 +21,16 @@ module DocuSign_eSign
21
21
 
22
22
  attr_accessor :secondary_delivery_method_metadata
23
23
 
24
+ #
25
+ attr_accessor :secondary_delivery_status
26
+
24
27
  # Attribute mapping from ruby-style variable name to JSON key.
25
28
  def self.attribute_map
26
29
  {
27
30
  :'phone_number' => :'phoneNumber',
28
31
  :'secondary_delivery_method' => :'secondaryDeliveryMethod',
29
- :'secondary_delivery_method_metadata' => :'secondaryDeliveryMethodMetadata'
32
+ :'secondary_delivery_method_metadata' => :'secondaryDeliveryMethodMetadata',
33
+ :'secondary_delivery_status' => :'secondaryDeliveryStatus'
30
34
  }
31
35
  end
32
36
 
@@ -35,7 +39,8 @@ module DocuSign_eSign
35
39
  {
36
40
  :'phone_number' => :'RecipientPhoneNumber',
37
41
  :'secondary_delivery_method' => :'String',
38
- :'secondary_delivery_method_metadata' => :'PropertyMetadata'
42
+ :'secondary_delivery_method_metadata' => :'PropertyMetadata',
43
+ :'secondary_delivery_status' => :'String'
39
44
  }
40
45
  end
41
46
 
@@ -58,6 +63,10 @@ module DocuSign_eSign
58
63
  if attributes.has_key?(:'secondaryDeliveryMethodMetadata')
59
64
  self.secondary_delivery_method_metadata = attributes[:'secondaryDeliveryMethodMetadata']
60
65
  end
66
+
67
+ if attributes.has_key?(:'secondaryDeliveryStatus')
68
+ self.secondary_delivery_status = attributes[:'secondaryDeliveryStatus']
69
+ end
61
70
  end
62
71
 
63
72
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -80,7 +89,8 @@ module DocuSign_eSign
80
89
  self.class == o.class &&
81
90
  phone_number == o.phone_number &&
82
91
  secondary_delivery_method == o.secondary_delivery_method &&
83
- secondary_delivery_method_metadata == o.secondary_delivery_method_metadata
92
+ secondary_delivery_method_metadata == o.secondary_delivery_method_metadata &&
93
+ secondary_delivery_status == o.secondary_delivery_status
84
94
  end
85
95
 
86
96
  # @see the `==` method
@@ -92,7 +102,7 @@ module DocuSign_eSign
92
102
  # Calculates hash code according to all attributes.
93
103
  # @return [Fixnum] Hash code
94
104
  def hash
95
- [phone_number, secondary_delivery_method, secondary_delivery_method_metadata].hash
105
+ [phone_number, secondary_delivery_method, secondary_delivery_method_metadata, secondary_delivery_status].hash
96
106
  end
97
107
 
98
108
  # Builds the object from hash
@@ -0,0 +1,207 @@
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
+ Swagger Codegen version: 2.4.13-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module DocuSign_eSign
16
+ class RecipientGroup
17
+ #
18
+ attr_accessor :group_message
19
+
20
+ # The name of the group.
21
+ attr_accessor :group_name
22
+
23
+ # An array of powerform recipients.
24
+ attr_accessor :recipients
25
+
26
+ # Attribute mapping from ruby-style variable name to JSON key.
27
+ def self.attribute_map
28
+ {
29
+ :'group_message' => :'groupMessage',
30
+ :'group_name' => :'groupName',
31
+ :'recipients' => :'recipients'
32
+ }
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.swagger_types
37
+ {
38
+ :'group_message' => :'String',
39
+ :'group_name' => :'String',
40
+ :'recipients' => :'Array<RecipientOption>'
41
+ }
42
+ end
43
+
44
+ # Initializes the object
45
+ # @param [Hash] attributes Model attributes in the form of hash
46
+ def initialize(attributes = {})
47
+ return unless attributes.is_a?(Hash)
48
+
49
+ # convert string to symbol for hash key
50
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
51
+
52
+ if attributes.has_key?(:'groupMessage')
53
+ self.group_message = attributes[:'groupMessage']
54
+ end
55
+
56
+ if attributes.has_key?(:'groupName')
57
+ self.group_name = attributes[:'groupName']
58
+ end
59
+
60
+ if attributes.has_key?(:'recipients')
61
+ if (value = attributes[:'recipients']).is_a?(Array)
62
+ self.recipients = value
63
+ end
64
+ end
65
+ end
66
+
67
+ # Show invalid properties with the reasons. Usually used together with valid?
68
+ # @return Array for valid properties with the reasons
69
+ def list_invalid_properties
70
+ invalid_properties = Array.new
71
+ invalid_properties
72
+ end
73
+
74
+ # Check to see if the all the properties in the model are valid
75
+ # @return true if the model is valid
76
+ def valid?
77
+ true
78
+ end
79
+
80
+ # Checks equality by comparing each attribute.
81
+ # @param [Object] Object to be compared
82
+ def ==(o)
83
+ return true if self.equal?(o)
84
+ self.class == o.class &&
85
+ group_message == o.group_message &&
86
+ group_name == o.group_name &&
87
+ recipients == o.recipients
88
+ end
89
+
90
+ # @see the `==` method
91
+ # @param [Object] Object to be compared
92
+ def eql?(o)
93
+ self == o
94
+ end
95
+
96
+ # Calculates hash code according to all attributes.
97
+ # @return [Fixnum] Hash code
98
+ def hash
99
+ [group_message, group_name, recipients].hash
100
+ end
101
+
102
+ # Builds the object from hash
103
+ # @param [Hash] attributes Model attributes in the form of hash
104
+ # @return [Object] Returns the model itself
105
+ def build_from_hash(attributes)
106
+ return nil unless attributes.is_a?(Hash)
107
+ self.class.swagger_types.each_pair do |key, type|
108
+ if type =~ /\AArray<(.*)>/i
109
+ # check to ensure the input is an array given that the attribute
110
+ # is documented as an array but the input is not
111
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
112
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
113
+ end
114
+ elsif !attributes[self.class.attribute_map[key]].nil?
115
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
116
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
117
+ end
118
+
119
+ self
120
+ end
121
+
122
+ # Deserializes the data based on type
123
+ # @param string type Data type
124
+ # @param string value Value to be deserialized
125
+ # @return [Object] Deserialized data
126
+ def _deserialize(type, value)
127
+ case type.to_sym
128
+ when :DateTime
129
+ DateTime.parse(value)
130
+ when :Date
131
+ Date.parse(value)
132
+ when :String
133
+ value.to_s
134
+ when :Integer
135
+ value.to_i
136
+ when :Float
137
+ value.to_f
138
+ when :BOOLEAN
139
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
140
+ true
141
+ else
142
+ false
143
+ end
144
+ when :Object
145
+ # generic object (usually a Hash), return directly
146
+ value
147
+ when /\AArray<(?<inner_type>.+)>\z/
148
+ inner_type = Regexp.last_match[:inner_type]
149
+ value.map { |v| _deserialize(inner_type, v) }
150
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
151
+ k_type = Regexp.last_match[:k_type]
152
+ v_type = Regexp.last_match[:v_type]
153
+ {}.tap do |hash|
154
+ value.each do |k, v|
155
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
156
+ end
157
+ end
158
+ else # model
159
+ temp_model = DocuSign_eSign.const_get(type).new
160
+ temp_model.build_from_hash(value)
161
+ end
162
+ end
163
+
164
+ # Returns the string representation of the object
165
+ # @return [String] String presentation of the object
166
+ def to_s
167
+ to_hash.to_s
168
+ end
169
+
170
+ # to_body is an alias to to_hash (backward compatibility)
171
+ # @return [Hash] Returns the object in the form of hash
172
+ def to_body
173
+ to_hash
174
+ end
175
+
176
+ # Returns the object in the form of hash
177
+ # @return [Hash] Returns the object in the form of hash
178
+ def to_hash
179
+ hash = {}
180
+ self.class.attribute_map.each_pair do |attr, param|
181
+ value = self.send(attr)
182
+ next if value.nil?
183
+ hash[param] = _to_hash(value)
184
+ end
185
+ hash
186
+ end
187
+
188
+ # Outputs non-array value in the form of hash
189
+ # For object, use to_hash. Otherwise, just return the value
190
+ # @param [Object] value Any valid value
191
+ # @return [Hash] Returns the value in the form of hash
192
+ def _to_hash(value)
193
+ if value.is_a?(Array)
194
+ value.compact.map { |v| _to_hash(v) }
195
+ elsif value.is_a?(Hash)
196
+ {}.tap do |hash|
197
+ value.each { |k, v| hash[k] = _to_hash(v) }
198
+ end
199
+ elsif value.respond_to? :to_hash
200
+ value.to_hash
201
+ else
202
+ value
203
+ end
204
+ end
205
+
206
+ end
207
+ end