Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ script:
- bundle install --path vendor/bundle
- bundle exec rspec
- gem build dropbox-sign.gemspec
- gem install ./dropbox-sign-1.9.0.gem
- gem install ./dropbox-sign-1.10.0.gem
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
dropbox-sign (1.9.0)
dropbox-sign (1.10.0)
typhoeus (~> 1.0, >= 1.0.1)

GEM
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ directory that corresponds to the file you want updated.
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 3.0.0
- Package version: 1.9.0
- Package version: 1.10.0
- Generator version: 7.12.0
- Build package: org.openapitools.codegen.languages.RubyClientCodegen

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

```shell
gem install ./dropbox-sign-1.9.0.gem
gem install ./dropbox-sign-1.10.0.gem
```

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


Finally add this to the Gemfile:

gem 'dropbox-sign', '~> 1.9.0'
gem 'dropbox-sign', '~> 1.10.0'

### Install from Git

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.9.0
1.10.0
4 changes: 2 additions & 2 deletions docs/OAuthTokenRefreshRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
| ---- | ---- | ----------- | ----- |
| `grant_type`<sup>*_required_</sup> | ```String``` | When refreshing an existing token use `refresh_token`. | [default to 'refresh_token'] |
| `refresh_token`<sup>*_required_</sup> | ```String``` | The token provided when you got the expired access token. | |
| `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. | |
| `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. | |
| `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. | |
| `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. | |

2 changes: 2 additions & 0 deletions docs/TemplateResponseDocumentFormFieldText.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ This class extends `TemplateResponseDocumentFormFieldBase`
| `original_font_size` | ```Integer``` | Original font size used in this form field&#39;s text. | |
| `font_family` | ```String``` | Font family used in this form field&#39;s text. | |
| `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. | |
| `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. | |
| `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. | |
| `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. | |

10 changes: 5 additions & 5 deletions lib/dropbox-sign/models/api_app_create_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ def list_invalid_properties
invalid_properties.push('invalid value for "domains", domains cannot be nil.')
end

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

if @domains.length < 1
Expand All @@ -184,7 +184,7 @@ def list_invalid_properties
# @return true if the model is valid
def valid?
return false if @domains.nil?
return false if @domains.length > 2
return false if @domains.length > 10
return false if @domains.length < 1
return false if @name.nil?
true
Expand All @@ -196,8 +196,8 @@ def domains=(domains)
if domains.nil?
fail ArgumentError, 'domains cannot be nil'
end
if domains.length > 2
fail ArgumentError, 'invalid value for "domains", number of items must be less than or equal to 2.'
if domains.length > 10
fail ArgumentError, 'invalid value for "domains", number of items must be less than or equal to 10.'
end

if domains.length < 1
Expand Down
10 changes: 5 additions & 5 deletions lib/dropbox-sign/models/api_app_update_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
if !@domains.nil? && @domains.length > 2
invalid_properties.push('invalid value for "domains", number of items must be less than or equal to 2.')
if !@domains.nil? && @domains.length > 10
invalid_properties.push('invalid value for "domains", number of items must be less than or equal to 10.')
end

invalid_properties
Expand All @@ -171,15 +171,15 @@ def list_invalid_properties
# Check to see if the all the properties in the model are valid
# @return true if the model is valid
def valid?
return false if !@domains.nil? && @domains.length > 2
return false if !@domains.nil? && @domains.length > 10
true
end

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

@domains = domains
Expand Down
4 changes: 2 additions & 2 deletions lib/dropbox-sign/models/o_auth_token_refresh_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ class OAuthTokenRefreshRequest
# @return [String]
attr_accessor :refresh_token

# 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.
# 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.
# @return [String]
attr_accessor :client_id

# 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.
# 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.
# @return [String]
attr_accessor :client_secret

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ class TemplateResponseDocumentFormFieldText < TemplateResponseDocumentFormFieldB
# @return [String, nil]
attr_accessor :validation_type

# When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field.
# @return [String, nil]
attr_accessor :validation_custom_regex

# 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.
# @return [String, nil]
attr_accessor :validation_custom_regex_format_label

# The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.
# @return [String, nil]
attr_accessor :group
Expand Down Expand Up @@ -77,6 +85,8 @@ def self.attribute_map
:'original_font_size' => :'originalFontSize',
:'font_family' => :'fontFamily',
:'validation_type' => :'validation_type',
:'validation_custom_regex' => :'validation_custom_regex',
:'validation_custom_regex_format_label' => :'validation_custom_regex_format_label',
:'group' => :'group'
}
end
Expand All @@ -100,6 +110,8 @@ def self.openapi_types
:'original_font_size' => :'Integer',
:'font_family' => :'String',
:'validation_type' => :'String',
:'validation_custom_regex' => :'String',
:'validation_custom_regex_format_label' => :'String',
:'group' => :'String'
}
end
Expand All @@ -108,6 +120,8 @@ def self.openapi_types
def self.openapi_nullable
Set.new([
:'validation_type',
:'validation_custom_regex',
:'validation_custom_regex_format_label',
:'group'
])
end
Expand Down Expand Up @@ -182,6 +196,14 @@ def initialize(attributes = {})
self.validation_type = attributes[:'validation_type']
end

if attributes.key?(:'validation_custom_regex')
self.validation_custom_regex = attributes[:'validation_custom_regex']
end

if attributes.key?(:'validation_custom_regex_format_label')
self.validation_custom_regex_format_label = attributes[:'validation_custom_regex_format_label']
end

if attributes.key?(:'group')
self.group = attributes[:'group']
end
Expand Down Expand Up @@ -238,6 +260,8 @@ def ==(o)
original_font_size == o.original_font_size &&
font_family == o.font_family &&
validation_type == o.validation_type &&
validation_custom_regex == o.validation_custom_regex &&
validation_custom_regex_format_label == o.validation_custom_regex_format_label &&
group == o.group && super(o)
end

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

# Builds the object from hash
Expand Down
2 changes: 1 addition & 1 deletion lib/dropbox-sign/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ module Dropbox
end

module Dropbox::Sign
VERSION = '1.9.0'
VERSION = '1.10.0'
end
2 changes: 1 addition & 1 deletion openapi-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ additionalProperties:
gemName: dropbox-sign
gemRequiredRubyVersion: '>= 2.7'
moduleName: "Dropbox::Sign"
gemVersion: 1.9.0
gemVersion: 1.10.0
sortModelPropertiesByRequiredFlag: true
legacyDiscriminatorBehavior: true
gitUserId: hellosign
Expand Down
18 changes: 14 additions & 4 deletions openapi-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7797,7 +7797,7 @@ components:
type: array
items:
type: string
maxItems: 2
maxItems: 10
minItems: 1
name:
description: 'The name you want to assign to the ApiApp.'
Expand All @@ -7823,7 +7823,7 @@ components:
type: array
items:
type: string
maxItems: 2
maxItems: 10
name:
description: 'The name you want to assign to the ApiApp.'
type: string
Expand Down Expand Up @@ -8112,10 +8112,10 @@ components:
description: 'The token provided when you got the expired access token.'
type: string
client_id:
description: '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.'
description: '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.'
type: string
client_secret:
description: '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.'
description: '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.'
type: string
type: object
ReportCreateRequest:
Expand All @@ -8135,6 +8135,7 @@ components:
enum:
- user_activity
- document_status
- sms_activity
maxItems: 2
minItems: 1
start_date:
Expand Down Expand Up @@ -11964,6 +11965,7 @@ components:
enum:
- user_activity
- document_status
- sms_activity
type: object
x-internal-class: true
SignatureRequestResponse:
Expand Down Expand Up @@ -13130,6 +13132,14 @@ components:
- employer_identification_number
- custom_regex
nullable: true
validation_custom_regex:
description: 'When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field.'
type: string
nullable: true
validation_custom_regex_format_label:
description: '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.'
type: string
nullable: true
group:
description: 'The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.'
type: string
Expand Down
69 changes: 69 additions & 0 deletions spec/api/fax_api_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
=begin
#Dropbox Sign API

#Dropbox Sign v3 API

The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.3.0

=end

require 'spec_helper'
require 'json_spec'
require_relative '../test_utils'

root_file_path = __dir__ + "/../../test_fixtures"

describe Dropbox::Sign::FaxApi do
context 'FaxApiTest' do
api = Dropbox::Sign::FaxApi.new

it 'testFaxSend' do
request_class = 'FaxSendRequest'
request_data = get_fixture_data(request_class)[:default]

response_class = 'FaxGetResponse'
response_data = get_fixture_data(response_class)[:default]

set_expected_response(200, JSON.dump(response_data))
expected = Dropbox::Sign::FaxGetResponse.init(response_data)
obj = Dropbox::Sign::FaxSendRequest.init(request_data)
obj.files = [File.new("#{root_file_path}/pdf-sample.pdf", "r")]

result = api.fax_send(obj)

expect(result.class.to_s).to eq("Dropbox::Sign::#{response_class}")
expect(result.to_json).to be_json_eql(JSON.dump(expected))
end

it 'testFaxGet' do
signature_request_id = 'c2e9691c85d9d6fa6ae773842e3680b2b8650f1d'

response_class = 'FaxGetResponse'
response_data = get_fixture_data(response_class)[:default]

set_expected_response(200, JSON.dump(response_data))
expected = Dropbox::Sign::FaxGetResponse.init(response_data)

result = api.fax_get(signature_request_id)

expect(result.class.to_s).to eq("Dropbox::Sign::#{response_class}")
expect(result.to_json).to be_json_eql(JSON.dump(expected))
end

it 'testFaxList' do
response_class = 'FaxListResponse'
response_data = get_fixture_data(response_class)[:default]

set_expected_response(200, JSON.dump(response_data))
expected = Dropbox::Sign::FaxListResponse.init(response_data)

result = api.fax_list()

expect(result.class.to_s).to eq("Dropbox::Sign::#{response_class}")
expect(result.to_json).to be_json_eql(JSON.dump(expected))
end
end
end
Loading