dropbox-sign 1.1.2 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +6 -3
  3. data/README.md +9 -4
  4. data/VERSION +1 -1
  5. data/docs/BulkSendJobGetResponseSignatureRequests.md +1 -0
  6. data/docs/EmbeddedEditUrlRequest.md +1 -1
  7. data/docs/EventCallbackRequestEvent.md +1 -1
  8. data/docs/OAuthApi.md +0 -16
  9. data/docs/SignatureRequestApi.md +11 -10
  10. data/docs/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.md +1 -1
  11. data/docs/SignatureRequestBulkSendWithTemplateRequest.md +1 -1
  12. data/docs/SignatureRequestCreateEmbeddedRequest.md +4 -4
  13. data/docs/SignatureRequestCreateEmbeddedWithTemplateRequest.md +1 -1
  14. data/docs/SignatureRequestResponse.md +2 -0
  15. data/docs/SignatureRequestSendRequest.md +5 -4
  16. data/docs/SignatureRequestSendWithTemplateRequest.md +2 -1
  17. data/docs/SignatureRequestUpdateRequest.md +2 -2
  18. data/docs/SubAttachment.md +1 -1
  19. data/docs/SubCustomField.md +1 -1
  20. data/docs/SubFieldOptions.md +1 -1
  21. data/docs/SubFormFieldsPerDocumentBase.md +2 -2
  22. data/docs/SubFormFieldsPerDocumentDateSigned.md +2 -0
  23. data/docs/SubFormFieldsPerDocumentDropdown.md +2 -0
  24. data/docs/SubFormFieldsPerDocumentFontEnum.md +9 -0
  25. data/docs/SubFormFieldsPerDocumentHyperlink.md +2 -0
  26. data/docs/SubFormFieldsPerDocumentText.md +4 -1
  27. data/docs/SubFormFieldsPerDocumentTextMerge.md +2 -0
  28. data/docs/SubSignatureRequestGroupedSigners.md +1 -1
  29. data/docs/SubSignatureRequestSigner.md +1 -1
  30. data/docs/SubSignatureRequestTemplateSigner.md +1 -1
  31. data/docs/SubSigningOptions.md +1 -1
  32. data/docs/SubWhiteLabelingOptions.md +1 -1
  33. data/docs/TeamAddMemberRequest.md +1 -1
  34. data/docs/TeamRemoveMemberRequest.md +2 -2
  35. data/docs/TemplateAddUserRequest.md +2 -2
  36. data/docs/TemplateApi.md +106 -3
  37. data/docs/TemplateCreateEmbeddedDraftRequest.md +2 -2
  38. data/docs/TemplateCreateRequest.md +27 -0
  39. data/docs/TemplateCreateResponse.md +11 -0
  40. data/docs/TemplateCreateResponseTemplate.md +10 -0
  41. data/docs/TemplateResponseDocument.md +1 -1
  42. data/docs/TemplateResponseDocumentStaticFieldBase.md +1 -1
  43. data/docs/UnclaimedDraftApi.md +3 -3
  44. data/docs/UnclaimedDraftCreateEmbeddedRequest.md +4 -4
  45. data/docs/UnclaimedDraftCreateEmbeddedWithTemplateRequest.md +4 -3
  46. data/docs/UnclaimedDraftCreateRequest.md +2 -2
  47. data/examples/OauthTokenGenerate.rb +0 -8
  48. data/examples/OauthTokenRefresh.rb +0 -8
  49. data/examples/SignatureRequestEdit.rb +58 -0
  50. data/examples/SignatureRequestEditEmbedded.rb +48 -0
  51. data/examples/SignatureRequestEditEmbeddedWithTemplate.rb +41 -0
  52. data/examples/SignatureRequestEditWithTemplate.rb +52 -0
  53. data/examples/TemplateCreate.rb +49 -0
  54. data/lib/dropbox-sign/api/api_app_api.rb +1 -1
  55. data/lib/dropbox-sign/api/signature_request_api.rb +17 -14
  56. data/lib/dropbox-sign/api/team_api.rb +1 -1
  57. data/lib/dropbox-sign/api/template_api.rb +112 -0
  58. data/lib/dropbox-sign/api/unclaimed_draft_api.rb +6 -6
  59. data/lib/dropbox-sign/event_callback_helper.rb +1 -1
  60. data/lib/dropbox-sign/models/bulk_send_job_get_response_signature_requests.rb +13 -1
  61. data/lib/dropbox-sign/models/embedded_edit_url_request.rb +1 -1
  62. data/lib/dropbox-sign/models/event_callback_request_event.rb +2 -7
  63. data/lib/dropbox-sign/models/signature_request_bulk_create_embedded_with_template_request.rb +1 -1
  64. data/lib/dropbox-sign/models/signature_request_bulk_send_with_template_request.rb +1 -1
  65. data/lib/dropbox-sign/models/signature_request_create_embedded_request.rb +4 -4
  66. data/lib/dropbox-sign/models/signature_request_create_embedded_with_template_request.rb +1 -1
  67. data/lib/dropbox-sign/models/signature_request_response.rb +28 -4
  68. data/lib/dropbox-sign/models/signature_request_send_request.rb +18 -5
  69. data/lib/dropbox-sign/models/signature_request_send_with_template_request.rb +15 -2
  70. data/lib/dropbox-sign/models/signature_request_update_request.rb +2 -2
  71. data/lib/dropbox-sign/models/sub_attachment.rb +1 -1
  72. data/lib/dropbox-sign/models/sub_custom_field.rb +1 -1
  73. data/lib/dropbox-sign/models/sub_field_options.rb +1 -1
  74. data/lib/dropbox-sign/models/sub_form_fields_per_document_base.rb +2 -2
  75. data/lib/dropbox-sign/models/sub_form_fields_per_document_date_signed.rb +62 -4
  76. data/lib/dropbox-sign/models/sub_form_fields_per_document_dropdown.rb +62 -4
  77. data/lib/dropbox-sign/models/sub_form_fields_per_document_font_enum.rb +54 -0
  78. data/lib/dropbox-sign/models/sub_form_fields_per_document_hyperlink.rb +62 -4
  79. data/lib/dropbox-sign/models/sub_form_fields_per_document_text.rb +52 -5
  80. data/lib/dropbox-sign/models/sub_form_fields_per_document_text_merge.rb +62 -4
  81. data/lib/dropbox-sign/models/sub_signature_request_grouped_signers.rb +1 -1
  82. data/lib/dropbox-sign/models/sub_signature_request_signer.rb +1 -1
  83. data/lib/dropbox-sign/models/sub_signature_request_template_signer.rb +1 -1
  84. data/lib/dropbox-sign/models/sub_signing_options.rb +1 -1
  85. data/lib/dropbox-sign/models/sub_white_labeling_options.rb +1 -1
  86. data/lib/dropbox-sign/models/team_add_member_request.rb +1 -1
  87. data/lib/dropbox-sign/models/team_remove_member_request.rb +2 -2
  88. data/lib/dropbox-sign/models/template_add_user_request.rb +2 -2
  89. data/lib/dropbox-sign/models/template_create_embedded_draft_request.rb +2 -2
  90. data/lib/dropbox-sign/models/template_create_request.rb +509 -0
  91. data/lib/dropbox-sign/models/template_create_response.rb +263 -0
  92. data/lib/dropbox-sign/models/template_create_response_template.rb +252 -0
  93. data/lib/dropbox-sign/models/template_response_document.rb +1 -1
  94. data/lib/dropbox-sign/models/template_response_document_static_field_base.rb +1 -1
  95. data/lib/dropbox-sign/models/unclaimed_draft_create_embedded_request.rb +4 -4
  96. data/lib/dropbox-sign/models/unclaimed_draft_create_embedded_with_template_request.rb +20 -7
  97. data/lib/dropbox-sign/models/unclaimed_draft_create_request.rb +2 -2
  98. data/lib/dropbox-sign/version.rb +1 -1
  99. data/lib/dropbox-sign.rb +4 -0
  100. data/openapi-config.yaml +1 -1
  101. data/openapi-sdk.yaml +1010 -499
  102. data/spec/event_callback_helper_spec.rb +17 -3
  103. data/templates/event_callback_helper.mustache +1 -1
  104. data/test_fixtures/EventCallbackHelper_AccountCallbacks.json +82 -0
  105. data/test_fixtures/{EventCallbackHelper.json → EventCallbackHelper_AppCallbacks.json} +8 -4
  106. data/test_fixtures/SignatureRequestCreateEmbeddedRequest.json +6 -2
  107. data/test_fixtures/SignatureRequestSendRequest.json +20 -8
  108. data/test_fixtures/SignatureRequestSendWithTemplateRequest.json +1 -0
  109. data/test_fixtures/SubFormFieldsPerDocument.json +8 -4
  110. data/test_fixtures/TemplateCreateEmbeddedDraftRequest.json +3 -1
  111. data/test_fixtures/TemplateCreateRequest.json +120 -0
  112. data/test_fixtures/TemplateCreateResponse.json +7 -0
  113. data/test_fixtures/UnclaimedDraftCreateEmbeddedRequest.json +3 -1
  114. data/test_fixtures/UnclaimedDraftCreateEmbeddedWithTemplateRequest.json +2 -1
  115. data/test_fixtures/UnclaimedDraftCreateRequest.json +3 -1
  116. metadata +27 -11
@@ -31,12 +31,44 @@ module Dropbox::Sign
31
31
  # @return [String]
32
32
  attr_accessor :content_url
33
33
 
34
+ # Font family for the field.
35
+ # @return [String]
36
+ attr_accessor :font_family
37
+
38
+ # The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field.
39
+ # @return [Integer]
40
+ attr_accessor :font_size
41
+
42
+ class EnumAttributeValidator
43
+ attr_reader :datatype
44
+ attr_reader :allowable_values
45
+
46
+ def initialize(datatype, allowable_values)
47
+ @allowable_values = allowable_values.map do |value|
48
+ case datatype.to_s
49
+ when /Integer/i
50
+ value.to_i
51
+ when /Float/i
52
+ value.to_f
53
+ else
54
+ value
55
+ end
56
+ end
57
+ end
58
+
59
+ def valid?(value)
60
+ !value || allowable_values.include?(value)
61
+ end
62
+ end
63
+
34
64
  # Attribute mapping from ruby-style variable name to JSON key.
35
65
  def self.attribute_map
36
66
  {
37
67
  :'type' => :'type',
38
68
  :'content' => :'content',
39
- :'content_url' => :'content_url'
69
+ :'content_url' => :'content_url',
70
+ :'font_family' => :'font_family',
71
+ :'font_size' => :'font_size'
40
72
  }
41
73
  end
42
74
 
@@ -55,7 +87,9 @@ module Dropbox::Sign
55
87
  {
56
88
  :'type' => :'String',
57
89
  :'content' => :'String',
58
- :'content_url' => :'String'
90
+ :'content_url' => :'String',
91
+ :'font_family' => :'String',
92
+ :'font_size' => :'Integer'
59
93
  }
60
94
  end
61
95
 
@@ -116,6 +150,16 @@ module Dropbox::Sign
116
150
  if attributes.key?(:'content_url')
117
151
  self.content_url = attributes[:'content_url']
118
152
  end
153
+
154
+ if attributes.key?(:'font_family')
155
+ self.font_family = attributes[:'font_family']
156
+ end
157
+
158
+ if attributes.key?(:'font_size')
159
+ self.font_size = attributes[:'font_size']
160
+ else
161
+ self.font_size = 12
162
+ end
119
163
  end
120
164
 
121
165
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -143,9 +187,21 @@ module Dropbox::Sign
143
187
  return false if @type.nil?
144
188
  return false if @content.nil?
145
189
  return false if @content_url.nil?
190
+ font_family_validator = EnumAttributeValidator.new('String', ["helvetica", "arial", "courier", "calibri", "cambria", "georgia", "times", "trebuchet", "verdana", "roboto", "robotoMono", "notoSans", "notoSerif", "notoCJK-JP-Regular", "notoHebrew-Regular", "notoSanThaiMerged"])
191
+ return false unless font_family_validator.valid?(@font_family)
146
192
  true && super
147
193
  end
148
194
 
195
+ # Custom attribute writer method checking allowed values (enum).
196
+ # @param [Object] font_family Object to be assigned
197
+ def font_family=(font_family)
198
+ validator = EnumAttributeValidator.new('String', ["helvetica", "arial", "courier", "calibri", "cambria", "georgia", "times", "trebuchet", "verdana", "roboto", "robotoMono", "notoSans", "notoSerif", "notoCJK-JP-Regular", "notoHebrew-Regular", "notoSanThaiMerged"])
199
+ unless validator.valid?(font_family)
200
+ fail ArgumentError, "invalid value for \"font_family\", must be one of #{validator.allowable_values}."
201
+ end
202
+ @font_family = font_family
203
+ end
204
+
149
205
  # Checks equality by comparing each attribute.
150
206
  # @param [Object] Object to be compared
151
207
  def ==(o)
@@ -153,7 +209,9 @@ module Dropbox::Sign
153
209
  self.class == o.class &&
154
210
  type == o.type &&
155
211
  content == o.content &&
156
- content_url == o.content_url && super(o)
212
+ content_url == o.content_url &&
213
+ font_family == o.font_family &&
214
+ font_size == o.font_size && super(o)
157
215
  end
158
216
 
159
217
  # @see the `==` method
@@ -165,7 +223,7 @@ module Dropbox::Sign
165
223
  # Calculates hash code according to all attributes.
166
224
  # @return [Integer] Hash code
167
225
  def hash
168
- [type, content, content_url].hash
226
+ [type, content, content_url, font_family, font_size].hash
169
227
  end
170
228
 
171
229
  # Builds the object from hash
@@ -39,7 +39,7 @@ module Dropbox::Sign
39
39
  # @return [Boolean]
40
40
  attr_accessor :masked
41
41
 
42
- # Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. **NOTE**: When using `custom_regex` you are required to pass a second parameter `validation_custom_regex` and you can optionally provide `validation_custom_regex_format_label` for the error message the user will see in case of an invalid value.
42
+ # Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. **NOTE:** When using `custom_regex` you are required to pass a second parameter `validation_custom_regex` and you can optionally provide `validation_custom_regex_format_label` for the error message the user will see in case of an invalid value.
43
43
  # @return [String]
44
44
  attr_accessor :validation_type
45
45
 
@@ -49,6 +49,18 @@ module Dropbox::Sign
49
49
  # @return [String]
50
50
  attr_accessor :validation_custom_regex_format_label
51
51
 
52
+ # Content of a `me_now` text field
53
+ # @return [String]
54
+ attr_accessor :content
55
+
56
+ # Font family for the field.
57
+ # @return [String]
58
+ attr_accessor :font_family
59
+
60
+ # The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field.
61
+ # @return [Integer]
62
+ attr_accessor :font_size
63
+
52
64
  class EnumAttributeValidator
53
65
  attr_reader :datatype
54
66
  attr_reader :allowable_values
@@ -81,7 +93,10 @@ module Dropbox::Sign
81
93
  :'masked' => :'masked',
82
94
  :'validation_type' => :'validation_type',
83
95
  :'validation_custom_regex' => :'validation_custom_regex',
84
- :'validation_custom_regex_format_label' => :'validation_custom_regex_format_label'
96
+ :'validation_custom_regex_format_label' => :'validation_custom_regex_format_label',
97
+ :'content' => :'content',
98
+ :'font_family' => :'font_family',
99
+ :'font_size' => :'font_size'
85
100
  }
86
101
  end
87
102
 
@@ -105,7 +120,10 @@ module Dropbox::Sign
105
120
  :'masked' => :'Boolean',
106
121
  :'validation_type' => :'String',
107
122
  :'validation_custom_regex' => :'String',
108
- :'validation_custom_regex_format_label' => :'String'
123
+ :'validation_custom_regex_format_label' => :'String',
124
+ :'content' => :'String',
125
+ :'font_family' => :'String',
126
+ :'font_size' => :'Integer'
109
127
  }
110
128
  end
111
129
 
@@ -186,6 +204,20 @@ module Dropbox::Sign
186
204
  if attributes.key?(:'validation_custom_regex_format_label')
187
205
  self.validation_custom_regex_format_label = attributes[:'validation_custom_regex_format_label']
188
206
  end
207
+
208
+ if attributes.key?(:'content')
209
+ self.content = attributes[:'content']
210
+ end
211
+
212
+ if attributes.key?(:'font_family')
213
+ self.font_family = attributes[:'font_family']
214
+ end
215
+
216
+ if attributes.key?(:'font_size')
217
+ self.font_size = attributes[:'font_size']
218
+ else
219
+ self.font_size = 12
220
+ end
189
221
  end
190
222
 
191
223
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -205,6 +237,8 @@ module Dropbox::Sign
205
237
  return false if @type.nil?
206
238
  validation_type_validator = EnumAttributeValidator.new('String', ["numbers_only", "letters_only", "phone_number", "bank_routing_number", "bank_account_number", "email_address", "zip_code", "social_security_number", "employer_identification_number", "custom_regex"])
207
239
  return false unless validation_type_validator.valid?(@validation_type)
240
+ font_family_validator = EnumAttributeValidator.new('String', ["helvetica", "arial", "courier", "calibri", "cambria", "georgia", "times", "trebuchet", "verdana", "roboto", "robotoMono", "notoSans", "notoSerif", "notoCJK-JP-Regular", "notoHebrew-Regular", "notoSanThaiMerged"])
241
+ return false unless font_family_validator.valid?(@font_family)
208
242
  true && super
209
243
  end
210
244
 
@@ -218,6 +252,16 @@ module Dropbox::Sign
218
252
  @validation_type = validation_type
219
253
  end
220
254
 
255
+ # Custom attribute writer method checking allowed values (enum).
256
+ # @param [Object] font_family Object to be assigned
257
+ def font_family=(font_family)
258
+ validator = EnumAttributeValidator.new('String', ["helvetica", "arial", "courier", "calibri", "cambria", "georgia", "times", "trebuchet", "verdana", "roboto", "robotoMono", "notoSans", "notoSerif", "notoCJK-JP-Regular", "notoHebrew-Regular", "notoSanThaiMerged"])
259
+ unless validator.valid?(font_family)
260
+ fail ArgumentError, "invalid value for \"font_family\", must be one of #{validator.allowable_values}."
261
+ end
262
+ @font_family = font_family
263
+ end
264
+
221
265
  # Checks equality by comparing each attribute.
222
266
  # @param [Object] Object to be compared
223
267
  def ==(o)
@@ -230,7 +274,10 @@ module Dropbox::Sign
230
274
  masked == o.masked &&
231
275
  validation_type == o.validation_type &&
232
276
  validation_custom_regex == o.validation_custom_regex &&
233
- validation_custom_regex_format_label == o.validation_custom_regex_format_label && super(o)
277
+ validation_custom_regex_format_label == o.validation_custom_regex_format_label &&
278
+ content == o.content &&
279
+ font_family == o.font_family &&
280
+ font_size == o.font_size && super(o)
234
281
  end
235
282
 
236
283
  # @see the `==` method
@@ -242,7 +289,7 @@ module Dropbox::Sign
242
289
  # Calculates hash code according to all attributes.
243
290
  # @return [Integer] Hash code
244
291
  def hash
245
- [type, placeholder, auto_fill_type, link_id, masked, validation_type, validation_custom_regex, validation_custom_regex_format_label].hash
292
+ [type, placeholder, auto_fill_type, link_id, masked, validation_type, validation_custom_regex, validation_custom_regex_format_label, content, font_family, font_size].hash
246
293
  end
247
294
 
248
295
  # Builds the object from hash
@@ -23,10 +23,42 @@ module Dropbox::Sign
23
23
  # @return [String]
24
24
  attr_accessor :type
25
25
 
26
+ # Font family for the field.
27
+ # @return [String]
28
+ attr_accessor :font_family
29
+
30
+ # The initial px font size for the field contents. Can be any integer value between `7` and `49`. **NOTE:** Font size may be reduced during processing in order to fit the contents within the dimensions of the field.
31
+ # @return [Integer]
32
+ attr_accessor :font_size
33
+
34
+ class EnumAttributeValidator
35
+ attr_reader :datatype
36
+ attr_reader :allowable_values
37
+
38
+ def initialize(datatype, allowable_values)
39
+ @allowable_values = allowable_values.map do |value|
40
+ case datatype.to_s
41
+ when /Integer/i
42
+ value.to_i
43
+ when /Float/i
44
+ value.to_f
45
+ else
46
+ value
47
+ end
48
+ end
49
+ end
50
+
51
+ def valid?(value)
52
+ !value || allowable_values.include?(value)
53
+ end
54
+ end
55
+
26
56
  # Attribute mapping from ruby-style variable name to JSON key.
27
57
  def self.attribute_map
28
58
  {
29
- :'type' => :'type'
59
+ :'type' => :'type',
60
+ :'font_family' => :'font_family',
61
+ :'font_size' => :'font_size'
30
62
  }
31
63
  end
32
64
 
@@ -43,7 +75,9 @@ module Dropbox::Sign
43
75
  # Attribute type mapping.
44
76
  def self.openapi_types
45
77
  {
46
- :'type' => :'String'
78
+ :'type' => :'String',
79
+ :'font_family' => :'String',
80
+ :'font_size' => :'Integer'
47
81
  }
48
82
  end
49
83
 
@@ -96,6 +130,16 @@ module Dropbox::Sign
96
130
  else
97
131
  self.type = 'text-merge'
98
132
  end
133
+
134
+ if attributes.key?(:'font_family')
135
+ self.font_family = attributes[:'font_family']
136
+ end
137
+
138
+ if attributes.key?(:'font_size')
139
+ self.font_size = attributes[:'font_size']
140
+ else
141
+ self.font_size = 12
142
+ end
99
143
  end
100
144
 
101
145
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -113,15 +157,29 @@ module Dropbox::Sign
113
157
  # @return true if the model is valid
114
158
  def valid?
115
159
  return false if @type.nil?
160
+ font_family_validator = EnumAttributeValidator.new('String', ["helvetica", "arial", "courier", "calibri", "cambria", "georgia", "times", "trebuchet", "verdana", "roboto", "robotoMono", "notoSans", "notoSerif", "notoCJK-JP-Regular", "notoHebrew-Regular", "notoSanThaiMerged"])
161
+ return false unless font_family_validator.valid?(@font_family)
116
162
  true && super
117
163
  end
118
164
 
165
+ # Custom attribute writer method checking allowed values (enum).
166
+ # @param [Object] font_family Object to be assigned
167
+ def font_family=(font_family)
168
+ validator = EnumAttributeValidator.new('String', ["helvetica", "arial", "courier", "calibri", "cambria", "georgia", "times", "trebuchet", "verdana", "roboto", "robotoMono", "notoSans", "notoSerif", "notoCJK-JP-Regular", "notoHebrew-Regular", "notoSanThaiMerged"])
169
+ unless validator.valid?(font_family)
170
+ fail ArgumentError, "invalid value for \"font_family\", must be one of #{validator.allowable_values}."
171
+ end
172
+ @font_family = font_family
173
+ end
174
+
119
175
  # Checks equality by comparing each attribute.
120
176
  # @param [Object] Object to be compared
121
177
  def ==(o)
122
178
  return true if self.equal?(o)
123
179
  self.class == o.class &&
124
- type == o.type && super(o)
180
+ type == o.type &&
181
+ font_family == o.font_family &&
182
+ font_size == o.font_size && super(o)
125
183
  end
126
184
 
127
185
  # @see the `==` method
@@ -133,7 +191,7 @@ module Dropbox::Sign
133
191
  # Calculates hash code according to all attributes.
134
192
  # @return [Integer] Hash code
135
193
  def hash
136
- [type].hash
194
+ [type, font_family, font_size].hash
137
195
  end
138
196
 
139
197
  # Builds the object from hash
@@ -22,7 +22,7 @@ module Dropbox::Sign
22
22
  # @return [String]
23
23
  attr_accessor :group
24
24
 
25
- # Signers belonging to this Group. **NOTE**: Only `name`, `email_address`, and `pin` are available to Grouped Signers. We will ignore all other properties, even though they are listed below.
25
+ # Signers belonging to this Group. **NOTE:** Only `name`, `email_address`, and `pin` are available to Grouped Signers. We will ignore all other properties, even though they are listed below.
26
26
  # @return [Array<SubSignatureRequestSigner>]
27
27
  attr_accessor :signers
28
28
 
@@ -34,7 +34,7 @@ module Dropbox::Sign
34
34
  # @return [String]
35
35
  attr_accessor :pin
36
36
 
37
- # An E.164 formatted phone number. **Note**: Not available in test mode and requires a Standard plan or higher.
37
+ # An E.164 formatted phone number. By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher.
38
38
  # @return [String]
39
39
  attr_accessor :sms_phone_number
40
40
 
@@ -34,7 +34,7 @@ module Dropbox::Sign
34
34
  # @return [String]
35
35
  attr_accessor :pin
36
36
 
37
- # An E.164 formatted phone number. **Note**: Not available in test mode and requires a Standard plan or higher.
37
+ # An E.164 formatted phone number. By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher.
38
38
  # @return [String]
39
39
  attr_accessor :sms_phone_number
40
40
 
@@ -17,7 +17,7 @@ module Dropbox
17
17
  end
18
18
 
19
19
  module Dropbox::Sign
20
- # This allows the requester to specify the types allowed for creating a signature. **Note**: If `signing_options` are not defined in the request, the allowed types will default to those specified in the account settings.
20
+ # This allows the requester to specify the types allowed for creating a signature. **NOTE:** If `signing_options` are not defined in the request, the allowed types will default to those specified in the account settings.
21
21
  class SubSigningOptions
22
22
  # The default type shown (limited to the listed types)
23
23
  # @return [String]
@@ -17,7 +17,7 @@ module Dropbox
17
17
  end
18
18
 
19
19
  module Dropbox::Sign
20
- # An array of elements and values serialized to a string, to be used to customize the app's signer page. (Only applies to some API plans) Take a look at our [white labeling guide](/api/reference/white-labeling/) to learn more.
20
+ # An array of elements and values serialized to a string, to be used to customize the app's signer page. (Only applies to some API plans) Take a look at our [white labeling guide](https://developers.hellosign.com/api/reference/premium-branding/) to learn more.
21
21
  class SubWhiteLabelingOptions
22
22
  # @return [String]
23
23
  attr_accessor :header_background_color
@@ -26,7 +26,7 @@ module Dropbox::Sign
26
26
  # @return [String]
27
27
  attr_accessor :email_address
28
28
 
29
- # A role member will take in a new Team. **Note**: This parameter is used only if `team_id` is provided.
29
+ # A role member will take in a new Team. **NOTE:** This parameter is used only if `team_id` is provided.
30
30
  # @return [String]
31
31
  attr_accessor :role
32
32
 
@@ -26,7 +26,7 @@ module Dropbox::Sign
26
26
  # @return [String]
27
27
  attr_accessor :email_address
28
28
 
29
- # The email address of an Account on this Team to receive all documents, templates, and API apps (if applicable) from the removed Account. If not provided, and on an Enterprise plan, this data will remain with the removed Account. **Note**: Only available for Enterprise plans.
29
+ # The email address of an Account on this Team to receive all documents, templates, and API apps (if applicable) from the removed Account. If not provided, and on an Enterprise plan, this data will remain with the removed Account. **NOTE:** Only available for Enterprise plans.
30
30
  # @return [String]
31
31
  attr_accessor :new_owner_email_address
32
32
 
@@ -34,7 +34,7 @@ module Dropbox::Sign
34
34
  # @return [String]
35
35
  attr_accessor :new_team_id
36
36
 
37
- # A new role member will take in a new Team. **Note**: This parameter is used only if `new_team_id` is provided.
37
+ # A new role member will take in a new Team. **NOTE:** This parameter is used only if `new_team_id` is provided.
38
38
  # @return [String]
39
39
  attr_accessor :new_role
40
40
 
@@ -18,11 +18,11 @@ end
18
18
 
19
19
  module Dropbox::Sign
20
20
  class TemplateAddUserRequest
21
- # The id of the Account to give access to the Template. <b>Note</b> The account id prevails if email address is also provided.
21
+ # The id of the Account to give access to the Template. **NOTE:** The account id prevails if email address is also provided.
22
22
  # @return [String]
23
23
  attr_accessor :account_id
24
24
 
25
- # The email address of the Account to give access to the Template. <b>Note</b> The account id prevails if it is also provided.
25
+ # The email address of the Account to give access to the Template. **NOTE:** The account id prevails if it is also provided.
26
26
  # @return [String]
27
27
  attr_accessor :email_address
28
28
 
@@ -34,7 +34,7 @@ module Dropbox::Sign
34
34
  # @return [Boolean]
35
35
  attr_accessor :allow_ccs
36
36
 
37
- # Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **Note**: Only available for Premium plan and higher.
37
+ # Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan and higher.
38
38
  # @return [Boolean]
39
39
  attr_accessor :allow_reassign
40
40
 
@@ -68,7 +68,7 @@ module Dropbox::Sign
68
68
  # @return [Array<SubFormFieldRule>]
69
69
  attr_accessor :form_field_rules
70
70
 
71
- # The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE**: Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge`
71
+ # The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge`
72
72
  # @return [Array<SubFormFieldsPerDocumentBase>]
73
73
  attr_accessor :form_fields_per_document
74
74