diff --git a/.gitignore b/.gitignore
index 94d3121..ebd198d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -38,4 +38,4 @@ build/
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc
-vendor
\ No newline at end of file
+vendor
diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES
index f02adf4..2ff1424 100644
--- a/.openapi-generator/FILES
+++ b/.openapi-generator/FILES
@@ -45,6 +45,18 @@ docs/ErrorResponseError.md
docs/EventCallbackRequest.md
docs/EventCallbackRequestEvent.md
docs/EventCallbackRequestEventMetadata.md
+docs/FaxLineAddUserRequest.md
+docs/FaxLineApi.md
+docs/FaxLineAreaCodeGetCountryEnum.md
+docs/FaxLineAreaCodeGetProvinceEnum.md
+docs/FaxLineAreaCodeGetResponse.md
+docs/FaxLineAreaCodeGetStateEnum.md
+docs/FaxLineCreateRequest.md
+docs/FaxLineDeleteRequest.md
+docs/FaxLineListResponse.md
+docs/FaxLineRemoveUserRequest.md
+docs/FaxLineResponse.md
+docs/FaxLineResponseFaxLine.md
docs/FileResponse.md
docs/FileResponseDataUri.md
docs/ListInfoResponse.md
@@ -195,6 +207,7 @@ lib/dropbox-sign/api/account_api.rb
lib/dropbox-sign/api/api_app_api.rb
lib/dropbox-sign/api/bulk_send_job_api.rb
lib/dropbox-sign/api/embedded_api.rb
+lib/dropbox-sign/api/fax_line_api.rb
lib/dropbox-sign/api/o_auth_api.rb
lib/dropbox-sign/api/report_api.rb
lib/dropbox-sign/api/signature_request_api.rb
@@ -239,6 +252,17 @@ lib/dropbox-sign/models/error_response_error.rb
lib/dropbox-sign/models/event_callback_request.rb
lib/dropbox-sign/models/event_callback_request_event.rb
lib/dropbox-sign/models/event_callback_request_event_metadata.rb
+lib/dropbox-sign/models/fax_line_add_user_request.rb
+lib/dropbox-sign/models/fax_line_area_code_get_country_enum.rb
+lib/dropbox-sign/models/fax_line_area_code_get_province_enum.rb
+lib/dropbox-sign/models/fax_line_area_code_get_response.rb
+lib/dropbox-sign/models/fax_line_area_code_get_state_enum.rb
+lib/dropbox-sign/models/fax_line_create_request.rb
+lib/dropbox-sign/models/fax_line_delete_request.rb
+lib/dropbox-sign/models/fax_line_list_response.rb
+lib/dropbox-sign/models/fax_line_remove_user_request.rb
+lib/dropbox-sign/models/fax_line_response.rb
+lib/dropbox-sign/models/fax_line_response_fax_line.rb
lib/dropbox-sign/models/file_response.rb
lib/dropbox-sign/models/file_response_data_uri.rb
lib/dropbox-sign/models/list_info_response.rb
diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION
index 1985849..09a6d30 100644
--- a/.openapi-generator/VERSION
+++ b/.openapi-generator/VERSION
@@ -1 +1 @@
-7.7.0
+7.8.0
diff --git a/.travis.yml b/.travis.yml
index 30cc276..02b599b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -8,4 +8,4 @@ script:
- bundle install --path vendor/bundle
- bundle exec rspec
- gem build dropbox-sign.gemspec
- - gem install ./dropbox-sign-1.5.0.gem
+ - gem install ./dropbox-sign-1.6.0.gem
diff --git a/Gemfile.lock b/Gemfile.lock
index 17efd7e..e1e3a45 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
- dropbox-sign (1.5.0)
+ dropbox-sign (1.6.0)
typhoeus (~> 1.0, >= 1.0.1)
GEM
diff --git a/README.md b/README.md
index f5b543f..3f13310 100644
--- a/README.md
+++ b/README.md
@@ -25,8 +25,8 @@ 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.5.0
-- Generator version: 7.7.0
+- Package version: 1.6.0
+- Generator version: 7.8.0
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
## Installation
@@ -47,14 +47,15 @@ gem build dropbox-sign.gemspec
Then install the gem locally:
```shell
-gem install ./dropbox-sign-1.5.0.gem
+gem install ./dropbox-sign-1.6.0.gem
```
-(for development, run `gem install --dev ./dropbox-sign-1.5.0.gem` to install the development dependencies)
+(for development, run `gem install --dev ./dropbox-sign-1.6.0.gem` to install the development dependencies)
+
Finally add this to the Gemfile:
- gem 'dropbox-sign', '~> 1.5.0'
+ gem 'dropbox-sign', '~> 1.6.0'
### Install from Git
@@ -120,6 +121,13 @@ All URIs are relative to *https://api.hellosign.com/v3*
|*Dropbox::Sign::BulkSendJobApi* | [**bulk_send_job_list**](docs/BulkSendJobApi.md#bulk_send_job_list) | **GET** /bulk_send_job/list | List Bulk Send Jobs |
|*Dropbox::Sign::EmbeddedApi* | [**embedded_edit_url**](docs/EmbeddedApi.md#embedded_edit_url) | **POST** /embedded/edit_url/{template_id} | Get Embedded Template Edit URL |
|*Dropbox::Sign::EmbeddedApi* | [**embedded_sign_url**](docs/EmbeddedApi.md#embedded_sign_url) | **GET** /embedded/sign_url/{signature_id} | Get Embedded Sign URL |
+|*Dropbox::Sign::FaxLineApi* | [**fax_line_add_user**](docs/FaxLineApi.md#fax_line_add_user) | **PUT** /fax_line/add_user | Add Fax Line User |
+|*Dropbox::Sign::FaxLineApi* | [**fax_line_area_code_get**](docs/FaxLineApi.md#fax_line_area_code_get) | **GET** /fax_line/area_codes | Get Available Fax Line Area Codes |
+|*Dropbox::Sign::FaxLineApi* | [**fax_line_create**](docs/FaxLineApi.md#fax_line_create) | **POST** /fax_line/create | Purchase Fax Line |
+|*Dropbox::Sign::FaxLineApi* | [**fax_line_delete**](docs/FaxLineApi.md#fax_line_delete) | **DELETE** /fax_line | Delete Fax Line |
+|*Dropbox::Sign::FaxLineApi* | [**fax_line_get**](docs/FaxLineApi.md#fax_line_get) | **GET** /fax_line | Get Fax Line |
+|*Dropbox::Sign::FaxLineApi* | [**fax_line_list**](docs/FaxLineApi.md#fax_line_list) | **GET** /fax_line/list | List Fax Lines |
+|*Dropbox::Sign::FaxLineApi* | [**fax_line_remove_user**](docs/FaxLineApi.md#fax_line_remove_user) | **PUT** /fax_line/remove_user | Remove Fax Line Access |
|*Dropbox::Sign::OAuthApi* | [**oauth_token_generate**](docs/OAuthApi.md#oauth_token_generate) | **POST** /oauth/token | OAuth Token Generate |
|*Dropbox::Sign::OAuthApi* | [**oauth_token_refresh**](docs/OAuthApi.md#oauth_token_refresh) | **POST** /oauth/token?refresh | OAuth Token Refresh |
|*Dropbox::Sign::ReportApi* | [**report_create**](docs/ReportApi.md#report_create) | **POST** /report/create | Create Report |
@@ -202,6 +210,17 @@ All URIs are relative to *https://api.hellosign.com/v3*
- [Dropbox::Sign::EventCallbackRequest](docs/EventCallbackRequest.md)
- [Dropbox::Sign::EventCallbackRequestEvent](docs/EventCallbackRequestEvent.md)
- [Dropbox::Sign::EventCallbackRequestEventMetadata](docs/EventCallbackRequestEventMetadata.md)
+ - [Dropbox::Sign::FaxLineAddUserRequest](docs/FaxLineAddUserRequest.md)
+ - [Dropbox::Sign::FaxLineAreaCodeGetCountryEnum](docs/FaxLineAreaCodeGetCountryEnum.md)
+ - [Dropbox::Sign::FaxLineAreaCodeGetProvinceEnum](docs/FaxLineAreaCodeGetProvinceEnum.md)
+ - [Dropbox::Sign::FaxLineAreaCodeGetResponse](docs/FaxLineAreaCodeGetResponse.md)
+ - [Dropbox::Sign::FaxLineAreaCodeGetStateEnum](docs/FaxLineAreaCodeGetStateEnum.md)
+ - [Dropbox::Sign::FaxLineCreateRequest](docs/FaxLineCreateRequest.md)
+ - [Dropbox::Sign::FaxLineDeleteRequest](docs/FaxLineDeleteRequest.md)
+ - [Dropbox::Sign::FaxLineListResponse](docs/FaxLineListResponse.md)
+ - [Dropbox::Sign::FaxLineRemoveUserRequest](docs/FaxLineRemoveUserRequest.md)
+ - [Dropbox::Sign::FaxLineResponse](docs/FaxLineResponse.md)
+ - [Dropbox::Sign::FaxLineResponseFaxLine](docs/FaxLineResponseFaxLine.md)
- [Dropbox::Sign::FileResponse](docs/FileResponse.md)
- [Dropbox::Sign::FileResponseDataUri](docs/FileResponseDataUri.md)
- [Dropbox::Sign::ListInfoResponse](docs/ListInfoResponse.md)
diff --git a/VERSION b/VERSION
index bc80560..dc1e644 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.5.0
+1.6.0
diff --git a/docs/AccountCreateResponse.md b/docs/AccountCreateResponse.md
index f3c06e6..0a15db3 100644
--- a/docs/AccountCreateResponse.md
+++ b/docs/AccountCreateResponse.md
@@ -6,7 +6,7 @@
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
-| `account` | [```AccountResponse```](AccountResponse.md) | | |
+| `account`*_required_ | [```AccountResponse```](AccountResponse.md) | | |
| `oauth_data` | [```OAuthTokenResponse```](OAuthTokenResponse.md) | | |
| `warnings` | [```Array```](WarningResponse.md) | A list of warnings. | |
diff --git a/docs/AccountGetResponse.md b/docs/AccountGetResponse.md
index 9c5a3e0..f3b1334 100644
--- a/docs/AccountGetResponse.md
+++ b/docs/AccountGetResponse.md
@@ -6,6 +6,6 @@
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
-| `account` | [```AccountResponse```](AccountResponse.md) | | |
+| `account`*_required_ | [```AccountResponse```](AccountResponse.md) | | |
| `warnings` | [```Array```](WarningResponse.md) | A list of warnings. | |
diff --git a/docs/ApiAppGetResponse.md b/docs/ApiAppGetResponse.md
index 37e238f..51a6a9c 100644
--- a/docs/ApiAppGetResponse.md
+++ b/docs/ApiAppGetResponse.md
@@ -6,6 +6,6 @@
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
-| `api_app` | [```ApiAppResponse```](ApiAppResponse.md) | | |
+| `api_app`*_required_ | [```ApiAppResponse```](ApiAppResponse.md) | | |
| `warnings` | [```Array```](WarningResponse.md) | A list of warnings. | |
diff --git a/docs/ApiAppListResponse.md b/docs/ApiAppListResponse.md
index 31e4563..fe9d1f0 100644
--- a/docs/ApiAppListResponse.md
+++ b/docs/ApiAppListResponse.md
@@ -6,7 +6,7 @@
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
-| `api_apps` | [```Array```](ApiAppResponse.md) | Contains information about API Apps. | |
-| `list_info` | [```ListInfoResponse```](ListInfoResponse.md) | | |
+| `api_apps`*_required_ | [```Array```](ApiAppResponse.md) | Contains information about API Apps. | |
+| `list_info`*_required_ | [```ListInfoResponse```](ListInfoResponse.md) | | |
| `warnings` | [```Array```](WarningResponse.md) | A list of warnings. | |
diff --git a/docs/BulkSendJobGetResponse.md b/docs/BulkSendJobGetResponse.md
index 09344b1..b110bcc 100644
--- a/docs/BulkSendJobGetResponse.md
+++ b/docs/BulkSendJobGetResponse.md
@@ -6,8 +6,8 @@
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
-| `bulk_send_job` | [```BulkSendJobResponse```](BulkSendJobResponse.md) | | |
-| `list_info` | [```ListInfoResponse```](ListInfoResponse.md) | | |
-| `signature_requests` | [```Array```](BulkSendJobGetResponseSignatureRequests.md) | Contains information about the Signature Requests sent in bulk. | |
+| `bulk_send_job`*_required_ | [```BulkSendJobResponse```](BulkSendJobResponse.md) | | |
+| `list_info`*_required_ | [```ListInfoResponse```](ListInfoResponse.md) | | |
+| `signature_requests`*_required_ | [```Array```](BulkSendJobGetResponseSignatureRequests.md) | Contains information about the Signature Requests sent in bulk. | |
| `warnings` | [```Array```](WarningResponse.md) | A list of warnings. | |
diff --git a/docs/BulkSendJobListResponse.md b/docs/BulkSendJobListResponse.md
index 44b4301..deae213 100644
--- a/docs/BulkSendJobListResponse.md
+++ b/docs/BulkSendJobListResponse.md
@@ -6,7 +6,7 @@
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
-| `bulk_send_jobs` | [```Array```](BulkSendJobResponse.md) | Contains a list of BulkSendJobs that the API caller has access to. | |
-| `list_info` | [```ListInfoResponse```](ListInfoResponse.md) | | |
+| `bulk_send_jobs`*_required_ | [```Array```](BulkSendJobResponse.md) | Contains a list of BulkSendJobs that the API caller has access to. | |
+| `list_info`*_required_ | [```ListInfoResponse```](ListInfoResponse.md) | | |
| `warnings` | [```Array```](WarningResponse.md) | A list of warnings. | |
diff --git a/docs/BulkSendJobSendResponse.md b/docs/BulkSendJobSendResponse.md
index 0e291c0..a352d83 100644
--- a/docs/BulkSendJobSendResponse.md
+++ b/docs/BulkSendJobSendResponse.md
@@ -6,6 +6,6 @@
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
-| `bulk_send_job` | [```BulkSendJobResponse```](BulkSendJobResponse.md) | | |
+| `bulk_send_job`*_required_ | [```BulkSendJobResponse```](BulkSendJobResponse.md) | | |
| `warnings` | [```Array```](WarningResponse.md) | A list of warnings. | |
diff --git a/docs/EmbeddedEditUrlResponse.md b/docs/EmbeddedEditUrlResponse.md
index 9ad0b65..00e1f28 100644
--- a/docs/EmbeddedEditUrlResponse.md
+++ b/docs/EmbeddedEditUrlResponse.md
@@ -6,6 +6,6 @@
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
-| `embedded` | [```EmbeddedEditUrlResponseEmbedded```](EmbeddedEditUrlResponseEmbedded.md) | | |
+| `embedded`*_required_ | [```EmbeddedEditUrlResponseEmbedded```](EmbeddedEditUrlResponseEmbedded.md) | | |
| `warnings` | [```Array```](WarningResponse.md) | A list of warnings. | |
diff --git a/docs/EmbeddedSignUrlResponse.md b/docs/EmbeddedSignUrlResponse.md
index 174cfb7..fcd6938 100644
--- a/docs/EmbeddedSignUrlResponse.md
+++ b/docs/EmbeddedSignUrlResponse.md
@@ -6,6 +6,6 @@
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
-| `embedded` | [```EmbeddedSignUrlResponseEmbedded```](EmbeddedSignUrlResponseEmbedded.md) | | |
+| `embedded`*_required_ | [```EmbeddedSignUrlResponseEmbedded```](EmbeddedSignUrlResponseEmbedded.md) | | |
| `warnings` | [```Array```](WarningResponse.md) | A list of warnings. | |
diff --git a/docs/FaxLineAddUserRequest.md b/docs/FaxLineAddUserRequest.md
new file mode 100644
index 0000000..272d383
--- /dev/null
+++ b/docs/FaxLineAddUserRequest.md
@@ -0,0 +1,12 @@
+# Dropbox::Sign::FaxLineAddUserRequest
+
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+| `number`*_required_ | ```String``` | The Fax Line number. | |
+| `account_id` | ```String``` | Account ID | |
+| `email_address` | ```String``` | Email address | |
+
diff --git a/docs/FaxLineApi.md b/docs/FaxLineApi.md
new file mode 100644
index 0000000..f5b1d3b
--- /dev/null
+++ b/docs/FaxLineApi.md
@@ -0,0 +1,503 @@
+# Dropbox::Sign::FaxLineApi
+
+All URIs are relative to *https://api.hellosign.com/v3*
+
+| Method | HTTP request | Description |
+| ------ | ------------ | ----------- |
+| [`fax_line_add_user`](FaxLineApi.md#fax_line_add_user) | **PUT** `/fax_line/add_user` | Add Fax Line User |
+| [`fax_line_area_code_get`](FaxLineApi.md#fax_line_area_code_get) | **GET** `/fax_line/area_codes` | Get Available Fax Line Area Codes |
+| [`fax_line_create`](FaxLineApi.md#fax_line_create) | **POST** `/fax_line/create` | Purchase Fax Line |
+| [`fax_line_delete`](FaxLineApi.md#fax_line_delete) | **DELETE** `/fax_line` | Delete Fax Line |
+| [`fax_line_get`](FaxLineApi.md#fax_line_get) | **GET** `/fax_line` | Get Fax Line |
+| [`fax_line_list`](FaxLineApi.md#fax_line_list) | **GET** `/fax_line/list` | List Fax Lines |
+| [`fax_line_remove_user`](FaxLineApi.md#fax_line_remove_user) | **PUT** `/fax_line/remove_user` | Remove Fax Line Access |
+
+
+## `fax_line_add_user`
+
+> ` fax_line_add_user(fax_line_add_user_request)`
+
+Add Fax Line User
+
+Grants a user access to the specified Fax Line.
+
+### Examples
+
+```ruby
+require "dropbox-sign"
+
+Dropbox::Sign.configure do |config|
+ # Configure HTTP basic authorization: api_key
+ config.username = "YOUR_API_KEY"
+end
+
+fax_line_api = Dropbox::Sign::FaxLineApi.new
+
+data = Dropbox::Sign::FaxLineAddUserRequest.new
+data.number = "[FAX_NUMBER]"
+data.email_address = "member@dropboxsign.com"
+
+begin
+ result = fax_line_api.fax_line_add_user(data)
+ p result
+rescue Dropbox::Sign::ApiError => e
+ puts "Exception when calling Dropbox Sign API: #{e}"
+end
+
+```
+
+#### Using the `fax_line_add_user_with_http_info` variant
+
+This returns an Array which contains the response data, status code and headers.
+
+> `, Integer, Hash)> fax_line_add_user_with_http_info(fax_line_add_user_request)`
+
+```ruby
+begin
+ # Add Fax Line User
+ data, status_code, headers = api_instance.fax_line_add_user_with_http_info(fax_line_add_user_request)
+ p status_code # => 2xx
+ p headers # => { ... }
+ p data # =>
+rescue Dropbox::Sign::ApiError => e
+ puts "Error when calling FaxLineApi->fax_line_add_user_with_http_info: #{e}"
+end
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+| `fax_line_add_user_request` | [**FaxLineAddUserRequest**](FaxLineAddUserRequest.md) | | |
+
+### Return type
+
+[**FaxLineResponse**](FaxLineResponse.md)
+
+### Authorization
+
+[api_key](../README.md#api_key)
+
+### HTTP request headers
+
+- **Content-Type**: application/json
+- **Accept**: application/json
+
+
+## `fax_line_area_code_get`
+
+> ` fax_line_area_code_get(country, opts)`
+
+Get Available Fax Line Area Codes
+
+Returns a response with the area codes available for a given state/provice and city.
+
+### Examples
+
+```ruby
+require "dropbox-sign"
+
+Dropbox::Sign.configure do |config|
+ # Configure HTTP basic authorization: api_key
+ config.username = "YOUR_API_KEY"
+end
+
+fax_line_api = Dropbox::Sign::FaxLineApi.new
+
+begin
+ result = fax_line_api.fax_line_area_code_get("US", "CA")
+ p result
+rescue Dropbox::Sign::ApiError => e
+ puts "Exception when calling Dropbox Sign API: #{e}"
+end
+
+```
+
+#### Using the `fax_line_area_code_get_with_http_info` variant
+
+This returns an Array which contains the response data, status code and headers.
+
+> `, Integer, Hash)> fax_line_area_code_get_with_http_info(country, opts)`
+
+```ruby
+begin
+ # Get Available Fax Line Area Codes
+ data, status_code, headers = api_instance.fax_line_area_code_get_with_http_info(country, opts)
+ p status_code # => 2xx
+ p headers # => { ... }
+ p data # =>
+rescue Dropbox::Sign::ApiError => e
+ puts "Error when calling FaxLineApi->fax_line_area_code_get_with_http_info: #{e}"
+end
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+| `country` | **String** | Filter area codes by country. | |
+| `state` | **String** | Filter area codes by state. | [optional] |
+| `province` | **String** | Filter area codes by province. | [optional] |
+| `city` | **String** | Filter area codes by city. | [optional] |
+
+### Return type
+
+[**FaxLineAreaCodeGetResponse**](FaxLineAreaCodeGetResponse.md)
+
+### Authorization
+
+[api_key](../README.md#api_key)
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: application/json
+
+
+## `fax_line_create`
+
+> ` fax_line_create(fax_line_create_request)`
+
+Purchase Fax Line
+
+Purchases a new Fax Line.
+
+### Examples
+
+```ruby
+require "dropbox-sign"
+
+Dropbox::Sign.configure do |config|
+ # Configure HTTP basic authorization: api_key
+ config.username = "YOUR_API_KEY"
+end
+
+fax_line_api = Dropbox::Sign::FaxLineApi.new
+
+data = Dropbox::Sign::FaxLineCreateRequest.new
+data.area_code = 209
+data.country = "US"
+
+begin
+ result = fax_line_api.fax_line_create(data)
+ p result
+rescue Dropbox::Sign::ApiError => e
+ puts "Exception when calling Dropbox Sign API: #{e}"
+end
+
+```
+
+#### Using the `fax_line_create_with_http_info` variant
+
+This returns an Array which contains the response data, status code and headers.
+
+> `, Integer, Hash)> fax_line_create_with_http_info(fax_line_create_request)`
+
+```ruby
+begin
+ # Purchase Fax Line
+ data, status_code, headers = api_instance.fax_line_create_with_http_info(fax_line_create_request)
+ p status_code # => 2xx
+ p headers # => { ... }
+ p data # =>
+rescue Dropbox::Sign::ApiError => e
+ puts "Error when calling FaxLineApi->fax_line_create_with_http_info: #{e}"
+end
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+| `fax_line_create_request` | [**FaxLineCreateRequest**](FaxLineCreateRequest.md) | | |
+
+### Return type
+
+[**FaxLineResponse**](FaxLineResponse.md)
+
+### Authorization
+
+[api_key](../README.md#api_key)
+
+### HTTP request headers
+
+- **Content-Type**: application/json
+- **Accept**: application/json
+
+
+## `fax_line_delete`
+
+> `fax_line_delete(fax_line_delete_request)`
+
+Delete Fax Line
+
+Deletes the specified Fax Line from the subscription.
+
+### Examples
+
+```ruby
+require "dropbox-sign"
+
+Dropbox::Sign.configure do |config|
+ # Configure HTTP basic authorization: api_key
+ config.username = "YOUR_API_KEY"
+end
+
+fax_line_api = Dropbox::Sign::FaxLineApi.new
+
+data = Dropbox::Sign::FaxLineDeleteRequest.new
+data.number = "[FAX_NUMBER]"
+
+begin
+ fax_line_api.fax_line_delete(data)
+rescue Dropbox::Sign::ApiError => e
+ puts "Exception when calling Dropbox Sign API: #{e}"
+end
+
+```
+
+#### Using the `fax_line_delete_with_http_info` variant
+
+This returns an Array which contains the response data (`nil` in this case), status code and headers.
+
+> ` fax_line_delete_with_http_info(fax_line_delete_request)`
+
+```ruby
+begin
+ # Delete Fax Line
+ data, status_code, headers = api_instance.fax_line_delete_with_http_info(fax_line_delete_request)
+ p status_code # => 2xx
+ p headers # => { ... }
+ p data # => nil
+rescue Dropbox::Sign::ApiError => e
+ puts "Error when calling FaxLineApi->fax_line_delete_with_http_info: #{e}"
+end
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+| `fax_line_delete_request` | [**FaxLineDeleteRequest**](FaxLineDeleteRequest.md) | | |
+
+### Return type
+
+nil (empty response body)
+
+### Authorization
+
+[api_key](../README.md#api_key)
+
+### HTTP request headers
+
+- **Content-Type**: application/json
+- **Accept**: application/json
+
+
+## `fax_line_get`
+
+> ` fax_line_get(number)`
+
+Get Fax Line
+
+Returns the properties and settings of a Fax Line.
+
+### Examples
+
+```ruby
+require "dropbox-sign"
+
+Dropbox::Sign.configure do |config|
+ # Configure HTTP basic authorization: api_key
+ config.username = "YOUR_API_KEY"
+end
+
+fax_line_api = Dropbox::Sign::FaxLineApi.new
+
+begin
+ result = fax_line_api.fax_line_get("[NUMBER]")
+ p result
+rescue Dropbox::Sign::ApiError => e
+ puts "Exception when calling Dropbox Sign API: #{e}"
+end
+
+```
+
+#### Using the `fax_line_get_with_http_info` variant
+
+This returns an Array which contains the response data, status code and headers.
+
+> `, Integer, Hash)> fax_line_get_with_http_info(number)`
+
+```ruby
+begin
+ # Get Fax Line
+ data, status_code, headers = api_instance.fax_line_get_with_http_info(number)
+ p status_code # => 2xx
+ p headers # => { ... }
+ p data # =>
+rescue Dropbox::Sign::ApiError => e
+ puts "Error when calling FaxLineApi->fax_line_get_with_http_info: #{e}"
+end
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+| `number` | **String** | The Fax Line number. | |
+
+### Return type
+
+[**FaxLineResponse**](FaxLineResponse.md)
+
+### Authorization
+
+[api_key](../README.md#api_key)
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: application/json
+
+
+## `fax_line_list`
+
+> ` fax_line_list(opts)`
+
+List Fax Lines
+
+Returns the properties and settings of multiple Fax Lines.
+
+### Examples
+
+```ruby
+require "dropbox-sign"
+
+Dropbox::Sign.configure do |config|
+ # Configure HTTP basic authorization: api_key
+ config.username = "YOUR_API_KEY"
+end
+
+fax_line_api = Dropbox::Sign::FaxLineApi.new
+
+begin
+ result = fax_line_api.fax_line_list()
+ p result
+rescue Dropbox::Sign::ApiError => e
+ puts "Exception when calling Dropbox Sign API: #{e}"
+end
+
+```
+
+#### Using the `fax_line_list_with_http_info` variant
+
+This returns an Array which contains the response data, status code and headers.
+
+> `, Integer, Hash)> fax_line_list_with_http_info(opts)`
+
+```ruby
+begin
+ # List Fax Lines
+ data, status_code, headers = api_instance.fax_line_list_with_http_info(opts)
+ p status_code # => 2xx
+ p headers # => { ... }
+ p data # =>
+rescue Dropbox::Sign::ApiError => e
+ puts "Error when calling FaxLineApi->fax_line_list_with_http_info: #{e}"
+end
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+| `account_id` | **String** | Account ID | [optional] |
+| `page` | **Integer** | Page | [optional][default to 1] |
+| `page_size` | **Integer** | Page size | [optional][default to 20] |
+| `show_team_lines` | **Boolean** | Show team lines | [optional] |
+
+### Return type
+
+[**FaxLineListResponse**](FaxLineListResponse.md)
+
+### Authorization
+
+[api_key](../README.md#api_key)
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: application/json
+
+
+## `fax_line_remove_user`
+
+> ` fax_line_remove_user(fax_line_remove_user_request)`
+
+Remove Fax Line Access
+
+Removes a user's access to the specified Fax Line.
+
+### Examples
+
+```ruby
+require "dropbox-sign"
+
+Dropbox::Sign.configure do |config|
+ # Configure HTTP basic authorization: api_key
+ config.username = "YOUR_API_KEY"
+end
+
+fax_line_api = Dropbox::Sign::FaxLineApi.new
+
+data = Dropbox::Sign::FaxLineRemoveUserRequest.new
+data.number = "[FAX_NUMBER]"
+data.email_address = "member@dropboxsign.com"
+
+begin
+ result = fax_line_api.fax_line_remove_user(data)
+ p result
+rescue Dropbox::Sign::ApiError => e
+ puts "Exception when calling Dropbox Sign API: #{e}"
+end
+
+```
+
+#### Using the `fax_line_remove_user_with_http_info` variant
+
+This returns an Array which contains the response data, status code and headers.
+
+> `, Integer, Hash)> fax_line_remove_user_with_http_info(fax_line_remove_user_request)`
+
+```ruby
+begin
+ # Remove Fax Line Access
+ data, status_code, headers = api_instance.fax_line_remove_user_with_http_info(fax_line_remove_user_request)
+ p status_code # => 2xx
+ p headers # => { ... }
+ p data # =>
+rescue Dropbox::Sign::ApiError => e
+ puts "Error when calling FaxLineApi->fax_line_remove_user_with_http_info: #{e}"
+end
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+| `fax_line_remove_user_request` | [**FaxLineRemoveUserRequest**](FaxLineRemoveUserRequest.md) | | |
+
+### Return type
+
+[**FaxLineResponse**](FaxLineResponse.md)
+
+### Authorization
+
+[api_key](../README.md#api_key)
+
+### HTTP request headers
+
+- **Content-Type**: application/json
+- **Accept**: application/json
+
diff --git a/docs/FaxLineAreaCodeGetCountryEnum.md b/docs/FaxLineAreaCodeGetCountryEnum.md
new file mode 100644
index 0000000..1b6b5aa
--- /dev/null
+++ b/docs/FaxLineAreaCodeGetCountryEnum.md
@@ -0,0 +1,9 @@
+# Dropbox::Sign::FaxLineAreaCodeGetCountryEnum
+
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+
diff --git a/docs/FaxLineAreaCodeGetProvinceEnum.md b/docs/FaxLineAreaCodeGetProvinceEnum.md
new file mode 100644
index 0000000..26d51f7
--- /dev/null
+++ b/docs/FaxLineAreaCodeGetProvinceEnum.md
@@ -0,0 +1,9 @@
+# Dropbox::Sign::FaxLineAreaCodeGetProvinceEnum
+
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+
diff --git a/docs/FaxLineAreaCodeGetResponse.md b/docs/FaxLineAreaCodeGetResponse.md
new file mode 100644
index 0000000..217a335
--- /dev/null
+++ b/docs/FaxLineAreaCodeGetResponse.md
@@ -0,0 +1,10 @@
+# Dropbox::Sign::FaxLineAreaCodeGetResponse
+
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+| `area_codes`*_required_ | ```Array``` | | |
+
diff --git a/docs/FaxLineAreaCodeGetStateEnum.md b/docs/FaxLineAreaCodeGetStateEnum.md
new file mode 100644
index 0000000..92f903f
--- /dev/null
+++ b/docs/FaxLineAreaCodeGetStateEnum.md
@@ -0,0 +1,9 @@
+# Dropbox::Sign::FaxLineAreaCodeGetStateEnum
+
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+
diff --git a/docs/FaxLineCreateRequest.md b/docs/FaxLineCreateRequest.md
new file mode 100644
index 0000000..bbe5312
--- /dev/null
+++ b/docs/FaxLineCreateRequest.md
@@ -0,0 +1,13 @@
+# Dropbox::Sign::FaxLineCreateRequest
+
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+| `area_code`*_required_ | ```Integer``` | Area code | |
+| `country`*_required_ | ```String``` | Country | |
+| `city` | ```String``` | City | |
+| `account_id` | ```String``` | Account ID | |
+
diff --git a/docs/FaxLineDeleteRequest.md b/docs/FaxLineDeleteRequest.md
new file mode 100644
index 0000000..5c781f3
--- /dev/null
+++ b/docs/FaxLineDeleteRequest.md
@@ -0,0 +1,10 @@
+# Dropbox::Sign::FaxLineDeleteRequest
+
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+| `number`*_required_ | ```String``` | The Fax Line number. | |
+
diff --git a/docs/FaxLineListResponse.md b/docs/FaxLineListResponse.md
new file mode 100644
index 0000000..660716a
--- /dev/null
+++ b/docs/FaxLineListResponse.md
@@ -0,0 +1,12 @@
+# Dropbox::Sign::FaxLineListResponse
+
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+| `list_info`*_required_ | [```ListInfoResponse```](ListInfoResponse.md) | | |
+| `fax_lines`*_required_ | [```Array```](FaxLineResponseFaxLine.md) | | |
+| `warnings` | [```WarningResponse```](WarningResponse.md) | | |
+
diff --git a/docs/FaxLineRemoveUserRequest.md b/docs/FaxLineRemoveUserRequest.md
new file mode 100644
index 0000000..98388f6
--- /dev/null
+++ b/docs/FaxLineRemoveUserRequest.md
@@ -0,0 +1,12 @@
+# Dropbox::Sign::FaxLineRemoveUserRequest
+
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+| `number`*_required_ | ```String``` | The Fax Line number. | |
+| `account_id` | ```String``` | Account ID | |
+| `email_address` | ```String``` | Email address | |
+
diff --git a/docs/FaxLineResponse.md b/docs/FaxLineResponse.md
new file mode 100644
index 0000000..af09d87
--- /dev/null
+++ b/docs/FaxLineResponse.md
@@ -0,0 +1,11 @@
+# Dropbox::Sign::FaxLineResponse
+
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+| `fax_line`*_required_ | [```FaxLineResponseFaxLine```](FaxLineResponseFaxLine.md) | | |
+| `warnings` | [```WarningResponse```](WarningResponse.md) | | |
+
diff --git a/docs/FaxLineResponseFaxLine.md b/docs/FaxLineResponseFaxLine.md
new file mode 100644
index 0000000..03d2a1d
--- /dev/null
+++ b/docs/FaxLineResponseFaxLine.md
@@ -0,0 +1,13 @@
+# Dropbox::Sign::FaxLineResponseFaxLine
+
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+| `number` | ```String``` | Number | |
+| `created_at` | ```Integer``` | Created at | |
+| `updated_at` | ```Integer``` | Updated at | |
+| `accounts` | [```Array```](AccountResponse.md) | | |
+
diff --git a/docs/FileResponse.md b/docs/FileResponse.md
index 639e4c9..0716b74 100644
--- a/docs/FileResponse.md
+++ b/docs/FileResponse.md
@@ -6,6 +6,6 @@
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
-| `file_url` | ```String``` | URL to the file. | |
-| `expires_at` | ```Integer``` | When the link expires. | |
+| `file_url`*_required_ | ```String``` | URL to the file. | |
+| `expires_at`*_required_ | ```Integer``` | When the link expires. | |
diff --git a/docs/FileResponseDataUri.md b/docs/FileResponseDataUri.md
index 8536b9d..57ebb1e 100644
--- a/docs/FileResponseDataUri.md
+++ b/docs/FileResponseDataUri.md
@@ -6,5 +6,5 @@
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
-| `data_uri` | ```String``` | File as base64 encoded string. | |
+| `data_uri`*_required_ | ```String``` | File as base64 encoded string. | |
diff --git a/docs/ReportCreateResponse.md b/docs/ReportCreateResponse.md
index cf9b22a..970ef62 100644
--- a/docs/ReportCreateResponse.md
+++ b/docs/ReportCreateResponse.md
@@ -6,6 +6,6 @@
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
-| `report` | [```ReportResponse```](ReportResponse.md) | | |
+| `report`*_required_ | [```ReportResponse```](ReportResponse.md) | | |
| `warnings` | [```Array```](WarningResponse.md) | A list of warnings. | |
diff --git a/docs/SignatureRequestGetResponse.md b/docs/SignatureRequestGetResponse.md
index b38bc8e..8afab07 100644
--- a/docs/SignatureRequestGetResponse.md
+++ b/docs/SignatureRequestGetResponse.md
@@ -6,6 +6,6 @@
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
-| `signature_request` | [```SignatureRequestResponse```](SignatureRequestResponse.md) | | |
+| `signature_request`*_required_ | [```SignatureRequestResponse```](SignatureRequestResponse.md) | | |
| `warnings` | [```Array```](WarningResponse.md) | A list of warnings. | |
diff --git a/docs/SignatureRequestListResponse.md b/docs/SignatureRequestListResponse.md
index 0e4c47a..24dc69f 100644
--- a/docs/SignatureRequestListResponse.md
+++ b/docs/SignatureRequestListResponse.md
@@ -6,7 +6,7 @@
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
-| `signature_requests` | [```Array```](SignatureRequestResponse.md) | Contains information about signature requests. | |
-| `list_info` | [```ListInfoResponse```](ListInfoResponse.md) | | |
+| `signature_requests`*_required_ | [```Array```](SignatureRequestResponse.md) | Contains information about signature requests. | |
+| `list_info`*_required_ | [```ListInfoResponse```](ListInfoResponse.md) | | |
| `warnings` | [```Array```](WarningResponse.md) | A list of warnings. | |
diff --git a/docs/TeamGetInfoResponse.md b/docs/TeamGetInfoResponse.md
index d826249..f2ed627 100644
--- a/docs/TeamGetInfoResponse.md
+++ b/docs/TeamGetInfoResponse.md
@@ -6,6 +6,6 @@
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
-| `team` | [```TeamInfoResponse```](TeamInfoResponse.md) | | |
+| `team`*_required_ | [```TeamInfoResponse```](TeamInfoResponse.md) | | |
| `warnings` | [```Array```](WarningResponse.md) | A list of warnings. | |
diff --git a/docs/TeamGetResponse.md b/docs/TeamGetResponse.md
index 92bc3c9..9c5bd49 100644
--- a/docs/TeamGetResponse.md
+++ b/docs/TeamGetResponse.md
@@ -6,6 +6,6 @@
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
-| `team` | [```TeamResponse```](TeamResponse.md) | | |
+| `team`*_required_ | [```TeamResponse```](TeamResponse.md) | | |
| `warnings` | [```Array```](WarningResponse.md) | A list of warnings. | |
diff --git a/docs/TeamInvitesResponse.md b/docs/TeamInvitesResponse.md
index bd9e904..6adccaf 100644
--- a/docs/TeamInvitesResponse.md
+++ b/docs/TeamInvitesResponse.md
@@ -6,6 +6,6 @@
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
-| `team_invites` | [```Array```](TeamInviteResponse.md) | Contains a list of team invites and their roles. | |
+| `team_invites`*_required_ | [```Array```](TeamInviteResponse.md) | Contains a list of team invites and their roles. | |
| `warnings` | [```Array```](WarningResponse.md) | | |
diff --git a/docs/TeamMembersResponse.md b/docs/TeamMembersResponse.md
index 4f30c70..1568318 100644
--- a/docs/TeamMembersResponse.md
+++ b/docs/TeamMembersResponse.md
@@ -6,7 +6,7 @@
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
-| `team_members` | [```Array```](TeamMemberResponse.md) | Contains a list of team members and their roles for a specific team. | |
-| `list_info` | [```ListInfoResponse```](ListInfoResponse.md) | | |
+| `team_members`*_required_ | [```Array```](TeamMemberResponse.md) | Contains a list of team members and their roles for a specific team. | |
+| `list_info`*_required_ | [```ListInfoResponse```](ListInfoResponse.md) | | |
| `warnings` | [```Array```](WarningResponse.md) | | |
diff --git a/docs/TeamSubTeamsResponse.md b/docs/TeamSubTeamsResponse.md
index ebc1fbe..77990a6 100644
--- a/docs/TeamSubTeamsResponse.md
+++ b/docs/TeamSubTeamsResponse.md
@@ -6,7 +6,7 @@
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
-| `sub_teams` | [```Array```](SubTeamResponse.md) | Contains a list with sub teams. | |
-| `list_info` | [```ListInfoResponse```](ListInfoResponse.md) | | |
+| `sub_teams`*_required_ | [```Array```](SubTeamResponse.md) | Contains a list with sub teams. | |
+| `list_info`*_required_ | [```ListInfoResponse```](ListInfoResponse.md) | | |
| `warnings` | [```Array```](WarningResponse.md) | | |
diff --git a/docs/TemplateCreateEmbeddedDraftResponse.md b/docs/TemplateCreateEmbeddedDraftResponse.md
index 7dba943..74fdd9f 100644
--- a/docs/TemplateCreateEmbeddedDraftResponse.md
+++ b/docs/TemplateCreateEmbeddedDraftResponse.md
@@ -6,6 +6,6 @@
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
-| `template` | [```TemplateCreateEmbeddedDraftResponseTemplate```](TemplateCreateEmbeddedDraftResponseTemplate.md) | | |
+| `template`*_required_ | [```TemplateCreateEmbeddedDraftResponseTemplate```](TemplateCreateEmbeddedDraftResponseTemplate.md) | | |
| `warnings` | [```Array```](WarningResponse.md) | A list of warnings. | |
diff --git a/docs/TemplateCreateResponse.md b/docs/TemplateCreateResponse.md
index 7592150..217f81d 100644
--- a/docs/TemplateCreateResponse.md
+++ b/docs/TemplateCreateResponse.md
@@ -6,6 +6,6 @@
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
-| `template` | [```TemplateCreateResponseTemplate```](TemplateCreateResponseTemplate.md) | | |
+| `template`*_required_ | [```TemplateCreateResponseTemplate```](TemplateCreateResponseTemplate.md) | | |
| `warnings` | [```Array```](WarningResponse.md) | A list of warnings. | |
diff --git a/docs/TemplateEditResponse.md b/docs/TemplateEditResponse.md
index 7d09792..5b46080 100644
--- a/docs/TemplateEditResponse.md
+++ b/docs/TemplateEditResponse.md
@@ -6,5 +6,5 @@
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
-| `template_id` | ```String``` | The id of the Template. | |
+| `template_id`*_required_ | ```String``` | The id of the Template. | |
diff --git a/docs/TemplateGetResponse.md b/docs/TemplateGetResponse.md
index 886548f..73127d1 100644
--- a/docs/TemplateGetResponse.md
+++ b/docs/TemplateGetResponse.md
@@ -6,6 +6,6 @@
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
-| `template` | [```TemplateResponse```](TemplateResponse.md) | | |
+| `template`*_required_ | [```TemplateResponse```](TemplateResponse.md) | | |
| `warnings` | [```Array```](WarningResponse.md) | A list of warnings. | |
diff --git a/docs/TemplateListResponse.md b/docs/TemplateListResponse.md
index 25d72e4..7708321 100644
--- a/docs/TemplateListResponse.md
+++ b/docs/TemplateListResponse.md
@@ -6,7 +6,7 @@
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
-| `templates` | [```Array```](TemplateResponse.md) | List of templates that the API caller has access to. | |
-| `list_info` | [```ListInfoResponse```](ListInfoResponse.md) | | |
+| `templates`*_required_ | [```Array```](TemplateResponse.md) | List of templates that the API caller has access to. | |
+| `list_info`*_required_ | [```ListInfoResponse```](ListInfoResponse.md) | | |
| `warnings` | [```Array```](WarningResponse.md) | A list of warnings. | |
diff --git a/docs/TemplateUpdateFilesResponse.md b/docs/TemplateUpdateFilesResponse.md
index c7d63a1..11677a0 100644
--- a/docs/TemplateUpdateFilesResponse.md
+++ b/docs/TemplateUpdateFilesResponse.md
@@ -6,5 +6,5 @@
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
-| `template` | [```TemplateUpdateFilesResponseTemplate```](TemplateUpdateFilesResponseTemplate.md) | | |
+| `template`*_required_ | [```TemplateUpdateFilesResponseTemplate```](TemplateUpdateFilesResponseTemplate.md) | | |
diff --git a/docs/UnclaimedDraftCreateResponse.md b/docs/UnclaimedDraftCreateResponse.md
index 986a52f..3360875 100644
--- a/docs/UnclaimedDraftCreateResponse.md
+++ b/docs/UnclaimedDraftCreateResponse.md
@@ -6,6 +6,6 @@
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
-| `unclaimed_draft` | [```UnclaimedDraftResponse```](UnclaimedDraftResponse.md) | | |
+| `unclaimed_draft`*_required_ | [```UnclaimedDraftResponse```](UnclaimedDraftResponse.md) | | |
| `warnings` | [```Array```](WarningResponse.md) | A list of warnings. | |
diff --git a/dropbox-sign.gemspec b/dropbox-sign.gemspec
index b0b43f3..b547a06 100755
--- a/dropbox-sign.gemspec
+++ b/dropbox-sign.gemspec
@@ -8,7 +8,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
diff --git a/examples/FaxLineAddUser.rb b/examples/FaxLineAddUser.rb
new file mode 100644
index 0000000..1ad8553
--- /dev/null
+++ b/examples/FaxLineAddUser.rb
@@ -0,0 +1,19 @@
+require "dropbox-sign"
+
+Dropbox::Sign.configure do |config|
+ # Configure HTTP basic authorization: api_key
+ config.username = "YOUR_API_KEY"
+end
+
+fax_line_api = Dropbox::Sign::FaxLineApi.new
+
+data = Dropbox::Sign::FaxLineAddUserRequest.new
+data.number = "[FAX_NUMBER]"
+data.email_address = "member@dropboxsign.com"
+
+begin
+ result = fax_line_api.fax_line_add_user(data)
+ p result
+rescue Dropbox::Sign::ApiError => e
+ puts "Exception when calling Dropbox Sign API: #{e}"
+end
diff --git a/examples/FaxLineAreaCodeGet.rb b/examples/FaxLineAreaCodeGet.rb
new file mode 100644
index 0000000..571fb4f
--- /dev/null
+++ b/examples/FaxLineAreaCodeGet.rb
@@ -0,0 +1,15 @@
+require "dropbox-sign"
+
+Dropbox::Sign.configure do |config|
+ # Configure HTTP basic authorization: api_key
+ config.username = "YOUR_API_KEY"
+end
+
+fax_line_api = Dropbox::Sign::FaxLineApi.new
+
+begin
+ result = fax_line_api.fax_line_area_code_get("US", "CA")
+ p result
+rescue Dropbox::Sign::ApiError => e
+ puts "Exception when calling Dropbox Sign API: #{e}"
+end
diff --git a/examples/FaxLineCreate.rb b/examples/FaxLineCreate.rb
new file mode 100644
index 0000000..2619678
--- /dev/null
+++ b/examples/FaxLineCreate.rb
@@ -0,0 +1,19 @@
+require "dropbox-sign"
+
+Dropbox::Sign.configure do |config|
+ # Configure HTTP basic authorization: api_key
+ config.username = "YOUR_API_KEY"
+end
+
+fax_line_api = Dropbox::Sign::FaxLineApi.new
+
+data = Dropbox::Sign::FaxLineCreateRequest.new
+data.area_code = 209
+data.country = "US"
+
+begin
+ result = fax_line_api.fax_line_create(data)
+ p result
+rescue Dropbox::Sign::ApiError => e
+ puts "Exception when calling Dropbox Sign API: #{e}"
+end
diff --git a/examples/FaxLineDelete.rb b/examples/FaxLineDelete.rb
new file mode 100644
index 0000000..001cf62
--- /dev/null
+++ b/examples/FaxLineDelete.rb
@@ -0,0 +1,17 @@
+require "dropbox-sign"
+
+Dropbox::Sign.configure do |config|
+ # Configure HTTP basic authorization: api_key
+ config.username = "YOUR_API_KEY"
+end
+
+fax_line_api = Dropbox::Sign::FaxLineApi.new
+
+data = Dropbox::Sign::FaxLineDeleteRequest.new
+data.number = "[FAX_NUMBER]"
+
+begin
+ fax_line_api.fax_line_delete(data)
+rescue Dropbox::Sign::ApiError => e
+ puts "Exception when calling Dropbox Sign API: #{e}"
+end
diff --git a/examples/FaxLineGet.rb b/examples/FaxLineGet.rb
new file mode 100644
index 0000000..090c2bd
--- /dev/null
+++ b/examples/FaxLineGet.rb
@@ -0,0 +1,15 @@
+require "dropbox-sign"
+
+Dropbox::Sign.configure do |config|
+ # Configure HTTP basic authorization: api_key
+ config.username = "YOUR_API_KEY"
+end
+
+fax_line_api = Dropbox::Sign::FaxLineApi.new
+
+begin
+ result = fax_line_api.fax_line_get("[NUMBER]")
+ p result
+rescue Dropbox::Sign::ApiError => e
+ puts "Exception when calling Dropbox Sign API: #{e}"
+end
diff --git a/examples/FaxLineList.rb b/examples/FaxLineList.rb
new file mode 100644
index 0000000..23a0ec8
--- /dev/null
+++ b/examples/FaxLineList.rb
@@ -0,0 +1,15 @@
+require "dropbox-sign"
+
+Dropbox::Sign.configure do |config|
+ # Configure HTTP basic authorization: api_key
+ config.username = "YOUR_API_KEY"
+end
+
+fax_line_api = Dropbox::Sign::FaxLineApi.new
+
+begin
+ result = fax_line_api.fax_line_list()
+ p result
+rescue Dropbox::Sign::ApiError => e
+ puts "Exception when calling Dropbox Sign API: #{e}"
+end
diff --git a/examples/FaxLineRemoveUser.rb b/examples/FaxLineRemoveUser.rb
new file mode 100644
index 0000000..98bb7a0
--- /dev/null
+++ b/examples/FaxLineRemoveUser.rb
@@ -0,0 +1,19 @@
+require "dropbox-sign"
+
+Dropbox::Sign.configure do |config|
+ # Configure HTTP basic authorization: api_key
+ config.username = "YOUR_API_KEY"
+end
+
+fax_line_api = Dropbox::Sign::FaxLineApi.new
+
+data = Dropbox::Sign::FaxLineRemoveUserRequest.new
+data.number = "[FAX_NUMBER]"
+data.email_address = "member@dropboxsign.com"
+
+begin
+ result = fax_line_api.fax_line_remove_user(data)
+ p result
+rescue Dropbox::Sign::ApiError => e
+ puts "Exception when calling Dropbox Sign API: #{e}"
+end
diff --git a/lib/dropbox-sign.rb b/lib/dropbox-sign.rb
index 9e790e3..147b296 100644
--- a/lib/dropbox-sign.rb
+++ b/lib/dropbox-sign.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -51,6 +51,17 @@
require 'dropbox-sign/models/event_callback_request'
require 'dropbox-sign/models/event_callback_request_event'
require 'dropbox-sign/models/event_callback_request_event_metadata'
+require 'dropbox-sign/models/fax_line_add_user_request'
+require 'dropbox-sign/models/fax_line_area_code_get_country_enum'
+require 'dropbox-sign/models/fax_line_area_code_get_province_enum'
+require 'dropbox-sign/models/fax_line_area_code_get_response'
+require 'dropbox-sign/models/fax_line_area_code_get_state_enum'
+require 'dropbox-sign/models/fax_line_create_request'
+require 'dropbox-sign/models/fax_line_delete_request'
+require 'dropbox-sign/models/fax_line_list_response'
+require 'dropbox-sign/models/fax_line_remove_user_request'
+require 'dropbox-sign/models/fax_line_response'
+require 'dropbox-sign/models/fax_line_response_fax_line'
require 'dropbox-sign/models/file_response'
require 'dropbox-sign/models/file_response_data_uri'
require 'dropbox-sign/models/list_info_response'
@@ -195,6 +206,7 @@
require 'dropbox-sign/api/api_app_api'
require 'dropbox-sign/api/bulk_send_job_api'
require 'dropbox-sign/api/embedded_api'
+require 'dropbox-sign/api/fax_line_api'
require 'dropbox-sign/api/o_auth_api'
require 'dropbox-sign/api/report_api'
require 'dropbox-sign/api/signature_request_api'
diff --git a/lib/dropbox-sign/api/account_api.rb b/lib/dropbox-sign/api/account_api.rb
index 1a8236d..0354c00 100644
--- a/lib/dropbox-sign/api/account_api.rb
+++ b/lib/dropbox-sign/api/account_api.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -54,7 +54,7 @@ def account_create_with_http_info(account_create_request, opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
@@ -163,7 +163,7 @@ def account_get_with_http_info(opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
post_body = {}
form_params = opts[:form_params] || {}
@@ -257,7 +257,7 @@ def account_update_with_http_info(account_update_request, opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
@@ -366,7 +366,7 @@ def account_verify_with_http_info(account_verify_request, opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
diff --git a/lib/dropbox-sign/api/api_app_api.rb b/lib/dropbox-sign/api/api_app_api.rb
index 809c7e8..0fdc9a6 100644
--- a/lib/dropbox-sign/api/api_app_api.rb
+++ b/lib/dropbox-sign/api/api_app_api.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -54,7 +54,7 @@ def api_app_create_with_http_info(api_app_create_request, opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
if !content_type.nil?
@@ -163,7 +163,7 @@ def api_app_delete_with_http_info(client_id, opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
post_body = {}
form_params = opts[:form_params] || {}
@@ -230,7 +230,7 @@ def api_app_get_with_http_info(client_id, opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
post_body = {}
form_params = opts[:form_params] || {}
@@ -324,7 +324,7 @@ def api_app_list_with_http_info(opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
post_body = {}
form_params = opts[:form_params] || {}
@@ -424,7 +424,7 @@ def api_app_update_with_http_info(client_id, api_app_update_request, opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
if !content_type.nil?
diff --git a/lib/dropbox-sign/api/bulk_send_job_api.rb b/lib/dropbox-sign/api/bulk_send_job_api.rb
index 199add7..567b8c3 100644
--- a/lib/dropbox-sign/api/bulk_send_job_api.rb
+++ b/lib/dropbox-sign/api/bulk_send_job_api.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -60,7 +60,7 @@ def bulk_send_job_get_with_http_info(bulk_send_job_id, opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
post_body = {}
form_params = opts[:form_params] || {}
@@ -154,7 +154,7 @@ def bulk_send_job_list_with_http_info(opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
post_body = {}
form_params = opts[:form_params] || {}
diff --git a/lib/dropbox-sign/api/embedded_api.rb b/lib/dropbox-sign/api/embedded_api.rb
index 0d153ae..1dc0198 100644
--- a/lib/dropbox-sign/api/embedded_api.rb
+++ b/lib/dropbox-sign/api/embedded_api.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -60,7 +60,7 @@ def embedded_edit_url_with_http_info(template_id, embedded_edit_url_request, opt
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
@@ -169,7 +169,7 @@ def embedded_sign_url_with_http_info(signature_id, opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
post_body = {}
form_params = opts[:form_params] || {}
diff --git a/lib/dropbox-sign/api/fax_line_api.rb b/lib/dropbox-sign/api/fax_line_api.rb
new file mode 100644
index 0000000..67815a0
--- /dev/null
+++ b/lib/dropbox-sign/api/fax_line_api.rb
@@ -0,0 +1,746 @@
+=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
+Generator version: 7.8.0
+
+=end
+
+require 'cgi'
+
+module Dropbox
+end
+
+module Dropbox::Sign
+ class FaxLineApi
+ attr_accessor :api_client
+
+ def initialize(api_client = ApiClient.default)
+ @api_client = api_client
+ end
+ # Add Fax Line User
+ # Grants a user access to the specified Fax Line.
+ # @param fax_line_add_user_request [FaxLineAddUserRequest]
+ # @param [Hash] opts the optional parameters
+ # @return [FaxLineResponse]
+ def fax_line_add_user(fax_line_add_user_request, opts = {})
+ data, _status_code, _headers = fax_line_add_user_with_http_info(fax_line_add_user_request, opts)
+ data
+ end
+
+ # Add Fax Line User
+ # Grants a user access to the specified Fax Line.
+ # @param fax_line_add_user_request [FaxLineAddUserRequest]
+ # @param [Hash] opts the optional parameters
+ # @return [Array<(FaxLineResponse, Integer, Hash)>] FaxLineResponse data, response status code and response headers
+ def fax_line_add_user_with_http_info(fax_line_add_user_request, opts = {})
+ if @api_client.config.debugging
+ @api_client.config.logger.debug 'Calling API: FaxLineApi.fax_line_add_user ...'
+ end
+ # verify the required parameter 'fax_line_add_user_request' is set
+ if @api_client.config.client_side_validation && fax_line_add_user_request.nil?
+ fail ArgumentError, "Missing the required parameter 'fax_line_add_user_request' when calling FaxLineApi.fax_line_add_user"
+ end
+ # resource path
+ local_var_path = '/fax_line/add_user'
+
+ # query parameters
+ query_params = opts[:query_params] || {}
+
+ # header parameters
+ header_params = opts[:header_params] || {}
+ # HTTP header 'Accept' (if needed)
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
+ # HTTP header 'Content-Type'
+ content_type = @api_client.select_header_content_type(['application/json'])
+ if !content_type.nil?
+ header_params['Content-Type'] = content_type
+ end
+
+ post_body = {}
+ form_params = opts[:form_params] || {}
+ result = @api_client.generate_form_data(
+ fax_line_add_user_request,
+ Dropbox::Sign::FaxLineAddUserRequest.openapi_types
+ )
+
+ # form parameters
+ if result[:has_file]
+ form_params = opts[:form_params] || result[:params]
+ header_params['Content-Type'] = 'multipart/form-data'
+ else
+ # http body (model)
+ post_body = opts[:debug_body] || result[:params]
+ end
+
+ # return_type
+ return_type = opts[:debug_return_type] || 'FaxLineResponse'
+
+ # auth_names
+ auth_names = opts[:debug_auth_names] || ['api_key']
+
+ new_options = opts.merge(
+ :operation => :"FaxLineApi.fax_line_add_user",
+ :header_params => header_params,
+ :query_params => query_params,
+ :form_params => form_params,
+ :body => post_body,
+ :auth_names => auth_names,
+ :return_type => return_type
+ )
+
+ begin
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
+ rescue Dropbox::Sign::ApiError => e
+ if e.code === 200
+ body = @api_client.convert_to_type(
+ JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0],
+ "Dropbox::Sign::FaxLineResponse"
+ )
+
+ fail ApiError.new(:code => e.code,
+ :response_headers => e.response_headers,
+ :response_body => body),
+ e.message
+ end
+
+ range_code = "4XX".split('').first
+ range_code_left = "#{range_code}00".to_i
+ range_code_right = "#{range_code}99".to_i
+ if e.code >= range_code_left && e.code <= range_code_right
+ body = @api_client.convert_to_type(
+ JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0],
+ "Dropbox::Sign::ErrorResponse"
+ )
+
+ fail ApiError.new(:code => e.code,
+ :response_headers => e.response_headers,
+ :response_body => body),
+ e.message
+ end
+
+ end
+
+ if @api_client.config.debugging
+ @api_client.config.logger.debug "API called: FaxLineApi#fax_line_add_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
+ end
+ return data, status_code, headers
+ end
+
+ # Get Available Fax Line Area Codes
+ # Returns a response with the area codes available for a given state/provice and city.
+ # @param country [String] Filter area codes by country.
+ # @param [Hash] opts the optional parameters
+ # @option opts [String] :state Filter area codes by state.
+ # @option opts [String] :province Filter area codes by province.
+ # @option opts [String] :city Filter area codes by city.
+ # @return [FaxLineAreaCodeGetResponse]
+ def fax_line_area_code_get(country, opts = {})
+ data, _status_code, _headers = fax_line_area_code_get_with_http_info(country, opts)
+ data
+ end
+
+ # Get Available Fax Line Area Codes
+ # Returns a response with the area codes available for a given state/provice and city.
+ # @param country [String] Filter area codes by country.
+ # @param [Hash] opts the optional parameters
+ # @option opts [String] :state Filter area codes by state.
+ # @option opts [String] :province Filter area codes by province.
+ # @option opts [String] :city Filter area codes by city.
+ # @return [Array<(FaxLineAreaCodeGetResponse, Integer, Hash)>] FaxLineAreaCodeGetResponse data, response status code and response headers
+ def fax_line_area_code_get_with_http_info(country, opts = {})
+ if @api_client.config.debugging
+ @api_client.config.logger.debug 'Calling API: FaxLineApi.fax_line_area_code_get ...'
+ end
+ # verify the required parameter 'country' is set
+ if @api_client.config.client_side_validation && country.nil?
+ fail ArgumentError, "Missing the required parameter 'country' when calling FaxLineApi.fax_line_area_code_get"
+ end
+ # verify enum value
+ allowable_values = ["CA", "US", "UK"]
+ if @api_client.config.client_side_validation && !allowable_values.include?(country)
+ fail ArgumentError, "invalid value for \"country\", must be one of #{allowable_values}"
+ end
+ allowable_values = ["AK", "AL", "AR", "AZ", "CA", "CO", "CT", "DC", "DE", "FL", "GA", "HI", "IA", "ID", "IL", "IN", "KS", "KY", "LA", "MA", "MD", "ME", "MI", "MN", "MO", "MS", "MT", "NC", "ND", "NE", "NH", "NJ", "NM", "NV", "NY", "OH", "OK", "OR", "PA", "RI", "SC", "SD", "TN", "TX", "UT", "VA", "VT", "WA", "WI", "WV", "WY"]
+ if @api_client.config.client_side_validation && opts[:'state'] && !allowable_values.include?(opts[:'state'])
+ fail ArgumentError, "invalid value for \"state\", must be one of #{allowable_values}"
+ end
+ allowable_values = ["AB", "BC", "MB", "NB", "NL", "NT", "NS", "NU", "ON", "PE", "QC", "SK", "YT"]
+ if @api_client.config.client_side_validation && opts[:'province'] && !allowable_values.include?(opts[:'province'])
+ fail ArgumentError, "invalid value for \"province\", must be one of #{allowable_values}"
+ end
+ # resource path
+ local_var_path = '/fax_line/area_codes'
+
+ # query parameters
+ query_params = opts[:query_params] || {}
+ query_params[:'country'] = country
+ query_params[:'state'] = opts[:'state'] if !opts[:'state'].nil?
+ query_params[:'province'] = opts[:'province'] if !opts[:'province'].nil?
+ query_params[:'city'] = opts[:'city'] if !opts[:'city'].nil?
+
+ # header parameters
+ header_params = opts[:header_params] || {}
+ # HTTP header 'Accept' (if needed)
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
+
+ post_body = {}
+ form_params = opts[:form_params] || {}
+
+ # http body (model)
+ post_body = opts[:debug_body]
+
+ # return_type
+ return_type = opts[:debug_return_type] || 'FaxLineAreaCodeGetResponse'
+
+ # auth_names
+ auth_names = opts[:debug_auth_names] || ['api_key']
+
+ new_options = opts.merge(
+ :operation => :"FaxLineApi.fax_line_area_code_get",
+ :header_params => header_params,
+ :query_params => query_params,
+ :form_params => form_params,
+ :body => post_body,
+ :auth_names => auth_names,
+ :return_type => return_type
+ )
+
+ begin
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
+ rescue Dropbox::Sign::ApiError => e
+ if e.code === 200
+ body = @api_client.convert_to_type(
+ JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0],
+ "Dropbox::Sign::FaxLineAreaCodeGetResponse"
+ )
+
+ fail ApiError.new(:code => e.code,
+ :response_headers => e.response_headers,
+ :response_body => body),
+ e.message
+ end
+
+ range_code = "4XX".split('').first
+ range_code_left = "#{range_code}00".to_i
+ range_code_right = "#{range_code}99".to_i
+ if e.code >= range_code_left && e.code <= range_code_right
+ body = @api_client.convert_to_type(
+ JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0],
+ "Dropbox::Sign::ErrorResponse"
+ )
+
+ fail ApiError.new(:code => e.code,
+ :response_headers => e.response_headers,
+ :response_body => body),
+ e.message
+ end
+
+ end
+
+ if @api_client.config.debugging
+ @api_client.config.logger.debug "API called: FaxLineApi#fax_line_area_code_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
+ end
+ return data, status_code, headers
+ end
+
+ # Purchase Fax Line
+ # Purchases a new Fax Line.
+ # @param fax_line_create_request [FaxLineCreateRequest]
+ # @param [Hash] opts the optional parameters
+ # @return [FaxLineResponse]
+ def fax_line_create(fax_line_create_request, opts = {})
+ data, _status_code, _headers = fax_line_create_with_http_info(fax_line_create_request, opts)
+ data
+ end
+
+ # Purchase Fax Line
+ # Purchases a new Fax Line.
+ # @param fax_line_create_request [FaxLineCreateRequest]
+ # @param [Hash] opts the optional parameters
+ # @return [Array<(FaxLineResponse, Integer, Hash)>] FaxLineResponse data, response status code and response headers
+ def fax_line_create_with_http_info(fax_line_create_request, opts = {})
+ if @api_client.config.debugging
+ @api_client.config.logger.debug 'Calling API: FaxLineApi.fax_line_create ...'
+ end
+ # verify the required parameter 'fax_line_create_request' is set
+ if @api_client.config.client_side_validation && fax_line_create_request.nil?
+ fail ArgumentError, "Missing the required parameter 'fax_line_create_request' when calling FaxLineApi.fax_line_create"
+ end
+ # resource path
+ local_var_path = '/fax_line/create'
+
+ # query parameters
+ query_params = opts[:query_params] || {}
+
+ # header parameters
+ header_params = opts[:header_params] || {}
+ # HTTP header 'Accept' (if needed)
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
+ # HTTP header 'Content-Type'
+ content_type = @api_client.select_header_content_type(['application/json'])
+ if !content_type.nil?
+ header_params['Content-Type'] = content_type
+ end
+
+ post_body = {}
+ form_params = opts[:form_params] || {}
+ result = @api_client.generate_form_data(
+ fax_line_create_request,
+ Dropbox::Sign::FaxLineCreateRequest.openapi_types
+ )
+
+ # form parameters
+ if result[:has_file]
+ form_params = opts[:form_params] || result[:params]
+ header_params['Content-Type'] = 'multipart/form-data'
+ else
+ # http body (model)
+ post_body = opts[:debug_body] || result[:params]
+ end
+
+ # return_type
+ return_type = opts[:debug_return_type] || 'FaxLineResponse'
+
+ # auth_names
+ auth_names = opts[:debug_auth_names] || ['api_key']
+
+ new_options = opts.merge(
+ :operation => :"FaxLineApi.fax_line_create",
+ :header_params => header_params,
+ :query_params => query_params,
+ :form_params => form_params,
+ :body => post_body,
+ :auth_names => auth_names,
+ :return_type => return_type
+ )
+
+ begin
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
+ rescue Dropbox::Sign::ApiError => e
+ if e.code === 200
+ body = @api_client.convert_to_type(
+ JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0],
+ "Dropbox::Sign::FaxLineResponse"
+ )
+
+ fail ApiError.new(:code => e.code,
+ :response_headers => e.response_headers,
+ :response_body => body),
+ e.message
+ end
+
+ range_code = "4XX".split('').first
+ range_code_left = "#{range_code}00".to_i
+ range_code_right = "#{range_code}99".to_i
+ if e.code >= range_code_left && e.code <= range_code_right
+ body = @api_client.convert_to_type(
+ JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0],
+ "Dropbox::Sign::ErrorResponse"
+ )
+
+ fail ApiError.new(:code => e.code,
+ :response_headers => e.response_headers,
+ :response_body => body),
+ e.message
+ end
+
+ end
+
+ if @api_client.config.debugging
+ @api_client.config.logger.debug "API called: FaxLineApi#fax_line_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
+ end
+ return data, status_code, headers
+ end
+
+ # Delete Fax Line
+ # Deletes the specified Fax Line from the subscription.
+ # @param fax_line_delete_request [FaxLineDeleteRequest]
+ # @param [Hash] opts the optional parameters
+ # @return [nil]
+ def fax_line_delete(fax_line_delete_request, opts = {})
+ fax_line_delete_with_http_info(fax_line_delete_request, opts)
+ nil
+ end
+
+ # Delete Fax Line
+ # Deletes the specified Fax Line from the subscription.
+ # @param fax_line_delete_request [FaxLineDeleteRequest]
+ # @param [Hash] opts the optional parameters
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
+ def fax_line_delete_with_http_info(fax_line_delete_request, opts = {})
+ if @api_client.config.debugging
+ @api_client.config.logger.debug 'Calling API: FaxLineApi.fax_line_delete ...'
+ end
+ # verify the required parameter 'fax_line_delete_request' is set
+ if @api_client.config.client_side_validation && fax_line_delete_request.nil?
+ fail ArgumentError, "Missing the required parameter 'fax_line_delete_request' when calling FaxLineApi.fax_line_delete"
+ end
+ # resource path
+ local_var_path = '/fax_line'
+
+ # query parameters
+ query_params = opts[:query_params] || {}
+
+ # header parameters
+ header_params = opts[:header_params] || {}
+ # HTTP header 'Accept' (if needed)
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
+ # HTTP header 'Content-Type'
+ content_type = @api_client.select_header_content_type(['application/json'])
+ if !content_type.nil?
+ header_params['Content-Type'] = content_type
+ end
+
+ post_body = {}
+ form_params = opts[:form_params] || {}
+ result = @api_client.generate_form_data(
+ fax_line_delete_request,
+ Dropbox::Sign::FaxLineDeleteRequest.openapi_types
+ )
+
+ # form parameters
+ if result[:has_file]
+ form_params = opts[:form_params] || result[:params]
+ header_params['Content-Type'] = 'multipart/form-data'
+ else
+ # http body (model)
+ post_body = opts[:debug_body] || result[:params]
+ end
+
+ # return_type
+ return_type = opts[:debug_return_type]
+
+ # auth_names
+ auth_names = opts[:debug_auth_names] || ['api_key']
+
+ new_options = opts.merge(
+ :operation => :"FaxLineApi.fax_line_delete",
+ :header_params => header_params,
+ :query_params => query_params,
+ :form_params => form_params,
+ :body => post_body,
+ :auth_names => auth_names,
+ :return_type => return_type
+ )
+
+ begin
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
+ rescue Dropbox::Sign::ApiError => e
+ end
+
+ if @api_client.config.debugging
+ @api_client.config.logger.debug "API called: FaxLineApi#fax_line_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
+ end
+ return data, status_code, headers
+ end
+
+ # Get Fax Line
+ # Returns the properties and settings of a Fax Line.
+ # @param number [String] The Fax Line number.
+ # @param [Hash] opts the optional parameters
+ # @return [FaxLineResponse]
+ def fax_line_get(number, opts = {})
+ data, _status_code, _headers = fax_line_get_with_http_info(number, opts)
+ data
+ end
+
+ # Get Fax Line
+ # Returns the properties and settings of a Fax Line.
+ # @param number [String] The Fax Line number.
+ # @param [Hash] opts the optional parameters
+ # @return [Array<(FaxLineResponse, Integer, Hash)>] FaxLineResponse data, response status code and response headers
+ def fax_line_get_with_http_info(number, opts = {})
+ if @api_client.config.debugging
+ @api_client.config.logger.debug 'Calling API: FaxLineApi.fax_line_get ...'
+ end
+ # verify the required parameter 'number' is set
+ if @api_client.config.client_side_validation && number.nil?
+ fail ArgumentError, "Missing the required parameter 'number' when calling FaxLineApi.fax_line_get"
+ end
+ # resource path
+ local_var_path = '/fax_line'
+
+ # query parameters
+ query_params = opts[:query_params] || {}
+ query_params[:'number'] = number
+
+ # header parameters
+ header_params = opts[:header_params] || {}
+ # HTTP header 'Accept' (if needed)
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
+
+ post_body = {}
+ form_params = opts[:form_params] || {}
+
+ # http body (model)
+ post_body = opts[:debug_body]
+
+ # return_type
+ return_type = opts[:debug_return_type] || 'FaxLineResponse'
+
+ # auth_names
+ auth_names = opts[:debug_auth_names] || ['api_key']
+
+ new_options = opts.merge(
+ :operation => :"FaxLineApi.fax_line_get",
+ :header_params => header_params,
+ :query_params => query_params,
+ :form_params => form_params,
+ :body => post_body,
+ :auth_names => auth_names,
+ :return_type => return_type
+ )
+
+ begin
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
+ rescue Dropbox::Sign::ApiError => e
+ if e.code === 200
+ body = @api_client.convert_to_type(
+ JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0],
+ "Dropbox::Sign::FaxLineResponse"
+ )
+
+ fail ApiError.new(:code => e.code,
+ :response_headers => e.response_headers,
+ :response_body => body),
+ e.message
+ end
+
+ range_code = "4XX".split('').first
+ range_code_left = "#{range_code}00".to_i
+ range_code_right = "#{range_code}99".to_i
+ if e.code >= range_code_left && e.code <= range_code_right
+ body = @api_client.convert_to_type(
+ JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0],
+ "Dropbox::Sign::ErrorResponse"
+ )
+
+ fail ApiError.new(:code => e.code,
+ :response_headers => e.response_headers,
+ :response_body => body),
+ e.message
+ end
+
+ end
+
+ if @api_client.config.debugging
+ @api_client.config.logger.debug "API called: FaxLineApi#fax_line_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
+ end
+ return data, status_code, headers
+ end
+
+ # List Fax Lines
+ # Returns the properties and settings of multiple Fax Lines.
+ # @param [Hash] opts the optional parameters
+ # @option opts [String] :account_id Account ID
+ # @option opts [Integer] :page Page (default to 1)
+ # @option opts [Integer] :page_size Page size (default to 20)
+ # @option opts [Boolean] :show_team_lines Show team lines
+ # @return [FaxLineListResponse]
+ def fax_line_list(opts = {})
+ data, _status_code, _headers = fax_line_list_with_http_info(opts)
+ data
+ end
+
+ # List Fax Lines
+ # Returns the properties and settings of multiple Fax Lines.
+ # @param [Hash] opts the optional parameters
+ # @option opts [String] :account_id Account ID
+ # @option opts [Integer] :page Page (default to 1)
+ # @option opts [Integer] :page_size Page size (default to 20)
+ # @option opts [Boolean] :show_team_lines Show team lines
+ # @return [Array<(FaxLineListResponse, Integer, Hash)>] FaxLineListResponse data, response status code and response headers
+ def fax_line_list_with_http_info(opts = {})
+ if @api_client.config.debugging
+ @api_client.config.logger.debug 'Calling API: FaxLineApi.fax_line_list ...'
+ end
+ # resource path
+ local_var_path = '/fax_line/list'
+
+ # query parameters
+ query_params = opts[:query_params] || {}
+ query_params[:'account_id'] = opts[:'account_id'] if !opts[:'account_id'].nil?
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
+ query_params[:'show_team_lines'] = opts[:'show_team_lines'] if !opts[:'show_team_lines'].nil?
+
+ # header parameters
+ header_params = opts[:header_params] || {}
+ # HTTP header 'Accept' (if needed)
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
+
+ post_body = {}
+ form_params = opts[:form_params] || {}
+
+ # http body (model)
+ post_body = opts[:debug_body]
+
+ # return_type
+ return_type = opts[:debug_return_type] || 'FaxLineListResponse'
+
+ # auth_names
+ auth_names = opts[:debug_auth_names] || ['api_key']
+
+ new_options = opts.merge(
+ :operation => :"FaxLineApi.fax_line_list",
+ :header_params => header_params,
+ :query_params => query_params,
+ :form_params => form_params,
+ :body => post_body,
+ :auth_names => auth_names,
+ :return_type => return_type
+ )
+
+ begin
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
+ rescue Dropbox::Sign::ApiError => e
+ if e.code === 200
+ body = @api_client.convert_to_type(
+ JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0],
+ "Dropbox::Sign::FaxLineListResponse"
+ )
+
+ fail ApiError.new(:code => e.code,
+ :response_headers => e.response_headers,
+ :response_body => body),
+ e.message
+ end
+
+ range_code = "4XX".split('').first
+ range_code_left = "#{range_code}00".to_i
+ range_code_right = "#{range_code}99".to_i
+ if e.code >= range_code_left && e.code <= range_code_right
+ body = @api_client.convert_to_type(
+ JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0],
+ "Dropbox::Sign::ErrorResponse"
+ )
+
+ fail ApiError.new(:code => e.code,
+ :response_headers => e.response_headers,
+ :response_body => body),
+ e.message
+ end
+
+ end
+
+ if @api_client.config.debugging
+ @api_client.config.logger.debug "API called: FaxLineApi#fax_line_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
+ end
+ return data, status_code, headers
+ end
+
+ # Remove Fax Line Access
+ # Removes a user's access to the specified Fax Line.
+ # @param fax_line_remove_user_request [FaxLineRemoveUserRequest]
+ # @param [Hash] opts the optional parameters
+ # @return [FaxLineResponse]
+ def fax_line_remove_user(fax_line_remove_user_request, opts = {})
+ data, _status_code, _headers = fax_line_remove_user_with_http_info(fax_line_remove_user_request, opts)
+ data
+ end
+
+ # Remove Fax Line Access
+ # Removes a user's access to the specified Fax Line.
+ # @param fax_line_remove_user_request [FaxLineRemoveUserRequest]
+ # @param [Hash] opts the optional parameters
+ # @return [Array<(FaxLineResponse, Integer, Hash)>] FaxLineResponse data, response status code and response headers
+ def fax_line_remove_user_with_http_info(fax_line_remove_user_request, opts = {})
+ if @api_client.config.debugging
+ @api_client.config.logger.debug 'Calling API: FaxLineApi.fax_line_remove_user ...'
+ end
+ # verify the required parameter 'fax_line_remove_user_request' is set
+ if @api_client.config.client_side_validation && fax_line_remove_user_request.nil?
+ fail ArgumentError, "Missing the required parameter 'fax_line_remove_user_request' when calling FaxLineApi.fax_line_remove_user"
+ end
+ # resource path
+ local_var_path = '/fax_line/remove_user'
+
+ # query parameters
+ query_params = opts[:query_params] || {}
+
+ # header parameters
+ header_params = opts[:header_params] || {}
+ # HTTP header 'Accept' (if needed)
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
+ # HTTP header 'Content-Type'
+ content_type = @api_client.select_header_content_type(['application/json'])
+ if !content_type.nil?
+ header_params['Content-Type'] = content_type
+ end
+
+ post_body = {}
+ form_params = opts[:form_params] || {}
+ result = @api_client.generate_form_data(
+ fax_line_remove_user_request,
+ Dropbox::Sign::FaxLineRemoveUserRequest.openapi_types
+ )
+
+ # form parameters
+ if result[:has_file]
+ form_params = opts[:form_params] || result[:params]
+ header_params['Content-Type'] = 'multipart/form-data'
+ else
+ # http body (model)
+ post_body = opts[:debug_body] || result[:params]
+ end
+
+ # return_type
+ return_type = opts[:debug_return_type] || 'FaxLineResponse'
+
+ # auth_names
+ auth_names = opts[:debug_auth_names] || ['api_key']
+
+ new_options = opts.merge(
+ :operation => :"FaxLineApi.fax_line_remove_user",
+ :header_params => header_params,
+ :query_params => query_params,
+ :form_params => form_params,
+ :body => post_body,
+ :auth_names => auth_names,
+ :return_type => return_type
+ )
+
+ begin
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
+ rescue Dropbox::Sign::ApiError => e
+ if e.code === 200
+ body = @api_client.convert_to_type(
+ JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0],
+ "Dropbox::Sign::FaxLineResponse"
+ )
+
+ fail ApiError.new(:code => e.code,
+ :response_headers => e.response_headers,
+ :response_body => body),
+ e.message
+ end
+
+ range_code = "4XX".split('').first
+ range_code_left = "#{range_code}00".to_i
+ range_code_right = "#{range_code}99".to_i
+ if e.code >= range_code_left && e.code <= range_code_right
+ body = @api_client.convert_to_type(
+ JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0],
+ "Dropbox::Sign::ErrorResponse"
+ )
+
+ fail ApiError.new(:code => e.code,
+ :response_headers => e.response_headers,
+ :response_body => body),
+ e.message
+ end
+
+ end
+
+ if @api_client.config.debugging
+ @api_client.config.logger.debug "API called: FaxLineApi#fax_line_remove_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
+ end
+ return data, status_code, headers
+ end
+ end
+end
diff --git a/lib/dropbox-sign/api/o_auth_api.rb b/lib/dropbox-sign/api/o_auth_api.rb
index 03926e1..11c31ce 100644
--- a/lib/dropbox-sign/api/o_auth_api.rb
+++ b/lib/dropbox-sign/api/o_auth_api.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -54,7 +54,7 @@ def oauth_token_generate_with_http_info(o_auth_token_generate_request, opts = {}
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
@@ -149,7 +149,7 @@ def oauth_token_refresh_with_http_info(o_auth_token_refresh_request, opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
diff --git a/lib/dropbox-sign/api/report_api.rb b/lib/dropbox-sign/api/report_api.rb
index b545d5c..25b642d 100644
--- a/lib/dropbox-sign/api/report_api.rb
+++ b/lib/dropbox-sign/api/report_api.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -54,7 +54,7 @@ def report_create_with_http_info(report_create_request, opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
diff --git a/lib/dropbox-sign/api/signature_request_api.rb b/lib/dropbox-sign/api/signature_request_api.rb
index 48026cd..8003ba2 100644
--- a/lib/dropbox-sign/api/signature_request_api.rb
+++ b/lib/dropbox-sign/api/signature_request_api.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -54,7 +54,7 @@ def signature_request_bulk_create_embedded_with_template_with_http_info(signatur
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
if !content_type.nil?
@@ -163,7 +163,7 @@ def signature_request_bulk_send_with_template_with_http_info(signature_request_b
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
if !content_type.nil?
@@ -272,7 +272,7 @@ def signature_request_cancel_with_http_info(signature_request_id, opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
post_body = {}
form_params = opts[:form_params] || {}
@@ -339,7 +339,7 @@ def signature_request_create_embedded_with_http_info(signature_request_create_em
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
if !content_type.nil?
@@ -448,7 +448,7 @@ def signature_request_create_embedded_with_template_with_http_info(signature_req
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
if !content_type.nil?
@@ -564,7 +564,7 @@ def signature_request_files_with_http_info(signature_request_id, opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/pdf', 'application/zip', 'application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/pdf', 'application/zip', 'application/json']) unless header_params['Accept']
post_body = {}
form_params = opts[:form_params] || {}
@@ -658,7 +658,7 @@ def signature_request_files_as_data_uri_with_http_info(signature_request_id, opt
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
post_body = {}
form_params = opts[:form_params] || {}
@@ -755,7 +755,7 @@ def signature_request_files_as_file_url_with_http_info(signature_request_id, opt
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
post_body = {}
form_params = opts[:form_params] || {}
@@ -849,7 +849,7 @@ def signature_request_get_with_http_info(signature_request_id, opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
post_body = {}
form_params = opts[:form_params] || {}
@@ -949,7 +949,7 @@ def signature_request_list_with_http_info(opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
post_body = {}
form_params = opts[:form_params] || {}
@@ -1043,7 +1043,7 @@ def signature_request_release_hold_with_http_info(signature_request_id, opts = {
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
post_body = {}
form_params = opts[:form_params] || {}
@@ -1143,7 +1143,7 @@ def signature_request_remind_with_http_info(signature_request_id, signature_requ
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
@@ -1252,7 +1252,7 @@ def signature_request_remove_with_http_info(signature_request_id, opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
post_body = {}
form_params = opts[:form_params] || {}
@@ -1319,7 +1319,7 @@ def signature_request_send_with_http_info(signature_request_send_request, opts =
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
if !content_type.nil?
@@ -1428,7 +1428,7 @@ def signature_request_send_with_template_with_http_info(signature_request_send_w
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
if !content_type.nil?
@@ -1543,7 +1543,7 @@ def signature_request_update_with_http_info(signature_request_id, signature_requ
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
diff --git a/lib/dropbox-sign/api/team_api.rb b/lib/dropbox-sign/api/team_api.rb
index a5de164..ac7fe95 100644
--- a/lib/dropbox-sign/api/team_api.rb
+++ b/lib/dropbox-sign/api/team_api.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -57,7 +57,7 @@ def team_add_member_with_http_info(team_add_member_request, opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
@@ -166,7 +166,7 @@ def team_create_with_http_info(team_create_request, opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
@@ -269,7 +269,7 @@ def team_delete_with_http_info(opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
post_body = {}
form_params = opts[:form_params] || {}
@@ -330,7 +330,7 @@ def team_get_with_http_info(opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
post_body = {}
form_params = opts[:form_params] || {}
@@ -421,7 +421,7 @@ def team_info_with_http_info(opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
post_body = {}
form_params = opts[:form_params] || {}
@@ -512,7 +512,7 @@ def team_invites_with_http_info(opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
post_body = {}
form_params = opts[:form_params] || {}
@@ -620,7 +620,7 @@ def team_members_with_http_info(team_id, opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
post_body = {}
form_params = opts[:form_params] || {}
@@ -714,7 +714,7 @@ def team_remove_member_with_http_info(team_remove_member_request, opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
@@ -837,7 +837,7 @@ def team_sub_teams_with_http_info(team_id, opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
post_body = {}
form_params = opts[:form_params] || {}
@@ -931,7 +931,7 @@ def team_update_with_http_info(team_update_request, opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
diff --git a/lib/dropbox-sign/api/template_api.rb b/lib/dropbox-sign/api/template_api.rb
index c764bfd..7a30eca 100644
--- a/lib/dropbox-sign/api/template_api.rb
+++ b/lib/dropbox-sign/api/template_api.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -60,7 +60,7 @@ def template_add_user_with_http_info(template_id, template_add_user_request, opt
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
@@ -169,7 +169,7 @@ def template_create_with_http_info(template_create_request, opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
if !content_type.nil?
@@ -278,7 +278,7 @@ def template_create_embedded_draft_with_http_info(template_create_embedded_draft
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
if !content_type.nil?
@@ -387,7 +387,7 @@ def template_delete_with_http_info(template_id, opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
post_body = {}
form_params = opts[:form_params] || {}
@@ -461,7 +461,7 @@ def template_files_with_http_info(template_id, opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/pdf', 'application/zip', 'application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/pdf', 'application/zip', 'application/json']) unless header_params['Accept']
post_body = {}
form_params = opts[:form_params] || {}
@@ -555,7 +555,7 @@ def template_files_as_data_uri_with_http_info(template_id, opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
post_body = {}
form_params = opts[:form_params] || {}
@@ -652,7 +652,7 @@ def template_files_as_file_url_with_http_info(template_id, opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
post_body = {}
form_params = opts[:form_params] || {}
@@ -746,7 +746,7 @@ def template_get_with_http_info(template_id, opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
post_body = {}
form_params = opts[:form_params] || {}
@@ -854,7 +854,7 @@ def template_list_with_http_info(opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
post_body = {}
form_params = opts[:form_params] || {}
@@ -954,7 +954,7 @@ def template_remove_user_with_http_info(template_id, template_remove_user_reques
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
@@ -1069,7 +1069,7 @@ def template_update_files_with_http_info(template_id, template_update_files_requ
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
if !content_type.nil?
diff --git a/lib/dropbox-sign/api/unclaimed_draft_api.rb b/lib/dropbox-sign/api/unclaimed_draft_api.rb
index b45e740..f54f8cb 100644
--- a/lib/dropbox-sign/api/unclaimed_draft_api.rb
+++ b/lib/dropbox-sign/api/unclaimed_draft_api.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -54,7 +54,7 @@ def unclaimed_draft_create_with_http_info(unclaimed_draft_create_request, opts =
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
if !content_type.nil?
@@ -163,7 +163,7 @@ def unclaimed_draft_create_embedded_with_http_info(unclaimed_draft_create_embedd
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
if !content_type.nil?
@@ -272,7 +272,7 @@ def unclaimed_draft_create_embedded_with_template_with_http_info(unclaimed_draft
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
if !content_type.nil?
@@ -387,7 +387,7 @@ def unclaimed_draft_edit_and_resend_with_http_info(signature_request_id, unclaim
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
diff --git a/lib/dropbox-sign/api_client.rb b/lib/dropbox-sign/api_client.rb
index 598c817..e8a3640 100644
--- a/lib/dropbox-sign/api_client.rb
+++ b/lib/dropbox-sign/api_client.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -199,7 +199,7 @@ def download_file(request)
"will be deleted automatically with GC. It's also recommended to delete the temp file "\
"explicitly with `tempfile.delete`"
else
- fail ApiError.new("Failed to create the tempfile based on the HTTP response from the server: #{request.inspect}")
+ fail ApiError.new("Failed to create the tempfile based on the HTTP response from the server: #{request.inspect}")
end
tempfile
@@ -281,7 +281,6 @@ def convert_to_type(data, return_type)
data.each { |k, v| hash[k] = convert_to_type(v, sub_type) }
end
else
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(return_type)
klass.respond_to?(:openapi_one_of) ? klass.build(data) : klass.build_from_hash(data)
end
diff --git a/lib/dropbox-sign/api_error.rb b/lib/dropbox-sign/api_error.rb
index b914641..59c00cc 100644
--- a/lib/dropbox-sign/api_error.rb
+++ b/lib/dropbox-sign/api_error.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -15,7 +15,10 @@ module Dropbox
module Dropbox::Sign
class ApiError < StandardError
- attr_reader :code, :response_headers, :response_body
+ attr_reader :code, :response_headers
+
+ # @return [ErrorResponse]
+ attr_accessor :response_body
# Usage examples:
# ApiError.new
diff --git a/lib/dropbox-sign/configuration.rb b/lib/dropbox-sign/configuration.rb
index 3fb654f..b730f09 100644
--- a/lib/dropbox-sign/configuration.rb
+++ b/lib/dropbox-sign/configuration.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
diff --git a/lib/dropbox-sign/event_callback_helper.rb b/lib/dropbox-sign/event_callback_helper.rb
index 57a3b36..50730c4 100644
--- a/lib/dropbox-sign/event_callback_helper.rb
+++ b/lib/dropbox-sign/event_callback_helper.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
diff --git a/lib/dropbox-sign/models/account_create_request.rb b/lib/dropbox-sign/models/account_create_request.rb
index ec9e2fa..d297686 100644
--- a/lib/dropbox-sign/models/account_create_request.rb
+++ b/lib/dropbox-sign/models/account_create_request.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -49,11 +49,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -64,17 +59,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -229,7 +229,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/account_create_response.rb b/lib/dropbox-sign/models/account_create_response.rb
index 4a25632..ce46c34 100644
--- a/lib/dropbox-sign/models/account_create_response.rb
+++ b/lib/dropbox-sign/models/account_create_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -42,11 +42,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -56,17 +51,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -116,12 +116,17 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
+ if @account.nil?
+ invalid_properties.push('invalid value for "account", account cannot be nil.')
+ end
+
invalid_properties
end
# 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 @account.nil?
true
end
@@ -213,7 +218,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/account_get_response.rb b/lib/dropbox-sign/models/account_get_response.rb
index 9dab132..66a4f1f 100644
--- a/lib/dropbox-sign/models/account_get_response.rb
+++ b/lib/dropbox-sign/models/account_get_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -38,11 +38,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -51,17 +46,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -107,12 +107,17 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
+ if @account.nil?
+ invalid_properties.push('invalid value for "account", account cannot be nil.')
+ end
+
invalid_properties
end
# 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 @account.nil?
true
end
@@ -203,7 +208,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/account_response.rb b/lib/dropbox-sign/models/account_response.rb
index dfef0e1..f0b103c 100644
--- a/lib/dropbox-sign/models/account_response.rb
+++ b/lib/dropbox-sign/models/account_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -82,11 +82,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -104,11 +99,6 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
@@ -119,6 +109,16 @@ def self.openapi_nullable
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -303,7 +303,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/account_response_quotas.rb b/lib/dropbox-sign/models/account_response_quotas.rb
index e2b9731..3cdfba5 100644
--- a/lib/dropbox-sign/models/account_response_quotas.rb
+++ b/lib/dropbox-sign/models/account_response_quotas.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -60,11 +60,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -77,11 +72,6 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
@@ -94,6 +84,16 @@ def self.openapi_nullable
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -253,7 +253,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/account_response_usage.rb b/lib/dropbox-sign/models/account_response_usage.rb
index ee53f33..fb00091 100644
--- a/lib/dropbox-sign/models/account_response_usage.rb
+++ b/lib/dropbox-sign/models/account_response_usage.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -35,11 +35,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -47,11 +42,6 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
@@ -59,6 +49,16 @@ def self.openapi_nullable
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -193,7 +193,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/account_update_request.rb b/lib/dropbox-sign/models/account_update_request.rb
index e493e7d..5ad8392 100644
--- a/lib/dropbox-sign/models/account_update_request.rb
+++ b/lib/dropbox-sign/models/account_update_request.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -44,11 +44,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -58,11 +53,6 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
@@ -70,6 +60,16 @@ def self.openapi_nullable
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -214,7 +214,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/account_verify_request.rb b/lib/dropbox-sign/models/account_verify_request.rb
index ecc203b..ebe2196 100644
--- a/lib/dropbox-sign/models/account_verify_request.rb
+++ b/lib/dropbox-sign/models/account_verify_request.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -34,11 +34,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -46,17 +41,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -196,7 +196,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/account_verify_response.rb b/lib/dropbox-sign/models/account_verify_response.rb
index fec9993..cf7d982 100644
--- a/lib/dropbox-sign/models/account_verify_response.rb
+++ b/lib/dropbox-sign/models/account_verify_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -38,11 +38,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -51,17 +46,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -203,7 +203,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/account_verify_response_account.rb b/lib/dropbox-sign/models/account_verify_response_account.rb
index 6316b91..c98b7bf 100644
--- a/lib/dropbox-sign/models/account_verify_response_account.rb
+++ b/lib/dropbox-sign/models/account_verify_response_account.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -34,11 +34,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -46,17 +41,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -191,7 +191,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/api_app_create_request.rb b/lib/dropbox-sign/models/api_app_create_request.rb
index 12bcc4c..c11b8d8 100644
--- a/lib/dropbox-sign/models/api_app_create_request.rb
+++ b/lib/dropbox-sign/models/api_app_create_request.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -61,11 +61,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -79,17 +74,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -190,7 +190,6 @@ 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.'
end
@@ -294,7 +293,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/api_app_get_response.rb b/lib/dropbox-sign/models/api_app_get_response.rb
index f0c4397..e8d7972 100644
--- a/lib/dropbox-sign/models/api_app_get_response.rb
+++ b/lib/dropbox-sign/models/api_app_get_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -38,11 +38,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -51,17 +46,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -107,12 +107,17 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
+ if @api_app.nil?
+ invalid_properties.push('invalid value for "api_app", api_app cannot be nil.')
+ end
+
invalid_properties
end
# 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 @api_app.nil?
true
end
@@ -203,7 +208,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/api_app_list_response.rb b/lib/dropbox-sign/models/api_app_list_response.rb
index eb56400..7021333 100644
--- a/lib/dropbox-sign/models/api_app_list_response.rb
+++ b/lib/dropbox-sign/models/api_app_list_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -43,11 +43,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -57,17 +52,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -119,12 +119,22 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
+ if @api_apps.nil?
+ invalid_properties.push('invalid value for "api_apps", api_apps cannot be nil.')
+ end
+
+ if @list_info.nil?
+ invalid_properties.push('invalid value for "list_info", list_info cannot be nil.')
+ end
+
invalid_properties
end
# 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 @api_apps.nil?
+ return false if @list_info.nil?
true
end
@@ -216,7 +226,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/api_app_response.rb b/lib/dropbox-sign/models/api_app_response.rb
index b0f4616..727d4fb 100644
--- a/lib/dropbox-sign/models/api_app_response.rb
+++ b/lib/dropbox-sign/models/api_app_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -76,11 +76,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -97,11 +92,6 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
@@ -112,6 +102,16 @@ def self.openapi_nullable
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -293,7 +293,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/api_app_response_o_auth.rb b/lib/dropbox-sign/models/api_app_response_o_auth.rb
index a05cef9..86e81f9 100644
--- a/lib/dropbox-sign/models/api_app_response_o_auth.rb
+++ b/lib/dropbox-sign/models/api_app_response_o_auth.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -50,11 +50,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -65,17 +60,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -227,7 +227,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/api_app_response_options.rb b/lib/dropbox-sign/models/api_app_response_options.rb
index 8cb41c5..223ce31 100644
--- a/lib/dropbox-sign/models/api_app_response_options.rb
+++ b/lib/dropbox-sign/models/api_app_response_options.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -35,11 +35,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -47,17 +42,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -192,7 +192,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/api_app_response_owner_account.rb b/lib/dropbox-sign/models/api_app_response_owner_account.rb
index e7a2c7f..f7627ec 100644
--- a/lib/dropbox-sign/models/api_app_response_owner_account.rb
+++ b/lib/dropbox-sign/models/api_app_response_owner_account.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -40,11 +40,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -53,17 +48,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -203,7 +203,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/api_app_response_white_labeling_options.rb b/lib/dropbox-sign/models/api_app_response_white_labeling_options.rb
index 8c421aa..141de8b 100644
--- a/lib/dropbox-sign/models/api_app_response_white_labeling_options.rb
+++ b/lib/dropbox-sign/models/api_app_response_white_labeling_options.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -86,11 +86,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -111,17 +106,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -321,7 +321,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/api_app_update_request.rb b/lib/dropbox-sign/models/api_app_update_request.rb
index db9518e..6d25746 100644
--- a/lib/dropbox-sign/models/api_app_update_request.rb
+++ b/lib/dropbox-sign/models/api_app_update_request.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -61,11 +61,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -79,17 +74,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -271,7 +271,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/bulk_send_job_get_response.rb b/lib/dropbox-sign/models/bulk_send_job_get_response.rb
index a4a5e6d..71c2b1a 100644
--- a/lib/dropbox-sign/models/bulk_send_job_get_response.rb
+++ b/lib/dropbox-sign/models/bulk_send_job_get_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -47,11 +47,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -62,17 +57,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -128,12 +128,27 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
+ if @bulk_send_job.nil?
+ invalid_properties.push('invalid value for "bulk_send_job", bulk_send_job cannot be nil.')
+ end
+
+ if @list_info.nil?
+ invalid_properties.push('invalid value for "list_info", list_info cannot be nil.')
+ end
+
+ if @signature_requests.nil?
+ invalid_properties.push('invalid value for "signature_requests", signature_requests cannot be nil.')
+ end
+
invalid_properties
end
# 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 @bulk_send_job.nil?
+ return false if @list_info.nil?
+ return false if @signature_requests.nil?
true
end
@@ -226,7 +241,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/bulk_send_job_get_response_signature_requests.rb b/lib/dropbox-sign/models/bulk_send_job_get_response_signature_requests.rb
index 0deeffd..489013c 100644
--- a/lib/dropbox-sign/models/bulk_send_job_get_response_signature_requests.rb
+++ b/lib/dropbox-sign/models/bulk_send_job_get_response_signature_requests.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -154,11 +154,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -190,11 +185,6 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
@@ -211,6 +201,16 @@ def self.openapi_nullable
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -479,7 +479,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/bulk_send_job_list_response.rb b/lib/dropbox-sign/models/bulk_send_job_list_response.rb
index 9e63c14..4a1a906 100644
--- a/lib/dropbox-sign/models/bulk_send_job_list_response.rb
+++ b/lib/dropbox-sign/models/bulk_send_job_list_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -43,11 +43,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -57,17 +52,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -119,12 +119,22 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
+ if @bulk_send_jobs.nil?
+ invalid_properties.push('invalid value for "bulk_send_jobs", bulk_send_jobs cannot be nil.')
+ end
+
+ if @list_info.nil?
+ invalid_properties.push('invalid value for "list_info", list_info cannot be nil.')
+ end
+
invalid_properties
end
# 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 @bulk_send_jobs.nil?
+ return false if @list_info.nil?
true
end
@@ -216,7 +226,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/bulk_send_job_response.rb b/lib/dropbox-sign/models/bulk_send_job_response.rb
index 1b9532f..7373d6f 100644
--- a/lib/dropbox-sign/models/bulk_send_job_response.rb
+++ b/lib/dropbox-sign/models/bulk_send_job_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -50,11 +50,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -65,11 +60,6 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
@@ -77,6 +67,16 @@ def self.openapi_nullable
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -226,7 +226,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/bulk_send_job_send_response.rb b/lib/dropbox-sign/models/bulk_send_job_send_response.rb
index 22e2e86..ddc24be 100644
--- a/lib/dropbox-sign/models/bulk_send_job_send_response.rb
+++ b/lib/dropbox-sign/models/bulk_send_job_send_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -38,11 +38,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -51,17 +46,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -107,12 +107,17 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
+ if @bulk_send_job.nil?
+ invalid_properties.push('invalid value for "bulk_send_job", bulk_send_job cannot be nil.')
+ end
+
invalid_properties
end
# 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 @bulk_send_job.nil?
true
end
@@ -203,7 +208,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/embedded_edit_url_request.rb b/lib/dropbox-sign/models/embedded_edit_url_request.rb
index 1826c0f..48891c1 100644
--- a/lib/dropbox-sign/models/embedded_edit_url_request.rb
+++ b/lib/dropbox-sign/models/embedded_edit_url_request.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -78,11 +78,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -99,17 +94,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -307,7 +307,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/embedded_edit_url_response.rb b/lib/dropbox-sign/models/embedded_edit_url_response.rb
index 1d15ffd..6445633 100644
--- a/lib/dropbox-sign/models/embedded_edit_url_response.rb
+++ b/lib/dropbox-sign/models/embedded_edit_url_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -38,11 +38,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -51,17 +46,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -107,12 +107,17 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
+ if @embedded.nil?
+ invalid_properties.push('invalid value for "embedded", embedded cannot be nil.')
+ end
+
invalid_properties
end
# 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 @embedded.nil?
true
end
@@ -203,7 +208,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/embedded_edit_url_response_embedded.rb b/lib/dropbox-sign/models/embedded_edit_url_response_embedded.rb
index 303b60d..5045efc 100644
--- a/lib/dropbox-sign/models/embedded_edit_url_response_embedded.rb
+++ b/lib/dropbox-sign/models/embedded_edit_url_response_embedded.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -40,11 +40,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -53,17 +48,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -203,7 +203,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/embedded_sign_url_response.rb b/lib/dropbox-sign/models/embedded_sign_url_response.rb
index 1b17f4e..532683c 100644
--- a/lib/dropbox-sign/models/embedded_sign_url_response.rb
+++ b/lib/dropbox-sign/models/embedded_sign_url_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -38,11 +38,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -51,17 +46,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -107,12 +107,17 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
+ if @embedded.nil?
+ invalid_properties.push('invalid value for "embedded", embedded cannot be nil.')
+ end
+
invalid_properties
end
# 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 @embedded.nil?
true
end
@@ -203,7 +208,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/embedded_sign_url_response_embedded.rb b/lib/dropbox-sign/models/embedded_sign_url_response_embedded.rb
index b21bef9..a9cda82 100644
--- a/lib/dropbox-sign/models/embedded_sign_url_response_embedded.rb
+++ b/lib/dropbox-sign/models/embedded_sign_url_response_embedded.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -40,11 +40,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -53,17 +48,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -203,7 +203,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/error_response.rb b/lib/dropbox-sign/models/error_response.rb
index 44ca975..07eba4e 100644
--- a/lib/dropbox-sign/models/error_response.rb
+++ b/lib/dropbox-sign/models/error_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -33,11 +33,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -45,17 +40,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -195,7 +195,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/error_response_error.rb b/lib/dropbox-sign/models/error_response_error.rb
index f9e5c41..0339a4e 100644
--- a/lib/dropbox-sign/models/error_response_error.rb
+++ b/lib/dropbox-sign/models/error_response_error.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -45,11 +45,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -59,17 +54,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -224,7 +224,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/event_callback_request.rb b/lib/dropbox-sign/models/event_callback_request.rb
index 211e322..8d29b49 100644
--- a/lib/dropbox-sign/models/event_callback_request.rb
+++ b/lib/dropbox-sign/models/event_callback_request.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -45,11 +45,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -60,17 +55,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -225,7 +225,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/event_callback_request_event.rb b/lib/dropbox-sign/models/event_callback_request_event.rb
index c1c22c3..f8a9a1a 100644
--- a/lib/dropbox-sign/models/event_callback_request_event.rb
+++ b/lib/dropbox-sign/models/event_callback_request_event.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -71,11 +71,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -86,17 +81,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -273,7 +273,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/event_callback_request_event_metadata.rb b/lib/dropbox-sign/models/event_callback_request_event_metadata.rb
index 99f0558..3ae44dc 100644
--- a/lib/dropbox-sign/models/event_callback_request_event_metadata.rb
+++ b/lib/dropbox-sign/models/event_callback_request_event_metadata.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -50,11 +50,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -65,11 +60,6 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
@@ -80,6 +70,16 @@ def self.openapi_nullable
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -229,7 +229,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/fax_line_add_user_request.rb b/lib/dropbox-sign/models/fax_line_add_user_request.rb
new file mode 100644
index 0000000..0bed0cc
--- /dev/null
+++ b/lib/dropbox-sign/models/fax_line_add_user_request.rb
@@ -0,0 +1,275 @@
+=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
+Generator version: 7.8.0
+
+=end
+
+require 'date'
+require 'time'
+
+module Dropbox
+end
+
+module Dropbox::Sign
+ class FaxLineAddUserRequest
+ # The Fax Line number.
+ # @return [String]
+ attr_accessor :number
+
+ # Account ID
+ # @return [String]
+ attr_accessor :account_id
+
+ # Email address
+ # @return [String]
+ attr_accessor :email_address
+
+ # Attribute mapping from ruby-style variable name to JSON key.
+ def self.attribute_map
+ {
+ :'number' => :'number',
+ :'account_id' => :'account_id',
+ :'email_address' => :'email_address'
+ }
+ end
+
+ # Returns all the JSON keys this model knows about
+ def self.acceptable_attributes
+ attribute_map.values
+ end
+
+ # Attribute type mapping.
+ def self.openapi_types
+ {
+ :'number' => :'String',
+ :'account_id' => :'String',
+ :'email_address' => :'String'
+ }
+ end
+
+ # List of attributes with nullable: true
+ def self.openapi_nullable
+ Set.new([
+ ])
+ end
+
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
+ # Returns list of attributes with nullable: true of this model + parent
+ def self.merged_nullable
+ self.openapi_nullable
+ end
+
+ # Attempt to instantiate and hydrate a new instance of this class
+ # @param [Object] data Data to be converted
+ # @return [FaxLineAddUserRequest]
+ def self.init(data)
+ return ApiClient.default.convert_to_type(
+ data,
+ "FaxLineAddUserRequest"
+ ) || FaxLineAddUserRequest.new
+ end
+
+ # Initializes the object
+ # @param [Hash] attributes Model attributes in the form of hash
+ def initialize(attributes = {})
+ if (!attributes.is_a?(Hash))
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Dropbox::Sign::FaxLineAddUserRequest` initialize method"
+ end
+
+ # check to see if the attribute exists and convert string to symbol for hash key
+ attributes = attributes.each_with_object({}) { |(k, v), h|
+ if (!self.class.merged_attributes.key?(k.to_sym))
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Dropbox::Sign::FaxLineAddUserRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
+ end
+ h[k.to_sym] = v
+ }
+
+ if attributes.key?(:'number')
+ self.number = attributes[:'number']
+ end
+
+ if attributes.key?(:'account_id')
+ self.account_id = attributes[:'account_id']
+ end
+
+ if attributes.key?(:'email_address')
+ self.email_address = attributes[:'email_address']
+ end
+ end
+
+ # Show invalid properties with the reasons. Usually used together with valid?
+ # @return Array for valid properties with the reasons
+ def list_invalid_properties
+ invalid_properties = Array.new
+ if @number.nil?
+ invalid_properties.push('invalid value for "number", number cannot be nil.')
+ end
+
+ invalid_properties
+ end
+
+ # 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 @number.nil?
+ true
+ end
+
+ # Checks equality by comparing each attribute.
+ # @param [Object] Object to be compared
+ def ==(o)
+ return true if self.equal?(o)
+ self.class == o.class &&
+ number == o.number &&
+ account_id == o.account_id &&
+ email_address == o.email_address
+ end
+
+ # @see the `==` method
+ # @param [Object] Object to be compared
+ def eql?(o)
+ self == o
+ end
+
+ # Calculates hash code according to all attributes.
+ # @return [Integer] Hash code
+ def hash
+ [number, account_id, email_address].hash
+ end
+
+ # Builds the object from hash
+ # @param [Hash] attributes Model attributes in the form of hash
+ # @return [Object] Returns the model itself
+ def self.build_from_hash(attributes)
+ new.build_from_hash(attributes)
+ end
+
+ # Builds the object from hash
+ # @param [Hash] attributes Model attributes in the form of hash
+ # @return [Object] Returns the model itself
+ def build_from_hash(attributes)
+ return nil unless attributes.is_a?(Hash)
+ attribute_map = self.class.merged_attributes
+
+ self.class.merged_types.each_pair do |key, type|
+ if type =~ /\AArray<(.*)>/i
+ # check to ensure the input is an array given that the attribute
+ # is documented as an array but the input is not
+ if attributes[attribute_map[key]].is_a?(Array)
+ self.send("#{key}=", attributes[attribute_map[key]].map { |v| _deserialize($1, v) })
+ end
+ elsif !attributes[attribute_map[key]].nil?
+ self.send("#{key}=", _deserialize(type, attributes[attribute_map[key]]))
+ end
+ end
+
+ self
+ end
+
+ # Deserializes the data based on type
+ # @param string type Data type
+ # @param string value Value to be deserialized
+ # @return [Object] Deserialized data
+ def _deserialize(type, value)
+ case type.to_sym
+ when :Time
+ Time.parse(value)
+ when :Date
+ Date.parse(value)
+ when :String
+ value.to_s
+ when :Integer
+ value.to_i
+ when :Float
+ value.to_f
+ when :Boolean
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
+ true
+ else
+ false
+ end
+ when :Object
+ # generic object (usually a Hash), return directly
+ value
+ when /\AArray<(?.+)>\z/
+ inner_type = Regexp.last_match[:inner_type]
+ value.map { |v| _deserialize(inner_type, v) }
+ when /\AHash<(?.+?), (?.+)>\z/
+ k_type = Regexp.last_match[:k_type]
+ v_type = Regexp.last_match[:v_type]
+ {}.tap do |hash|
+ value.each do |k, v|
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
+ end
+ end
+ else # model
+ klass = Dropbox::Sign.const_get(type)
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
+ end
+ end
+
+ # Returns the string representation of the object
+ # @return [String] String presentation of the object
+ def to_s
+ to_hash.to_s
+ end
+
+ # to_body is an alias to to_hash (backward compatibility)
+ # @return [Hash] Returns the object in the form of hash
+ def to_body
+ to_hash
+ end
+
+ # Returns the object in the form of hash
+ # @return [Hash] Returns the object in the form of hash
+ def to_hash(include_nil = true)
+ hash = {}
+ self.class.merged_attributes.each_pair do |attr, param|
+ value = self.send(attr)
+ if value.nil?
+ next unless include_nil
+ is_nullable = self.class.merged_nullable.include?(attr)
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
+ end
+
+ hash[param] = _to_hash(value, include_nil)
+ end
+ hash
+ end
+
+ # Outputs non-array value in the form of hash
+ # For object, use to_hash. Otherwise, just return the value
+ # @param [Object] value Any valid value
+ # @return [Hash] Returns the value in the form of hash
+ def _to_hash(value, include_nil = true)
+ if value.is_a?(Array)
+ value.compact.map { |v| _to_hash(v, include_nil) }
+ elsif value.is_a?(Hash)
+ {}.tap do |hash|
+ value.each { |k, v| hash[k] = _to_hash(v, include_nil) }
+ end
+ elsif value.respond_to? :to_hash
+ value.to_hash(include_nil)
+ else
+ value
+ end
+ end
+
+ end
+
+end
diff --git a/lib/dropbox-sign/models/fax_line_area_code_get_country_enum.rb b/lib/dropbox-sign/models/fax_line_area_code_get_country_enum.rb
new file mode 100644
index 0000000..837596e
--- /dev/null
+++ b/lib/dropbox-sign/models/fax_line_area_code_get_country_enum.rb
@@ -0,0 +1,44 @@
+=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
+Generator version: 7.8.0
+
+=end
+
+require 'date'
+require 'time'
+
+module Dropbox
+end
+
+module Dropbox::Sign
+ class FaxLineAreaCodeGetCountryEnum
+ CA = "CA".freeze
+ US = "US".freeze
+ UK = "UK".freeze
+
+ def self.all_vars
+ @all_vars ||= [CA, US, UK].freeze
+ end
+
+ # Builds the enum from string
+ # @param [String] The enum value in the form of the string
+ # @return [String] The enum value
+ def self.build_from_hash(value)
+ new.build_from_hash(value)
+ end
+
+ # Builds the enum from string
+ # @param [String] The enum value in the form of the string
+ # @return [String] The enum value
+ def build_from_hash(value)
+ return value if FaxLineAreaCodeGetCountryEnum.all_vars.include?(value)
+ raise "Invalid ENUM value #{value} for class #FaxLineAreaCodeGetCountryEnum"
+ end
+ end
+end
diff --git a/lib/dropbox-sign/models/fax_line_area_code_get_province_enum.rb b/lib/dropbox-sign/models/fax_line_area_code_get_province_enum.rb
new file mode 100644
index 0000000..df6d0c2
--- /dev/null
+++ b/lib/dropbox-sign/models/fax_line_area_code_get_province_enum.rb
@@ -0,0 +1,54 @@
+=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
+Generator version: 7.8.0
+
+=end
+
+require 'date'
+require 'time'
+
+module Dropbox
+end
+
+module Dropbox::Sign
+ class FaxLineAreaCodeGetProvinceEnum
+ AB = "AB".freeze
+ BC = "BC".freeze
+ MB = "MB".freeze
+ NB = "NB".freeze
+ NL = "NL".freeze
+ NT = "NT".freeze
+ NS = "NS".freeze
+ NU = "NU".freeze
+ ON = "ON".freeze
+ PE = "PE".freeze
+ QC = "QC".freeze
+ SK = "SK".freeze
+ YT = "YT".freeze
+
+ def self.all_vars
+ @all_vars ||= [AB, BC, MB, NB, NL, NT, NS, NU, ON, PE, QC, SK, YT].freeze
+ end
+
+ # Builds the enum from string
+ # @param [String] The enum value in the form of the string
+ # @return [String] The enum value
+ def self.build_from_hash(value)
+ new.build_from_hash(value)
+ end
+
+ # Builds the enum from string
+ # @param [String] The enum value in the form of the string
+ # @return [String] The enum value
+ def build_from_hash(value)
+ return value if FaxLineAreaCodeGetProvinceEnum.all_vars.include?(value)
+ raise "Invalid ENUM value #{value} for class #FaxLineAreaCodeGetProvinceEnum"
+ end
+ end
+end
diff --git a/lib/dropbox-sign/models/fax_line_area_code_get_response.rb b/lib/dropbox-sign/models/fax_line_area_code_get_response.rb
new file mode 100644
index 0000000..bcfd8b6
--- /dev/null
+++ b/lib/dropbox-sign/models/fax_line_area_code_get_response.rb
@@ -0,0 +1,254 @@
+=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
+Generator version: 7.8.0
+
+=end
+
+require 'date'
+require 'time'
+
+module Dropbox
+end
+
+module Dropbox::Sign
+ class FaxLineAreaCodeGetResponse
+ # @return [Array]
+ attr_accessor :area_codes
+
+ # Attribute mapping from ruby-style variable name to JSON key.
+ def self.attribute_map
+ {
+ :'area_codes' => :'area_codes'
+ }
+ end
+
+ # Returns all the JSON keys this model knows about
+ def self.acceptable_attributes
+ attribute_map.values
+ end
+
+ # Attribute type mapping.
+ def self.openapi_types
+ {
+ :'area_codes' => :'Array'
+ }
+ end
+
+ # List of attributes with nullable: true
+ def self.openapi_nullable
+ Set.new([
+ ])
+ end
+
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
+ # Returns list of attributes with nullable: true of this model + parent
+ def self.merged_nullable
+ self.openapi_nullable
+ end
+
+ # Attempt to instantiate and hydrate a new instance of this class
+ # @param [Object] data Data to be converted
+ # @return [FaxLineAreaCodeGetResponse]
+ def self.init(data)
+ return ApiClient.default.convert_to_type(
+ data,
+ "FaxLineAreaCodeGetResponse"
+ ) || FaxLineAreaCodeGetResponse.new
+ end
+
+ # Initializes the object
+ # @param [Hash] attributes Model attributes in the form of hash
+ def initialize(attributes = {})
+ if (!attributes.is_a?(Hash))
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Dropbox::Sign::FaxLineAreaCodeGetResponse` initialize method"
+ end
+
+ # check to see if the attribute exists and convert string to symbol for hash key
+ attributes = attributes.each_with_object({}) { |(k, v), h|
+ if (!self.class.merged_attributes.key?(k.to_sym))
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Dropbox::Sign::FaxLineAreaCodeGetResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
+ end
+ h[k.to_sym] = v
+ }
+
+ if attributes.key?(:'area_codes')
+ if (value = attributes[:'area_codes']).is_a?(Array)
+ self.area_codes = value
+ end
+ end
+ end
+
+ # Show invalid properties with the reasons. Usually used together with valid?
+ # @return Array for valid properties with the reasons
+ def list_invalid_properties
+ invalid_properties = Array.new
+ if @area_codes.nil?
+ invalid_properties.push('invalid value for "area_codes", area_codes cannot be nil.')
+ end
+
+ invalid_properties
+ end
+
+ # 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 @area_codes.nil?
+ true
+ end
+
+ # Checks equality by comparing each attribute.
+ # @param [Object] Object to be compared
+ def ==(o)
+ return true if self.equal?(o)
+ self.class == o.class &&
+ area_codes == o.area_codes
+ end
+
+ # @see the `==` method
+ # @param [Object] Object to be compared
+ def eql?(o)
+ self == o
+ end
+
+ # Calculates hash code according to all attributes.
+ # @return [Integer] Hash code
+ def hash
+ [area_codes].hash
+ end
+
+ # Builds the object from hash
+ # @param [Hash] attributes Model attributes in the form of hash
+ # @return [Object] Returns the model itself
+ def self.build_from_hash(attributes)
+ new.build_from_hash(attributes)
+ end
+
+ # Builds the object from hash
+ # @param [Hash] attributes Model attributes in the form of hash
+ # @return [Object] Returns the model itself
+ def build_from_hash(attributes)
+ return nil unless attributes.is_a?(Hash)
+ attribute_map = self.class.merged_attributes
+
+ self.class.merged_types.each_pair do |key, type|
+ if type =~ /\AArray<(.*)>/i
+ # check to ensure the input is an array given that the attribute
+ # is documented as an array but the input is not
+ if attributes[attribute_map[key]].is_a?(Array)
+ self.send("#{key}=", attributes[attribute_map[key]].map { |v| _deserialize($1, v) })
+ end
+ elsif !attributes[attribute_map[key]].nil?
+ self.send("#{key}=", _deserialize(type, attributes[attribute_map[key]]))
+ end
+ end
+
+ self
+ end
+
+ # Deserializes the data based on type
+ # @param string type Data type
+ # @param string value Value to be deserialized
+ # @return [Object] Deserialized data
+ def _deserialize(type, value)
+ case type.to_sym
+ when :Time
+ Time.parse(value)
+ when :Date
+ Date.parse(value)
+ when :String
+ value.to_s
+ when :Integer
+ value.to_i
+ when :Float
+ value.to_f
+ when :Boolean
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
+ true
+ else
+ false
+ end
+ when :Object
+ # generic object (usually a Hash), return directly
+ value
+ when /\AArray<(?.+)>\z/
+ inner_type = Regexp.last_match[:inner_type]
+ value.map { |v| _deserialize(inner_type, v) }
+ when /\AHash<(?.+?), (?.+)>\z/
+ k_type = Regexp.last_match[:k_type]
+ v_type = Regexp.last_match[:v_type]
+ {}.tap do |hash|
+ value.each do |k, v|
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
+ end
+ end
+ else # model
+ klass = Dropbox::Sign.const_get(type)
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
+ end
+ end
+
+ # Returns the string representation of the object
+ # @return [String] String presentation of the object
+ def to_s
+ to_hash.to_s
+ end
+
+ # to_body is an alias to to_hash (backward compatibility)
+ # @return [Hash] Returns the object in the form of hash
+ def to_body
+ to_hash
+ end
+
+ # Returns the object in the form of hash
+ # @return [Hash] Returns the object in the form of hash
+ def to_hash(include_nil = true)
+ hash = {}
+ self.class.merged_attributes.each_pair do |attr, param|
+ value = self.send(attr)
+ if value.nil?
+ next unless include_nil
+ is_nullable = self.class.merged_nullable.include?(attr)
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
+ end
+
+ hash[param] = _to_hash(value, include_nil)
+ end
+ hash
+ end
+
+ # Outputs non-array value in the form of hash
+ # For object, use to_hash. Otherwise, just return the value
+ # @param [Object] value Any valid value
+ # @return [Hash] Returns the value in the form of hash
+ def _to_hash(value, include_nil = true)
+ if value.is_a?(Array)
+ value.compact.map { |v| _to_hash(v, include_nil) }
+ elsif value.is_a?(Hash)
+ {}.tap do |hash|
+ value.each { |k, v| hash[k] = _to_hash(v, include_nil) }
+ end
+ elsif value.respond_to? :to_hash
+ value.to_hash(include_nil)
+ else
+ value
+ end
+ end
+
+ end
+
+end
diff --git a/lib/dropbox-sign/models/fax_line_area_code_get_state_enum.rb b/lib/dropbox-sign/models/fax_line_area_code_get_state_enum.rb
new file mode 100644
index 0000000..ceaa724
--- /dev/null
+++ b/lib/dropbox-sign/models/fax_line_area_code_get_state_enum.rb
@@ -0,0 +1,92 @@
+=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
+Generator version: 7.8.0
+
+=end
+
+require 'date'
+require 'time'
+
+module Dropbox
+end
+
+module Dropbox::Sign
+ class FaxLineAreaCodeGetStateEnum
+ AK = "AK".freeze
+ AL = "AL".freeze
+ AR = "AR".freeze
+ AZ = "AZ".freeze
+ CA = "CA".freeze
+ CO = "CO".freeze
+ CT = "CT".freeze
+ DC = "DC".freeze
+ DE = "DE".freeze
+ FL = "FL".freeze
+ GA = "GA".freeze
+ HI = "HI".freeze
+ IA = "IA".freeze
+ ID = "ID".freeze
+ IL = "IL".freeze
+ IN = "IN".freeze
+ KS = "KS".freeze
+ KY = "KY".freeze
+ LA = "LA".freeze
+ MA = "MA".freeze
+ MD = "MD".freeze
+ ME = "ME".freeze
+ MI = "MI".freeze
+ MN = "MN".freeze
+ MO = "MO".freeze
+ MS = "MS".freeze
+ MT = "MT".freeze
+ NC = "NC".freeze
+ ND = "ND".freeze
+ NE = "NE".freeze
+ NH = "NH".freeze
+ NJ = "NJ".freeze
+ NM = "NM".freeze
+ NV = "NV".freeze
+ NY = "NY".freeze
+ OH = "OH".freeze
+ OK = "OK".freeze
+ OR = "OR".freeze
+ PA = "PA".freeze
+ RI = "RI".freeze
+ SC = "SC".freeze
+ SD = "SD".freeze
+ TN = "TN".freeze
+ TX = "TX".freeze
+ UT = "UT".freeze
+ VA = "VA".freeze
+ VT = "VT".freeze
+ WA = "WA".freeze
+ WI = "WI".freeze
+ WV = "WV".freeze
+ WY = "WY".freeze
+
+ def self.all_vars
+ @all_vars ||= [AK, AL, AR, AZ, CA, CO, CT, DC, DE, FL, GA, HI, IA, ID, IL, IN, KS, KY, LA, MA, MD, ME, MI, MN, MO, MS, MT, NC, ND, NE, NH, NJ, NM, NV, NY, OH, OK, OR, PA, RI, SC, SD, TN, TX, UT, VA, VT, WA, WI, WV, WY].freeze
+ end
+
+ # Builds the enum from string
+ # @param [String] The enum value in the form of the string
+ # @return [String] The enum value
+ def self.build_from_hash(value)
+ new.build_from_hash(value)
+ end
+
+ # Builds the enum from string
+ # @param [String] The enum value in the form of the string
+ # @return [String] The enum value
+ def build_from_hash(value)
+ return value if FaxLineAreaCodeGetStateEnum.all_vars.include?(value)
+ raise "Invalid ENUM value #{value} for class #FaxLineAreaCodeGetStateEnum"
+ end
+ end
+end
diff --git a/lib/dropbox-sign/models/fax_line_create_request.rb b/lib/dropbox-sign/models/fax_line_create_request.rb
new file mode 100644
index 0000000..261e3bd
--- /dev/null
+++ b/lib/dropbox-sign/models/fax_line_create_request.rb
@@ -0,0 +1,325 @@
+=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
+Generator version: 7.8.0
+
+=end
+
+require 'date'
+require 'time'
+
+module Dropbox
+end
+
+module Dropbox::Sign
+ class FaxLineCreateRequest
+ # Area code
+ # @return [Integer]
+ attr_accessor :area_code
+
+ # Country
+ # @return [String]
+ attr_accessor :country
+
+ # City
+ # @return [String]
+ attr_accessor :city
+
+ # Account ID
+ # @return [String]
+ attr_accessor :account_id
+
+ class EnumAttributeValidator
+ attr_reader :datatype
+ attr_reader :allowable_values
+
+ def initialize(datatype, allowable_values)
+ @allowable_values = allowable_values.map do |value|
+ case datatype.to_s
+ when /Integer/i
+ value.to_i
+ when /Float/i
+ value.to_f
+ else
+ value
+ end
+ end
+ end
+
+ def valid?(value)
+ !value || allowable_values.include?(value)
+ end
+ end
+
+ # Attribute mapping from ruby-style variable name to JSON key.
+ def self.attribute_map
+ {
+ :'area_code' => :'area_code',
+ :'country' => :'country',
+ :'city' => :'city',
+ :'account_id' => :'account_id'
+ }
+ end
+
+ # Returns all the JSON keys this model knows about
+ def self.acceptable_attributes
+ attribute_map.values
+ end
+
+ # Attribute type mapping.
+ def self.openapi_types
+ {
+ :'area_code' => :'Integer',
+ :'country' => :'String',
+ :'city' => :'String',
+ :'account_id' => :'String'
+ }
+ end
+
+ # List of attributes with nullable: true
+ def self.openapi_nullable
+ Set.new([
+ ])
+ end
+
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
+ # Returns list of attributes with nullable: true of this model + parent
+ def self.merged_nullable
+ self.openapi_nullable
+ end
+
+ # Attempt to instantiate and hydrate a new instance of this class
+ # @param [Object] data Data to be converted
+ # @return [FaxLineCreateRequest]
+ def self.init(data)
+ return ApiClient.default.convert_to_type(
+ data,
+ "FaxLineCreateRequest"
+ ) || FaxLineCreateRequest.new
+ end
+
+ # Initializes the object
+ # @param [Hash] attributes Model attributes in the form of hash
+ def initialize(attributes = {})
+ if (!attributes.is_a?(Hash))
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Dropbox::Sign::FaxLineCreateRequest` initialize method"
+ end
+
+ # check to see if the attribute exists and convert string to symbol for hash key
+ attributes = attributes.each_with_object({}) { |(k, v), h|
+ if (!self.class.merged_attributes.key?(k.to_sym))
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Dropbox::Sign::FaxLineCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
+ end
+ h[k.to_sym] = v
+ }
+
+ if attributes.key?(:'area_code')
+ self.area_code = attributes[:'area_code']
+ end
+
+ if attributes.key?(:'country')
+ self.country = attributes[:'country']
+ end
+
+ if attributes.key?(:'city')
+ self.city = attributes[:'city']
+ end
+
+ if attributes.key?(:'account_id')
+ self.account_id = attributes[:'account_id']
+ end
+ end
+
+ # Show invalid properties with the reasons. Usually used together with valid?
+ # @return Array for valid properties with the reasons
+ def list_invalid_properties
+ invalid_properties = Array.new
+ if @area_code.nil?
+ invalid_properties.push('invalid value for "area_code", area_code cannot be nil.')
+ end
+
+ if @country.nil?
+ invalid_properties.push('invalid value for "country", country cannot be nil.')
+ end
+
+ invalid_properties
+ end
+
+ # 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 @area_code.nil?
+ return false if @country.nil?
+ country_validator = EnumAttributeValidator.new('String', ["CA", "US", "UK"])
+ return false unless country_validator.valid?(@country)
+ true
+ end
+
+ # Custom attribute writer method checking allowed values (enum).
+ # @param [Object] country Object to be assigned
+ def country=(country)
+ validator = EnumAttributeValidator.new('String', ["CA", "US", "UK"])
+ unless validator.valid?(country)
+ fail ArgumentError, "invalid value for \"country\", must be one of #{validator.allowable_values}."
+ end
+ @country = country
+ end
+
+ # Checks equality by comparing each attribute.
+ # @param [Object] Object to be compared
+ def ==(o)
+ return true if self.equal?(o)
+ self.class == o.class &&
+ area_code == o.area_code &&
+ country == o.country &&
+ city == o.city &&
+ account_id == o.account_id
+ end
+
+ # @see the `==` method
+ # @param [Object] Object to be compared
+ def eql?(o)
+ self == o
+ end
+
+ # Calculates hash code according to all attributes.
+ # @return [Integer] Hash code
+ def hash
+ [area_code, country, city, account_id].hash
+ end
+
+ # Builds the object from hash
+ # @param [Hash] attributes Model attributes in the form of hash
+ # @return [Object] Returns the model itself
+ def self.build_from_hash(attributes)
+ new.build_from_hash(attributes)
+ end
+
+ # Builds the object from hash
+ # @param [Hash] attributes Model attributes in the form of hash
+ # @return [Object] Returns the model itself
+ def build_from_hash(attributes)
+ return nil unless attributes.is_a?(Hash)
+ attribute_map = self.class.merged_attributes
+
+ self.class.merged_types.each_pair do |key, type|
+ if type =~ /\AArray<(.*)>/i
+ # check to ensure the input is an array given that the attribute
+ # is documented as an array but the input is not
+ if attributes[attribute_map[key]].is_a?(Array)
+ self.send("#{key}=", attributes[attribute_map[key]].map { |v| _deserialize($1, v) })
+ end
+ elsif !attributes[attribute_map[key]].nil?
+ self.send("#{key}=", _deserialize(type, attributes[attribute_map[key]]))
+ end
+ end
+
+ self
+ end
+
+ # Deserializes the data based on type
+ # @param string type Data type
+ # @param string value Value to be deserialized
+ # @return [Object] Deserialized data
+ def _deserialize(type, value)
+ case type.to_sym
+ when :Time
+ Time.parse(value)
+ when :Date
+ Date.parse(value)
+ when :String
+ value.to_s
+ when :Integer
+ value.to_i
+ when :Float
+ value.to_f
+ when :Boolean
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
+ true
+ else
+ false
+ end
+ when :Object
+ # generic object (usually a Hash), return directly
+ value
+ when /\AArray<(?.+)>\z/
+ inner_type = Regexp.last_match[:inner_type]
+ value.map { |v| _deserialize(inner_type, v) }
+ when /\AHash<(?.+?), (?.+)>\z/
+ k_type = Regexp.last_match[:k_type]
+ v_type = Regexp.last_match[:v_type]
+ {}.tap do |hash|
+ value.each do |k, v|
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
+ end
+ end
+ else # model
+ klass = Dropbox::Sign.const_get(type)
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
+ end
+ end
+
+ # Returns the string representation of the object
+ # @return [String] String presentation of the object
+ def to_s
+ to_hash.to_s
+ end
+
+ # to_body is an alias to to_hash (backward compatibility)
+ # @return [Hash] Returns the object in the form of hash
+ def to_body
+ to_hash
+ end
+
+ # Returns the object in the form of hash
+ # @return [Hash] Returns the object in the form of hash
+ def to_hash(include_nil = true)
+ hash = {}
+ self.class.merged_attributes.each_pair do |attr, param|
+ value = self.send(attr)
+ if value.nil?
+ next unless include_nil
+ is_nullable = self.class.merged_nullable.include?(attr)
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
+ end
+
+ hash[param] = _to_hash(value, include_nil)
+ end
+ hash
+ end
+
+ # Outputs non-array value in the form of hash
+ # For object, use to_hash. Otherwise, just return the value
+ # @param [Object] value Any valid value
+ # @return [Hash] Returns the value in the form of hash
+ def _to_hash(value, include_nil = true)
+ if value.is_a?(Array)
+ value.compact.map { |v| _to_hash(v, include_nil) }
+ elsif value.is_a?(Hash)
+ {}.tap do |hash|
+ value.each { |k, v| hash[k] = _to_hash(v, include_nil) }
+ end
+ elsif value.respond_to? :to_hash
+ value.to_hash(include_nil)
+ else
+ value
+ end
+ end
+
+ end
+
+end
diff --git a/lib/dropbox-sign/models/fax_line_delete_request.rb b/lib/dropbox-sign/models/fax_line_delete_request.rb
new file mode 100644
index 0000000..632b2cb
--- /dev/null
+++ b/lib/dropbox-sign/models/fax_line_delete_request.rb
@@ -0,0 +1,253 @@
+=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
+Generator version: 7.8.0
+
+=end
+
+require 'date'
+require 'time'
+
+module Dropbox
+end
+
+module Dropbox::Sign
+ class FaxLineDeleteRequest
+ # The Fax Line number.
+ # @return [String]
+ attr_accessor :number
+
+ # Attribute mapping from ruby-style variable name to JSON key.
+ def self.attribute_map
+ {
+ :'number' => :'number'
+ }
+ end
+
+ # Returns all the JSON keys this model knows about
+ def self.acceptable_attributes
+ attribute_map.values
+ end
+
+ # Attribute type mapping.
+ def self.openapi_types
+ {
+ :'number' => :'String'
+ }
+ end
+
+ # List of attributes with nullable: true
+ def self.openapi_nullable
+ Set.new([
+ ])
+ end
+
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
+ # Returns list of attributes with nullable: true of this model + parent
+ def self.merged_nullable
+ self.openapi_nullable
+ end
+
+ # Attempt to instantiate and hydrate a new instance of this class
+ # @param [Object] data Data to be converted
+ # @return [FaxLineDeleteRequest]
+ def self.init(data)
+ return ApiClient.default.convert_to_type(
+ data,
+ "FaxLineDeleteRequest"
+ ) || FaxLineDeleteRequest.new
+ end
+
+ # Initializes the object
+ # @param [Hash] attributes Model attributes in the form of hash
+ def initialize(attributes = {})
+ if (!attributes.is_a?(Hash))
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Dropbox::Sign::FaxLineDeleteRequest` initialize method"
+ end
+
+ # check to see if the attribute exists and convert string to symbol for hash key
+ attributes = attributes.each_with_object({}) { |(k, v), h|
+ if (!self.class.merged_attributes.key?(k.to_sym))
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Dropbox::Sign::FaxLineDeleteRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
+ end
+ h[k.to_sym] = v
+ }
+
+ if attributes.key?(:'number')
+ self.number = attributes[:'number']
+ end
+ end
+
+ # Show invalid properties with the reasons. Usually used together with valid?
+ # @return Array for valid properties with the reasons
+ def list_invalid_properties
+ invalid_properties = Array.new
+ if @number.nil?
+ invalid_properties.push('invalid value for "number", number cannot be nil.')
+ end
+
+ invalid_properties
+ end
+
+ # 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 @number.nil?
+ true
+ end
+
+ # Checks equality by comparing each attribute.
+ # @param [Object] Object to be compared
+ def ==(o)
+ return true if self.equal?(o)
+ self.class == o.class &&
+ number == o.number
+ end
+
+ # @see the `==` method
+ # @param [Object] Object to be compared
+ def eql?(o)
+ self == o
+ end
+
+ # Calculates hash code according to all attributes.
+ # @return [Integer] Hash code
+ def hash
+ [number].hash
+ end
+
+ # Builds the object from hash
+ # @param [Hash] attributes Model attributes in the form of hash
+ # @return [Object] Returns the model itself
+ def self.build_from_hash(attributes)
+ new.build_from_hash(attributes)
+ end
+
+ # Builds the object from hash
+ # @param [Hash] attributes Model attributes in the form of hash
+ # @return [Object] Returns the model itself
+ def build_from_hash(attributes)
+ return nil unless attributes.is_a?(Hash)
+ attribute_map = self.class.merged_attributes
+
+ self.class.merged_types.each_pair do |key, type|
+ if type =~ /\AArray<(.*)>/i
+ # check to ensure the input is an array given that the attribute
+ # is documented as an array but the input is not
+ if attributes[attribute_map[key]].is_a?(Array)
+ self.send("#{key}=", attributes[attribute_map[key]].map { |v| _deserialize($1, v) })
+ end
+ elsif !attributes[attribute_map[key]].nil?
+ self.send("#{key}=", _deserialize(type, attributes[attribute_map[key]]))
+ end
+ end
+
+ self
+ end
+
+ # Deserializes the data based on type
+ # @param string type Data type
+ # @param string value Value to be deserialized
+ # @return [Object] Deserialized data
+ def _deserialize(type, value)
+ case type.to_sym
+ when :Time
+ Time.parse(value)
+ when :Date
+ Date.parse(value)
+ when :String
+ value.to_s
+ when :Integer
+ value.to_i
+ when :Float
+ value.to_f
+ when :Boolean
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
+ true
+ else
+ false
+ end
+ when :Object
+ # generic object (usually a Hash), return directly
+ value
+ when /\AArray<(?.+)>\z/
+ inner_type = Regexp.last_match[:inner_type]
+ value.map { |v| _deserialize(inner_type, v) }
+ when /\AHash<(?.+?), (?.+)>\z/
+ k_type = Regexp.last_match[:k_type]
+ v_type = Regexp.last_match[:v_type]
+ {}.tap do |hash|
+ value.each do |k, v|
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
+ end
+ end
+ else # model
+ klass = Dropbox::Sign.const_get(type)
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
+ end
+ end
+
+ # Returns the string representation of the object
+ # @return [String] String presentation of the object
+ def to_s
+ to_hash.to_s
+ end
+
+ # to_body is an alias to to_hash (backward compatibility)
+ # @return [Hash] Returns the object in the form of hash
+ def to_body
+ to_hash
+ end
+
+ # Returns the object in the form of hash
+ # @return [Hash] Returns the object in the form of hash
+ def to_hash(include_nil = true)
+ hash = {}
+ self.class.merged_attributes.each_pair do |attr, param|
+ value = self.send(attr)
+ if value.nil?
+ next unless include_nil
+ is_nullable = self.class.merged_nullable.include?(attr)
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
+ end
+
+ hash[param] = _to_hash(value, include_nil)
+ end
+ hash
+ end
+
+ # Outputs non-array value in the form of hash
+ # For object, use to_hash. Otherwise, just return the value
+ # @param [Object] value Any valid value
+ # @return [Hash] Returns the value in the form of hash
+ def _to_hash(value, include_nil = true)
+ if value.is_a?(Array)
+ value.compact.map { |v| _to_hash(v, include_nil) }
+ elsif value.is_a?(Hash)
+ {}.tap do |hash|
+ value.each { |k, v| hash[k] = _to_hash(v, include_nil) }
+ end
+ elsif value.respond_to? :to_hash
+ value.to_hash(include_nil)
+ else
+ value
+ end
+ end
+
+ end
+
+end
diff --git a/lib/dropbox-sign/models/fax_line_list_response.rb b/lib/dropbox-sign/models/fax_line_list_response.rb
new file mode 100644
index 0000000..5aac0f5
--- /dev/null
+++ b/lib/dropbox-sign/models/fax_line_list_response.rb
@@ -0,0 +1,279 @@
+=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
+Generator version: 7.8.0
+
+=end
+
+require 'date'
+require 'time'
+
+module Dropbox
+end
+
+module Dropbox::Sign
+ class FaxLineListResponse
+ # @return [ListInfoResponse]
+ attr_accessor :list_info
+
+ # @return [Array]
+ attr_accessor :fax_lines
+
+ # @return [WarningResponse]
+ attr_accessor :warnings
+
+ # Attribute mapping from ruby-style variable name to JSON key.
+ def self.attribute_map
+ {
+ :'list_info' => :'list_info',
+ :'fax_lines' => :'fax_lines',
+ :'warnings' => :'warnings'
+ }
+ end
+
+ # Returns all the JSON keys this model knows about
+ def self.acceptable_attributes
+ attribute_map.values
+ end
+
+ # Attribute type mapping.
+ def self.openapi_types
+ {
+ :'list_info' => :'ListInfoResponse',
+ :'fax_lines' => :'Array',
+ :'warnings' => :'WarningResponse'
+ }
+ end
+
+ # List of attributes with nullable: true
+ def self.openapi_nullable
+ Set.new([
+ ])
+ end
+
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
+ # Returns list of attributes with nullable: true of this model + parent
+ def self.merged_nullable
+ self.openapi_nullable
+ end
+
+ # Attempt to instantiate and hydrate a new instance of this class
+ # @param [Object] data Data to be converted
+ # @return [FaxLineListResponse]
+ def self.init(data)
+ return ApiClient.default.convert_to_type(
+ data,
+ "FaxLineListResponse"
+ ) || FaxLineListResponse.new
+ end
+
+ # Initializes the object
+ # @param [Hash] attributes Model attributes in the form of hash
+ def initialize(attributes = {})
+ if (!attributes.is_a?(Hash))
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Dropbox::Sign::FaxLineListResponse` initialize method"
+ end
+
+ # check to see if the attribute exists and convert string to symbol for hash key
+ attributes = attributes.each_with_object({}) { |(k, v), h|
+ if (!self.class.merged_attributes.key?(k.to_sym))
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Dropbox::Sign::FaxLineListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
+ end
+ h[k.to_sym] = v
+ }
+
+ if attributes.key?(:'list_info')
+ self.list_info = attributes[:'list_info']
+ end
+
+ if attributes.key?(:'fax_lines')
+ if (value = attributes[:'fax_lines']).is_a?(Array)
+ self.fax_lines = value
+ end
+ end
+
+ if attributes.key?(:'warnings')
+ self.warnings = attributes[:'warnings']
+ end
+ end
+
+ # Show invalid properties with the reasons. Usually used together with valid?
+ # @return Array for valid properties with the reasons
+ def list_invalid_properties
+ invalid_properties = Array.new
+ if @list_info.nil?
+ invalid_properties.push('invalid value for "list_info", list_info cannot be nil.')
+ end
+
+ if @fax_lines.nil?
+ invalid_properties.push('invalid value for "fax_lines", fax_lines cannot be nil.')
+ end
+
+ invalid_properties
+ end
+
+ # 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 @list_info.nil?
+ return false if @fax_lines.nil?
+ true
+ end
+
+ # Checks equality by comparing each attribute.
+ # @param [Object] Object to be compared
+ def ==(o)
+ return true if self.equal?(o)
+ self.class == o.class &&
+ list_info == o.list_info &&
+ fax_lines == o.fax_lines &&
+ warnings == o.warnings
+ end
+
+ # @see the `==` method
+ # @param [Object] Object to be compared
+ def eql?(o)
+ self == o
+ end
+
+ # Calculates hash code according to all attributes.
+ # @return [Integer] Hash code
+ def hash
+ [list_info, fax_lines, warnings].hash
+ end
+
+ # Builds the object from hash
+ # @param [Hash] attributes Model attributes in the form of hash
+ # @return [Object] Returns the model itself
+ def self.build_from_hash(attributes)
+ new.build_from_hash(attributes)
+ end
+
+ # Builds the object from hash
+ # @param [Hash] attributes Model attributes in the form of hash
+ # @return [Object] Returns the model itself
+ def build_from_hash(attributes)
+ return nil unless attributes.is_a?(Hash)
+ attribute_map = self.class.merged_attributes
+
+ self.class.merged_types.each_pair do |key, type|
+ if type =~ /\AArray<(.*)>/i
+ # check to ensure the input is an array given that the attribute
+ # is documented as an array but the input is not
+ if attributes[attribute_map[key]].is_a?(Array)
+ self.send("#{key}=", attributes[attribute_map[key]].map { |v| _deserialize($1, v) })
+ end
+ elsif !attributes[attribute_map[key]].nil?
+ self.send("#{key}=", _deserialize(type, attributes[attribute_map[key]]))
+ end
+ end
+
+ self
+ end
+
+ # Deserializes the data based on type
+ # @param string type Data type
+ # @param string value Value to be deserialized
+ # @return [Object] Deserialized data
+ def _deserialize(type, value)
+ case type.to_sym
+ when :Time
+ Time.parse(value)
+ when :Date
+ Date.parse(value)
+ when :String
+ value.to_s
+ when :Integer
+ value.to_i
+ when :Float
+ value.to_f
+ when :Boolean
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
+ true
+ else
+ false
+ end
+ when :Object
+ # generic object (usually a Hash), return directly
+ value
+ when /\AArray<(?.+)>\z/
+ inner_type = Regexp.last_match[:inner_type]
+ value.map { |v| _deserialize(inner_type, v) }
+ when /\AHash<(?.+?), (?.+)>\z/
+ k_type = Regexp.last_match[:k_type]
+ v_type = Regexp.last_match[:v_type]
+ {}.tap do |hash|
+ value.each do |k, v|
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
+ end
+ end
+ else # model
+ klass = Dropbox::Sign.const_get(type)
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
+ end
+ end
+
+ # Returns the string representation of the object
+ # @return [String] String presentation of the object
+ def to_s
+ to_hash.to_s
+ end
+
+ # to_body is an alias to to_hash (backward compatibility)
+ # @return [Hash] Returns the object in the form of hash
+ def to_body
+ to_hash
+ end
+
+ # Returns the object in the form of hash
+ # @return [Hash] Returns the object in the form of hash
+ def to_hash(include_nil = true)
+ hash = {}
+ self.class.merged_attributes.each_pair do |attr, param|
+ value = self.send(attr)
+ if value.nil?
+ next unless include_nil
+ is_nullable = self.class.merged_nullable.include?(attr)
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
+ end
+
+ hash[param] = _to_hash(value, include_nil)
+ end
+ hash
+ end
+
+ # Outputs non-array value in the form of hash
+ # For object, use to_hash. Otherwise, just return the value
+ # @param [Object] value Any valid value
+ # @return [Hash] Returns the value in the form of hash
+ def _to_hash(value, include_nil = true)
+ if value.is_a?(Array)
+ value.compact.map { |v| _to_hash(v, include_nil) }
+ elsif value.is_a?(Hash)
+ {}.tap do |hash|
+ value.each { |k, v| hash[k] = _to_hash(v, include_nil) }
+ end
+ elsif value.respond_to? :to_hash
+ value.to_hash(include_nil)
+ else
+ value
+ end
+ end
+
+ end
+
+end
diff --git a/lib/dropbox-sign/models/fax_line_remove_user_request.rb b/lib/dropbox-sign/models/fax_line_remove_user_request.rb
new file mode 100644
index 0000000..b2b0a6c
--- /dev/null
+++ b/lib/dropbox-sign/models/fax_line_remove_user_request.rb
@@ -0,0 +1,275 @@
+=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
+Generator version: 7.8.0
+
+=end
+
+require 'date'
+require 'time'
+
+module Dropbox
+end
+
+module Dropbox::Sign
+ class FaxLineRemoveUserRequest
+ # The Fax Line number.
+ # @return [String]
+ attr_accessor :number
+
+ # Account ID
+ # @return [String]
+ attr_accessor :account_id
+
+ # Email address
+ # @return [String]
+ attr_accessor :email_address
+
+ # Attribute mapping from ruby-style variable name to JSON key.
+ def self.attribute_map
+ {
+ :'number' => :'number',
+ :'account_id' => :'account_id',
+ :'email_address' => :'email_address'
+ }
+ end
+
+ # Returns all the JSON keys this model knows about
+ def self.acceptable_attributes
+ attribute_map.values
+ end
+
+ # Attribute type mapping.
+ def self.openapi_types
+ {
+ :'number' => :'String',
+ :'account_id' => :'String',
+ :'email_address' => :'String'
+ }
+ end
+
+ # List of attributes with nullable: true
+ def self.openapi_nullable
+ Set.new([
+ ])
+ end
+
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
+ # Returns list of attributes with nullable: true of this model + parent
+ def self.merged_nullable
+ self.openapi_nullable
+ end
+
+ # Attempt to instantiate and hydrate a new instance of this class
+ # @param [Object] data Data to be converted
+ # @return [FaxLineRemoveUserRequest]
+ def self.init(data)
+ return ApiClient.default.convert_to_type(
+ data,
+ "FaxLineRemoveUserRequest"
+ ) || FaxLineRemoveUserRequest.new
+ end
+
+ # Initializes the object
+ # @param [Hash] attributes Model attributes in the form of hash
+ def initialize(attributes = {})
+ if (!attributes.is_a?(Hash))
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Dropbox::Sign::FaxLineRemoveUserRequest` initialize method"
+ end
+
+ # check to see if the attribute exists and convert string to symbol for hash key
+ attributes = attributes.each_with_object({}) { |(k, v), h|
+ if (!self.class.merged_attributes.key?(k.to_sym))
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Dropbox::Sign::FaxLineRemoveUserRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
+ end
+ h[k.to_sym] = v
+ }
+
+ if attributes.key?(:'number')
+ self.number = attributes[:'number']
+ end
+
+ if attributes.key?(:'account_id')
+ self.account_id = attributes[:'account_id']
+ end
+
+ if attributes.key?(:'email_address')
+ self.email_address = attributes[:'email_address']
+ end
+ end
+
+ # Show invalid properties with the reasons. Usually used together with valid?
+ # @return Array for valid properties with the reasons
+ def list_invalid_properties
+ invalid_properties = Array.new
+ if @number.nil?
+ invalid_properties.push('invalid value for "number", number cannot be nil.')
+ end
+
+ invalid_properties
+ end
+
+ # 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 @number.nil?
+ true
+ end
+
+ # Checks equality by comparing each attribute.
+ # @param [Object] Object to be compared
+ def ==(o)
+ return true if self.equal?(o)
+ self.class == o.class &&
+ number == o.number &&
+ account_id == o.account_id &&
+ email_address == o.email_address
+ end
+
+ # @see the `==` method
+ # @param [Object] Object to be compared
+ def eql?(o)
+ self == o
+ end
+
+ # Calculates hash code according to all attributes.
+ # @return [Integer] Hash code
+ def hash
+ [number, account_id, email_address].hash
+ end
+
+ # Builds the object from hash
+ # @param [Hash] attributes Model attributes in the form of hash
+ # @return [Object] Returns the model itself
+ def self.build_from_hash(attributes)
+ new.build_from_hash(attributes)
+ end
+
+ # Builds the object from hash
+ # @param [Hash] attributes Model attributes in the form of hash
+ # @return [Object] Returns the model itself
+ def build_from_hash(attributes)
+ return nil unless attributes.is_a?(Hash)
+ attribute_map = self.class.merged_attributes
+
+ self.class.merged_types.each_pair do |key, type|
+ if type =~ /\AArray<(.*)>/i
+ # check to ensure the input is an array given that the attribute
+ # is documented as an array but the input is not
+ if attributes[attribute_map[key]].is_a?(Array)
+ self.send("#{key}=", attributes[attribute_map[key]].map { |v| _deserialize($1, v) })
+ end
+ elsif !attributes[attribute_map[key]].nil?
+ self.send("#{key}=", _deserialize(type, attributes[attribute_map[key]]))
+ end
+ end
+
+ self
+ end
+
+ # Deserializes the data based on type
+ # @param string type Data type
+ # @param string value Value to be deserialized
+ # @return [Object] Deserialized data
+ def _deserialize(type, value)
+ case type.to_sym
+ when :Time
+ Time.parse(value)
+ when :Date
+ Date.parse(value)
+ when :String
+ value.to_s
+ when :Integer
+ value.to_i
+ when :Float
+ value.to_f
+ when :Boolean
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
+ true
+ else
+ false
+ end
+ when :Object
+ # generic object (usually a Hash), return directly
+ value
+ when /\AArray<(?.+)>\z/
+ inner_type = Regexp.last_match[:inner_type]
+ value.map { |v| _deserialize(inner_type, v) }
+ when /\AHash<(?.+?), (?.+)>\z/
+ k_type = Regexp.last_match[:k_type]
+ v_type = Regexp.last_match[:v_type]
+ {}.tap do |hash|
+ value.each do |k, v|
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
+ end
+ end
+ else # model
+ klass = Dropbox::Sign.const_get(type)
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
+ end
+ end
+
+ # Returns the string representation of the object
+ # @return [String] String presentation of the object
+ def to_s
+ to_hash.to_s
+ end
+
+ # to_body is an alias to to_hash (backward compatibility)
+ # @return [Hash] Returns the object in the form of hash
+ def to_body
+ to_hash
+ end
+
+ # Returns the object in the form of hash
+ # @return [Hash] Returns the object in the form of hash
+ def to_hash(include_nil = true)
+ hash = {}
+ self.class.merged_attributes.each_pair do |attr, param|
+ value = self.send(attr)
+ if value.nil?
+ next unless include_nil
+ is_nullable = self.class.merged_nullable.include?(attr)
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
+ end
+
+ hash[param] = _to_hash(value, include_nil)
+ end
+ hash
+ end
+
+ # Outputs non-array value in the form of hash
+ # For object, use to_hash. Otherwise, just return the value
+ # @param [Object] value Any valid value
+ # @return [Hash] Returns the value in the form of hash
+ def _to_hash(value, include_nil = true)
+ if value.is_a?(Array)
+ value.compact.map { |v| _to_hash(v, include_nil) }
+ elsif value.is_a?(Hash)
+ {}.tap do |hash|
+ value.each { |k, v| hash[k] = _to_hash(v, include_nil) }
+ end
+ elsif value.respond_to? :to_hash
+ value.to_hash(include_nil)
+ else
+ value
+ end
+ end
+
+ end
+
+end
diff --git a/lib/dropbox-sign/models/fax_line_response.rb b/lib/dropbox-sign/models/fax_line_response.rb
new file mode 100644
index 0000000..491b618
--- /dev/null
+++ b/lib/dropbox-sign/models/fax_line_response.rb
@@ -0,0 +1,262 @@
+=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
+Generator version: 7.8.0
+
+=end
+
+require 'date'
+require 'time'
+
+module Dropbox
+end
+
+module Dropbox::Sign
+ class FaxLineResponse
+ # @return [FaxLineResponseFaxLine]
+ attr_accessor :fax_line
+
+ # @return [WarningResponse]
+ attr_accessor :warnings
+
+ # Attribute mapping from ruby-style variable name to JSON key.
+ def self.attribute_map
+ {
+ :'fax_line' => :'fax_line',
+ :'warnings' => :'warnings'
+ }
+ end
+
+ # Returns all the JSON keys this model knows about
+ def self.acceptable_attributes
+ attribute_map.values
+ end
+
+ # Attribute type mapping.
+ def self.openapi_types
+ {
+ :'fax_line' => :'FaxLineResponseFaxLine',
+ :'warnings' => :'WarningResponse'
+ }
+ end
+
+ # List of attributes with nullable: true
+ def self.openapi_nullable
+ Set.new([
+ ])
+ end
+
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
+ # Returns list of attributes with nullable: true of this model + parent
+ def self.merged_nullable
+ self.openapi_nullable
+ end
+
+ # Attempt to instantiate and hydrate a new instance of this class
+ # @param [Object] data Data to be converted
+ # @return [FaxLineResponse]
+ def self.init(data)
+ return ApiClient.default.convert_to_type(
+ data,
+ "FaxLineResponse"
+ ) || FaxLineResponse.new
+ end
+
+ # Initializes the object
+ # @param [Hash] attributes Model attributes in the form of hash
+ def initialize(attributes = {})
+ if (!attributes.is_a?(Hash))
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Dropbox::Sign::FaxLineResponse` initialize method"
+ end
+
+ # check to see if the attribute exists and convert string to symbol for hash key
+ attributes = attributes.each_with_object({}) { |(k, v), h|
+ if (!self.class.merged_attributes.key?(k.to_sym))
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Dropbox::Sign::FaxLineResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
+ end
+ h[k.to_sym] = v
+ }
+
+ if attributes.key?(:'fax_line')
+ self.fax_line = attributes[:'fax_line']
+ end
+
+ if attributes.key?(:'warnings')
+ self.warnings = attributes[:'warnings']
+ end
+ end
+
+ # Show invalid properties with the reasons. Usually used together with valid?
+ # @return Array for valid properties with the reasons
+ def list_invalid_properties
+ invalid_properties = Array.new
+ if @fax_line.nil?
+ invalid_properties.push('invalid value for "fax_line", fax_line cannot be nil.')
+ end
+
+ invalid_properties
+ end
+
+ # 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 @fax_line.nil?
+ true
+ end
+
+ # Checks equality by comparing each attribute.
+ # @param [Object] Object to be compared
+ def ==(o)
+ return true if self.equal?(o)
+ self.class == o.class &&
+ fax_line == o.fax_line &&
+ warnings == o.warnings
+ end
+
+ # @see the `==` method
+ # @param [Object] Object to be compared
+ def eql?(o)
+ self == o
+ end
+
+ # Calculates hash code according to all attributes.
+ # @return [Integer] Hash code
+ def hash
+ [fax_line, warnings].hash
+ end
+
+ # Builds the object from hash
+ # @param [Hash] attributes Model attributes in the form of hash
+ # @return [Object] Returns the model itself
+ def self.build_from_hash(attributes)
+ new.build_from_hash(attributes)
+ end
+
+ # Builds the object from hash
+ # @param [Hash] attributes Model attributes in the form of hash
+ # @return [Object] Returns the model itself
+ def build_from_hash(attributes)
+ return nil unless attributes.is_a?(Hash)
+ attribute_map = self.class.merged_attributes
+
+ self.class.merged_types.each_pair do |key, type|
+ if type =~ /\AArray<(.*)>/i
+ # check to ensure the input is an array given that the attribute
+ # is documented as an array but the input is not
+ if attributes[attribute_map[key]].is_a?(Array)
+ self.send("#{key}=", attributes[attribute_map[key]].map { |v| _deserialize($1, v) })
+ end
+ elsif !attributes[attribute_map[key]].nil?
+ self.send("#{key}=", _deserialize(type, attributes[attribute_map[key]]))
+ end
+ end
+
+ self
+ end
+
+ # Deserializes the data based on type
+ # @param string type Data type
+ # @param string value Value to be deserialized
+ # @return [Object] Deserialized data
+ def _deserialize(type, value)
+ case type.to_sym
+ when :Time
+ Time.parse(value)
+ when :Date
+ Date.parse(value)
+ when :String
+ value.to_s
+ when :Integer
+ value.to_i
+ when :Float
+ value.to_f
+ when :Boolean
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
+ true
+ else
+ false
+ end
+ when :Object
+ # generic object (usually a Hash), return directly
+ value
+ when /\AArray<(?.+)>\z/
+ inner_type = Regexp.last_match[:inner_type]
+ value.map { |v| _deserialize(inner_type, v) }
+ when /\AHash<(?.+?), (?.+)>\z/
+ k_type = Regexp.last_match[:k_type]
+ v_type = Regexp.last_match[:v_type]
+ {}.tap do |hash|
+ value.each do |k, v|
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
+ end
+ end
+ else # model
+ klass = Dropbox::Sign.const_get(type)
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
+ end
+ end
+
+ # Returns the string representation of the object
+ # @return [String] String presentation of the object
+ def to_s
+ to_hash.to_s
+ end
+
+ # to_body is an alias to to_hash (backward compatibility)
+ # @return [Hash] Returns the object in the form of hash
+ def to_body
+ to_hash
+ end
+
+ # Returns the object in the form of hash
+ # @return [Hash] Returns the object in the form of hash
+ def to_hash(include_nil = true)
+ hash = {}
+ self.class.merged_attributes.each_pair do |attr, param|
+ value = self.send(attr)
+ if value.nil?
+ next unless include_nil
+ is_nullable = self.class.merged_nullable.include?(attr)
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
+ end
+
+ hash[param] = _to_hash(value, include_nil)
+ end
+ hash
+ end
+
+ # Outputs non-array value in the form of hash
+ # For object, use to_hash. Otherwise, just return the value
+ # @param [Object] value Any valid value
+ # @return [Hash] Returns the value in the form of hash
+ def _to_hash(value, include_nil = true)
+ if value.is_a?(Array)
+ value.compact.map { |v| _to_hash(v, include_nil) }
+ elsif value.is_a?(Hash)
+ {}.tap do |hash|
+ value.each { |k, v| hash[k] = _to_hash(v, include_nil) }
+ end
+ elsif value.respond_to? :to_hash
+ value.to_hash(include_nil)
+ else
+ value
+ end
+ end
+
+ end
+
+end
diff --git a/lib/dropbox-sign/models/fax_line_response_fax_line.rb b/lib/dropbox-sign/models/fax_line_response_fax_line.rb
new file mode 100644
index 0000000..2d39e7f
--- /dev/null
+++ b/lib/dropbox-sign/models/fax_line_response_fax_line.rb
@@ -0,0 +1,282 @@
+=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
+Generator version: 7.8.0
+
+=end
+
+require 'date'
+require 'time'
+
+module Dropbox
+end
+
+module Dropbox::Sign
+ class FaxLineResponseFaxLine
+ # Number
+ # @return [String]
+ attr_accessor :number
+
+ # Created at
+ # @return [Integer]
+ attr_accessor :created_at
+
+ # Updated at
+ # @return [Integer]
+ attr_accessor :updated_at
+
+ # @return [Array]
+ attr_accessor :accounts
+
+ # Attribute mapping from ruby-style variable name to JSON key.
+ def self.attribute_map
+ {
+ :'number' => :'number',
+ :'created_at' => :'created_at',
+ :'updated_at' => :'updated_at',
+ :'accounts' => :'accounts'
+ }
+ end
+
+ # Returns all the JSON keys this model knows about
+ def self.acceptable_attributes
+ attribute_map.values
+ end
+
+ # Attribute type mapping.
+ def self.openapi_types
+ {
+ :'number' => :'String',
+ :'created_at' => :'Integer',
+ :'updated_at' => :'Integer',
+ :'accounts' => :'Array'
+ }
+ end
+
+ # List of attributes with nullable: true
+ def self.openapi_nullable
+ Set.new([
+ ])
+ end
+
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
+ # Returns list of attributes with nullable: true of this model + parent
+ def self.merged_nullable
+ self.openapi_nullable
+ end
+
+ # Attempt to instantiate and hydrate a new instance of this class
+ # @param [Object] data Data to be converted
+ # @return [FaxLineResponseFaxLine]
+ def self.init(data)
+ return ApiClient.default.convert_to_type(
+ data,
+ "FaxLineResponseFaxLine"
+ ) || FaxLineResponseFaxLine.new
+ end
+
+ # Initializes the object
+ # @param [Hash] attributes Model attributes in the form of hash
+ def initialize(attributes = {})
+ if (!attributes.is_a?(Hash))
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Dropbox::Sign::FaxLineResponseFaxLine` initialize method"
+ end
+
+ # check to see if the attribute exists and convert string to symbol for hash key
+ attributes = attributes.each_with_object({}) { |(k, v), h|
+ if (!self.class.merged_attributes.key?(k.to_sym))
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Dropbox::Sign::FaxLineResponseFaxLine`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
+ end
+ h[k.to_sym] = v
+ }
+
+ if attributes.key?(:'number')
+ self.number = attributes[:'number']
+ end
+
+ if attributes.key?(:'created_at')
+ self.created_at = attributes[:'created_at']
+ end
+
+ if attributes.key?(:'updated_at')
+ self.updated_at = attributes[:'updated_at']
+ end
+
+ if attributes.key?(:'accounts')
+ if (value = attributes[:'accounts']).is_a?(Array)
+ self.accounts = value
+ end
+ end
+ end
+
+ # Show invalid properties with the reasons. Usually used together with valid?
+ # @return Array for valid properties with the reasons
+ def list_invalid_properties
+ invalid_properties = Array.new
+ invalid_properties
+ end
+
+ # Check to see if the all the properties in the model are valid
+ # @return true if the model is valid
+ def valid?
+ true
+ end
+
+ # Checks equality by comparing each attribute.
+ # @param [Object] Object to be compared
+ def ==(o)
+ return true if self.equal?(o)
+ self.class == o.class &&
+ number == o.number &&
+ created_at == o.created_at &&
+ updated_at == o.updated_at &&
+ accounts == o.accounts
+ end
+
+ # @see the `==` method
+ # @param [Object] Object to be compared
+ def eql?(o)
+ self == o
+ end
+
+ # Calculates hash code according to all attributes.
+ # @return [Integer] Hash code
+ def hash
+ [number, created_at, updated_at, accounts].hash
+ end
+
+ # Builds the object from hash
+ # @param [Hash] attributes Model attributes in the form of hash
+ # @return [Object] Returns the model itself
+ def self.build_from_hash(attributes)
+ new.build_from_hash(attributes)
+ end
+
+ # Builds the object from hash
+ # @param [Hash] attributes Model attributes in the form of hash
+ # @return [Object] Returns the model itself
+ def build_from_hash(attributes)
+ return nil unless attributes.is_a?(Hash)
+ attribute_map = self.class.merged_attributes
+
+ self.class.merged_types.each_pair do |key, type|
+ if type =~ /\AArray<(.*)>/i
+ # check to ensure the input is an array given that the attribute
+ # is documented as an array but the input is not
+ if attributes[attribute_map[key]].is_a?(Array)
+ self.send("#{key}=", attributes[attribute_map[key]].map { |v| _deserialize($1, v) })
+ end
+ elsif !attributes[attribute_map[key]].nil?
+ self.send("#{key}=", _deserialize(type, attributes[attribute_map[key]]))
+ end
+ end
+
+ self
+ end
+
+ # Deserializes the data based on type
+ # @param string type Data type
+ # @param string value Value to be deserialized
+ # @return [Object] Deserialized data
+ def _deserialize(type, value)
+ case type.to_sym
+ when :Time
+ Time.parse(value)
+ when :Date
+ Date.parse(value)
+ when :String
+ value.to_s
+ when :Integer
+ value.to_i
+ when :Float
+ value.to_f
+ when :Boolean
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
+ true
+ else
+ false
+ end
+ when :Object
+ # generic object (usually a Hash), return directly
+ value
+ when /\AArray<(?.+)>\z/
+ inner_type = Regexp.last_match[:inner_type]
+ value.map { |v| _deserialize(inner_type, v) }
+ when /\AHash<(?.+?), (?.+)>\z/
+ k_type = Regexp.last_match[:k_type]
+ v_type = Regexp.last_match[:v_type]
+ {}.tap do |hash|
+ value.each do |k, v|
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
+ end
+ end
+ else # model
+ klass = Dropbox::Sign.const_get(type)
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
+ end
+ end
+
+ # Returns the string representation of the object
+ # @return [String] String presentation of the object
+ def to_s
+ to_hash.to_s
+ end
+
+ # to_body is an alias to to_hash (backward compatibility)
+ # @return [Hash] Returns the object in the form of hash
+ def to_body
+ to_hash
+ end
+
+ # Returns the object in the form of hash
+ # @return [Hash] Returns the object in the form of hash
+ def to_hash(include_nil = true)
+ hash = {}
+ self.class.merged_attributes.each_pair do |attr, param|
+ value = self.send(attr)
+ if value.nil?
+ next unless include_nil
+ is_nullable = self.class.merged_nullable.include?(attr)
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
+ end
+
+ hash[param] = _to_hash(value, include_nil)
+ end
+ hash
+ end
+
+ # Outputs non-array value in the form of hash
+ # For object, use to_hash. Otherwise, just return the value
+ # @param [Object] value Any valid value
+ # @return [Hash] Returns the value in the form of hash
+ def _to_hash(value, include_nil = true)
+ if value.is_a?(Array)
+ value.compact.map { |v| _to_hash(v, include_nil) }
+ elsif value.is_a?(Hash)
+ {}.tap do |hash|
+ value.each { |k, v| hash[k] = _to_hash(v, include_nil) }
+ end
+ elsif value.respond_to? :to_hash
+ value.to_hash(include_nil)
+ else
+ value
+ end
+ end
+
+ end
+
+end
diff --git a/lib/dropbox-sign/models/file_response.rb b/lib/dropbox-sign/models/file_response.rb
index 8836237..6a2deff 100644
--- a/lib/dropbox-sign/models/file_response.rb
+++ b/lib/dropbox-sign/models/file_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -39,11 +39,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -52,17 +47,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -106,12 +106,22 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
+ if @file_url.nil?
+ invalid_properties.push('invalid value for "file_url", file_url cannot be nil.')
+ end
+
+ if @expires_at.nil?
+ invalid_properties.push('invalid value for "expires_at", expires_at cannot be nil.')
+ end
+
invalid_properties
end
# 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 @file_url.nil?
+ return false if @expires_at.nil?
true
end
@@ -202,7 +212,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/file_response_data_uri.rb b/lib/dropbox-sign/models/file_response_data_uri.rb
index 7c11af5..d35727b 100644
--- a/lib/dropbox-sign/models/file_response_data_uri.rb
+++ b/lib/dropbox-sign/models/file_response_data_uri.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -34,11 +34,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -46,17 +41,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -96,12 +96,17 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
+ if @data_uri.nil?
+ invalid_properties.push('invalid value for "data_uri", data_uri cannot be nil.')
+ end
+
invalid_properties
end
# 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 @data_uri.nil?
true
end
@@ -191,7 +196,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/list_info_response.rb b/lib/dropbox-sign/models/list_info_response.rb
index 78525c9..17768f9 100644
--- a/lib/dropbox-sign/models/list_info_response.rb
+++ b/lib/dropbox-sign/models/list_info_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -50,11 +50,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -65,11 +60,6 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
@@ -77,6 +67,16 @@ def self.openapi_nullable
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -226,7 +226,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/o_auth_token_generate_request.rb b/lib/dropbox-sign/models/o_auth_token_generate_request.rb
index 65705ac..d835479 100644
--- a/lib/dropbox-sign/models/o_auth_token_generate_request.rb
+++ b/lib/dropbox-sign/models/o_auth_token_generate_request.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -54,11 +54,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -70,17 +65,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -262,7 +262,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/o_auth_token_refresh_request.rb b/lib/dropbox-sign/models/o_auth_token_refresh_request.rb
index 30b3c9c..737180e 100644
--- a/lib/dropbox-sign/models/o_auth_token_refresh_request.rb
+++ b/lib/dropbox-sign/models/o_auth_token_refresh_request.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -39,11 +39,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -52,17 +47,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -214,7 +214,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/o_auth_token_response.rb b/lib/dropbox-sign/models/o_auth_token_response.rb
index 874c417..5acda2f 100644
--- a/lib/dropbox-sign/models/o_auth_token_response.rb
+++ b/lib/dropbox-sign/models/o_auth_token_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -50,11 +50,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -66,11 +61,6 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
@@ -78,6 +68,16 @@ def self.openapi_nullable
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -232,7 +232,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/report_create_request.rb b/lib/dropbox-sign/models/report_create_request.rb
index 906f133..95b86e1 100644
--- a/lib/dropbox-sign/models/report_create_request.rb
+++ b/lib/dropbox-sign/models/report_create_request.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -66,11 +66,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -80,17 +75,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -262,7 +262,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/report_create_response.rb b/lib/dropbox-sign/models/report_create_response.rb
index e2c8403..5ff6010 100644
--- a/lib/dropbox-sign/models/report_create_response.rb
+++ b/lib/dropbox-sign/models/report_create_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -38,11 +38,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -51,17 +46,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -107,12 +107,17 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
+ if @report.nil?
+ invalid_properties.push('invalid value for "report", report cannot be nil.')
+ end
+
invalid_properties
end
# 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 @report.nil?
true
end
@@ -203,7 +208,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/report_response.rb b/lib/dropbox-sign/models/report_response.rb
index dfc2902..a794086 100644
--- a/lib/dropbox-sign/models/report_response.rb
+++ b/lib/dropbox-sign/models/report_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -72,11 +72,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -87,17 +82,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -249,7 +249,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/signature_request_bulk_create_embedded_with_template_request.rb b/lib/dropbox-sign/models/signature_request_bulk_create_embedded_with_template_request.rb
index f7bc3b7..3e2e153 100644
--- a/lib/dropbox-sign/models/signature_request_bulk_create_embedded_with_template_request.rb
+++ b/lib/dropbox-sign/models/signature_request_bulk_create_embedded_with_template_request.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -94,11 +94,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -118,17 +113,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -398,7 +398,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/signature_request_bulk_send_with_template_request.rb b/lib/dropbox-sign/models/signature_request_bulk_send_with_template_request.rb
index da98e87..894d2b0 100644
--- a/lib/dropbox-sign/models/signature_request_bulk_send_with_template_request.rb
+++ b/lib/dropbox-sign/models/signature_request_bulk_send_with_template_request.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -94,11 +94,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -118,17 +113,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -393,7 +393,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/signature_request_create_embedded_request.rb b/lib/dropbox-sign/models/signature_request_create_embedded_request.rb
index 842a341..f5d87ca 100644
--- a/lib/dropbox-sign/models/signature_request_create_embedded_request.rb
+++ b/lib/dropbox-sign/models/signature_request_create_embedded_request.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -147,11 +147,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -182,11 +177,6 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
@@ -194,6 +184,16 @@ def self.openapi_nullable
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -533,7 +533,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/signature_request_create_embedded_with_template_request.rb b/lib/dropbox-sign/models/signature_request_create_embedded_with_template_request.rb
index 2ca96b6..3238f8b 100644
--- a/lib/dropbox-sign/models/signature_request_create_embedded_with_template_request.rb
+++ b/lib/dropbox-sign/models/signature_request_create_embedded_with_template_request.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -103,11 +103,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -129,17 +124,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -430,7 +430,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/signature_request_get_response.rb b/lib/dropbox-sign/models/signature_request_get_response.rb
index 6b09317..51cabcc 100644
--- a/lib/dropbox-sign/models/signature_request_get_response.rb
+++ b/lib/dropbox-sign/models/signature_request_get_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -38,11 +38,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -51,17 +46,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -107,12 +107,17 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
+ if @signature_request.nil?
+ invalid_properties.push('invalid value for "signature_request", signature_request cannot be nil.')
+ end
+
invalid_properties
end
# 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 @signature_request.nil?
true
end
@@ -203,7 +208,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/signature_request_list_response.rb b/lib/dropbox-sign/models/signature_request_list_response.rb
index 11aefe5..0d365cc 100644
--- a/lib/dropbox-sign/models/signature_request_list_response.rb
+++ b/lib/dropbox-sign/models/signature_request_list_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -43,11 +43,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -57,17 +52,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -119,12 +119,22 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
+ if @signature_requests.nil?
+ invalid_properties.push('invalid value for "signature_requests", signature_requests cannot be nil.')
+ end
+
+ if @list_info.nil?
+ invalid_properties.push('invalid value for "list_info", list_info cannot be nil.')
+ end
+
invalid_properties
end
# 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 @signature_requests.nil?
+ return false if @list_info.nil?
true
end
@@ -216,7 +226,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/signature_request_remind_request.rb b/lib/dropbox-sign/models/signature_request_remind_request.rb
index 87fa9f1..eb20a87 100644
--- a/lib/dropbox-sign/models/signature_request_remind_request.rb
+++ b/lib/dropbox-sign/models/signature_request_remind_request.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -39,11 +39,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -52,17 +47,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -207,7 +207,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/signature_request_response.rb b/lib/dropbox-sign/models/signature_request_response.rb
index c6c8ff1..2d4a9b2 100644
--- a/lib/dropbox-sign/models/signature_request_response.rb
+++ b/lib/dropbox-sign/models/signature_request_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -155,11 +155,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -191,11 +186,6 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
@@ -213,6 +203,16 @@ def self.openapi_nullable
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -481,7 +481,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/signature_request_response_attachment.rb b/lib/dropbox-sign/models/signature_request_response_attachment.rb
index f442742..2d4e6c4 100644
--- a/lib/dropbox-sign/models/signature_request_response_attachment.rb
+++ b/lib/dropbox-sign/models/signature_request_response_attachment.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -24,7 +24,7 @@ class SignatureRequestResponseAttachment
attr_accessor :id
# The Signer this attachment is assigned to.
- # @return [String]
+ # @return [Integer, String]
attr_accessor :signer
# The name of this attachment.
@@ -60,11 +60,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -77,11 +72,6 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
@@ -90,6 +80,16 @@ def self.openapi_nullable
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -269,7 +269,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/signature_request_response_custom_field_base.rb b/lib/dropbox-sign/models/signature_request_response_custom_field_base.rb
index 8645b25..4694488 100644
--- a/lib/dropbox-sign/models/signature_request_response_custom_field_base.rb
+++ b/lib/dropbox-sign/models/signature_request_response_custom_field_base.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -55,11 +55,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -71,17 +66,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -261,7 +261,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/signature_request_response_custom_field_checkbox.rb b/lib/dropbox-sign/models/signature_request_response_custom_field_checkbox.rb
index cb119c8..71a9680 100644
--- a/lib/dropbox-sign/models/signature_request_response_custom_field_checkbox.rb
+++ b/lib/dropbox-sign/models/signature_request_response_custom_field_checkbox.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -40,11 +40,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -53,17 +48,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -214,7 +214,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/signature_request_response_custom_field_text.rb b/lib/dropbox-sign/models/signature_request_response_custom_field_text.rb
index d614646..47169c9 100644
--- a/lib/dropbox-sign/models/signature_request_response_custom_field_text.rb
+++ b/lib/dropbox-sign/models/signature_request_response_custom_field_text.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -40,11 +40,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -53,17 +48,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -214,7 +214,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/signature_request_response_custom_field_type_enum.rb b/lib/dropbox-sign/models/signature_request_response_custom_field_type_enum.rb
index 38d4cd6..63f61f1 100644
--- a/lib/dropbox-sign/models/signature_request_response_custom_field_type_enum.rb
+++ b/lib/dropbox-sign/models/signature_request_response_custom_field_type_enum.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -40,5 +40,4 @@ def build_from_hash(value)
raise "Invalid ENUM value #{value} for class #SignatureRequestResponseCustomFieldTypeEnum"
end
end
-
end
diff --git a/lib/dropbox-sign/models/signature_request_response_data_base.rb b/lib/dropbox-sign/models/signature_request_response_data_base.rb
index 2f6a515..492c3a4 100644
--- a/lib/dropbox-sign/models/signature_request_response_data_base.rb
+++ b/lib/dropbox-sign/models/signature_request_response_data_base.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -54,11 +54,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -70,17 +65,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -271,7 +271,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/signature_request_response_data_type_enum.rb b/lib/dropbox-sign/models/signature_request_response_data_type_enum.rb
index a8dcbb7..74f03f2 100644
--- a/lib/dropbox-sign/models/signature_request_response_data_type_enum.rb
+++ b/lib/dropbox-sign/models/signature_request_response_data_type_enum.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -47,5 +47,4 @@ def build_from_hash(value)
raise "Invalid ENUM value #{value} for class #SignatureRequestResponseDataTypeEnum"
end
end
-
end
diff --git a/lib/dropbox-sign/models/signature_request_response_data_value_checkbox.rb b/lib/dropbox-sign/models/signature_request_response_data_value_checkbox.rb
index ec714d4..aed0125 100644
--- a/lib/dropbox-sign/models/signature_request_response_data_value_checkbox.rb
+++ b/lib/dropbox-sign/models/signature_request_response_data_value_checkbox.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -39,11 +39,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -52,17 +47,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -208,7 +208,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/signature_request_response_data_value_checkbox_merge.rb b/lib/dropbox-sign/models/signature_request_response_data_value_checkbox_merge.rb
index 60f6e81..605e3a7 100644
--- a/lib/dropbox-sign/models/signature_request_response_data_value_checkbox_merge.rb
+++ b/lib/dropbox-sign/models/signature_request_response_data_value_checkbox_merge.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -39,11 +39,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -52,17 +47,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -208,7 +208,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/signature_request_response_data_value_date_signed.rb b/lib/dropbox-sign/models/signature_request_response_data_value_date_signed.rb
index 2fb316d..dfd5b1d 100644
--- a/lib/dropbox-sign/models/signature_request_response_data_value_date_signed.rb
+++ b/lib/dropbox-sign/models/signature_request_response_data_value_date_signed.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -39,11 +39,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -52,17 +47,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -208,7 +208,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/signature_request_response_data_value_dropdown.rb b/lib/dropbox-sign/models/signature_request_response_data_value_dropdown.rb
index 162f875..fc0db09 100644
--- a/lib/dropbox-sign/models/signature_request_response_data_value_dropdown.rb
+++ b/lib/dropbox-sign/models/signature_request_response_data_value_dropdown.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -39,11 +39,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -52,17 +47,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -208,7 +208,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/signature_request_response_data_value_initials.rb b/lib/dropbox-sign/models/signature_request_response_data_value_initials.rb
index 070722e..9a13903 100644
--- a/lib/dropbox-sign/models/signature_request_response_data_value_initials.rb
+++ b/lib/dropbox-sign/models/signature_request_response_data_value_initials.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -39,11 +39,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -52,17 +47,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -208,7 +208,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/signature_request_response_data_value_radio.rb b/lib/dropbox-sign/models/signature_request_response_data_value_radio.rb
index 1d68460..ddfcd8b 100644
--- a/lib/dropbox-sign/models/signature_request_response_data_value_radio.rb
+++ b/lib/dropbox-sign/models/signature_request_response_data_value_radio.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -39,11 +39,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -52,17 +47,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -208,7 +208,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/signature_request_response_data_value_signature.rb b/lib/dropbox-sign/models/signature_request_response_data_value_signature.rb
index 18ef029..7831d4b 100644
--- a/lib/dropbox-sign/models/signature_request_response_data_value_signature.rb
+++ b/lib/dropbox-sign/models/signature_request_response_data_value_signature.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -39,11 +39,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -52,17 +47,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -208,7 +208,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/signature_request_response_data_value_text.rb b/lib/dropbox-sign/models/signature_request_response_data_value_text.rb
index ebe3774..31829b4 100644
--- a/lib/dropbox-sign/models/signature_request_response_data_value_text.rb
+++ b/lib/dropbox-sign/models/signature_request_response_data_value_text.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -39,11 +39,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -52,17 +47,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -208,7 +208,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/signature_request_response_data_value_text_merge.rb b/lib/dropbox-sign/models/signature_request_response_data_value_text_merge.rb
index 3b8f95c..0d69a1e 100644
--- a/lib/dropbox-sign/models/signature_request_response_data_value_text_merge.rb
+++ b/lib/dropbox-sign/models/signature_request_response_data_value_text_merge.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -39,11 +39,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -52,17 +47,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -208,7 +208,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/signature_request_response_signatures.rb b/lib/dropbox-sign/models/signature_request_response_signatures.rb
index c543fcb..9588867 100644
--- a/lib/dropbox-sign/models/signature_request_response_signatures.rb
+++ b/lib/dropbox-sign/models/signature_request_response_signatures.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -125,11 +125,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -155,11 +150,6 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
@@ -181,6 +171,16 @@ def self.openapi_nullable
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -405,7 +405,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/signature_request_send_request.rb b/lib/dropbox-sign/models/signature_request_send_request.rb
index 999fdd3..189a0aa 100644
--- a/lib/dropbox-sign/models/signature_request_send_request.rb
+++ b/lib/dropbox-sign/models/signature_request_send_request.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -157,11 +157,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -194,11 +189,6 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
@@ -206,6 +196,16 @@ def self.openapi_nullable
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -552,7 +552,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/signature_request_send_with_template_request.rb b/lib/dropbox-sign/models/signature_request_send_with_template_request.rb
index c6afc65..c0b1c6e 100644
--- a/lib/dropbox-sign/models/signature_request_send_with_template_request.rb
+++ b/lib/dropbox-sign/models/signature_request_send_with_template_request.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -114,11 +114,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -142,17 +137,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -450,7 +450,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/signature_request_update_request.rb b/lib/dropbox-sign/models/signature_request_update_request.rb
index 72ce651..773b705 100644
--- a/lib/dropbox-sign/models/signature_request_update_request.rb
+++ b/lib/dropbox-sign/models/signature_request_update_request.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -49,11 +49,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -64,11 +59,6 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
@@ -76,6 +66,16 @@ def self.openapi_nullable
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -230,7 +230,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_attachment.rb b/lib/dropbox-sign/models/sub_attachment.rb
index a34d703..1f4d6db 100644
--- a/lib/dropbox-sign/models/sub_attachment.rb
+++ b/lib/dropbox-sign/models/sub_attachment.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -49,11 +49,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -64,17 +59,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -236,7 +236,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_bulk_signer_list.rb b/lib/dropbox-sign/models/sub_bulk_signer_list.rb
index 5457753..d1049ea 100644
--- a/lib/dropbox-sign/models/sub_bulk_signer_list.rb
+++ b/lib/dropbox-sign/models/sub_bulk_signer_list.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -39,11 +39,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -52,17 +47,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -206,7 +206,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_bulk_signer_list_custom_field.rb b/lib/dropbox-sign/models/sub_bulk_signer_list_custom_field.rb
index 18162fe..9cda420 100644
--- a/lib/dropbox-sign/models/sub_bulk_signer_list_custom_field.rb
+++ b/lib/dropbox-sign/models/sub_bulk_signer_list_custom_field.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -39,11 +39,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -52,17 +47,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -212,7 +212,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_cc.rb b/lib/dropbox-sign/models/sub_cc.rb
index 36b50fb..aff7610 100644
--- a/lib/dropbox-sign/models/sub_cc.rb
+++ b/lib/dropbox-sign/models/sub_cc.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -39,11 +39,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -52,17 +47,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -212,7 +212,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_custom_field.rb b/lib/dropbox-sign/models/sub_custom_field.rb
index d5b7a8e..65a95e7 100644
--- a/lib/dropbox-sign/models/sub_custom_field.rb
+++ b/lib/dropbox-sign/models/sub_custom_field.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -50,11 +50,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -65,17 +60,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -232,7 +232,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_editor_options.rb b/lib/dropbox-sign/models/sub_editor_options.rb
index 807df8f..28f8522 100644
--- a/lib/dropbox-sign/models/sub_editor_options.rb
+++ b/lib/dropbox-sign/models/sub_editor_options.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -40,11 +40,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -53,17 +48,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -207,7 +207,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_field_options.rb b/lib/dropbox-sign/models/sub_field_options.rb
index 39b24eb..6c76569 100644
--- a/lib/dropbox-sign/models/sub_field_options.rb
+++ b/lib/dropbox-sign/models/sub_field_options.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -57,11 +57,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -69,17 +64,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -231,7 +231,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_form_field_group.rb b/lib/dropbox-sign/models/sub_form_field_group.rb
index f5228ab..5f5a738 100644
--- a/lib/dropbox-sign/models/sub_form_field_group.rb
+++ b/lib/dropbox-sign/models/sub_form_field_group.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -44,11 +44,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -58,17 +53,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -228,7 +228,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_form_field_rule.rb b/lib/dropbox-sign/models/sub_form_field_rule.rb
index 6962f14..1090465 100644
--- a/lib/dropbox-sign/models/sub_form_field_rule.rb
+++ b/lib/dropbox-sign/models/sub_form_field_rule.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -49,11 +49,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -64,17 +59,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -182,7 +182,6 @@ def triggers=(triggers)
if triggers.nil?
fail ArgumentError, 'triggers cannot be nil'
end
-
if triggers.length > 1
fail ArgumentError, 'invalid value for "triggers", number of items must be less than or equal to 1.'
end
@@ -200,7 +199,6 @@ def actions=(actions)
if actions.nil?
fail ArgumentError, 'actions cannot be nil'
end
-
if actions.length < 1
fail ArgumentError, 'invalid value for "actions", number of items must be greater than or equal to 1.'
end
@@ -297,7 +295,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_form_field_rule_action.rb b/lib/dropbox-sign/models/sub_form_field_rule_action.rb
index c72934c..4ebaabc 100644
--- a/lib/dropbox-sign/models/sub_form_field_rule_action.rb
+++ b/lib/dropbox-sign/models/sub_form_field_rule_action.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -70,11 +70,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -85,17 +80,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -267,7 +267,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_form_field_rule_trigger.rb b/lib/dropbox-sign/models/sub_form_field_rule_trigger.rb
index d5e041d..4bfc6d5 100644
--- a/lib/dropbox-sign/models/sub_form_field_rule_trigger.rb
+++ b/lib/dropbox-sign/models/sub_form_field_rule_trigger.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -71,11 +71,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -86,17 +81,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -270,7 +270,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_form_fields_per_document_base.rb b/lib/dropbox-sign/models/sub_form_fields_per_document_base.rb
index 9c57bca..9b8a0fb 100644
--- a/lib/dropbox-sign/models/sub_form_fields_per_document_base.rb
+++ b/lib/dropbox-sign/models/sub_form_fields_per_document_base.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -84,11 +84,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -106,11 +101,6 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
@@ -118,6 +108,16 @@ def self.openapi_nullable
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -386,7 +386,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_form_fields_per_document_checkbox.rb b/lib/dropbox-sign/models/sub_form_fields_per_document_checkbox.rb
index 2587fd3..5423979 100644
--- a/lib/dropbox-sign/models/sub_form_fields_per_document_checkbox.rb
+++ b/lib/dropbox-sign/models/sub_form_fields_per_document_checkbox.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -45,11 +45,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -59,17 +54,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -230,7 +230,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_form_fields_per_document_checkbox_merge.rb b/lib/dropbox-sign/models/sub_form_fields_per_document_checkbox_merge.rb
index bcfc7bc..f9e3c28 100644
--- a/lib/dropbox-sign/models/sub_form_fields_per_document_checkbox_merge.rb
+++ b/lib/dropbox-sign/models/sub_form_fields_per_document_checkbox_merge.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -35,11 +35,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -47,17 +42,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -203,7 +203,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_form_fields_per_document_date_signed.rb b/lib/dropbox-sign/models/sub_form_fields_per_document_date_signed.rb
index 4d1d03a..f9c9e0f 100644
--- a/lib/dropbox-sign/models/sub_form_fields_per_document_date_signed.rb
+++ b/lib/dropbox-sign/models/sub_form_fields_per_document_date_signed.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -67,11 +67,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -81,17 +76,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -261,7 +261,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_form_fields_per_document_dropdown.rb b/lib/dropbox-sign/models/sub_form_fields_per_document_dropdown.rb
index 9f3351f..873e3cb 100644
--- a/lib/dropbox-sign/models/sub_form_fields_per_document_dropdown.rb
+++ b/lib/dropbox-sign/models/sub_form_fields_per_document_dropdown.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -77,11 +77,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -93,17 +88,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -200,7 +200,6 @@ def options=(options)
if options.nil?
fail ArgumentError, 'options cannot be nil'
end
-
if options.length < 1
fail ArgumentError, 'invalid value for "options", number of items must be greater than or equal to 1.'
end
@@ -309,7 +308,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_form_fields_per_document_font_enum.rb b/lib/dropbox-sign/models/sub_form_fields_per_document_font_enum.rb
index a821678..77ba1dd 100644
--- a/lib/dropbox-sign/models/sub_form_fields_per_document_font_enum.rb
+++ b/lib/dropbox-sign/models/sub_form_fields_per_document_font_enum.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -54,5 +54,4 @@ def build_from_hash(value)
raise "Invalid ENUM value #{value} for class #SubFormFieldsPerDocumentFontEnum"
end
end
-
end
diff --git a/lib/dropbox-sign/models/sub_form_fields_per_document_hyperlink.rb b/lib/dropbox-sign/models/sub_form_fields_per_document_hyperlink.rb
index 86db89d..886cd7a 100644
--- a/lib/dropbox-sign/models/sub_form_fields_per_document_hyperlink.rb
+++ b/lib/dropbox-sign/models/sub_form_fields_per_document_hyperlink.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -77,11 +77,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -93,17 +88,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -293,7 +293,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_form_fields_per_document_initials.rb b/lib/dropbox-sign/models/sub_form_fields_per_document_initials.rb
index c06271f..266bc1f 100644
--- a/lib/dropbox-sign/models/sub_form_fields_per_document_initials.rb
+++ b/lib/dropbox-sign/models/sub_form_fields_per_document_initials.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -35,11 +35,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -47,17 +42,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -203,7 +203,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_form_fields_per_document_radio.rb b/lib/dropbox-sign/models/sub_form_fields_per_document_radio.rb
index 17b1a2d..4bcf2c2 100644
--- a/lib/dropbox-sign/models/sub_form_fields_per_document_radio.rb
+++ b/lib/dropbox-sign/models/sub_form_fields_per_document_radio.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -45,11 +45,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -59,17 +54,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -235,7 +235,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_form_fields_per_document_signature.rb b/lib/dropbox-sign/models/sub_form_fields_per_document_signature.rb
index b8d5ee8..7d82ef2 100644
--- a/lib/dropbox-sign/models/sub_form_fields_per_document_signature.rb
+++ b/lib/dropbox-sign/models/sub_form_fields_per_document_signature.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -35,11 +35,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -47,17 +42,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -203,7 +203,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_form_fields_per_document_text.rb b/lib/dropbox-sign/models/sub_form_fields_per_document_text.rb
index d6e149e..bfda46a 100644
--- a/lib/dropbox-sign/models/sub_form_fields_per_document_text.rb
+++ b/lib/dropbox-sign/models/sub_form_fields_per_document_text.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -105,11 +105,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -127,17 +122,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -359,7 +359,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_form_fields_per_document_text_merge.rb b/lib/dropbox-sign/models/sub_form_fields_per_document_text_merge.rb
index 3aface5..42a4192 100644
--- a/lib/dropbox-sign/models/sub_form_fields_per_document_text_merge.rb
+++ b/lib/dropbox-sign/models/sub_form_fields_per_document_text_merge.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -67,11 +67,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -81,17 +76,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -261,7 +261,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_form_fields_per_document_type_enum.rb b/lib/dropbox-sign/models/sub_form_fields_per_document_type_enum.rb
index 3c7c378..bc0fd00 100644
--- a/lib/dropbox-sign/models/sub_form_fields_per_document_type_enum.rb
+++ b/lib/dropbox-sign/models/sub_form_fields_per_document_type_enum.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -48,5 +48,4 @@ def build_from_hash(value)
raise "Invalid ENUM value #{value} for class #SubFormFieldsPerDocumentTypeEnum"
end
end
-
end
diff --git a/lib/dropbox-sign/models/sub_merge_field.rb b/lib/dropbox-sign/models/sub_merge_field.rb
index 768856c..2d2cbe4 100644
--- a/lib/dropbox-sign/models/sub_merge_field.rb
+++ b/lib/dropbox-sign/models/sub_merge_field.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -61,11 +61,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -74,17 +69,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -246,7 +246,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_o_auth.rb b/lib/dropbox-sign/models/sub_o_auth.rb
index 97923c3..11c8c60 100644
--- a/lib/dropbox-sign/models/sub_o_auth.rb
+++ b/lib/dropbox-sign/models/sub_o_auth.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -62,11 +62,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -75,17 +70,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -227,7 +227,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_options.rb b/lib/dropbox-sign/models/sub_options.rb
index 6d1a3de..f8263c6 100644
--- a/lib/dropbox-sign/models/sub_options.rb
+++ b/lib/dropbox-sign/models/sub_options.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -35,11 +35,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -47,17 +42,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -194,7 +194,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_signature_request_grouped_signers.rb b/lib/dropbox-sign/models/sub_signature_request_grouped_signers.rb
index 06749cf..8c6338b 100644
--- a/lib/dropbox-sign/models/sub_signature_request_grouped_signers.rb
+++ b/lib/dropbox-sign/models/sub_signature_request_grouped_signers.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -44,11 +44,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -58,11 +53,6 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
@@ -70,6 +60,16 @@ def self.openapi_nullable
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -226,7 +226,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_signature_request_signer.rb b/lib/dropbox-sign/models/sub_signature_request_signer.rb
index 9f76fca..002b9c5 100644
--- a/lib/dropbox-sign/models/sub_signature_request_signer.rb
+++ b/lib/dropbox-sign/models/sub_signature_request_signer.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -81,11 +81,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -98,11 +93,6 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
@@ -110,6 +100,16 @@ def self.openapi_nullable
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -315,7 +315,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_signature_request_template_signer.rb b/lib/dropbox-sign/models/sub_signature_request_template_signer.rb
index 3191b62..a238d51 100644
--- a/lib/dropbox-sign/models/sub_signature_request_template_signer.rb
+++ b/lib/dropbox-sign/models/sub_signature_request_template_signer.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -81,11 +81,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -98,17 +93,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -319,7 +319,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_signing_options.rb b/lib/dropbox-sign/models/sub_signing_options.rb
index 4156b03..bc0a3ca 100644
--- a/lib/dropbox-sign/models/sub_signing_options.rb
+++ b/lib/dropbox-sign/models/sub_signing_options.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -77,11 +77,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -93,17 +88,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -283,7 +283,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_team_response.rb b/lib/dropbox-sign/models/sub_team_response.rb
index c6fb00d..6ef8fc9 100644
--- a/lib/dropbox-sign/models/sub_team_response.rb
+++ b/lib/dropbox-sign/models/sub_team_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -39,11 +39,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -52,17 +47,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -202,7 +202,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_template_role.rb b/lib/dropbox-sign/models/sub_template_role.rb
index 88a43b9..f0ccab9 100644
--- a/lib/dropbox-sign/models/sub_template_role.rb
+++ b/lib/dropbox-sign/models/sub_template_role.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -39,11 +39,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -52,11 +47,6 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
@@ -64,6 +54,16 @@ def self.openapi_nullable
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -203,7 +203,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_unclaimed_draft_signer.rb b/lib/dropbox-sign/models/sub_unclaimed_draft_signer.rb
index 05f8cca..f593c47 100644
--- a/lib/dropbox-sign/models/sub_unclaimed_draft_signer.rb
+++ b/lib/dropbox-sign/models/sub_unclaimed_draft_signer.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -44,11 +44,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -58,11 +53,6 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
@@ -70,6 +60,16 @@ def self.openapi_nullable
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -224,7 +224,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_unclaimed_draft_template_signer.rb b/lib/dropbox-sign/models/sub_unclaimed_draft_template_signer.rb
index 3bcbee3..a58474a 100644
--- a/lib/dropbox-sign/models/sub_unclaimed_draft_template_signer.rb
+++ b/lib/dropbox-sign/models/sub_unclaimed_draft_template_signer.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -44,11 +44,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -58,17 +53,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -228,7 +228,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/sub_white_labeling_options.rb b/lib/dropbox-sign/models/sub_white_labeling_options.rb
index 4d34636..b601240 100644
--- a/lib/dropbox-sign/models/sub_white_labeling_options.rb
+++ b/lib/dropbox-sign/models/sub_white_labeling_options.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -113,11 +113,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -139,17 +134,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -394,7 +394,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/team_add_member_request.rb b/lib/dropbox-sign/models/team_add_member_request.rb
index f09af18..7a53848 100644
--- a/lib/dropbox-sign/models/team_add_member_request.rb
+++ b/lib/dropbox-sign/models/team_add_member_request.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -66,11 +66,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -80,17 +75,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -247,7 +247,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/team_create_request.rb b/lib/dropbox-sign/models/team_create_request.rb
index ef4d906..1ec4c2f 100644
--- a/lib/dropbox-sign/models/team_create_request.rb
+++ b/lib/dropbox-sign/models/team_create_request.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -34,11 +34,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -46,17 +41,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -193,7 +193,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/team_get_info_response.rb b/lib/dropbox-sign/models/team_get_info_response.rb
index b8719b6..130dd8a 100644
--- a/lib/dropbox-sign/models/team_get_info_response.rb
+++ b/lib/dropbox-sign/models/team_get_info_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -38,11 +38,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -51,17 +46,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -107,12 +107,17 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
+ if @team.nil?
+ invalid_properties.push('invalid value for "team", team cannot be nil.')
+ end
+
invalid_properties
end
# 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 @team.nil?
true
end
@@ -203,7 +208,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/team_get_response.rb b/lib/dropbox-sign/models/team_get_response.rb
index 409acda..f844f06 100644
--- a/lib/dropbox-sign/models/team_get_response.rb
+++ b/lib/dropbox-sign/models/team_get_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -38,11 +38,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -51,17 +46,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -107,12 +107,17 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
+ if @team.nil?
+ invalid_properties.push('invalid value for "team", team cannot be nil.')
+ end
+
invalid_properties
end
# 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 @team.nil?
true
end
@@ -203,7 +208,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/team_info_response.rb b/lib/dropbox-sign/models/team_info_response.rb
index 31b39ab..095ecf8 100644
--- a/lib/dropbox-sign/models/team_info_response.rb
+++ b/lib/dropbox-sign/models/team_info_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -53,11 +53,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -69,11 +64,6 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
@@ -81,6 +71,16 @@ def self.openapi_nullable
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -235,7 +235,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/team_invite_response.rb b/lib/dropbox-sign/models/team_invite_response.rb
index 41e022f..2d8187b 100644
--- a/lib/dropbox-sign/models/team_invite_response.rb
+++ b/lib/dropbox-sign/models/team_invite_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -59,11 +59,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -76,17 +71,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -246,7 +246,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/team_invites_response.rb b/lib/dropbox-sign/models/team_invites_response.rb
index 11c138f..7625af4 100644
--- a/lib/dropbox-sign/models/team_invites_response.rb
+++ b/lib/dropbox-sign/models/team_invites_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -38,11 +38,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -51,17 +46,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -109,12 +109,17 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
+ if @team_invites.nil?
+ invalid_properties.push('invalid value for "team_invites", team_invites cannot be nil.')
+ end
+
invalid_properties
end
# 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 @team_invites.nil?
true
end
@@ -205,7 +210,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/team_member_response.rb b/lib/dropbox-sign/models/team_member_response.rb
index 19549cb..7308392 100644
--- a/lib/dropbox-sign/models/team_member_response.rb
+++ b/lib/dropbox-sign/models/team_member_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -44,11 +44,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -58,17 +53,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -213,7 +213,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/team_members_response.rb b/lib/dropbox-sign/models/team_members_response.rb
index 916000f..6635222 100644
--- a/lib/dropbox-sign/models/team_members_response.rb
+++ b/lib/dropbox-sign/models/team_members_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -42,11 +42,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -56,17 +51,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -118,12 +118,22 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
+ if @team_members.nil?
+ invalid_properties.push('invalid value for "team_members", team_members cannot be nil.')
+ end
+
+ if @list_info.nil?
+ invalid_properties.push('invalid value for "list_info", list_info cannot be nil.')
+ end
+
invalid_properties
end
# 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 @team_members.nil?
+ return false if @list_info.nil?
true
end
@@ -215,7 +225,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/team_parent_response.rb b/lib/dropbox-sign/models/team_parent_response.rb
index b16bc6e..c1fde18 100644
--- a/lib/dropbox-sign/models/team_parent_response.rb
+++ b/lib/dropbox-sign/models/team_parent_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -40,11 +40,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -53,17 +48,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -203,7 +203,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/team_remove_member_request.rb b/lib/dropbox-sign/models/team_remove_member_request.rb
index cf53f5a..38564ba 100644
--- a/lib/dropbox-sign/models/team_remove_member_request.rb
+++ b/lib/dropbox-sign/models/team_remove_member_request.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -76,11 +76,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -92,17 +87,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -269,7 +269,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/team_response.rb b/lib/dropbox-sign/models/team_response.rb
index 69b48d2..68974df 100644
--- a/lib/dropbox-sign/models/team_response.rb
+++ b/lib/dropbox-sign/models/team_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -49,11 +49,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -64,17 +59,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -230,7 +230,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/team_sub_teams_response.rb b/lib/dropbox-sign/models/team_sub_teams_response.rb
index 7bf6820..8228d58 100644
--- a/lib/dropbox-sign/models/team_sub_teams_response.rb
+++ b/lib/dropbox-sign/models/team_sub_teams_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -42,11 +42,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -56,17 +51,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -118,12 +118,22 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
+ if @sub_teams.nil?
+ invalid_properties.push('invalid value for "sub_teams", sub_teams cannot be nil.')
+ end
+
+ if @list_info.nil?
+ invalid_properties.push('invalid value for "list_info", list_info cannot be nil.')
+ end
+
invalid_properties
end
# 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 @sub_teams.nil?
+ return false if @list_info.nil?
true
end
@@ -215,7 +225,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/team_update_request.rb b/lib/dropbox-sign/models/team_update_request.rb
index 2e9095c..9757623 100644
--- a/lib/dropbox-sign/models/team_update_request.rb
+++ b/lib/dropbox-sign/models/team_update_request.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -34,11 +34,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -46,17 +41,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -191,7 +191,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_add_user_request.rb b/lib/dropbox-sign/models/template_add_user_request.rb
index d158c71..9d31bf4 100644
--- a/lib/dropbox-sign/models/template_add_user_request.rb
+++ b/lib/dropbox-sign/models/template_add_user_request.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -44,11 +44,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -58,17 +53,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -215,7 +215,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_create_embedded_draft_request.rb b/lib/dropbox-sign/models/template_create_embedded_draft_request.rb
index 267e6a8..768dbd5 100644
--- a/lib/dropbox-sign/models/template_create_embedded_draft_request.rb
+++ b/lib/dropbox-sign/models/template_create_embedded_draft_request.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -152,11 +152,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -188,17 +183,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -532,7 +532,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_create_embedded_draft_response.rb b/lib/dropbox-sign/models/template_create_embedded_draft_response.rb
index 21fe695..d492723 100644
--- a/lib/dropbox-sign/models/template_create_embedded_draft_response.rb
+++ b/lib/dropbox-sign/models/template_create_embedded_draft_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -38,11 +38,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -51,17 +46,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -107,12 +107,17 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
+ if @template.nil?
+ invalid_properties.push('invalid value for "template", template cannot be nil.')
+ end
+
invalid_properties
end
# 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 @template.nil?
true
end
@@ -203,7 +208,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_create_embedded_draft_response_template.rb b/lib/dropbox-sign/models/template_create_embedded_draft_response_template.rb
index 32f6e4a..840c72a 100644
--- a/lib/dropbox-sign/models/template_create_embedded_draft_response_template.rb
+++ b/lib/dropbox-sign/models/template_create_embedded_draft_response_template.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -50,11 +50,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -65,17 +60,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -227,7 +227,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_create_request.rb b/lib/dropbox-sign/models/template_create_request.rb
index ada67c6..7e2937c 100644
--- a/lib/dropbox-sign/models/template_create_request.rb
+++ b/lib/dropbox-sign/models/template_create_request.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -118,11 +118,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -147,17 +142,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -449,7 +449,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_create_response.rb b/lib/dropbox-sign/models/template_create_response.rb
index fd66215..4b238ca 100644
--- a/lib/dropbox-sign/models/template_create_response.rb
+++ b/lib/dropbox-sign/models/template_create_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -38,11 +38,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -51,17 +46,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -107,12 +107,17 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
+ if @template.nil?
+ invalid_properties.push('invalid value for "template", template cannot be nil.')
+ end
+
invalid_properties
end
# 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 @template.nil?
true
end
@@ -203,7 +208,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_create_response_template.rb b/lib/dropbox-sign/models/template_create_response_template.rb
index 9cc402d..863dd24 100644
--- a/lib/dropbox-sign/models/template_create_response_template.rb
+++ b/lib/dropbox-sign/models/template_create_response_template.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -35,11 +35,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -47,17 +42,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -192,7 +192,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_edit_response.rb b/lib/dropbox-sign/models/template_edit_response.rb
index 3232a7a..9a11cbf 100644
--- a/lib/dropbox-sign/models/template_edit_response.rb
+++ b/lib/dropbox-sign/models/template_edit_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -34,11 +34,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -46,17 +41,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -96,12 +96,17 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
+ if @template_id.nil?
+ invalid_properties.push('invalid value for "template_id", template_id cannot be nil.')
+ end
+
invalid_properties
end
# 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 @template_id.nil?
true
end
@@ -191,7 +196,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_get_response.rb b/lib/dropbox-sign/models/template_get_response.rb
index 05b1b12..00c7c6f 100644
--- a/lib/dropbox-sign/models/template_get_response.rb
+++ b/lib/dropbox-sign/models/template_get_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -38,11 +38,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -51,17 +46,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -107,12 +107,17 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
+ if @template.nil?
+ invalid_properties.push('invalid value for "template", template cannot be nil.')
+ end
+
invalid_properties
end
# 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 @template.nil?
true
end
@@ -203,7 +208,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_list_response.rb b/lib/dropbox-sign/models/template_list_response.rb
index ac89c14..fc60e73 100644
--- a/lib/dropbox-sign/models/template_list_response.rb
+++ b/lib/dropbox-sign/models/template_list_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -43,11 +43,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -57,17 +52,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -119,12 +119,22 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
+ if @templates.nil?
+ invalid_properties.push('invalid value for "templates", templates cannot be nil.')
+ end
+
+ if @list_info.nil?
+ invalid_properties.push('invalid value for "list_info", list_info cannot be nil.')
+ end
+
invalid_properties
end
# 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 @templates.nil?
+ return false if @list_info.nil?
true
end
@@ -216,7 +226,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_remove_user_request.rb b/lib/dropbox-sign/models/template_remove_user_request.rb
index 9b25413..1fadb79 100644
--- a/lib/dropbox-sign/models/template_remove_user_request.rb
+++ b/lib/dropbox-sign/models/template_remove_user_request.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -39,11 +39,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -52,17 +47,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -202,7 +202,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_response.rb b/lib/dropbox-sign/models/template_response.rb
index 8cccc09..0846cd1 100644
--- a/lib/dropbox-sign/models/template_response.rb
+++ b/lib/dropbox-sign/models/template_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -105,11 +105,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -131,11 +126,6 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
@@ -149,6 +139,16 @@ def self.openapi_nullable
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -365,7 +365,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_response_account.rb b/lib/dropbox-sign/models/template_response_account.rb
index a501927..9b40044 100644
--- a/lib/dropbox-sign/models/template_response_account.rb
+++ b/lib/dropbox-sign/models/template_response_account.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -58,11 +58,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -75,17 +70,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -245,7 +245,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_response_account_quota.rb b/lib/dropbox-sign/models/template_response_account_quota.rb
index 3158b0e..3994627 100644
--- a/lib/dropbox-sign/models/template_response_account_quota.rb
+++ b/lib/dropbox-sign/models/template_response_account_quota.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -50,11 +50,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -65,17 +60,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -225,7 +225,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_response_cc_role.rb b/lib/dropbox-sign/models/template_response_cc_role.rb
index a22b6b2..641a388 100644
--- a/lib/dropbox-sign/models/template_response_cc_role.rb
+++ b/lib/dropbox-sign/models/template_response_cc_role.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -34,11 +34,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -46,17 +41,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -191,7 +191,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_response_document.rb b/lib/dropbox-sign/models/template_response_document.rb
index 3aca3b0..e5cad9e 100644
--- a/lib/dropbox-sign/models/template_response_document.rb
+++ b/lib/dropbox-sign/models/template_response_document.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -59,11 +59,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -76,11 +71,6 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
@@ -88,6 +78,16 @@ def self.openapi_nullable
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -255,7 +255,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_response_document_custom_field_base.rb b/lib/dropbox-sign/models/template_response_document_custom_field_base.rb
index 5c7d099..34dedc1 100644
--- a/lib/dropbox-sign/models/template_response_document_custom_field_base.rb
+++ b/lib/dropbox-sign/models/template_response_document_custom_field_base.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -31,7 +31,7 @@ class TemplateResponseDocumentCustomFieldBase
attr_accessor :name
# The signer of the Custom Field. Can be `null` if field is a merge field (assigned to Sender).
- # @return [String, nil]
+ # @return [Integer, String, nil]
attr_accessor :signer
# The horizontal offset in pixels for this form field.
@@ -79,11 +79,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -100,11 +95,6 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
@@ -113,6 +103,16 @@ def self.openapi_nullable
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -312,7 +312,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_response_document_custom_field_checkbox.rb b/lib/dropbox-sign/models/template_response_document_custom_field_checkbox.rb
index 4740d89..0f03a44 100644
--- a/lib/dropbox-sign/models/template_response_document_custom_field_checkbox.rb
+++ b/lib/dropbox-sign/models/template_response_document_custom_field_checkbox.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -35,11 +35,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -47,17 +42,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -203,7 +203,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_response_document_custom_field_text.rb b/lib/dropbox-sign/models/template_response_document_custom_field_text.rb
index f1c017e..7c3a08f 100644
--- a/lib/dropbox-sign/models/template_response_document_custom_field_text.rb
+++ b/lib/dropbox-sign/models/template_response_document_custom_field_text.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -54,11 +54,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -70,17 +65,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -246,7 +246,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_response_document_field_group.rb b/lib/dropbox-sign/models/template_response_document_field_group.rb
index 3762017..0a73d27 100644
--- a/lib/dropbox-sign/models/template_response_document_field_group.rb
+++ b/lib/dropbox-sign/models/template_response_document_field_group.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -38,11 +38,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -51,17 +46,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -201,7 +201,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_response_document_field_group_rule.rb b/lib/dropbox-sign/models/template_response_document_field_group_rule.rb
index 06cb5cb..6471f6e 100644
--- a/lib/dropbox-sign/models/template_response_document_field_group_rule.rb
+++ b/lib/dropbox-sign/models/template_response_document_field_group_rule.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -40,11 +40,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -53,17 +48,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -203,7 +203,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_response_document_form_field_base.rb b/lib/dropbox-sign/models/template_response_document_form_field_base.rb
index 0b5b6cd..ebb61a4 100644
--- a/lib/dropbox-sign/models/template_response_document_form_field_base.rb
+++ b/lib/dropbox-sign/models/template_response_document_form_field_base.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -31,7 +31,7 @@ class TemplateResponseDocumentFormFieldBase
attr_accessor :name
# The signer of the Form Field.
- # @return [String]
+ # @return [Integer, String]
attr_accessor :signer
# The horizontal offset in pixels for this form field.
@@ -79,11 +79,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -100,11 +95,6 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
@@ -112,6 +102,16 @@ def self.openapi_nullable
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -329,7 +329,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_response_document_form_field_checkbox.rb b/lib/dropbox-sign/models/template_response_document_form_field_checkbox.rb
index 15d5e63..21e81c2 100644
--- a/lib/dropbox-sign/models/template_response_document_form_field_checkbox.rb
+++ b/lib/dropbox-sign/models/template_response_document_form_field_checkbox.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -35,11 +35,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -47,17 +42,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -203,7 +203,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_response_document_form_field_date_signed.rb b/lib/dropbox-sign/models/template_response_document_form_field_date_signed.rb
index 1e29dfb..9157ba6 100644
--- a/lib/dropbox-sign/models/template_response_document_form_field_date_signed.rb
+++ b/lib/dropbox-sign/models/template_response_document_form_field_date_signed.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -35,11 +35,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -47,17 +42,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -203,7 +203,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_response_document_form_field_dropdown.rb b/lib/dropbox-sign/models/template_response_document_form_field_dropdown.rb
index 7106be3..b2f4a97 100644
--- a/lib/dropbox-sign/models/template_response_document_form_field_dropdown.rb
+++ b/lib/dropbox-sign/models/template_response_document_form_field_dropdown.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -35,11 +35,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -47,17 +42,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -203,7 +203,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_response_document_form_field_hyperlink.rb b/lib/dropbox-sign/models/template_response_document_form_field_hyperlink.rb
index 1732efe..6ef91fb 100644
--- a/lib/dropbox-sign/models/template_response_document_form_field_hyperlink.rb
+++ b/lib/dropbox-sign/models/template_response_document_form_field_hyperlink.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -54,11 +54,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -70,17 +65,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -246,7 +246,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_response_document_form_field_initials.rb b/lib/dropbox-sign/models/template_response_document_form_field_initials.rb
index 798686d..479d127 100644
--- a/lib/dropbox-sign/models/template_response_document_form_field_initials.rb
+++ b/lib/dropbox-sign/models/template_response_document_form_field_initials.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -35,11 +35,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -47,17 +42,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -203,7 +203,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_response_document_form_field_radio.rb b/lib/dropbox-sign/models/template_response_document_form_field_radio.rb
index c5055af..983d0dc 100644
--- a/lib/dropbox-sign/models/template_response_document_form_field_radio.rb
+++ b/lib/dropbox-sign/models/template_response_document_form_field_radio.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -35,11 +35,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -47,17 +42,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -203,7 +203,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_response_document_form_field_signature.rb b/lib/dropbox-sign/models/template_response_document_form_field_signature.rb
index 9bdd4fd..5474593 100644
--- a/lib/dropbox-sign/models/template_response_document_form_field_signature.rb
+++ b/lib/dropbox-sign/models/template_response_document_form_field_signature.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -35,11 +35,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -47,17 +42,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -203,7 +203,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_response_document_form_field_text.rb b/lib/dropbox-sign/models/template_response_document_form_field_text.rb
index b5c12a2..bc4dba1 100644
--- a/lib/dropbox-sign/models/template_response_document_form_field_text.rb
+++ b/lib/dropbox-sign/models/template_response_document_form_field_text.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -81,11 +81,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -98,11 +93,6 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
@@ -110,6 +100,16 @@ def self.openapi_nullable
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -292,7 +292,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_response_document_static_field_base.rb b/lib/dropbox-sign/models/template_response_document_static_field_base.rb
index 37f8085..b2581cf 100644
--- a/lib/dropbox-sign/models/template_response_document_static_field_base.rb
+++ b/lib/dropbox-sign/models/template_response_document_static_field_base.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -79,11 +79,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -100,11 +95,6 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
@@ -112,6 +102,16 @@ def self.openapi_nullable
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -331,7 +331,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_response_document_static_field_checkbox.rb b/lib/dropbox-sign/models/template_response_document_static_field_checkbox.rb
index 051f8a7..e0ea2ca 100644
--- a/lib/dropbox-sign/models/template_response_document_static_field_checkbox.rb
+++ b/lib/dropbox-sign/models/template_response_document_static_field_checkbox.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -35,11 +35,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -47,17 +42,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -203,7 +203,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_response_document_static_field_date_signed.rb b/lib/dropbox-sign/models/template_response_document_static_field_date_signed.rb
index 88ffa8e..ac22994 100644
--- a/lib/dropbox-sign/models/template_response_document_static_field_date_signed.rb
+++ b/lib/dropbox-sign/models/template_response_document_static_field_date_signed.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -35,11 +35,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -47,17 +42,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -203,7 +203,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_response_document_static_field_dropdown.rb b/lib/dropbox-sign/models/template_response_document_static_field_dropdown.rb
index a326332..d14e31c 100644
--- a/lib/dropbox-sign/models/template_response_document_static_field_dropdown.rb
+++ b/lib/dropbox-sign/models/template_response_document_static_field_dropdown.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -35,11 +35,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -47,17 +42,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -203,7 +203,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_response_document_static_field_hyperlink.rb b/lib/dropbox-sign/models/template_response_document_static_field_hyperlink.rb
index 0cbfed7..412d232 100644
--- a/lib/dropbox-sign/models/template_response_document_static_field_hyperlink.rb
+++ b/lib/dropbox-sign/models/template_response_document_static_field_hyperlink.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -35,11 +35,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -47,17 +42,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -203,7 +203,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_response_document_static_field_initials.rb b/lib/dropbox-sign/models/template_response_document_static_field_initials.rb
index cc058cd..4b64b3a 100644
--- a/lib/dropbox-sign/models/template_response_document_static_field_initials.rb
+++ b/lib/dropbox-sign/models/template_response_document_static_field_initials.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -35,11 +35,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -47,17 +42,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -203,7 +203,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_response_document_static_field_radio.rb b/lib/dropbox-sign/models/template_response_document_static_field_radio.rb
index 47e993b..761dd4e 100644
--- a/lib/dropbox-sign/models/template_response_document_static_field_radio.rb
+++ b/lib/dropbox-sign/models/template_response_document_static_field_radio.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -35,11 +35,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -47,17 +42,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -203,7 +203,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_response_document_static_field_signature.rb b/lib/dropbox-sign/models/template_response_document_static_field_signature.rb
index 3cfcedf..ba3825f 100644
--- a/lib/dropbox-sign/models/template_response_document_static_field_signature.rb
+++ b/lib/dropbox-sign/models/template_response_document_static_field_signature.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -35,11 +35,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -47,17 +42,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -203,7 +203,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_response_document_static_field_text.rb b/lib/dropbox-sign/models/template_response_document_static_field_text.rb
index 44f9456..a216f15 100644
--- a/lib/dropbox-sign/models/template_response_document_static_field_text.rb
+++ b/lib/dropbox-sign/models/template_response_document_static_field_text.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -35,11 +35,6 @@ def self.acceptable_attributes
attribute_map.values.concat(superclass.acceptable_attributes)
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.superclass.attribute_map.merge(self.attribute_map)
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -47,17 +42,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.superclass.openapi_types.merge(self.openapi_types)
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.superclass.attribute_map.merge(self.attribute_map)
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.superclass.openapi_types.merge(self.openapi_types)
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.superclass.openapi_nullable.merge(self.openapi_nullable)
@@ -203,7 +203,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_response_field_avg_text_length.rb b/lib/dropbox-sign/models/template_response_field_avg_text_length.rb
index 14c10f9..d82e85e 100644
--- a/lib/dropbox-sign/models/template_response_field_avg_text_length.rb
+++ b/lib/dropbox-sign/models/template_response_field_avg_text_length.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -40,11 +40,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -53,17 +48,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -203,7 +203,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_response_signer_role.rb b/lib/dropbox-sign/models/template_response_signer_role.rb
index 36a2a74..e30aa48 100644
--- a/lib/dropbox-sign/models/template_response_signer_role.rb
+++ b/lib/dropbox-sign/models/template_response_signer_role.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -39,11 +39,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -52,17 +47,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -202,7 +202,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_update_files_request.rb b/lib/dropbox-sign/models/template_update_files_request.rb
index 41c951c..ee795bc 100644
--- a/lib/dropbox-sign/models/template_update_files_request.rb
+++ b/lib/dropbox-sign/models/template_update_files_request.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -59,11 +59,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -76,17 +71,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -282,7 +282,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_update_files_response.rb b/lib/dropbox-sign/models/template_update_files_response.rb
index fe17fbd..67d30f2 100644
--- a/lib/dropbox-sign/models/template_update_files_response.rb
+++ b/lib/dropbox-sign/models/template_update_files_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -33,11 +33,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -45,17 +40,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -95,12 +95,17 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
+ if @template.nil?
+ invalid_properties.push('invalid value for "template", template cannot be nil.')
+ end
+
invalid_properties
end
# 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 @template.nil?
true
end
@@ -190,7 +195,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/template_update_files_response_template.rb b/lib/dropbox-sign/models/template_update_files_response_template.rb
index d2e5926..f2a30ad 100644
--- a/lib/dropbox-sign/models/template_update_files_response_template.rb
+++ b/lib/dropbox-sign/models/template_update_files_response_template.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -40,11 +40,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -53,17 +48,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -205,7 +205,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/unclaimed_draft_create_embedded_request.rb b/lib/dropbox-sign/models/unclaimed_draft_create_embedded_request.rb
index aedbab5..1c5dea7 100644
--- a/lib/dropbox-sign/models/unclaimed_draft_create_embedded_request.rb
+++ b/lib/dropbox-sign/models/unclaimed_draft_create_embedded_request.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -229,11 +229,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -276,11 +271,6 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
@@ -288,6 +278,16 @@ def self.openapi_nullable
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -705,7 +705,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/unclaimed_draft_create_embedded_with_template_request.rb b/lib/dropbox-sign/models/unclaimed_draft_create_embedded_with_template_request.rb
index 50e7e43..6314e76 100644
--- a/lib/dropbox-sign/models/unclaimed_draft_create_embedded_with_template_request.rb
+++ b/lib/dropbox-sign/models/unclaimed_draft_create_embedded_with_template_request.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -176,11 +176,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -217,17 +212,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -613,7 +613,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/unclaimed_draft_create_request.rb b/lib/dropbox-sign/models/unclaimed_draft_create_request.rb
index 4b64c81..289b71b 100644
--- a/lib/dropbox-sign/models/unclaimed_draft_create_request.rb
+++ b/lib/dropbox-sign/models/unclaimed_draft_create_request.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -170,11 +170,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -205,11 +200,6 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
@@ -217,6 +207,16 @@ def self.openapi_nullable
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -551,7 +551,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/unclaimed_draft_create_response.rb b/lib/dropbox-sign/models/unclaimed_draft_create_response.rb
index ccb3d71..792586b 100644
--- a/lib/dropbox-sign/models/unclaimed_draft_create_response.rb
+++ b/lib/dropbox-sign/models/unclaimed_draft_create_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -38,11 +38,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -51,17 +46,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -107,12 +107,17 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
+ if @unclaimed_draft.nil?
+ invalid_properties.push('invalid value for "unclaimed_draft", unclaimed_draft cannot be nil.')
+ end
+
invalid_properties
end
# 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 @unclaimed_draft.nil?
true
end
@@ -203,7 +208,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/unclaimed_draft_edit_and_resend_request.rb b/lib/dropbox-sign/models/unclaimed_draft_edit_and_resend_request.rb
index 7d56b5e..9059dd3 100644
--- a/lib/dropbox-sign/models/unclaimed_draft_edit_and_resend_request.rb
+++ b/lib/dropbox-sign/models/unclaimed_draft_edit_and_resend_request.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -68,11 +68,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -87,17 +82,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -276,7 +276,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/unclaimed_draft_response.rb b/lib/dropbox-sign/models/unclaimed_draft_response.rb
index ddcc68f..3e1b226 100644
--- a/lib/dropbox-sign/models/unclaimed_draft_response.rb
+++ b/lib/dropbox-sign/models/unclaimed_draft_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -60,11 +60,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -77,11 +72,6 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
@@ -92,6 +82,16 @@ def self.openapi_nullable
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -251,7 +251,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/models/warning_response.rb b/lib/dropbox-sign/models/warning_response.rb
index 92156f4..0869a0a 100644
--- a/lib/dropbox-sign/models/warning_response.rb
+++ b/lib/dropbox-sign/models/warning_response.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -40,11 +40,6 @@ def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -53,17 +48,22 @@ def self.openapi_types
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
@@ -213,7 +213,6 @@ def _deserialize(type, value)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
diff --git a/lib/dropbox-sign/version.rb b/lib/dropbox-sign/version.rb
index 6e39cce..a83009c 100644
--- a/lib/dropbox-sign/version.rb
+++ b/lib/dropbox-sign/version.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
@@ -14,5 +14,5 @@ module Dropbox
end
module Dropbox::Sign
- VERSION = '1.5.0'
+ VERSION = '1.6.0'
end
diff --git a/openapi-config.yaml b/openapi-config.yaml
index 9c75ae9..9e32e81 100644
--- a/openapi-config.yaml
+++ b/openapi-config.yaml
@@ -9,11 +9,12 @@ additionalProperties:
gemName: dropbox-sign
gemRequiredRubyVersion: '>= 2.7'
moduleName: "Dropbox::Sign"
- gemVersion: 1.5.0
+ gemVersion: 1.6.0
sortModelPropertiesByRequiredFlag: true
legacyDiscriminatorBehavior: true
gitUserId: hellosign
gitRepoId: dropbox-sign-ruby
+ useCustomTemplateCode: true
files:
event_callback_helper.mustache:
templateType: SupportingFiles
diff --git a/openapi-sdk.yaml b/openapi-sdk.yaml
index 9bf5a68..c7189fd 100644
--- a/openapi-sdk.yaml
+++ b/openapi-sdk.yaml
@@ -1409,6 +1409,803 @@ paths:
seo:
title: 'Get Embedded Sign URL | iFrame | Dropbox Sign for Developers'
description: 'The Dropbox Sign API allows you to build custom integrations. To find out how to retrieve an embedded iFrame object containing a signature url, click here.'
+ /fax_line/add_user:
+ put:
+ tags:
+ - 'Fax Line'
+ summary: 'Add Fax Line User'
+ description: 'Grants a user access to the specified Fax Line.'
+ operationId: faxLineAddUser
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/FaxLineAddUserRequest'
+ examples:
+ default_example:
+ $ref: '#/components/examples/FaxLineAddUserRequestExample'
+ responses:
+ 200:
+ description: 'successful operation'
+ headers:
+ X-RateLimit-Limit:
+ $ref: '#/components/headers/X-RateLimit-Limit'
+ X-RateLimit-Remaining:
+ $ref: '#/components/headers/X-RateLimit-Remaining'
+ X-Ratelimit-Reset:
+ $ref: '#/components/headers/X-Ratelimit-Reset'
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/FaxLineResponse'
+ examples:
+ default_example:
+ $ref: '#/components/examples/FaxLineResponseExample'
+ 4XX:
+ description: failed_operation
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorResponse'
+ examples:
+ 400_example:
+ $ref: '#/components/examples/Error400ResponseExample'
+ 401_example:
+ $ref: '#/components/examples/Error401ResponseExample'
+ 402_example:
+ $ref: '#/components/examples/Error402ResponseExample'
+ 403_example:
+ $ref: '#/components/examples/Error403ResponseExample'
+ 404_example:
+ $ref: '#/components/examples/Error404ResponseExample'
+ 4XX_example:
+ $ref: '#/components/examples/Error4XXResponseExample'
+ security:
+ -
+ api_key: []
+ x-codeSamples:
+ -
+ lang: PHP
+ label: PHP
+ source:
+ $ref: examples/FaxLineAddUser.php
+ -
+ lang: 'C#'
+ label: 'C#'
+ source:
+ $ref: examples/FaxLineAddUser.cs
+ -
+ lang: JavaScript
+ label: JavaScript
+ source:
+ $ref: examples/FaxLineAddUser.js
+ -
+ lang: TypeScript
+ label: TypeScript
+ source:
+ $ref: examples/FaxLineAddUser.ts
+ -
+ lang: Java
+ label: Java
+ source:
+ $ref: examples/FaxLineAddUser.java
+ -
+ lang: Ruby
+ label: Ruby
+ source:
+ $ref: examples/FaxLineAddUser.rb
+ -
+ lang: Python
+ label: Python
+ source:
+ $ref: examples/FaxLineAddUser.py
+ -
+ lang: cURL
+ label: cURL
+ source:
+ $ref: examples/FaxLineAddUser.sh
+ x-meta:
+ seo:
+ title: 'Fax Line Add User | API Documentation | Dropbox Fax for Developers'
+ description: 'The Dropbox Fax API allows you to build custom integrations. To find out how to add a user to an existing fax line, click here.'
+ /fax_line/area_codes:
+ get:
+ tags:
+ - 'Fax Line'
+ summary: 'Get Available Fax Line Area Codes'
+ description: 'Returns a response with the area codes available for a given state/provice and city.'
+ operationId: faxLineAreaCodeGet
+ parameters:
+ -
+ name: country
+ in: query
+ description: 'Filter area codes by country.'
+ required: true
+ schema:
+ type: string
+ enum:
+ - CA
+ - US
+ - UK
+ -
+ name: state
+ in: query
+ description: 'Filter area codes by state.'
+ schema:
+ type: string
+ enum:
+ - AK
+ - AL
+ - AR
+ - AZ
+ - CA
+ - CO
+ - CT
+ - DC
+ - DE
+ - FL
+ - GA
+ - HI
+ - IA
+ - ID
+ - IL
+ - IN
+ - KS
+ - KY
+ - LA
+ - MA
+ - MD
+ - ME
+ - MI
+ - MN
+ - MO
+ - MS
+ - MT
+ - NC
+ - ND
+ - NE
+ - NH
+ - NJ
+ - NM
+ - NV
+ - NY
+ - OH
+ - OK
+ - OR
+ - PA
+ - RI
+ - SC
+ - SD
+ - TN
+ - TX
+ - UT
+ - VA
+ - VT
+ - WA
+ - WI
+ - WV
+ - WY
+ -
+ name: province
+ in: query
+ description: 'Filter area codes by province.'
+ schema:
+ type: string
+ enum:
+ - AB
+ - BC
+ - MB
+ - NB
+ - NL
+ - NT
+ - NS
+ - NU
+ - 'ON'
+ - PE
+ - QC
+ - SK
+ - YT
+ -
+ name: city
+ in: query
+ description: 'Filter area codes by city.'
+ schema:
+ type: string
+ responses:
+ 200:
+ description: 'successful operation'
+ headers:
+ X-RateLimit-Limit:
+ $ref: '#/components/headers/X-RateLimit-Limit'
+ X-RateLimit-Remaining:
+ $ref: '#/components/headers/X-RateLimit-Remaining'
+ X-Ratelimit-Reset:
+ $ref: '#/components/headers/X-Ratelimit-Reset'
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/FaxLineAreaCodeGetResponse'
+ examples:
+ default_example:
+ $ref: '#/components/examples/FaxLineAreaCodeGetResponseExample'
+ 4XX:
+ description: failed_operation
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorResponse'
+ examples:
+ 400_example:
+ $ref: '#/components/examples/Error400ResponseExample'
+ 401_example:
+ $ref: '#/components/examples/Error401ResponseExample'
+ 402_example:
+ $ref: '#/components/examples/Error402ResponseExample'
+ 403_example:
+ $ref: '#/components/examples/Error403ResponseExample'
+ 4XX_example:
+ $ref: '#/components/examples/Error4XXResponseExample'
+ security:
+ -
+ api_key: []
+ x-codeSamples:
+ -
+ lang: PHP
+ label: PHP
+ source:
+ $ref: examples/FaxLineAreaCodeGet.php
+ -
+ lang: 'C#'
+ label: 'C#'
+ source:
+ $ref: examples/FaxLineAreaCodeGet.cs
+ -
+ lang: JavaScript
+ label: JavaScript
+ source:
+ $ref: examples/FaxLineAreaCodeGet.js
+ -
+ lang: TypeScript
+ label: TypeScript
+ source:
+ $ref: examples/FaxLineAreaCodeGet.ts
+ -
+ lang: Java
+ label: Java
+ source:
+ $ref: examples/FaxLineAreaCodeGet.java
+ -
+ lang: Ruby
+ label: Ruby
+ source:
+ $ref: examples/FaxLineAreaCodeGet.rb
+ -
+ lang: Python
+ label: Python
+ source:
+ $ref: examples/FaxLineAreaCodeGet.py
+ -
+ lang: cURL
+ label: cURL
+ source:
+ $ref: examples/FaxLineAreaCodeGet.sh
+ x-meta:
+ seo:
+ title: 'Fax Line Get Area Codes | API Documentation | Dropbox Fax for Developers'
+ description: 'The Dropbox Fax API allows you to build custom integrations. To find out how to purchase a new fax line, click here.'
+ /fax_line/create:
+ post:
+ tags:
+ - 'Fax Line'
+ summary: 'Purchase Fax Line'
+ description: 'Purchases a new Fax Line.'
+ operationId: faxLineCreate
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/FaxLineCreateRequest'
+ examples:
+ default_example:
+ $ref: '#/components/examples/FaxLineCreateRequestExample'
+ responses:
+ 200:
+ description: 'successful operation'
+ headers:
+ X-RateLimit-Limit:
+ $ref: '#/components/headers/X-RateLimit-Limit'
+ X-RateLimit-Remaining:
+ $ref: '#/components/headers/X-RateLimit-Remaining'
+ X-Ratelimit-Reset:
+ $ref: '#/components/headers/X-Ratelimit-Reset'
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/FaxLineResponse'
+ examples:
+ default_example:
+ $ref: '#/components/examples/FaxLineResponseExample'
+ 4XX:
+ description: failed_operation
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorResponse'
+ examples:
+ 400_example:
+ $ref: '#/components/examples/Error400ResponseExample'
+ 401_example:
+ $ref: '#/components/examples/Error401ResponseExample'
+ 402_example:
+ $ref: '#/components/examples/Error402ResponseExample'
+ 403_example:
+ $ref: '#/components/examples/Error403ResponseExample'
+ 404_example:
+ $ref: '#/components/examples/Error404ResponseExample'
+ 4XX_example:
+ $ref: '#/components/examples/Error4XXResponseExample'
+ security:
+ -
+ api_key: []
+ x-codeSamples:
+ -
+ lang: PHP
+ label: PHP
+ source:
+ $ref: examples/FaxLineCreate.php
+ -
+ lang: 'C#'
+ label: 'C#'
+ source:
+ $ref: examples/FaxLineCreate.cs
+ -
+ lang: JavaScript
+ label: JavaScript
+ source:
+ $ref: examples/FaxLineCreate.js
+ -
+ lang: TypeScript
+ label: TypeScript
+ source:
+ $ref: examples/FaxLineCreate.ts
+ -
+ lang: Java
+ label: Java
+ source:
+ $ref: examples/FaxLineCreate.java
+ -
+ lang: Ruby
+ label: Ruby
+ source:
+ $ref: examples/FaxLineCreate.rb
+ -
+ lang: Python
+ label: Python
+ source:
+ $ref: examples/FaxLineCreate.py
+ -
+ lang: cURL
+ label: cURL
+ source:
+ $ref: examples/FaxLineCreate.sh
+ x-meta:
+ seo:
+ title: 'Purchase Fax Line | API Documentation | Dropbox Fax for Developers'
+ description: 'The Dropbox Fax API allows you to build custom integrations. To find out how to purchase a new fax line, click here.'
+ /fax_line:
+ get:
+ tags:
+ - 'Fax Line'
+ summary: 'Get Fax Line'
+ description: 'Returns the properties and settings of a Fax Line.'
+ operationId: faxLineGet
+ parameters:
+ -
+ name: number
+ in: query
+ description: 'The Fax Line number.'
+ required: true
+ schema:
+ type: string
+ responses:
+ 200:
+ description: 'successful operation'
+ headers:
+ X-RateLimit-Limit:
+ $ref: '#/components/headers/X-RateLimit-Limit'
+ X-RateLimit-Remaining:
+ $ref: '#/components/headers/X-RateLimit-Remaining'
+ X-Ratelimit-Reset:
+ $ref: '#/components/headers/X-Ratelimit-Reset'
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/FaxLineResponse'
+ examples:
+ default_example:
+ $ref: '#/components/examples/FaxLineResponseExample'
+ 4XX:
+ description: failed_operation
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorResponse'
+ examples:
+ 400_example:
+ $ref: '#/components/examples/Error400ResponseExample'
+ 401_example:
+ $ref: '#/components/examples/Error401ResponseExample'
+ 402_example:
+ $ref: '#/components/examples/Error402ResponseExample'
+ 403_example:
+ $ref: '#/components/examples/Error403ResponseExample'
+ 404_example:
+ $ref: '#/components/examples/Error404ResponseExample'
+ 4XX_example:
+ $ref: '#/components/examples/Error4XXResponseExample'
+ security:
+ -
+ api_key: []
+ x-codeSamples:
+ -
+ lang: PHP
+ label: PHP
+ source:
+ $ref: examples/FaxLineGet.php
+ -
+ lang: 'C#'
+ label: 'C#'
+ source:
+ $ref: examples/FaxLineGet.cs
+ -
+ lang: JavaScript
+ label: JavaScript
+ source:
+ $ref: examples/FaxLineGet.js
+ -
+ lang: TypeScript
+ label: TypeScript
+ source:
+ $ref: examples/FaxLineGet.ts
+ -
+ lang: Java
+ label: Java
+ source:
+ $ref: examples/FaxLineGet.java
+ -
+ lang: Ruby
+ label: Ruby
+ source:
+ $ref: examples/FaxLineGet.rb
+ -
+ lang: Python
+ label: Python
+ source:
+ $ref: examples/FaxLineGet.py
+ -
+ lang: cURL
+ label: cURL
+ source:
+ $ref: examples/FaxLineGet.sh
+ x-meta:
+ seo:
+ title: 'Get Fax Line | API Documentation | Dropbox Fax for Developers'
+ description: 'The Dropbox Fax API allows you to build custom integrations. To find out how to retrieve a fax line, click here.'
+ delete:
+ tags:
+ - 'Fax Line'
+ summary: 'Delete Fax Line'
+ description: 'Deletes the specified Fax Line from the subscription.'
+ operationId: faxLineDelete
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/FaxLineDeleteRequest'
+ examples:
+ default_example:
+ $ref: '#/components/examples/FaxLineDeleteRequestExample'
+ responses:
+ 200:
+ description: 'successful operation'
+ headers:
+ X-RateLimit-Limit:
+ $ref: '#/components/headers/X-RateLimit-Limit'
+ X-RateLimit-Remaining:
+ $ref: '#/components/headers/X-RateLimit-Remaining'
+ X-Ratelimit-Reset:
+ $ref: '#/components/headers/X-Ratelimit-Reset'
+ content:
+ application/json: {}
+ 4XX:
+ description: failed_operation
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorResponse'
+ examples:
+ 400_example:
+ $ref: '#/components/examples/Error400ResponseExample'
+ 401_example:
+ $ref: '#/components/examples/Error401ResponseExample'
+ 402_example:
+ $ref: '#/components/examples/Error402ResponseExample'
+ 403_example:
+ $ref: '#/components/examples/Error403ResponseExample'
+ 404_example:
+ $ref: '#/components/examples/Error404ResponseExample'
+ 4XX_example:
+ $ref: '#/components/examples/Error4XXResponseExample'
+ security:
+ -
+ api_key: []
+ x-codeSamples:
+ -
+ lang: PHP
+ label: PHP
+ source:
+ $ref: examples/FaxLineDelete.php
+ -
+ lang: 'C#'
+ label: 'C#'
+ source:
+ $ref: examples/FaxLineDelete.cs
+ -
+ lang: JavaScript
+ label: JavaScript
+ source:
+ $ref: examples/FaxLineDelete.js
+ -
+ lang: TypeScript
+ label: TypeScript
+ source:
+ $ref: examples/FaxLineDelete.ts
+ -
+ lang: Java
+ label: Java
+ source:
+ $ref: examples/FaxLineDelete.java
+ -
+ lang: Ruby
+ label: Ruby
+ source:
+ $ref: examples/FaxLineDelete.rb
+ -
+ lang: Python
+ label: Python
+ source:
+ $ref: examples/FaxLineDelete.py
+ -
+ lang: cURL
+ label: cURL
+ source:
+ $ref: examples/FaxLineDelete.sh
+ x-meta:
+ seo:
+ title: 'Delete Fax Line | API Documentation | Dropbox Fax for Developers'
+ description: 'The Dropbox Fax API allows you to build custom integrations. To find out how to delete a fax line, click here.'
+ /fax_line/list:
+ get:
+ tags:
+ - 'Fax Line'
+ summary: 'List Fax Lines'
+ description: 'Returns the properties and settings of multiple Fax Lines.'
+ operationId: faxLineList
+ parameters:
+ -
+ name: account_id
+ in: query
+ description: 'Account ID'
+ schema:
+ type: string
+ example: ab55cd14a97219e36b5ff5fe23f2f9329b0c1e97
+ -
+ name: page
+ in: query
+ description: Page
+ schema:
+ type: integer
+ default: 1
+ example: 1
+ -
+ name: page_size
+ in: query
+ description: 'Page size'
+ schema:
+ type: integer
+ default: 20
+ example: 20
+ -
+ name: show_team_lines
+ in: query
+ description: 'Show team lines'
+ schema:
+ type: boolean
+ responses:
+ 200:
+ description: 'successful operation'
+ headers:
+ X-RateLimit-Limit:
+ $ref: '#/components/headers/X-RateLimit-Limit'
+ X-RateLimit-Remaining:
+ $ref: '#/components/headers/X-RateLimit-Remaining'
+ X-Ratelimit-Reset:
+ $ref: '#/components/headers/X-Ratelimit-Reset'
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/FaxLineListResponse'
+ examples:
+ default_example:
+ $ref: '#/components/examples/FaxLineListResponseExample'
+ 4XX:
+ description: failed_operation
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorResponse'
+ examples:
+ 400_example:
+ $ref: '#/components/examples/Error400ResponseExample'
+ 401_example:
+ $ref: '#/components/examples/Error401ResponseExample'
+ 402_example:
+ $ref: '#/components/examples/Error402ResponseExample'
+ 403_example:
+ $ref: '#/components/examples/Error403ResponseExample'
+ 4XX_example:
+ $ref: '#/components/examples/Error4XXResponseExample'
+ security:
+ -
+ api_key: []
+ x-codeSamples:
+ -
+ lang: PHP
+ label: PHP
+ source:
+ $ref: examples/FaxLineList.php
+ -
+ lang: 'C#'
+ label: 'C#'
+ source:
+ $ref: examples/FaxLineList.cs
+ -
+ lang: JavaScript
+ label: JavaScript
+ source:
+ $ref: examples/FaxLineList.js
+ -
+ lang: TypeScript
+ label: TypeScript
+ source:
+ $ref: examples/FaxLineList.ts
+ -
+ lang: Java
+ label: Java
+ source:
+ $ref: examples/FaxLineList.java
+ -
+ lang: Ruby
+ label: Ruby
+ source:
+ $ref: examples/FaxLineList.rb
+ -
+ lang: Python
+ label: Python
+ source:
+ $ref: examples/FaxLineList.py
+ -
+ lang: cURL
+ label: cURL
+ source:
+ $ref: examples/FaxLineList.sh
+ x-meta:
+ seo:
+ title: 'List Fax Lines | API Documentation | Dropbox Fax for Developers'
+ description: 'The Dropbox Fax API allows you to build custom integrations. To find out how to list your fax lines, click here.'
+ /fax_line/remove_user:
+ put:
+ tags:
+ - 'Fax Line'
+ summary: 'Remove Fax Line Access'
+ description: 'Removes a user''s access to the specified Fax Line.'
+ operationId: faxLineRemoveUser
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/FaxLineRemoveUserRequest'
+ examples:
+ default_example:
+ $ref: '#/components/examples/FaxLineRemoveUserRequestExample'
+ responses:
+ 200:
+ description: 'successful operation'
+ headers:
+ X-RateLimit-Limit:
+ $ref: '#/components/headers/X-RateLimit-Limit'
+ X-RateLimit-Remaining:
+ $ref: '#/components/headers/X-RateLimit-Remaining'
+ X-Ratelimit-Reset:
+ $ref: '#/components/headers/X-Ratelimit-Reset'
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/FaxLineResponse'
+ examples:
+ default_example:
+ $ref: '#/components/examples/FaxLineResponseExample'
+ 4XX:
+ description: failed_operation
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorResponse'
+ examples:
+ 400_example:
+ $ref: '#/components/examples/Error400ResponseExample'
+ 401_example:
+ $ref: '#/components/examples/Error401ResponseExample'
+ 402_example:
+ $ref: '#/components/examples/Error402ResponseExample'
+ 403_example:
+ $ref: '#/components/examples/Error403ResponseExample'
+ 404_example:
+ $ref: '#/components/examples/Error404ResponseExample'
+ 4XX_example:
+ $ref: '#/components/examples/Error4XXResponseExample'
+ security:
+ -
+ api_key: []
+ x-codeSamples:
+ -
+ lang: PHP
+ label: PHP
+ source:
+ $ref: examples/FaxLineRemoveUser.php
+ -
+ lang: 'C#'
+ label: 'C#'
+ source:
+ $ref: examples/FaxLineRemoveUser.cs
+ -
+ lang: JavaScript
+ label: JavaScript
+ source:
+ $ref: examples/FaxLineRemoveUser.js
+ -
+ lang: TypeScript
+ label: TypeScript
+ source:
+ $ref: examples/FaxLineRemoveUser.ts
+ -
+ lang: Java
+ label: Java
+ source:
+ $ref: examples/FaxLineRemoveUser.java
+ -
+ lang: Ruby
+ label: Ruby
+ source:
+ $ref: examples/FaxLineRemoveUser.rb
+ -
+ lang: Python
+ label: Python
+ source:
+ $ref: examples/FaxLineRemoveUser.py
+ -
+ lang: cURL
+ label: cURL
+ source:
+ $ref: examples/FaxLineRemoveUser.sh
+ x-meta:
+ seo:
+ title: 'Fax Line Remove User | API Documentation | Dropbox Fax for Developers'
+ description: 'The Dropbox Fax API allows you to build custom integrations. To find out how to remove a user from an existing fax line, click here.'
/oauth/token:
post:
tags:
@@ -6409,6 +7206,145 @@ components:
type: boolean
default: false
type: object
+ FaxLineAddUserRequest:
+ required:
+ - number
+ properties:
+ number:
+ description: 'The Fax Line number.'
+ type: string
+ account_id:
+ description: 'Account ID'
+ type: string
+ example: ab55cd14a97219e36b5ff5fe23f2f9329b0c1e97
+ email_address:
+ description: 'Email address'
+ type: string
+ format: email
+ type: object
+ FaxLineAreaCodeGetStateEnum:
+ type: string
+ enum:
+ - AK
+ - AL
+ - AR
+ - AZ
+ - CA
+ - CO
+ - CT
+ - DC
+ - DE
+ - FL
+ - GA
+ - HI
+ - IA
+ - ID
+ - IL
+ - IN
+ - KS
+ - KY
+ - LA
+ - MA
+ - MD
+ - ME
+ - MI
+ - MN
+ - MO
+ - MS
+ - MT
+ - NC
+ - ND
+ - NE
+ - NH
+ - NJ
+ - NM
+ - NV
+ - NY
+ - OH
+ - OK
+ - OR
+ - PA
+ - RI
+ - SC
+ - SD
+ - TN
+ - TX
+ - UT
+ - VA
+ - VT
+ - WA
+ - WI
+ - WV
+ - WY
+ FaxLineAreaCodeGetProvinceEnum:
+ type: string
+ enum:
+ - AB
+ - BC
+ - MB
+ - NB
+ - NL
+ - NT
+ - NS
+ - NU
+ - 'ON'
+ - PE
+ - QC
+ - SK
+ - YT
+ FaxLineAreaCodeGetCountryEnum:
+ type: string
+ enum:
+ - CA
+ - US
+ - UK
+ FaxLineCreateRequest:
+ required:
+ - area_code
+ - country
+ properties:
+ area_code:
+ description: 'Area code'
+ type: integer
+ country:
+ description: Country
+ type: string
+ enum:
+ - CA
+ - US
+ - UK
+ city:
+ description: City
+ type: string
+ account_id:
+ description: 'Account ID'
+ type: string
+ example: ab55cd14a97219e36b5ff5fe23f2f9329b0c1e97
+ type: object
+ FaxLineDeleteRequest:
+ required:
+ - number
+ properties:
+ number:
+ description: 'The Fax Line number.'
+ type: string
+ type: object
+ FaxLineRemoveUserRequest:
+ required:
+ - number
+ properties:
+ number:
+ description: 'The Fax Line number.'
+ type: string
+ account_id:
+ description: 'Account ID'
+ type: string
+ example: ab55cd14a97219e36b5ff5fe23f2f9329b0c1e97
+ email_address:
+ description: 'Email address'
+ type: string
+ format: email
+ type: object
OAuthTokenGenerateRequest:
required:
- client_id
@@ -9118,6 +10054,8 @@ components:
default: false
type: object
AccountCreateResponse:
+ required:
+ - account
properties:
account:
$ref: '#/components/schemas/AccountResponse'
@@ -9131,6 +10069,8 @@ components:
type: object
x-internal-class: true
AccountGetResponse:
+ required:
+ - account
properties:
account:
$ref: '#/components/schemas/AccountResponse'
@@ -9153,6 +10093,8 @@ components:
type: object
x-internal-class: true
ApiAppGetResponse:
+ required:
+ - api_app
properties:
api_app:
$ref: '#/components/schemas/ApiAppResponse'
@@ -9164,6 +10106,9 @@ components:
type: object
x-internal-class: true
ApiAppListResponse:
+ required:
+ - api_apps
+ - list_info
properties:
api_apps:
description: 'Contains information about API Apps.'
@@ -9180,6 +10125,10 @@ components:
type: object
x-internal-class: true
BulkSendJobGetResponse:
+ required:
+ - bulk_send_job
+ - list_info
+ - signature_requests
properties:
bulk_send_job:
$ref: '#/components/schemas/BulkSendJobResponse'
@@ -9198,6 +10147,9 @@ components:
type: object
x-internal-class: true
BulkSendJobListResponse:
+ required:
+ - bulk_send_jobs
+ - list_info
properties:
bulk_send_jobs:
description: 'Contains a list of BulkSendJobs that the API caller has access to.'
@@ -9214,6 +10166,8 @@ components:
type: object
x-internal-class: true
BulkSendJobSendResponse:
+ required:
+ - bulk_send_job
properties:
bulk_send_job:
$ref: '#/components/schemas/BulkSendJobResponse'
@@ -9225,6 +10179,8 @@ components:
type: object
x-internal-class: true
EmbeddedEditUrlResponse:
+ required:
+ - embedded
properties:
embedded:
$ref: '#/components/schemas/EmbeddedEditUrlResponseEmbedded'
@@ -9236,6 +10192,8 @@ components:
type: object
x-internal-class: true
EmbeddedSignUrlResponse:
+ required:
+ - embedded
properties:
embedded:
$ref: '#/components/schemas/EmbeddedSignUrlResponseEmbedded'
@@ -9253,7 +10211,45 @@ components:
error:
$ref: '#/components/schemas/ErrorResponseError'
type: object
+ FaxLineResponse:
+ required:
+ - fax_line
+ properties:
+ fax_line:
+ $ref: '#/components/schemas/FaxLineResponseFaxLine'
+ warnings:
+ $ref: '#/components/schemas/WarningResponse'
+ type: object
+ x-internal-class: true
+ FaxLineAreaCodeGetResponse:
+ required:
+ - area_codes
+ properties:
+ area_codes:
+ type: array
+ items:
+ type: integer
+ type: object
+ x-internal-class: true
+ FaxLineListResponse:
+ required:
+ - fax_lines
+ - list_info
+ properties:
+ list_info:
+ $ref: '#/components/schemas/ListInfoResponse'
+ fax_lines:
+ type: array
+ items:
+ $ref: '#/components/schemas/FaxLineResponseFaxLine'
+ warnings:
+ $ref: '#/components/schemas/WarningResponse'
+ type: object
+ x-internal-class: true
FileResponse:
+ required:
+ - file_url
+ - expires_at
properties:
file_url:
description: 'URL to the file.'
@@ -9264,6 +10260,8 @@ components:
type: object
x-internal-class: true
FileResponseDataUri:
+ required:
+ - data_uri
properties:
data_uri:
description: 'File as base64 encoded string.'
@@ -9271,6 +10269,8 @@ components:
type: object
x-internal-class: true
ReportCreateResponse:
+ required:
+ - report
properties:
report:
$ref: '#/components/schemas/ReportResponse'
@@ -9282,6 +10282,8 @@ components:
type: object
x-internal-class: true
SignatureRequestGetResponse:
+ required:
+ - signature_request
properties:
signature_request:
$ref: '#/components/schemas/SignatureRequestResponse'
@@ -9293,6 +10295,9 @@ components:
type: object
x-internal-class: true
SignatureRequestListResponse:
+ required:
+ - signature_requests
+ - list_info
properties:
signature_requests:
description: 'Contains information about signature requests.'
@@ -9584,6 +10589,23 @@ components:
description: 'Name of the error.'
type: string
type: object
+ FaxLineResponseFaxLine:
+ properties:
+ number:
+ description: Number
+ type: string
+ created_at:
+ description: 'Created at'
+ type: integer
+ updated_at:
+ description: 'Updated at'
+ type: integer
+ accounts:
+ type: array
+ items:
+ $ref: '#/components/schemas/AccountResponse'
+ type: object
+ x-internal-class: true
ListInfoResponse:
description: 'Contains pagination information about the data returned.'
properties:
@@ -9745,6 +10767,7 @@ components:
signer:
description: 'The Signer this attachment is assigned to.'
type: string
+ x-int-or-string: true
name:
description: 'The name of this attachment.'
type: string
@@ -10374,6 +11397,7 @@ components:
description: 'The signer of the Custom Field. Can be `null` if field is a merge field (assigned to Sender).'
type: string
nullable: true
+ x-int-or-string: true
x:
description: 'The horizontal offset in pixels for this form field.'
type: integer
@@ -10489,6 +11513,7 @@ components:
signer:
description: 'The signer of the Form Field.'
type: string
+ x-int-or-string: true
x:
description: 'The horizontal offset in pixels for this form field.'
type: integer
@@ -11100,6 +12125,8 @@ components:
type: string
type: object
TeamGetResponse:
+ required:
+ - team
properties:
team:
$ref: '#/components/schemas/TeamResponse'
@@ -11111,6 +12138,8 @@ components:
type: object
x-internal-class: true
TeamGetInfoResponse:
+ required:
+ - team
properties:
team:
$ref: '#/components/schemas/TeamInfoResponse'
@@ -11122,6 +12151,8 @@ components:
type: object
x-internal-class: true
TeamInvitesResponse:
+ required:
+ - team_invites
properties:
team_invites:
description: 'Contains a list of team invites and their roles.'
@@ -11135,6 +12166,9 @@ components:
type: object
x-internal-class: true
TeamMembersResponse:
+ required:
+ - team_members
+ - list_info
properties:
team_members:
description: 'Contains a list of team members and their roles for a specific team.'
@@ -11150,6 +12184,9 @@ components:
type: object
x-internal-class: true
TeamSubTeamsResponse:
+ required:
+ - sub_teams
+ - list_info
properties:
sub_teams:
description: 'Contains a list with sub teams.'
@@ -11165,6 +12202,8 @@ components:
type: object
x-internal-class: true
TemplateCreateResponse:
+ required:
+ - template
properties:
template:
$ref: '#/components/schemas/TemplateCreateResponseTemplate'
@@ -11176,6 +12215,8 @@ components:
type: object
x-internal-class: true
TemplateCreateEmbeddedDraftResponse:
+ required:
+ - template
properties:
template:
$ref: '#/components/schemas/TemplateCreateEmbeddedDraftResponseTemplate'
@@ -11187,12 +12228,16 @@ components:
type: object
x-internal-class: true
TemplateEditResponse:
+ required:
+ - template_id
properties:
template_id:
description: 'The id of the Template.'
type: string
type: object
TemplateGetResponse:
+ required:
+ - template
properties:
template:
$ref: '#/components/schemas/TemplateResponse'
@@ -11204,6 +12249,9 @@ components:
type: object
x-internal-class: true
TemplateListResponse:
+ required:
+ - templates
+ - list_info
properties:
templates:
description: 'List of templates that the API caller has access to.'
@@ -11220,12 +12268,16 @@ components:
type: object
x-internal-class: true
TemplateUpdateFilesResponse:
+ required:
+ - template
properties:
template:
$ref: '#/components/schemas/TemplateUpdateFilesResponseTemplate'
type: object
x-internal-class: true
UnclaimedDraftCreateResponse:
+ required:
+ - unclaimed_draft
properties:
unclaimed_draft:
$ref: '#/components/schemas/UnclaimedDraftResponse'
@@ -11350,6 +12402,22 @@ components:
summary: 'Default Example'
value:
$ref: examples/json/EmbeddedEditUrlRequestDefaultExample.json
+ FaxLineAddUserRequestExample:
+ summary: 'Default Example'
+ value:
+ $ref: examples/json/FaxLineAddUserRequestExample.json
+ FaxLineCreateRequestExample:
+ summary: 'Default Example'
+ value:
+ $ref: examples/json/FaxLineCreateRequestExample.json
+ FaxLineDeleteRequestExample:
+ summary: 'Default Example'
+ value:
+ $ref: examples/json/FaxLineDeleteRequestExample.json
+ FaxLineRemoveUserRequestExample:
+ summary: 'Default Example'
+ value:
+ $ref: examples/json/FaxLineRemoveUserRequestExample.json
OAuthTokenGenerateRequestExample:
summary: 'OAuth Token Generate Example'
value:
@@ -11594,6 +12662,18 @@ components:
summary: 'Error 4XX failed_operation'
value:
$ref: examples/json/Error4XXResponseExample.json
+ FaxLineResponseExample:
+ summary: 'Sample Fax Line Response'
+ value:
+ $ref: examples/json/FaxLineResponseExample.json
+ FaxLineAreaCodeGetResponseExample:
+ summary: 'Sample Area Code Response'
+ value:
+ $ref: examples/json/FaxLineAreaCodeGetResponseExample.json
+ FaxLineListResponseExample:
+ summary: 'Sample Fax Line List Response'
+ value:
+ $ref: examples/json/FaxLineListResponseExample.json
ReportCreateResponseExample:
summary: Report
value:
diff --git a/run-build b/run-build
index 8639977..eb99122 100755
--- a/run-build
+++ b/run-build
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
-# see https://github.com/OpenAPITools/openapi-generator/tree/08296c2b1dc732829e3aaa2c2cad7c2c8c44eb8d/modules/openapi-generator/src/main/resources/ruby-client
+# see https://github.com/OpenAPITools/openapi-generator/tree/v7.8.0/modules/openapi-generator/src/main/resources/ruby-client
set -e
@@ -9,7 +9,7 @@ WORKING_DIR="/app/ruby"
docker run --rm \
-v "${DIR}/:/local" \
- openapitools/openapi-generator-cli:v7.7.0 generate \
+ openapitools/openapi-generator-cli:v7.8.0 generate \
-i "/local/openapi-sdk.yaml" \
-c "/local/openapi-config.yaml" \
-t "/local/templates" \
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 59e8c7e..a365de3 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -6,7 +6,7 @@
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
diff --git a/templates/Gemfile.mustache b/templates/Gemfile.mustache
index d68dd91..9e92ba5 100644
--- a/templates/Gemfile.mustache
+++ b/templates/Gemfile.mustache
@@ -6,5 +6,7 @@ group :development, :test do
gem 'rake', '~> 13.0.1'
gem 'pry-byebug'
gem 'rubocop', '~> 0.66.0'
+{{#useCustomTemplateCode}}
gem 'json_spec', '~> 1.1.5'
+{{/useCustomTemplateCode}}
end
diff --git a/templates/README.mustache b/templates/README.mustache
index 0c47d5c..a8e4a9c 100644
--- a/templates/README.mustache
+++ b/templates/README.mustache
@@ -6,6 +6,7 @@
{{{.}}}
{{/appDescriptionWithNewLines}}
+{{#useCustomTemplateCode}}
## Migrating from legacy SDK
This SDK is generated from our officially maintained [OpenAPI spec](https://github.com/hellosign/hellosign-openapi/blob/main/openapi.yaml).
@@ -24,6 +25,7 @@ Pull Requests *must* be opened against the
You must make SDK code changes in the mustache file within the `templates`
directory that corresponds to the file you want updated.
+{{/useCustomTemplateCode}}
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: {{appVersion}}
@@ -39,11 +41,13 @@ For more information, please visit [{{{infoUrl}}}]({{{infoUrl}}})
## Installation
+{{#useCustomTemplateCode}}
### Install gem
```shell
gem install {{{gemName}}}
```
+{{/useCustomTemplateCode}}
### Build a gem
To build the Ruby code into a gem:
@@ -52,7 +56,12 @@ To build the Ruby code into a gem:
gem build {{{gemName}}}.gemspec
```
+{{^useCustomTemplateCode}}
+Then either install the gem locally:
+{{/useCustomTemplateCode}}
+{{#useCustomTemplateCode}}
Then install the gem locally:
+{{/useCustomTemplateCode}}
```shell
gem install ./{{{gemName}}}-{{{gemVersion}}}.gem
@@ -60,6 +69,10 @@ gem install ./{{{gemName}}}-{{{gemVersion}}}.gem
(for development, run `gem install --dev ./{{{gemName}}}-{{{gemVersion}}}.gem` to install the development dependencies)
+{{^useCustomTemplateCode}}
+or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
+{{/useCustomTemplateCode}}
+
Finally add this to the Gemfile:
gem '{{{gemName}}}', '~> {{{gemVersion}}}'
@@ -82,20 +95,87 @@ ruby -Ilib script.rb
Please follow the [installation](#installation) procedure and then run the following code:
+{{^useCustomTemplateCode}}
+```ruby
+# Load the gem
+require '{{{gemName}}}'
+{{#apiInfo}}{{#apis}}{{#-first}}{{#operations}}{{#operation}}{{#-first}}{{#hasAuthMethods}}
+# Setup authorization
+{{{moduleName}}}.configure do |config|{{#authMethods}}{{#isBasic}}{{#isBasicBasic}}
+ # Configure HTTP basic authorization: {{{name}}}
+ config.username = 'YOUR_USERNAME'
+ config.password = 'YOUR_PASSWORD'{{/isBasicBasic}}{{#isBasicBearer}}
+ # Configure Bearer authorization{{#bearerFormat}} ({{{.}}}){{/bearerFormat}}: {{{name}}}
+ config.access_token = 'YOUR_BEARER_TOKEN'
+ # Configure a proc to get access tokens in lieu of the static access_token configuration
+ config.access_token_getter = -> { 'YOUR TOKEN GETTER PROC' } {{/isBasicBearer}}{{/isBasic}}{{#isApiKey}}
+ # Configure API key authorization: {{{name}}}
+ config.api_key['{{{name}}}'] = 'YOUR API KEY'
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
+ # config.api_key_prefix['{{{name}}}'] = 'Bearer'{{/isApiKey}}{{#isOAuth}}
+ # Configure OAuth2 access token for authorization: {{{name}}}
+ config.access_token = 'YOUR ACCESS TOKEN'
+ # Configure a proc to get access tokens in lieu of the static access_token configuration
+ config.access_token_getter = -> { 'YOUR TOKEN GETTER PROC' } {{/isOAuth}}
+ {{#isFaraday}}
+ # Configure faraday connection
+ config.configure_faraday_connection { |connection| 'YOUR CONNECTION CONFIG PROC' }
+ {{/isFaraday}}
+ {{#isHttpx}}
+ # Configure httpx session
+ config.configure_session { |session| 'YOUR CONNECTION CONFIG PROC' }
+ {{/isHttpx}}
+{{/authMethods}}end
+{{/hasAuthMethods}}
+
+api_instance = {{{moduleName}}}::{{{classname}}}.new
+{{#requiredParams}}
+{{{paramName}}} = {{{vendorExtensions.x-ruby-example}}} # {{{dataType}}} | {{{description}}}
+{{/requiredParams}}
+{{#optionalParams}}
+{{#-first}}
+opts = {
+{{/-first}}
+ {{{paramName}}}: {{{vendorExtensions.x-ruby-example}}}{{^-last}},{{/-last}} # {{{dataType}}} | {{{description}}}
+{{#-last}}
+}
+{{/-last}}
+{{/optionalParams}}
+
+begin
+{{#summary}} #{{{.}}}
+{{/summary}} {{#returnType}}result = {{/returnType}}api_instance.{{{operationId}}}{{#hasParams}}({{#requiredParams}}{{{paramName}}}{{^-last}}, {{/-last}}{{/requiredParams}}{{#optionalParams}}{{#-last}}{{#hasRequiredParams}}, {{/hasRequiredParams}}opts{{/-last}}{{/optionalParams}}){{/hasParams}}{{#returnType}}
+ p result{{/returnType}}
+rescue {{{moduleName}}}::ApiError => e
+ puts "Exception when calling {{classname}}->{{{operationId}}}: #{e}"
+end
+{{/-first}}{{/operation}}{{/operations}}{{/-first}}{{/apis}}{{/apiInfo}}
+```
+{{/useCustomTemplateCode}}
+{{#useCustomTemplateCode}}
{{#apiInfo}}{{#apis}}{{#-first}}{{#operations}}{{#operation}}{{#-first}}
```ruby
REPLACE_ME_WITH_EXAMPLE_FOR__{{{operationId}}}_Ruby_CODE
```
{{/-first}}{{/operation}}{{/operations}}{{/-first}}{{/apis}}{{/apiInfo}}
+{{/useCustomTemplateCode}}
## Documentation for API Endpoints
All URIs are relative to *{{basePath}}*
+{{^useCustomTemplateCode}}
+Class | Method | HTTP request | Description
+------------ | ------------- | ------------- | -------------
+{{#apiInfo}}{{#apis}}{{#operations}}{{#operation}}*{{moduleName}}::{{classname}}* | [**{{operationId}}**]({{apiDocPath}}{{classname}}.md#{{operationId}}) | **{{httpMethod}}** {{path}} | {{{summary}}}
+{{/operation}}{{/operations}}{{/apis}}{{/apiInfo}}
+{{/useCustomTemplateCode}}
+{{#useCustomTemplateCode}}
|Class | Method | HTTP request | Description|
|------------ | ------------- | ------------- | -------------|
{{#apiInfo}}{{#apis}}{{#operations}}{{#operation}}|*{{moduleName}}::{{classname}}* | [**{{operationId}}**]({{apiDocPath}}{{classname}}.md#{{operationId}}) | **{{httpMethod}}** {{path}} | {{{summary}}} |
{{/operation}}{{/operations}}{{/apis}}{{/apiInfo}}
+{{/useCustomTemplateCode}}
## Documentation for Models
@@ -104,9 +184,16 @@ All URIs are relative to *{{basePath}}*
## Documentation for Authorization
+{{^useCustomTemplateCode}}
+{{^authMethods}}Endpoints do not require authorization.{{/authMethods}}
+{{#hasAuthMethods}}Authentication schemes defined for the API:{{/hasAuthMethods}}
+{{/useCustomTemplateCode}}
+{{#useCustomTemplateCode}}
{{^authMethods}} All endpoints do not require authorization.
{{/authMethods}}{{#authMethods}}{{#last}} Authentication schemes defined for the API:{{/last}}{{/authMethods}}
-{{#authMethods}}### {{name}}
+{{/useCustomTemplateCode}}
+{{#authMethods}}
+### {{name}}
{{#isApiKey}}
@@ -117,7 +204,8 @@ All URIs are relative to *{{basePath}}*
{{#isBasic}}
{{#isBasicBasic}}- **Type**: HTTP basic authentication
{{/isBasicBasic}}{{#isBasicBearer}}- **Type**: Bearer authentication{{#bearerFormat}} ({{{.}}}){{/bearerFormat}}
-{{/isBasicBearer}}
+{{/isBasicBearer}}{{#isHttpSignature}}- **Type**: HTTP signature authentication
+{{/isHttpSignature}}
{{/isBasic}}
{{#isOAuth}}
diff --git a/templates/api.mustache b/templates/api.mustache
index 2519dd5..e5611a3 100644
--- a/templates/api.mustache
+++ b/templates/api.mustache
@@ -4,9 +4,11 @@
require 'cgi'
+{{#useCustomTemplateCode}}
module Dropbox
end
+{{/useCustomTemplateCode}}
module {{moduleName}}
{{#operations}}
class {{classname}}
@@ -191,7 +193,7 @@ module {{moduleName}}
header_params = opts[:header_params] || {}
{{#hasProduces}}
# HTTP header 'Accept' (if needed)
- header_params['Accept'] = @api_client.select_header_accept([{{#produces}}'{{{mediaType}}}'{{^-last}}, {{/-last}}{{/produces}}])
+ header_params['Accept'] = @api_client.select_header_accept([{{#produces}}'{{{mediaType}}}'{{^-last}}, {{/-last}}{{/produces}}]) unless header_params['Accept']
{{/hasProduces}}
{{#hasConsumes}}
# HTTP header 'Content-Type'
@@ -202,7 +204,7 @@ module {{moduleName}}
{{/hasConsumes}}
{{#headerParams}}
{{#required}}
- header_params[:'{{{baseName}}}'] = {{#collectionFormat}}@api_client.build_collection_param({{{paramName}}}, :{{{collectionFormat}}}){{/collectionFormat}}{{^collectionFormat}}{{{paramName}}}{{/collectionFormat}}
+ header_params[{{#lambdaFixHeaderKey}}:'{{{baseName}}}'{{/lambdaFixHeaderKey}}] = {{#collectionFormat}}@api_client.build_collection_param({{{paramName}}}, :{{{collectionFormat}}}){{/collectionFormat}}{{^collectionFormat}}{{{paramName}}}{{/collectionFormat}}
{{/required}}
{{/headerParams}}
{{#headerParams}}
@@ -211,6 +213,24 @@ module {{moduleName}}
{{/required}}
{{/headerParams}}
+{{^useCustomTemplateCode}}
+ # form parameters
+ form_params = opts[:form_params] || {}
+ {{#formParams}}
+ {{#required}}
+ form_params['{{baseName}}'] = {{#collectionFormat}}@api_client.build_collection_param({{{paramName}}}, :{{{collectionFormat}}}){{/collectionFormat}}{{^collectionFormat}}{{{paramName}}}{{/collectionFormat}}
+ {{/required}}
+ {{/formParams}}
+ {{#formParams}}
+ {{^required}}
+ form_params['{{baseName}}'] = {{#collectionFormat}}@api_client.build_collection_param(opts[:'{{{paramName}}}'], :{{{collectionFormat}}}){{/collectionFormat}}{{^collectionFormat}}opts[:'{{{paramName}}}']{{/collectionFormat}} if !opts[:'{{paramName}}'].nil?
+ {{/required}}
+ {{/formParams}}
+
+ # http body (model)
+ post_body = opts[:debug_body]{{#bodyParam}} || @api_client.object_to_http_body({{#required}}{{{paramName}}}{{/required}}{{^required}}opts[:'{{{paramName}}}']{{/required}}){{/bodyParam}}
+{{/useCustomTemplateCode}}
+{{#useCustomTemplateCode}}
post_body = {}
form_params = opts[:form_params] || {}
{{#bodyParam}}
@@ -233,6 +253,7 @@ module {{moduleName}}
# http body (model)
post_body = opts[:debug_body]{{#bodyParam}} || @api_client.object_to_http_body({{#required}}{{{paramName}}}{{/required}}{{^required}}opts[:'{{{paramName}}}']{{/required}}){{/bodyParam}}
{{/bodyParam}}
+{{/useCustomTemplateCode}}
# return_type
return_type = opts[:debug_return_type]{{#returnType}} || '{{{.}}}'{{/returnType}}
@@ -250,6 +271,10 @@ module {{moduleName}}
:return_type => return_type
)
+{{^useCustomTemplateCode}}
+ data, status_code, headers = @api_client.call_api(:{{httpMethod}}, local_var_path, new_options)
+{{/useCustomTemplateCode}}
+{{#useCustomTemplateCode}}
begin
data, status_code, headers = @api_client.call_api(:{{httpMethod}}, local_var_path, new_options)
rescue Dropbox::Sign::ApiError => e
@@ -315,6 +340,7 @@ module {{moduleName}}
{{/returnType}}
end
+{{/useCustomTemplateCode}}
if @api_client.config.debugging
@api_client.config.logger.debug "API called: {{classname}}#{{operationId}}\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
diff --git a/templates/api_client.mustache b/templates/api_client.mustache
index cba9c7c..8cc1f01 100644
--- a/templates/api_client.mustache
+++ b/templates/api_client.mustache
@@ -20,8 +20,10 @@ require 'httpx'
require 'net/http/status'
{{/isHttpx}}
+{{#useCustomTemplateCode}}
module Dropbox
end
+{{/useCustomTemplateCode}}
module {{moduleName}}
class ApiClient
@@ -133,7 +135,9 @@ module {{moduleName}}
data.each { |k, v| hash[k] = convert_to_type(v, sub_type) }
end
else
- # models (e.g. Pet)
+{{^useCustomTemplateCode}}
+ # models (e.g. Pet) or oneOf
+{{/useCustomTemplateCode}}
klass = {{moduleName}}.const_get(return_type)
klass.respond_to?(:openapi_one_of) ? klass.build(data) : klass.build_from_hash(data)
end
@@ -244,6 +248,7 @@ module {{moduleName}}
fail "unknown collection format: #{collection_format.inspect}"
end
end
+{{#useCustomTemplateCode}}
def generate_form_data(obj, openapi_types)
params = {}
@@ -268,5 +273,6 @@ module {{moduleName}}
:params => params,
}
end
+{{/useCustomTemplateCode}}
end
end
diff --git a/templates/api_client_faraday_partial.mustache b/templates/api_client_faraday_partial.mustache
index 1a85fc6..11ae645 100644
--- a/templates/api_client_faraday_partial.mustache
+++ b/templates/api_client_faraday_partial.mustache
@@ -117,35 +117,41 @@
request.options.on_data = Proc.new do |chunk, overall_received_bytes|
stream << chunk
end
+
stream
end
def deserialize_file(response, stream)
- body = response.body
- if @config.return_binary_data == true
- # return byte stream
- encoding = body.encoding
- stream.join.force_encoding(encoding)
+ body = response.body
+ encoding = body.encoding
+
+ # reconstruct content
+ content = stream.join
+ content = content.unpack('m').join if response.headers['Content-Transfer-Encoding'] == 'binary'
+ content = content.force_encoding(encoding)
+
+ # return byte stream
+ return content if @config.return_binary_data == true
+
+ # return file instead of binary data
+ content_disposition = response.headers['Content-Disposition']
+ if content_disposition && content_disposition =~ /filename=/i
+ filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1]
+ prefix = sanitize_filename(filename)
else
- # return file instead of binary data
- content_disposition = response.headers['Content-Disposition']
- if content_disposition && content_disposition =~ /filename=/i
- filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1]
- prefix = sanitize_filename(filename)
- else
- prefix = 'download-'
- end
- prefix = prefix + '-' unless prefix.end_with?('-')
- encoding = body.encoding
- tempfile = Tempfile.open(prefix, @config.temp_folder_path, encoding: encoding)
- tempfile.write(stream.join.force_encoding(encoding))
- tempfile.close
- config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
- "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
- "will be deleted automatically with GC. It's also recommended to delete the temp file "\
- "explicitly with `tempfile.delete`"
- tempfile
+ prefix = 'download-'
end
+ prefix = prefix + '-' unless prefix.end_with?('-')
+
+ tempfile = Tempfile.open(prefix, @config.temp_folder_path, encoding: encoding)
+ tempfile.write(content)
+ tempfile.close
+
+ config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
+ "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
+ "will be deleted automatically with GC. It's also recommended to delete the temp file "\
+ "explicitly with `tempfile.delete`"
+ tempfile
end
def connection(opts)
diff --git a/templates/api_client_spec.mustache b/templates/api_client_spec.mustache
deleted file mode 100644
index 86a7bd9..0000000
--- a/templates/api_client_spec.mustache
+++ /dev/null
@@ -1,220 +0,0 @@
-=begin
-{{> api_info}}
-=end
-
-require 'spec_helper'
-
-describe {{moduleName}}::ApiClient do
- context 'initialization' do
- context 'URL stuff' do
- context 'host' do
- it 'removes http from host' do
- {{moduleName}}.configure { |c| c.host = 'http://example.com' }
- expect({{moduleName}}::Configuration.default.host).to eq('example.com')
- end
-
- it 'removes https from host' do
- {{moduleName}}.configure { |c| c.host = 'https://wookiee.com' }
- expect({{moduleName}}::ApiClient.default.config.host).to eq('wookiee.com')
- end
-
- it 'removes trailing path from host' do
- {{moduleName}}.configure { |c| c.host = 'hobo.com/v4' }
- expect({{moduleName}}::Configuration.default.host).to eq('hobo.com')
- end
- end
-
- context 'base_path' do
- it "prepends a slash to base_path" do
- {{moduleName}}.configure { |c| c.base_path = 'v4/dog' }
- expect({{moduleName}}::Configuration.default.base_path).to eq('/v4/dog')
- end
-
- it "doesn't prepend a slash if one is already there" do
- {{moduleName}}.configure { |c| c.base_path = '/v4/dog' }
- expect({{moduleName}}::Configuration.default.base_path).to eq('/v4/dog')
- end
-
- it "ends up as a blank string if nil" do
- {{moduleName}}.configure { |c| c.base_path = nil }
- expect({{moduleName}}::Configuration.default.base_path).to eq('')
- end
- end
- end
- end
-
-{{^isFaraday}}
- describe 'params_encoding in #build_request' do
- let(:config) { {{moduleName}}::Configuration.new }
- let(:api_client) { {{moduleName}}::ApiClient.new(config) }
-
- it 'defaults to nil' do
- expect({{moduleName}}::Configuration.default.params_encoding).to eq(nil)
- expect(config.params_encoding).to eq(nil)
-
- request = api_client.build_request(:get, '/test')
- expect(request.options[:params_encoding]).to eq(nil)
- end
-
- it 'can be customized' do
- config.params_encoding = :multi
- request = api_client.build_request(:get, '/test')
- expect(request.options[:params_encoding]).to eq(:multi)
- end
- end
-
- describe 'timeout in #build_request' do
- let(:config) { {{moduleName}}::Configuration.new }
- let(:api_client) { {{moduleName}}::ApiClient.new(config) }
-
- it 'defaults to 0' do
- expect({{moduleName}}::Configuration.default.timeout).to eq(0)
- expect(config.timeout).to eq(0)
-
- request = api_client.build_request(:get, '/test')
- expect(request.options[:timeout]).to eq(0)
- end
-
- it 'can be customized' do
- config.timeout = 100
- request = api_client.build_request(:get, '/test')
- expect(request.options[:timeout]).to eq(100)
- end
- end
-
-{{/isFaraday}}
- describe '#deserialize' do
- it "handles Array" do
- api_client = {{moduleName}}::ApiClient.new
- headers = { 'Content-Type' => 'application/json' }
- response = double('response', headers: headers, body: '[12, 34]')
- data = api_client.deserialize(response, 'Array')
- expect(data).to be_instance_of(Array)
- expect(data).to eq([12, 34])
- end
-
- it 'handles Array>' do
- api_client = {{moduleName}}::ApiClient.new
- headers = { 'Content-Type' => 'application/json' }
- response = double('response', headers: headers, body: '[[12, 34], [56]]')
- data = api_client.deserialize(response, 'Array>')
- expect(data).to be_instance_of(Array)
- expect(data).to eq([[12, 34], [56]])
- end
-
- it 'handles Hash' do
- api_client = {{moduleName}}::ApiClient.new
- headers = { 'Content-Type' => 'application/json' }
- response = double('response', headers: headers, body: '{"message": "Hello"}')
- data = api_client.deserialize(response, 'Hash')
- expect(data).to be_instance_of(Hash)
- expect(data).to eq(:message => 'Hello')
- end
- end
-
- describe "#object_to_hash" do
- it 'ignores nils and includes empty arrays' do
- # uncomment below to test object_to_hash for model
- # api_client = {{moduleName}}::ApiClient.new
- # _model = {{moduleName}}::ModelName.new
- # update the model attribute below
- # _model.id = 1
- # update the expected value (hash) below
- # expected = {id: 1, name: '', tags: []}
- # expect(api_client.object_to_hash(_model)).to eq(expected)
- end
- end
-
- describe '#build_collection_param' do
- let(:param) { ['aa', 'bb', 'cc'] }
- let(:api_client) { {{moduleName}}::ApiClient.new }
-
- it 'works for csv' do
- expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
- end
-
- it 'works for ssv' do
- expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc')
- end
-
- it 'works for tsv' do
- expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc")
- end
-
- it 'works for pipes' do
- expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc')
- end
-
- it 'works for multi' do
- expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc'])
- end
-
- it 'fails for invalid collection format' do
- expect { api_client.build_collection_param(param, :INVALID) }.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
- end
- end
-
- describe '#json_mime?' do
- let(:api_client) { {{moduleName}}::ApiClient.new }
-
- it 'works' do
- expect(api_client.json_mime?(nil)).to eq false
- expect(api_client.json_mime?('')).to eq false
-
- expect(api_client.json_mime?('application/json')).to eq true
- expect(api_client.json_mime?('application/json; charset=UTF8')).to eq true
- expect(api_client.json_mime?('APPLICATION/JSON')).to eq true
-
- expect(api_client.json_mime?('application/xml')).to eq false
- expect(api_client.json_mime?('text/plain')).to eq false
- expect(api_client.json_mime?('application/jsonp')).to eq false
- end
- end
-
- describe '#select_header_accept' do
- let(:api_client) { {{moduleName}}::ApiClient.new }
-
- it 'works' do
- expect(api_client.select_header_accept(nil)).to be_nil
- expect(api_client.select_header_accept([])).to be_nil
-
- expect(api_client.select_header_accept(['application/json'])).to eq('application/json')
- expect(api_client.select_header_accept(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
- expect(api_client.select_header_accept(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
-
- expect(api_client.select_header_accept(['application/xml'])).to eq('application/xml')
- expect(api_client.select_header_accept(['text/html', 'application/xml'])).to eq('text/html,application/xml')
- end
- end
-
- describe '#select_header_content_type' do
- let(:api_client) { {{moduleName}}::ApiClient.new }
-
- it 'works' do
- expect(api_client.select_header_content_type(nil)).to be_nil
- expect(api_client.select_header_content_type([])).to be_nil
-
- expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
- expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
- expect(api_client.select_header_content_type(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
- expect(api_client.select_header_content_type(['application/xml'])).to eq('application/xml')
- expect(api_client.select_header_content_type(['text/plain', 'application/xml'])).to eq('text/plain')
- end
- end
-
- describe '#sanitize_filename' do
- let(:api_client) { {{moduleName}}::ApiClient.new }
-
- it 'works' do
- expect(api_client.sanitize_filename('sun')).to eq('sun')
- expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif')
- expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif')
- expect(api_client.sanitize_filename('/var/tmp/sun.gif')).to eq('sun.gif')
- expect(api_client.sanitize_filename('./sun.gif')).to eq('sun.gif')
- expect(api_client.sanitize_filename('..\sun.gif')).to eq('sun.gif')
- expect(api_client.sanitize_filename('\var\tmp\sun.gif')).to eq('sun.gif')
- expect(api_client.sanitize_filename('c:\var\tmp\sun.gif')).to eq('sun.gif')
- expect(api_client.sanitize_filename('.\sun.gif')).to eq('sun.gif')
- end
- end
-end
diff --git a/templates/api_client_typhoeus_partial.mustache b/templates/api_client_typhoeus_partial.mustache
index e8162ac..39792eb 100644
--- a/templates/api_client_typhoeus_partial.mustache
+++ b/templates/api_client_typhoeus_partial.mustache
@@ -154,7 +154,7 @@
"will be deleted automatically with GC. It's also recommended to delete the temp file "\
"explicitly with `tempfile.delete`"
else
- fail ApiError.new("Failed to create the tempfile based on the HTTP response from the server: #{request.inspect}")
+ fail ApiError.new("Failed to create the tempfile based on the HTTP response from the server: #{request.inspect}")
end
tempfile
diff --git a/templates/api_doc.mustache b/templates/api_doc.mustache
index e967752..818343d 100644
--- a/templates/api_doc.mustache
+++ b/templates/api_doc.mustache
@@ -8,16 +8,28 @@ All URIs are relative to *{{basePath}}*
| ------ | ------------ | ----------- |
{{#operations}}
{{#operation}}
+{{^useCustomTemplateCode}}
+| [**{{operationId}}**]({{classname}}.md#{{operationId}}) | **{{httpMethod}}** {{path}} | {{summary}} |
+{{/useCustomTemplateCode}}
+{{#useCustomTemplateCode}}
| [`{{operationId}}`]({{classname}}.md#{{operationId}}) | **{{httpMethod}}** `{{path}}` | {{summary}} |
+{{/useCustomTemplateCode}}
{{/operation}}
{{/operations}}
{{#operations}}
{{#operation}}
+{{^useCustomTemplateCode}}
+## {{operationId}}
+
+> {{#returnType}}{{#returnTypeIsPrimitive}}{{returnType}}{{/returnTypeIsPrimitive}}{{^returnTypeIsPrimitive}}<{{{returnType}}}>{{/returnTypeIsPrimitive}} {{/returnType}}{{operationId}}{{#hasParams}}({{^vendorExtensions.x-group-parameters}}{{#requiredParams}}{{{paramName}}}{{^-last}}, {{/-last}}{{/requiredParams}}{{#optionalParams}}{{#-last}}{{#hasRequiredParams}}, {{/hasRequiredParams}}opts{{/-last}}{{/optionalParams}}{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-group-parameters}}opts{{/vendorExtensions.x-group-parameters}}){{/hasParams}}
+{{/useCustomTemplateCode}}
+{{#useCustomTemplateCode}}
## `{{operationId}}`
> `{{#returnType}}{{#returnTypeIsPrimitive}}{{returnType}}{{/returnTypeIsPrimitive}}{{^returnTypeIsPrimitive}}<{{{returnType}}}>{{/returnTypeIsPrimitive}} {{/returnType}}{{operationId}}{{#hasParams}}({{#requiredParams}}{{{paramName}}}{{^-last}}, {{/-last}}{{/requiredParams}}{{#optionalParams}}{{#-last}}{{#hasRequiredParams}}, {{/hasRequiredParams}}opts{{/-last}}{{/optionalParams}}){{/hasParams}}`
+{{/useCustomTemplateCode}}
{{{summary}}}{{#notes}}
@@ -26,14 +38,84 @@ All URIs are relative to *{{basePath}}*
### Examples
```ruby
+{{^useCustomTemplateCode}}
+require 'time'
+require '{{{gemName}}}'
+{{#hasAuthMethods}}
+# setup authorization
+{{{moduleName}}}.configure do |config|{{#authMethods}}{{#isBasic}}{{#isBasicBasic}}
+ # Configure HTTP basic authorization: {{{name}}}
+ config.username = 'YOUR USERNAME'
+ config.password = 'YOUR PASSWORD'{{/isBasicBasic}}{{#isBasicBearer}}
+ # Configure Bearer authorization{{#bearerFormat}} ({{{.}}}){{/bearerFormat}}: {{{name}}}
+ config.access_token = 'YOUR_BEARER_TOKEN'{{/isBasicBearer}}{{/isBasic}}{{#isApiKey}}
+ # Configure API key authorization: {{{name}}}
+ config.api_key['{{{name}}}'] = 'YOUR API KEY'
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
+ # config.api_key_prefix['{{{name}}}'] = 'Bearer'{{/isApiKey}}{{#isOAuth}}
+ # Configure OAuth2 access token for authorization: {{{name}}}
+ config.access_token = 'YOUR ACCESS TOKEN'{{/isOAuth}}
+{{/authMethods}}end
+{{/hasAuthMethods}}
+
+api_instance = {{{moduleName}}}::{{{classname}}}.new
+{{^vendorExtensions.x-group-parameters}}
+{{#requiredParams}}
+{{{paramName}}} = {{{vendorExtensions.x-ruby-example}}} # {{{dataType}}} | {{{description}}}
+{{/requiredParams}}
+{{#optionalParams}}
+{{#-first}}
+opts = {
+{{/-first}}
+ {{{paramName}}}: {{{vendorExtensions.x-ruby-example}}}{{^-last}},{{/-last}} # {{{dataType}}} | {{{description}}}
+{{#-last}}
+}
+{{/-last}}
+{{/optionalParams}}
+{{/vendorExtensions.x-group-parameters}}
+{{#vendorExtensions.x-group-parameters}}
+{{#hasParams}}
+opts = {
+{{#requiredParams}}
+ {{{paramName}}}: {{{vendorExtensions.x-ruby-example}}}, # {{{dataType}}} | {{{description}}} (required)
+{{/requiredParams}}
+{{#optionalParams}}
+ {{{paramName}}}: {{{vendorExtensions.x-ruby-example}}}, # {{{dataType}}} | {{{description}}}
+{{/optionalParams}}
+}
+{{/hasParams}}
+{{/vendorExtensions.x-group-parameters}}
+
+begin
+ {{#summary}}# {{{.}}}{{/summary}}
+ {{#returnType}}result = {{/returnType}}api_instance.{{{operationId}}}{{#hasParams}}({{^vendorExtensions.x-group-parameters}}{{#requiredParams}}{{{paramName}}}{{^-last}}, {{/-last}}{{/requiredParams}}{{#optionalParams}}{{#-last}}{{#hasRequiredParams}}, {{/hasRequiredParams}}opts{{/-last}}{{/optionalParams}}{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-group-parameters}}opts{{/vendorExtensions.x-group-parameters}}){{/hasParams}}
+ {{#returnType}}
+ p result
+ {{/returnType}}
+rescue {{{moduleName}}}::ApiError => e
+ puts "Error when calling {{classname}}->{{{operationId}}}: #{e}"
+end
+{{/useCustomTemplateCode}}
+{{#useCustomTemplateCode}}
REPLACE_ME_WITH_EXAMPLE_FOR__{{{operationId}}}_Ruby_CODE
+{{/useCustomTemplateCode}}
```
+{{^useCustomTemplateCode}}
+#### Using the {{operationId}}_with_http_info variant
+{{/useCustomTemplateCode}}
+{{#useCustomTemplateCode}}
#### Using the `{{operationId}}_with_http_info` variant
+{{/useCustomTemplateCode}}
This returns an Array which contains the response data{{^returnType}} (`nil` in this case){{/returnType}}, status code and headers.
+{{^useCustomTemplateCode}}
+> {{/returnTypeIsPrimitive}}{{/returnType}}{{^returnType}}nil{{/returnType}}, Integer, Hash)> {{operationId}}_with_http_info{{#hasParams}}({{^vendorExtensions.x-group-parameters}}{{#requiredParams}}{{{paramName}}}{{^-last}}, {{/-last}}{{/requiredParams}}{{#optionalParams}}{{#-last}}{{#hasRequiredParams}}, {{/hasRequiredParams}}opts{{/-last}}{{/optionalParams}}{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-group-parameters}}opts{{/vendorExtensions.x-group-parameters}}){{/hasParams}}
+{{/useCustomTemplateCode}}
+{{#useCustomTemplateCode}}
> `{{/returnTypeIsPrimitive}}{{/returnType}}{{^returnType}}nil{{/returnType}}, Integer, Hash)> {{operationId}}_with_http_info{{#hasParams}}({{#requiredParams}}{{{paramName}}}{{^-last}}, {{/-last}}{{/requiredParams}}{{#optionalParams}}{{#-last}}{{#hasRequiredParams}}, {{/hasRequiredParams}}opts{{/-last}}{{/optionalParams}}){{/hasParams}}`
+{{/useCustomTemplateCode}}
```ruby
begin
@@ -57,7 +139,12 @@ This endpoint does not need any parameter.
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
{{/-first}}
+{{^useCustomTemplateCode}}
+| **{{paramName}}** | {{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}{{^isPrimitiveType}}{{#isFile}}**{{dataType}}**{{/isFile}}{{^isFile}}[**{{dataType}}**]({{baseType}}.md){{/isFile}}{{/isPrimitiveType}} | {{description}} | {{^required}}[optional]{{/required}}{{#defaultValue}}[default to {{.}}]{{/defaultValue}} |
+{{/useCustomTemplateCode}}
+{{#useCustomTemplateCode}}
| `{{paramName}}` | {{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}{{^isPrimitiveType}}{{#isFile}}**{{dataType}}**{{/isFile}}{{^isFile}}[**{{dataType}}**]({{baseType}}.md){{/isFile}}{{/isPrimitiveType}} | {{description}} | {{^required}}[optional]{{/required}}{{#defaultValue}}[default to {{.}}]{{/defaultValue}} |
+{{/useCustomTemplateCode}}
{{/allParams}}
### Return type
diff --git a/templates/api_error.mustache b/templates/api_error.mustache
index ef2e6df..5e7e053 100644
--- a/templates/api_error.mustache
+++ b/templates/api_error.mustache
@@ -2,12 +2,22 @@
{{> api_info}}
=end
+{{#useCustomTemplateCode}}
module Dropbox
end
+{{/useCustomTemplateCode}}
module {{moduleName}}
class ApiError < StandardError
+{{^useCustomTemplateCode}}
attr_reader :code, :response_headers, :response_body
+{{/useCustomTemplateCode}}
+{{#useCustomTemplateCode}}
+ attr_reader :code, :response_headers
+
+ # @return [ErrorResponse]
+ attr_accessor :response_body
+{{/useCustomTemplateCode}}
# Usage examples:
# ApiError.new
diff --git a/templates/base_object.mustache b/templates/base_object.mustache
index 03ea141..773f801 100644
--- a/templates/base_object.mustache
+++ b/templates/base_object.mustache
@@ -1,6 +1,31 @@
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself
+{{^useCustomTemplateCode}}
+ def self.build_from_hash(attributes)
+ return nil unless attributes.is_a?(Hash)
+ {{#parent}}
+ super(attributes)
+ {{/parent}}
+ attributes = attributes.transform_keys(&:to_sym)
+ transformed_hash = {}
+ openapi_types.each_pair do |key, type|
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
+ transformed_hash["#{key}"] = nil
+ elsif type =~ /\AArray<(.*)>/i
+ # check to ensure the input is an array given that the attribute
+ # is documented as an array but the input is not
+ if attributes[attribute_map[key]].is_a?(Array)
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
+ end
+ elsif !attributes[attribute_map[key]].nil?
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
+ end
+ end
+ new(transformed_hash)
+ end
+{{/useCustomTemplateCode}}
+{{#useCustomTemplateCode}}
def self.build_from_hash(attributes)
{{#discriminator}}
if !attributes[self.openapi_discriminator_name].nil?
@@ -38,12 +63,18 @@
self
end
+{{/useCustomTemplateCode}}
# Deserializes the data based on type
# @param string type Data type
# @param string value Value to be deserialized
# @return [Object] Deserialized data
+{{^useCustomTemplateCode}}
+ def self._deserialize(type, value)
+{{/useCustomTemplateCode}}
+{{#useCustomTemplateCode}}
def _deserialize(type, value)
+{{/useCustomTemplateCode}}
case type.to_sym
when :Time
Time.parse(value)
@@ -76,7 +107,9 @@
end
end
else # model
- # models (e.g. Pet)
+{{^useCustomTemplateCode}}
+ # models (e.g. Pet) or oneOf
+{{/useCustomTemplateCode}}
klass = {{moduleName}}.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
@@ -96,17 +129,37 @@
# Returns the object in the form of hash
# @return [Hash] Returns the object in the form of hash
+{{^useCustomTemplateCode}}
+ def to_hash
+{{/useCustomTemplateCode}}
+{{#useCustomTemplateCode}}
def to_hash(include_nil = true)
+{{/useCustomTemplateCode}}
hash = {{^parent}}{}{{/parent}}{{#parent}}super{{/parent}}
+{{^useCustomTemplateCode}}
+ self.class.attribute_map.each_pair do |attr, param|
+{{/useCustomTemplateCode}}
+{{#useCustomTemplateCode}}
self.class.merged_attributes.each_pair do |attr, param|
+{{/useCustomTemplateCode}}
value = self.send(attr)
if value.nil?
+{{^useCustomTemplateCode}}
+ is_nullable = self.class.openapi_nullable.include?(attr)
+{{/useCustomTemplateCode}}
+{{#useCustomTemplateCode}}
next unless include_nil
is_nullable = self.class.merged_nullable.include?(attr)
+{{/useCustomTemplateCode}}
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
end
+{{^useCustomTemplateCode}}
+ hash[param] = _to_hash(value)
+{{/useCustomTemplateCode}}
+{{#useCustomTemplateCode}}
hash[param] = _to_hash(value, include_nil)
+{{/useCustomTemplateCode}}
end
hash
end
@@ -115,15 +168,35 @@
# For object, use to_hash. Otherwise, just return the value
# @param [Object] value Any valid value
# @return [Hash] Returns the value in the form of hash
+{{^useCustomTemplateCode}}
+ def _to_hash(value)
+{{/useCustomTemplateCode}}
+{{#useCustomTemplateCode}}
def _to_hash(value, include_nil = true)
+{{/useCustomTemplateCode}}
if value.is_a?(Array)
+{{^useCustomTemplateCode}}
+ value.compact.map { |v| _to_hash(v) }
+{{/useCustomTemplateCode}}
+{{#useCustomTemplateCode}}
value.compact.map { |v| _to_hash(v, include_nil) }
+{{/useCustomTemplateCode}}
elsif value.is_a?(Hash)
{}.tap do |hash|
+{{^useCustomTemplateCode}}
+ value.each { |k, v| hash[k] = _to_hash(v) }
+{{/useCustomTemplateCode}}
+{{#useCustomTemplateCode}}
value.each { |k, v| hash[k] = _to_hash(v, include_nil) }
+{{/useCustomTemplateCode}}
end
elsif value.respond_to? :to_hash
+{{^useCustomTemplateCode}}
+ value.to_hash
+{{/useCustomTemplateCode}}
+{{#useCustomTemplateCode}}
value.to_hash(include_nil)
+{{/useCustomTemplateCode}}
else
value
end
diff --git a/templates/configuration.mustache b/templates/configuration.mustache
index 7a32362..3127903 100644
--- a/templates/configuration.mustache
+++ b/templates/configuration.mustache
@@ -2,9 +2,11 @@
{{> api_info}}
=end
+{{#useCustomTemplateCode}}
module Dropbox
end
+{{/useCustomTemplateCode}}
module {{moduleName}}
class Configuration
# Defines url scheme
@@ -225,6 +227,55 @@ module {{moduleName}}
end
# Returns Auth Settings hash for api client.
+{{^useCustomTemplateCode}}
+ def auth_settings
+ {
+{{#authMethods}}
+{{#isApiKey}}
+ '{{name}}' =>
+ {
+ type: 'api_key',
+ in: {{#isKeyInHeader}}'header'{{/isKeyInHeader}}{{#isKeyInQuery}}'query'{{/isKeyInQuery}},
+ key: '{{keyParamName}}',
+ value: api_key_with_prefix('{{name}}'{{#vendorExtensions.x-auth-id-alias}}, '{{.}}'{{/vendorExtensions.x-auth-id-alias}})
+ },
+{{/isApiKey}}
+{{#isBasic}}
+{{#isBasicBasic}}
+ '{{name}}' =>
+ {
+ type: 'basic',
+ in: 'header',
+ key: 'Authorization',
+ value: basic_auth_token
+ },
+{{/isBasicBasic}}
+{{#isBasicBearer}}
+ '{{name}}' =>
+ {
+ type: 'bearer',
+ in: 'header',
+ {{#bearerFormat}}
+ format: '{{{.}}}',
+ {{/bearerFormat}}
+ key: 'Authorization',
+ value: "Bearer #{access_token_with_refresh}"
+ },
+{{/isBasicBearer}}
+{{/isBasic}}
+{{#isOAuth}}
+ '{{name}}' =>
+ {
+ type: 'oauth2',
+ in: 'header',
+ key: 'Authorization',
+ value: "Bearer #{access_token_with_refresh}"
+ },
+{{/isOAuth}}
+{{/authMethods}}
+ }
+{{/useCustomTemplateCode}}
+{{#useCustomTemplateCode}}
def auth_settings()
result = {}
{{#authMethods}}
@@ -255,6 +306,7 @@ module {{moduleName}}
{{/isBasic}}
{{/authMethods}}
return result
+{{/useCustomTemplateCode}}
end
# Returns an array of Server setting
@@ -262,7 +314,12 @@ module {{moduleName}}
[
{{#servers}}
{
+{{^useCustomTemplateCode}}
+ url: "{{{url}}}",
+{{/useCustomTemplateCode}}
+{{#useCustomTemplateCode}}
url: "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, ''),
+{{/useCustomTemplateCode}}
description: "{{{description}}}{{^description}}No description provided{{/description}}",
{{#variables}}
{{#-first}}
diff --git a/templates/configuration_spec.mustache b/templates/configuration_spec.mustache
deleted file mode 100644
index 8c29839..0000000
--- a/templates/configuration_spec.mustache
+++ /dev/null
@@ -1,32 +0,0 @@
-=begin
-{{> api_info}}
-=end
-
-require 'spec_helper'
-
-describe {{moduleName}}::Configuration do
- let(:config) { {{moduleName}}::Configuration.default }
-
- before(:each) do
- # uncomment below to setup host and base_path
- {{moduleName}}.configure do |c|
- c.host = "{{host}}"
- c.base_path = "{{contextPath}}"
- end
- end
-
- describe '#base_url' do
- it 'should have the default value' do
- # uncomment below to test default value of the base path
- expect(config.base_url).to eq("{{{basePath}}}")
- end
-
- it 'should remove trailing slashes' do
- [nil, '', '/', '//'].each do |base_path|
- config.base_path = base_path
- # uncomment below to test trailing slashes
- # expect(config.base_url).to eq("{{{basePath}}}")
- end
- end
- end
-end
diff --git a/templates/configuration_tls_faraday_partial.mustache b/templates/configuration_tls_faraday_partial.mustache
deleted file mode 100644
index e5f4085..0000000
--- a/templates/configuration_tls_faraday_partial.mustache
+++ /dev/null
@@ -1,29 +0,0 @@
- ### TLS/SSL setting
- # Set this to false to skip verifying SSL certificate when calling API from https server.
- # Default to true.
- #
- # @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks.
- #
- # @return [true, false]
- attr_accessor :ssl_verify
-
- ### TLS/SSL setting
- # Any `OpenSSL::SSL::` constant (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL.html)
- #
- # @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks.
- #
- attr_accessor :ssl_verify_mode
-
- ### TLS/SSL setting
- # Set this to customize the certificate file to verify the peer.
- #
- # @return [String] the path to the certificate file
- attr_accessor :ssl_ca_file
-
- ### TLS/SSL setting
- # Client certificate file (for client certificate)
- attr_accessor :ssl_client_cert
-
- ### TLS/SSL setting
- # Client private key file (for client certificate)
- attr_accessor :ssl_client_key
diff --git a/templates/configuration_tls_typhoeus_partial.mustache b/templates/configuration_tls_typhoeus_partial.mustache
deleted file mode 100644
index b75954c..0000000
--- a/templates/configuration_tls_typhoeus_partial.mustache
+++ /dev/null
@@ -1,34 +0,0 @@
- ### TLS/SSL setting
- # Set this to false to skip verifying SSL certificate when calling API from https server.
- # Default to true.
- #
- # @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks.
- #
- # @return [true, false]
- attr_accessor :verify_ssl
-
- ### TLS/SSL setting
- # Set this to false to skip verifying SSL host name
- # Default to true.
- #
- # @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks.
- #
- # @return [true, false]
- attr_accessor :verify_ssl_host
-
- ### TLS/SSL setting
- # Set this to customize the certificate file to verify the peer.
- #
- # @return [String] the path to the certificate file
- #
- # @see The `cainfo` option of Typhoeus, `--cert` option of libcurl. Related source code:
- # https://github.com/typhoeus/typhoeus/blob/master/lib/typhoeus/easy_factory.rb#L145
- attr_accessor :ssl_ca_cert
-
- ### TLS/SSL setting
- # Client certificate file (for client certificate)
- attr_accessor :cert_file
-
- ### TLS/SSL setting
- # Client private key file (for client certificate)
- attr_accessor :key_file
diff --git a/templates/gem.mustache b/templates/gem.mustache
index 9b5e313..a49c2aa 100644
--- a/templates/gem.mustache
+++ b/templates/gem.mustache
@@ -45,11 +45,13 @@ require '{{importPath}}'
{{/apis}}
{{/apiInfo}}
+{{#useCustomTemplateCode}}
require '{{gemName}}/event_callback_helper'
module Dropbox
end
+{{/useCustomTemplateCode}}
module {{moduleName}}
class << self
# Customize default settings for the SDK using block.
diff --git a/templates/gitignore.mustache b/templates/gitignore.mustache
index 94d3121..a97a94f 100644
--- a/templates/gitignore.mustache
+++ b/templates/gitignore.mustache
@@ -38,4 +38,6 @@ build/
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc
-vendor
\ No newline at end of file
+{{#useCustomTemplateCode}}
+vendor
+{{/useCustomTemplateCode}}
diff --git a/templates/gitlab-ci.mustache b/templates/gitlab-ci.mustache
new file mode 100644
index 0000000..3a253c4
--- /dev/null
+++ b/templates/gitlab-ci.mustache
@@ -0,0 +1,26 @@
+.ruby: &ruby
+ variables:
+ LANG: "C.UTF-8"
+ before_script:
+ - ruby -v
+ - bundle config set --local deployment true
+ - bundle install -j $(nproc)
+ parallel:
+ matrix:
+ - RUBY_VERSION: ['2.7', '3.0', '3.1']
+ image: "ruby:$RUBY_VERSION"
+ cache:
+ paths:
+ - vendor/ruby
+ key: 'ruby-$RUBY_VERSION'
+
+gem:
+ extends: .ruby
+ script:
+ - bundle exec rspec
+ - bundle exec rake build
+ - bundle exec rake install
+ artifacts:
+ paths:
+ - pkg/*.gem
+
diff --git a/templates/model.mustache b/templates/model.mustache
index c099cc6..651e992 100644
--- a/templates/model.mustache
+++ b/templates/model.mustache
@@ -5,9 +5,11 @@
require 'date'
require 'time'
+{{#useCustomTemplateCode}}
module Dropbox
end
+{{/useCustomTemplateCode}}
module {{moduleName}}
{{#models}}
{{#model}}
@@ -20,8 +22,22 @@ module {{moduleName}}
{{>partial_oneof_module}}
{{/-first}}
{{/oneOf}}
+{{^useCustomTemplateCode}}
+{{#anyOf}}
+{{#-first}}
+{{>partial_anyof_module}}
+{{/-first}}
+{{/anyOf}}
+{{/useCustomTemplateCode}}
{{^oneOf}}
+{{^useCustomTemplateCode}}
+{{^anyOf}}
+{{>partial_model_generic}}
+{{/anyOf}}
+{{/useCustomTemplateCode}}
+{{#useCustomTemplateCode}}
{{>partial_model_generic}}
+{{/useCustomTemplateCode}}
{{/oneOf}}
{{/isEnum}}
{{/model}}
diff --git a/templates/model_test.mustache b/templates/model_test.mustache
index b6b078d..24f3a58 100644
--- a/templates/model_test.mustache
+++ b/templates/model_test.mustache
@@ -13,13 +13,16 @@ require 'date'
{{#model}}
describe {{moduleName}}::{{classname}} do
{{^oneOf}}
+{{^anyOf}}
let(:instance) { {{moduleName}}::{{classname}}.new }
describe 'test an instance of {{classname}}' do
it 'should create an instance of {{classname}}' do
- expect(instance).to be_instance_of({{moduleName}}::{{classname}})
+ # uncomment below to test the instance creation
+ #expect(instance).to be_instance_of({{moduleName}}::{{classname}})
end
end
+
{{#vars}}
describe 'test attribute "{{{name}}}"' do
it 'should work' do
@@ -37,6 +40,7 @@ describe {{moduleName}}::{{classname}} do
end
{{/vars}}
+{{/anyOf}}
{{/oneOf}}
{{#oneOf}}
{{#-first}}
diff --git a/templates/partial_anyof_module.mustache b/templates/partial_anyof_module.mustache
new file mode 100644
index 0000000..a7e571e
--- /dev/null
+++ b/templates/partial_anyof_module.mustache
@@ -0,0 +1,96 @@
+{{^useCustomTemplateCode}}
+ {{#description}}
+ # {{{.}}}
+ {{/description}}
+ module {{classname}}
+ class << self
+ {{#anyOf}}
+ {{#-first}}
+ # List of class defined in anyOf (OpenAPI v3)
+ def openapi_any_of
+ [
+ {{/-first}}
+ :'{{{.}}}'{{^-last}},{{/-last}}
+ {{#-last}}
+ ]
+ end
+
+ {{/-last}}
+ {{/anyOf}}
+ # Builds the object
+ # @param [Mixed] Data to be matched against the list of anyOf items
+ # @return [Object] Returns the model or the data itself
+ def build(data)
+ # Go through the list of anyOf items and attempt to identify the appropriate one.
+ # Note:
+ # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 })
+ # due to the way the deserialization is made in the base_object template (it just casts without verifying).
+ # - TODO: scalar values are de facto behaving as if they were nullable.
+ # - TODO: logging when debugging is set.
+ openapi_any_of.each do |klass|
+ begin
+ next if klass == :AnyType # "nullable: true"
+ typed_data = find_and_cast_into_type(klass, data)
+ return typed_data if typed_data
+ rescue # rescue all errors so we keep iterating even if the current item lookup raises
+ end
+ end
+
+ openapi_any_of.include?(:AnyType) ? data : nil
+ end
+
+ private
+
+ SchemaMismatchError = Class.new(StandardError)
+
+ # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse.
+ def find_and_cast_into_type(klass, data)
+ return if data.nil?
+
+ case klass.to_s
+ when 'Boolean'
+ return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass)
+ when 'Float'
+ return data if data.instance_of?(Float)
+ when 'Integer'
+ return data if data.instance_of?(Integer)
+ when 'Time'
+ return Time.parse(data)
+ when 'Date'
+ return Date.parse(data)
+ when 'String'
+ return data if data.instance_of?(String)
+ when 'Object' # "type: object"
+ return data if data.instance_of?(Hash)
+ when /\AArray<(?.+)>\z/ # "type: array"
+ if data.instance_of?(Array)
+ sub_type = Regexp.last_match[:sub_type]
+ return data.map { |item| find_and_cast_into_type(sub_type, item) }
+ end
+ when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }"
+ if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) }
+ sub_type = Regexp.last_match[:sub_type]
+ return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) }
+ end
+ else # model
+ const = {{moduleName}}.const_get(klass)
+ if const
+ if const.respond_to?(:openapi_any_of) # nested anyOf model
+ model = const.build(data)
+ return model if model
+ else
+ # raise if data contains keys that are not known to the model
+ raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty?
+ model = const.build_from_hash(data)
+ return model if model
+ end
+ end
+ end
+
+ raise # if no match by now, raise
+ rescue
+ raise SchemaMismatchError, "#{data} doesn't match the #{klass} type"
+ end
+ end
+ end
+{{/useCustomTemplateCode}}
diff --git a/templates/partial_model_enum_class.mustache b/templates/partial_model_enum_class.mustache
index 3880ae8..d2ddbff 100644
--- a/templates/partial_model_enum_class.mustache
+++ b/templates/partial_model_enum_class.mustache
@@ -20,4 +20,4 @@
return value if {{classname}}.all_vars.include?(value)
raise "Invalid ENUM value #{value} for class #{{{classname}}}"
end
- end
+ end
\ No newline at end of file
diff --git a/templates/partial_model_generic.mustache b/templates/partial_model_generic.mustache
index 497a3d3..4d9c5a8 100644
--- a/templates/partial_model_generic.mustache
+++ b/templates/partial_model_generic.mustache
@@ -6,7 +6,9 @@
{{#description}}
# {{{.}}}
{{/description}}
+{{#useCustomTemplateCode}}
# @return [{{#vendorExtensions.x-int-or-string}}Integer, String{{/vendorExtensions.x-int-or-string}}{{^vendorExtensions.x-int-or-string}}{{{dataType}}}{{/vendorExtensions.x-int-or-string}}{{#isNullable}}, nil{{/isNullable}}]
+{{/useCustomTemplateCode}}
attr_accessor :{{{name}}}
{{/vars}}
@@ -53,16 +55,6 @@
{{/parent}}
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- {{#parent}}
- self.superclass.attribute_map.merge(self.attribute_map)
- {{/parent}}
- {{^parent}}
- self.attribute_map
- {{/parent}}
- end
-
# Attribute type mapping.
def self.openapi_types
{
@@ -72,16 +64,6 @@
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- {{#parent}}
- self.superclass.openapi_types.merge(self.openapi_types)
- {{/parent}}
- {{^parent}}
- self.openapi_types
- {{/parent}}
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
@@ -93,6 +75,27 @@
])
end
+{{#useCustomTemplateCode}}
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ {{#parent}}
+ self.superclass.attribute_map.merge(self.attribute_map)
+ {{/parent}}
+ {{^parent}}
+ self.attribute_map
+ {{/parent}}
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ {{#parent}}
+ self.superclass.openapi_types.merge(self.openapi_types)
+ {{/parent}}
+ {{^parent}}
+ self.openapi_types
+ {{/parent}}
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
{{#parent}}
@@ -103,6 +106,7 @@
{{/parent}}
end
+{{/useCustomTemplateCode}}
{{#anyOf}}
{{#-first}}
# List of class defined in anyOf (OpenAPI v3)
@@ -116,6 +120,21 @@
{{/-last}}
{{/anyOf}}
+{{^useCustomTemplateCode}}
+ {{#allOf}}
+ {{#-first}}
+ # List of class defined in allOf (OpenAPI v3)
+ def self.openapi_all_of
+ [
+ {{/-first}}
+ :'{{{.}}}'{{^-last}},{{/-last}}
+ {{#-last}}
+ ]
+ end
+
+ {{/-last}}
+ {{/allOf}}
+{{/useCustomTemplateCode}}
{{#discriminator}}
{{#propertyName}}
# discriminator's property name in OpenAPI v3
@@ -123,6 +142,7 @@
:'{{{.}}}'
end
+{{#useCustomTemplateCode}}
{{#discriminator}}
def self.discriminator_class_name(value)
return nil unless value.is_a?(String)
@@ -137,8 +157,10 @@
end
{{/discriminator}}
+{{/useCustomTemplateCode}}
{{/propertyName}}
{{/discriminator}}
+{{#useCustomTemplateCode}}
{{^discriminator}}
# Attempt to instantiate and hydrate a new instance of this class
# @param [Object] data Data to be converted
@@ -151,6 +173,7 @@
end
{{/discriminator}}
+{{/useCustomTemplateCode}}
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
def initialize(attributes = {})
@@ -160,7 +183,12 @@
# check to see if the attribute exists and convert string to symbol for hash key
attributes = attributes.each_with_object({}) { |(k, v), h|
+{{^useCustomTemplateCode}}
+ if (!self.class.attribute_map.key?(k.to_sym))
+{{/useCustomTemplateCode}}
+{{#useCustomTemplateCode}}
if (!self.class.merged_attributes.key?(k.to_sym))
+{{/useCustomTemplateCode}}
fail ArgumentError, "`#{k}` is not a valid attribute in `{{{moduleName}}}::{{{classname}}}`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
end
h[k.to_sym] = v
@@ -190,6 +218,14 @@
else
self.{{{name}}} = {{{defaultValue}}}
{{/defaultValue}}
+{{^useCustomTemplateCode}}
+ {{^defaultValue}}
+ {{#required}}
+ else
+ self.{{{name}}} = nil
+ {{/required}}
+ {{/defaultValue}}
+{{/useCustomTemplateCode}}
end
{{/vars}}
end
@@ -197,6 +233,9 @@
# Show invalid properties with the reasons. Usually used together with valid?
# @return Array for valid properties with the reasons
def list_invalid_properties
+{{^useCustomTemplateCode}}
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
+{{/useCustomTemplateCode}}
invalid_properties = {{^parent}}Array.new{{/parent}}{{#parent}}super{{/parent}}
{{#vars}}
{{^isNullable}}
@@ -259,6 +298,9 @@
# Check to see if the all the properties in the model are valid
# @return true if the model is valid
def valid?
+{{^useCustomTemplateCode}}
+ warn '[DEPRECATED] the `valid?` method is obsolete'
+{{/useCustomTemplateCode}}
{{#vars}}
{{^isNullable}}
{{#required}}
@@ -335,12 +377,19 @@
# @param [Object] {{{name}}} Value to be assigned
def {{{name}}}=({{{name}}})
{{^isNullable}}
- {{#required}}
+{{^useCustomTemplateCode}}
if {{{name}}}.nil?
fail ArgumentError, '{{{name}}} cannot be nil'
end
+{{/useCustomTemplateCode}}
+{{#useCustomTemplateCode}}
+ {{#required}}
+ if {{{name}}}.nil?
+ fail ArgumentError, '{{{name}}} cannot be nil'
+ end
{{/required}}
+{{/useCustomTemplateCode}}
{{/isNullable}}
{{#maxLength}}
if {{#isNullable}}!{{{name}}}.nil? && {{/isNullable}}{{{name}}}.to_s.length > {{{maxLength}}}
diff --git a/templates/partial_model_generic_doc.mustache b/templates/partial_model_generic_doc.mustache
index 336185b..87fd73a 100644
--- a/templates/partial_model_generic_doc.mustache
+++ b/templates/partial_model_generic_doc.mustache
@@ -1,10 +1,38 @@
# {{moduleName}}::{{classname}}
+{{#useCustomTemplateCode}}
{{unescapedDescription}}
+{{/useCustomTemplateCode}}
## Properties
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
+{{^useCustomTemplateCode}}
+{{#vars}}
+| **{{name}}** | {{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}{{^isPrimitiveType}}[**{{dataType}}**]({{complexType}}.md){{/isPrimitiveType}} | {{description}} | {{^required}}[optional]{{/required}}{{#isReadOnly}}[readonly]{{/isReadOnly}}{{#defaultValue}}[default to {{.}}]{{/defaultValue}} |
+{{/vars}}
+
+## Example
+
+```ruby
+require '{{{gemName}}}'
+
+{{^vars}}
+instance = {{moduleName}}::{{classname}}.new()
+{{/vars}}
+{{#vars}}
+{{#-first}}
+instance = {{moduleName}}::{{classname}}.new(
+{{/-first}}
+ {{name}}: {{example}}{{^-last}},{{/-last}}
+{{#-last}}
+)
+{{/-last}}
+{{/vars}}
+```
+{{/useCustomTemplateCode}}
+{{#useCustomTemplateCode}}
{{#vars}}| `{{name}}`{{#required}}*_required_{{/required}} | {{#isPrimitiveType}}```{{{dataType}}}```{{/isPrimitiveType}}{{^isPrimitiveType}}[```{{{dataType}}}```]({{complexType}}.md){{/isPrimitiveType}} | REPLACE_ME_WITH_DESCRIPTION_BEGIN {{unescapedDescription}} REPLACE_ME_WITH_DESCRIPTION_END | {{#isReadOnly}} [readonly]{{/isReadOnly}}{{#defaultValue}} [default to {{{.}}}]{{/defaultValue}} |
{{/vars}}
+{{/useCustomTemplateCode}}
diff --git a/templates/version.mustache b/templates/version.mustache
index 41eff12..f495a0c 100644
--- a/templates/version.mustache
+++ b/templates/version.mustache
@@ -2,9 +2,11 @@
{{> api_info}}
=end
+{{#useCustomTemplateCode}}
module Dropbox
end
+{{/useCustomTemplateCode}}
module {{moduleName}}
VERSION = '{{gemVersion}}'
end