Skip to content

Commit e4415bb

Browse files
authored
Release 1.10.0 (#18)
* release 1.10.0 * updating files
1 parent 4838a25 commit e4415bb

22 files changed

Lines changed: 276 additions & 48 deletions

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ script:
88
- bundle install --path vendor/bundle
99
- bundle exec rspec
1010
- gem build dropbox-sign.gemspec
11-
- gem install ./dropbox-sign-1.9.0.gem
11+
- gem install ./dropbox-sign-1.10.0.gem

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
dropbox-sign (1.9.0)
4+
dropbox-sign (1.10.0)
55
typhoeus (~> 1.0, >= 1.0.1)
66

77
GEM

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ directory that corresponds to the file you want updated.
2525
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
2626

2727
- API version: 3.0.0
28-
- Package version: 1.9.0
28+
- Package version: 1.10.0
2929
- Generator version: 7.12.0
3030
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
3131

@@ -47,15 +47,15 @@ gem build dropbox-sign.gemspec
4747
Then install the gem locally:
4848

4949
```shell
50-
gem install ./dropbox-sign-1.9.0.gem
50+
gem install ./dropbox-sign-1.10.0.gem
5151
```
5252

53-
(for development, run `gem install --dev ./dropbox-sign-1.9.0.gem` to install the development dependencies)
53+
(for development, run `gem install --dev ./dropbox-sign-1.10.0.gem` to install the development dependencies)
5454

5555

5656
Finally add this to the Gemfile:
5757

58-
gem 'dropbox-sign', '~> 1.9.0'
58+
gem 'dropbox-sign', '~> 1.10.0'
5959

6060
### Install from Git
6161

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.9.0
1+
1.10.0

docs/OAuthTokenRefreshRequest.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
| ---- | ---- | ----------- | ----- |
99
| `grant_type`<sup>*_required_</sup> | ```String``` | When refreshing an existing token use `refresh_token`. | [default to 'refresh_token'] |
1010
| `refresh_token`<sup>*_required_</sup> | ```String``` | The token provided when you got the expired access token. | |
11-
| `client_id` | ```String``` | The client ID for your API app. Mandatory from August 1st, 2025. Until then, required if the &quot;Client Credentials Required&quot; setting is enabled for token refresh; optional if disabled. | |
12-
| `client_secret` | ```String``` | The client secret for your API app. Mandatory from August 1st, 2025. Until then, required if the &quot;Client Credentials Required&quot; setting is enabled for token refresh; optional if disabled. | |
11+
| `client_id` | ```String``` | The client ID for your API app. Required for new API apps. To enhance security, we recommend making it required for existing apps in your app settings. | |
12+
| `client_secret` | ```String``` | The client secret for your API app. Required for new API apps. To enhance security, we recommend making it required for existing apps in your app settings. | |
1313

docs/TemplateResponseDocumentFormFieldText.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,7 @@ This class extends `TemplateResponseDocumentFormFieldBase`
1212
| `original_font_size` | ```Integer``` | Original font size used in this form field&#39;s text. | |
1313
| `font_family` | ```String``` | Font family used in this form field&#39;s text. | |
1414
| `validation_type` | ```String``` | 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. | |
15+
| `validation_custom_regex` | ```String``` | When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field. | |
16+
| `validation_custom_regex_format_label` | ```String``` | When `validation_type` is set to `custom_regex`, this specifies the error message displayed to the signer when the text does not match the provided regex pattern. | |
1517
| `group` | ```String``` | The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. | |
1618

lib/dropbox-sign/models/api_app_create_request.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ def list_invalid_properties
165165
invalid_properties.push('invalid value for "domains", domains cannot be nil.')
166166
end
167167

168-
if @domains.length > 2
169-
invalid_properties.push('invalid value for "domains", number of items must be less than or equal to 2.')
168+
if @domains.length > 10
169+
invalid_properties.push('invalid value for "domains", number of items must be less than or equal to 10.')
170170
end
171171

172172
if @domains.length < 1
@@ -184,7 +184,7 @@ def list_invalid_properties
184184
# @return true if the model is valid
185185
def valid?
186186
return false if @domains.nil?
187-
return false if @domains.length > 2
187+
return false if @domains.length > 10
188188
return false if @domains.length < 1
189189
return false if @name.nil?
190190
true
@@ -196,8 +196,8 @@ def domains=(domains)
196196
if domains.nil?
197197
fail ArgumentError, 'domains cannot be nil'
198198
end
199-
if domains.length > 2
200-
fail ArgumentError, 'invalid value for "domains", number of items must be less than or equal to 2.'
199+
if domains.length > 10
200+
fail ArgumentError, 'invalid value for "domains", number of items must be less than or equal to 10.'
201201
end
202202

203203
if domains.length < 1

lib/dropbox-sign/models/api_app_update_request.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ def initialize(attributes = {})
161161
# @return Array for valid properties with the reasons
162162
def list_invalid_properties
163163
invalid_properties = Array.new
164-
if !@domains.nil? && @domains.length > 2
165-
invalid_properties.push('invalid value for "domains", number of items must be less than or equal to 2.')
164+
if !@domains.nil? && @domains.length > 10
165+
invalid_properties.push('invalid value for "domains", number of items must be less than or equal to 10.')
166166
end
167167

168168
invalid_properties
@@ -171,15 +171,15 @@ def list_invalid_properties
171171
# Check to see if the all the properties in the model are valid
172172
# @return true if the model is valid
173173
def valid?
174-
return false if !@domains.nil? && @domains.length > 2
174+
return false if !@domains.nil? && @domains.length > 10
175175
true
176176
end
177177

178178
# Custom attribute writer method with validation
179179
# @param [Object] domains Value to be assigned
180180
def domains=(domains)
181-
if domains.length > 2
182-
fail ArgumentError, 'invalid value for "domains", number of items must be less than or equal to 2.'
181+
if domains.length > 10
182+
fail ArgumentError, 'invalid value for "domains", number of items must be less than or equal to 10.'
183183
end
184184

185185
@domains = domains

lib/dropbox-sign/models/o_auth_token_refresh_request.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ class OAuthTokenRefreshRequest
2626
# @return [String]
2727
attr_accessor :refresh_token
2828

29-
# The client ID for your API app. Mandatory from August 1st, 2025. Until then, required if the \"Client Credentials Required\" setting is enabled for token refresh; optional if disabled.
29+
# The client ID for your API app. Required for new API apps. To enhance security, we recommend making it required for existing apps in your app settings.
3030
# @return [String]
3131
attr_accessor :client_id
3232

33-
# The client secret for your API app. Mandatory from August 1st, 2025. Until then, required if the \"Client Credentials Required\" setting is enabled for token refresh; optional if disabled.
33+
# The client secret for your API app. Required for new API apps. To enhance security, we recommend making it required for existing apps in your app settings.
3434
# @return [String]
3535
attr_accessor :client_secret
3636

lib/dropbox-sign/models/template_response_document_form_field_text.rb

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ class TemplateResponseDocumentFormFieldText < TemplateResponseDocumentFormFieldB
4242
# @return [String, nil]
4343
attr_accessor :validation_type
4444

45+
# When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field.
46+
# @return [String, nil]
47+
attr_accessor :validation_custom_regex
48+
49+
# When `validation_type` is set to `custom_regex`, this specifies the error message displayed to the signer when the text does not match the provided regex pattern.
50+
# @return [String, nil]
51+
attr_accessor :validation_custom_regex_format_label
52+
4553
# The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.
4654
# @return [String, nil]
4755
attr_accessor :group
@@ -77,6 +85,8 @@ def self.attribute_map
7785
:'original_font_size' => :'originalFontSize',
7886
:'font_family' => :'fontFamily',
7987
:'validation_type' => :'validation_type',
88+
:'validation_custom_regex' => :'validation_custom_regex',
89+
:'validation_custom_regex_format_label' => :'validation_custom_regex_format_label',
8090
:'group' => :'group'
8191
}
8292
end
@@ -100,6 +110,8 @@ def self.openapi_types
100110
:'original_font_size' => :'Integer',
101111
:'font_family' => :'String',
102112
:'validation_type' => :'String',
113+
:'validation_custom_regex' => :'String',
114+
:'validation_custom_regex_format_label' => :'String',
103115
:'group' => :'String'
104116
}
105117
end
@@ -108,6 +120,8 @@ def self.openapi_types
108120
def self.openapi_nullable
109121
Set.new([
110122
:'validation_type',
123+
:'validation_custom_regex',
124+
:'validation_custom_regex_format_label',
111125
:'group'
112126
])
113127
end
@@ -182,6 +196,14 @@ def initialize(attributes = {})
182196
self.validation_type = attributes[:'validation_type']
183197
end
184198

199+
if attributes.key?(:'validation_custom_regex')
200+
self.validation_custom_regex = attributes[:'validation_custom_regex']
201+
end
202+
203+
if attributes.key?(:'validation_custom_regex_format_label')
204+
self.validation_custom_regex_format_label = attributes[:'validation_custom_regex_format_label']
205+
end
206+
185207
if attributes.key?(:'group')
186208
self.group = attributes[:'group']
187209
end
@@ -238,6 +260,8 @@ def ==(o)
238260
original_font_size == o.original_font_size &&
239261
font_family == o.font_family &&
240262
validation_type == o.validation_type &&
263+
validation_custom_regex == o.validation_custom_regex &&
264+
validation_custom_regex_format_label == o.validation_custom_regex_format_label &&
241265
group == o.group && super(o)
242266
end
243267

@@ -250,7 +274,7 @@ def eql?(o)
250274
# Calculates hash code according to all attributes.
251275
# @return [Integer] Hash code
252276
def hash
253-
[type, avg_text_length, is_multiline, original_font_size, font_family, validation_type, group].hash
277+
[type, avg_text_length, is_multiline, original_font_size, font_family, validation_type, validation_custom_regex, validation_custom_regex_format_label, group].hash
254278
end
255279

256280
# Builds the object from hash

0 commit comments

Comments
 (0)