diff --git a/openapi-raw.yaml b/openapi-raw.yaml
index 302eb4482..d51eb36bc 100644
--- a/openapi-raw.yaml
+++ b/openapi-raw.yaml
@@ -8671,7 +8671,7 @@ components:
properties:
header_background_color:
type: string
- default: '#1A1A1A'
+ default: '#1a1a1a'
legal_version:
type: string
default: terms1
@@ -8680,40 +8680,40 @@ components:
- terms2
link_color:
type: string
- default: '#00B3E6'
+ default: '#0061FE'
page_background_color:
type: string
- default: '#F7F8F9'
+ default: '#f7f8f9'
primary_button_color:
type: string
- default: '#00B3E6'
+ default: '#0061FE'
primary_button_color_hover:
type: string
- default: '#00B3E6'
+ default: '#0061FE'
primary_button_text_color:
type: string
- default: '#FFFFFF'
+ default: '#ffffff'
primary_button_text_color_hover:
type: string
- default: '#FFFFFF'
+ default: '#ffffff'
secondary_button_color:
type: string
- default: '#FFFFFF'
+ default: '#ffffff'
secondary_button_color_hover:
type: string
- default: '#FFFFFF'
+ default: '#ffffff'
secondary_button_text_color:
type: string
- default: '#00B3E6'
+ default: '#0061FE'
secondary_button_text_color_hover:
type: string
- default: '#00B3E6'
+ default: '#0061FE'
text_color1:
type: string
default: '#808080'
text_color2:
type: string
- default: '#FFFFFF'
+ default: '#ffffff'
reset_to_default:
description: '_t__Sub::WhiteLabelingOptions::RESET_TO_DEFAULT'
type: boolean
@@ -9807,6 +9807,14 @@ components:
x-internal-class: true
ApiAppResponse:
description: '_t__ApiAppResponse::DESCRIPTION'
+ required:
+ - client_id
+ - created_at
+ - domains
+ - is_approved
+ - name
+ - options
+ - owner_account
properties:
callback_url:
description: '_t__ApiAppResponse::CALLBACK_URL'
@@ -9841,6 +9849,10 @@ components:
x-internal-class: true
ApiAppResponseOAuth:
description: '_t__ApiAppResponseOAuth::DESCRIPTION'
+ required:
+ - callback_url
+ - charges_users
+ - scopes
properties:
callback_url:
description: '_t__ApiAppResponseOAuth::CALLBACK_URL'
@@ -9848,6 +9860,7 @@ components:
secret:
description: '_t__ApiAppResponseOAuth::SECRET'
type: string
+ nullable: true
scopes:
description: '_t__ApiAppResponseOAuth::SCOPES'
type: array
@@ -9861,15 +9874,19 @@ components:
x-internal-class: true
ApiAppResponseOptions:
description: '_t__ApiAppResponseOptions::DESCRIPTION'
+ required:
+ - can_insert_everywhere
properties:
can_insert_everywhere:
description: '_t__ApiAppResponseOptions::CAN_INSERT_EVERYWHERE'
type: boolean
type: object
- nullable: true
x-internal-class: true
ApiAppResponseOwnerAccount:
description: '_t__ApiAppResponseOwnerAccount::DESCRIPTION'
+ required:
+ - account_id
+ - email_address
properties:
account_id:
description: '_t__ApiAppResponseOwnerAccount::ACCOUNT_ID'
@@ -9881,6 +9898,21 @@ components:
x-internal-class: true
ApiAppResponseWhiteLabelingOptions:
description: '_t__ApiAppResponseWhiteLabelingOptions::DESCRIPTION'
+ required:
+ - header_background_color
+ - legal_version
+ - link_color
+ - page_background_color
+ - primary_button_color
+ - primary_button_color_hover
+ - primary_button_text_color
+ - primary_button_text_color_hover
+ - secondary_button_color
+ - secondary_button_color_hover
+ - secondary_button_text_color
+ - secondary_button_text_color_hover
+ - text_color1
+ - text_color2
properties:
header_background_color:
type: string
diff --git a/openapi-sdk.yaml b/openapi-sdk.yaml
index 592a587f1..c25a3f270 100644
--- a/openapi-sdk.yaml
+++ b/openapi-sdk.yaml
@@ -9091,7 +9091,7 @@ components:
properties:
header_background_color:
type: string
- default: '#1A1A1A'
+ default: '#1a1a1a'
legal_version:
type: string
default: terms1
@@ -9100,40 +9100,40 @@ components:
- terms2
link_color:
type: string
- default: '#00B3E6'
+ default: '#0061FE'
page_background_color:
type: string
- default: '#F7F8F9'
+ default: '#f7f8f9'
primary_button_color:
type: string
- default: '#00B3E6'
+ default: '#0061FE'
primary_button_color_hover:
type: string
- default: '#00B3E6'
+ default: '#0061FE'
primary_button_text_color:
type: string
- default: '#FFFFFF'
+ default: '#ffffff'
primary_button_text_color_hover:
type: string
- default: '#FFFFFF'
+ default: '#ffffff'
secondary_button_color:
type: string
- default: '#FFFFFF'
+ default: '#ffffff'
secondary_button_color_hover:
type: string
- default: '#FFFFFF'
+ default: '#ffffff'
secondary_button_text_color:
type: string
- default: '#00B3E6'
+ default: '#0061FE'
secondary_button_text_color_hover:
type: string
- default: '#00B3E6'
+ default: '#0061FE'
text_color1:
type: string
default: '#808080'
text_color2:
type: string
- default: '#FFFFFF'
+ default: '#ffffff'
reset_to_default:
description: 'Resets white labeling options to defaults. Only useful when updating an API App.'
type: boolean
@@ -10415,6 +10415,14 @@ components:
x-internal-class: true
ApiAppResponse:
description: 'Contains information about an API App.'
+ required:
+ - client_id
+ - created_at
+ - domains
+ - is_approved
+ - name
+ - options
+ - owner_account
properties:
callback_url:
description: 'The app''s callback URL (for events)'
@@ -10449,6 +10457,10 @@ components:
x-internal-class: true
ApiAppResponseOAuth:
description: 'An object describing the app''s OAuth properties, or null if OAuth is not configured for the app.'
+ required:
+ - callback_url
+ - charges_users
+ - scopes
properties:
callback_url:
description: 'The app''s OAuth callback URL.'
@@ -10456,6 +10468,7 @@ components:
secret:
description: 'The app''s OAuth secret, or null if the app does not belong to user.'
type: string
+ nullable: true
scopes:
description: 'Array of OAuth scopes used by the app.'
type: array
@@ -10469,15 +10482,19 @@ components:
x-internal-class: true
ApiAppResponseOptions:
description: 'An object with options that override account settings.'
+ required:
+ - can_insert_everywhere
properties:
can_insert_everywhere:
description: 'Boolean denoting if signers can "Insert Everywhere" in one click while signing a document'
type: boolean
type: object
- nullable: true
x-internal-class: true
ApiAppResponseOwnerAccount:
description: 'An object describing the app''s owner'
+ required:
+ - account_id
+ - email_address
properties:
account_id:
description: 'The owner account''s ID'
@@ -10489,6 +10506,21 @@ components:
x-internal-class: true
ApiAppResponseWhiteLabelingOptions:
description: 'An object with options to customize the app''s signer page'
+ required:
+ - header_background_color
+ - legal_version
+ - link_color
+ - page_background_color
+ - primary_button_color
+ - primary_button_color_hover
+ - primary_button_text_color
+ - primary_button_text_color_hover
+ - secondary_button_color
+ - secondary_button_color_hover
+ - secondary_button_text_color
+ - secondary_button_text_color_hover
+ - text_color1
+ - text_color2
properties:
header_background_color:
type: string
diff --git a/openapi.yaml b/openapi.yaml
index d66309216..8b85acc42 100644
--- a/openapi.yaml
+++ b/openapi.yaml
@@ -9069,7 +9069,7 @@ components:
properties:
header_background_color:
type: string
- default: '#1A1A1A'
+ default: '#1a1a1a'
legal_version:
type: string
default: terms1
@@ -9078,40 +9078,40 @@ components:
- terms2
link_color:
type: string
- default: '#00B3E6'
+ default: '#0061FE'
page_background_color:
type: string
- default: '#F7F8F9'
+ default: '#f7f8f9'
primary_button_color:
type: string
- default: '#00B3E6'
+ default: '#0061FE'
primary_button_color_hover:
type: string
- default: '#00B3E6'
+ default: '#0061FE'
primary_button_text_color:
type: string
- default: '#FFFFFF'
+ default: '#ffffff'
primary_button_text_color_hover:
type: string
- default: '#FFFFFF'
+ default: '#ffffff'
secondary_button_color:
type: string
- default: '#FFFFFF'
+ default: '#ffffff'
secondary_button_color_hover:
type: string
- default: '#FFFFFF'
+ default: '#ffffff'
secondary_button_text_color:
type: string
- default: '#00B3E6'
+ default: '#0061FE'
secondary_button_text_color_hover:
type: string
- default: '#00B3E6'
+ default: '#0061FE'
text_color1:
type: string
default: '#808080'
text_color2:
type: string
- default: '#FFFFFF'
+ default: '#ffffff'
reset_to_default:
description: 'Resets white labeling options to defaults. Only useful when updating an API App.'
type: boolean
@@ -10393,6 +10393,14 @@ components:
x-internal-class: true
ApiAppResponse:
description: 'Contains information about an API App.'
+ required:
+ - client_id
+ - created_at
+ - domains
+ - is_approved
+ - name
+ - options
+ - owner_account
properties:
callback_url:
description: 'The app''s callback URL (for events)'
@@ -10427,6 +10435,10 @@ components:
x-internal-class: true
ApiAppResponseOAuth:
description: 'An object describing the app''s OAuth properties, or null if OAuth is not configured for the app.'
+ required:
+ - callback_url
+ - charges_users
+ - scopes
properties:
callback_url:
description: 'The app''s OAuth callback URL.'
@@ -10434,6 +10446,7 @@ components:
secret:
description: 'The app''s OAuth secret, or null if the app does not belong to user.'
type: string
+ nullable: true
scopes:
description: 'Array of OAuth scopes used by the app.'
type: array
@@ -10447,15 +10460,19 @@ components:
x-internal-class: true
ApiAppResponseOptions:
description: 'An object with options that override account settings.'
+ required:
+ - can_insert_everywhere
properties:
can_insert_everywhere:
description: 'Boolean denoting if signers can "Insert Everywhere" in one click while signing a document'
type: boolean
type: object
- nullable: true
x-internal-class: true
ApiAppResponseOwnerAccount:
description: 'An object describing the app''s owner'
+ required:
+ - account_id
+ - email_address
properties:
account_id:
description: 'The owner account''s ID'
@@ -10467,6 +10484,21 @@ components:
x-internal-class: true
ApiAppResponseWhiteLabelingOptions:
description: 'An object with options to customize the app''s signer page'
+ required:
+ - header_background_color
+ - legal_version
+ - link_color
+ - page_background_color
+ - primary_button_color
+ - primary_button_color_hover
+ - primary_button_text_color
+ - primary_button_text_color_hover
+ - secondary_button_color
+ - secondary_button_color_hover
+ - secondary_button_text_color
+ - secondary_button_text_color_hover
+ - text_color1
+ - text_color2
properties:
header_background_color:
type: string
diff --git a/sdks/dotnet/docs/ApiAppResponse.md b/sdks/dotnet/docs/ApiAppResponse.md
index f27ff0659..e7b3c6e30 100644
--- a/sdks/dotnet/docs/ApiAppResponse.md
+++ b/sdks/dotnet/docs/ApiAppResponse.md
@@ -5,7 +5,7 @@ Contains information about an API App.
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**CallbackUrl** | **string** | The app's callback URL (for events) | [optional] **ClientId** | **string** | The app's client id | [optional] **CreatedAt** | **int** | The time that the app was created | [optional] **Domains** | **List<string>** | The domain name(s) associated with the app | [optional] **Name** | **string** | The name of the app | [optional] **IsApproved** | **bool** | Boolean to indicate if the app has been approved | [optional] **Oauth** | [**ApiAppResponseOAuth**](ApiAppResponseOAuth.md) | | [optional] **Options** | [**ApiAppResponseOptions**](ApiAppResponseOptions.md) | | [optional] **OwnerAccount** | [**ApiAppResponseOwnerAccount**](ApiAppResponseOwnerAccount.md) | | [optional] **WhiteLabelingOptions** | [**ApiAppResponseWhiteLabelingOptions**](ApiAppResponseWhiteLabelingOptions.md) | | [optional]
+**ClientId** | **string** | The app's client id | **CreatedAt** | **int** | The time that the app was created | **Domains** | **List<string>** | The domain name(s) associated with the app | **Name** | **string** | The name of the app | **IsApproved** | **bool** | Boolean to indicate if the app has been approved | **Options** | [**ApiAppResponseOptions**](ApiAppResponseOptions.md) | | **OwnerAccount** | [**ApiAppResponseOwnerAccount**](ApiAppResponseOwnerAccount.md) | | **CallbackUrl** | **string** | The app's callback URL (for events) | [optional] **Oauth** | [**ApiAppResponseOAuth**](ApiAppResponseOAuth.md) | | [optional] **WhiteLabelingOptions** | [**ApiAppResponseWhiteLabelingOptions**](ApiAppResponseWhiteLabelingOptions.md) | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/sdks/dotnet/docs/ApiAppResponseOAuth.md b/sdks/dotnet/docs/ApiAppResponseOAuth.md
index cffe8900f..69de8316d 100644
--- a/sdks/dotnet/docs/ApiAppResponseOAuth.md
+++ b/sdks/dotnet/docs/ApiAppResponseOAuth.md
@@ -5,7 +5,7 @@ An object describing the app's OAuth properties, or null if OAuth is not configu
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**CallbackUrl** | **string** | The app's OAuth callback URL. | [optional] **Secret** | **string** | The app's OAuth secret, or null if the app does not belong to user. | [optional] **Scopes** | **List<string>** | Array of OAuth scopes used by the app. | [optional] **ChargesUsers** | **bool** | Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests. | [optional]
+**CallbackUrl** | **string** | The app's OAuth callback URL. | **Scopes** | **List<string>** | Array of OAuth scopes used by the app. | **ChargesUsers** | **bool** | Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests. | **Secret** | **string** | The app's OAuth secret, or null if the app does not belong to user. | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/sdks/dotnet/docs/ApiAppResponseOptions.md b/sdks/dotnet/docs/ApiAppResponseOptions.md
index e484ad16b..97fdc5d08 100644
--- a/sdks/dotnet/docs/ApiAppResponseOptions.md
+++ b/sdks/dotnet/docs/ApiAppResponseOptions.md
@@ -5,7 +5,7 @@ An object with options that override account settings.
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**CanInsertEverywhere** | **bool** | Boolean denoting if signers can "Insert Everywhere" in one click while signing a document | [optional]
+**CanInsertEverywhere** | **bool** | Boolean denoting if signers can "Insert Everywhere" in one click while signing a document |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/sdks/dotnet/docs/ApiAppResponseOwnerAccount.md b/sdks/dotnet/docs/ApiAppResponseOwnerAccount.md
index eee4afc3e..fa9c19b3f 100644
--- a/sdks/dotnet/docs/ApiAppResponseOwnerAccount.md
+++ b/sdks/dotnet/docs/ApiAppResponseOwnerAccount.md
@@ -5,7 +5,7 @@ An object describing the app's owner
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**AccountId** | **string** | The owner account's ID | [optional] **EmailAddress** | **string** | The owner account's email address | [optional]
+**AccountId** | **string** | The owner account's ID | **EmailAddress** | **string** | The owner account's email address |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/sdks/dotnet/docs/ApiAppResponseWhiteLabelingOptions.md b/sdks/dotnet/docs/ApiAppResponseWhiteLabelingOptions.md
index 3f3eb34a3..0f3960188 100644
--- a/sdks/dotnet/docs/ApiAppResponseWhiteLabelingOptions.md
+++ b/sdks/dotnet/docs/ApiAppResponseWhiteLabelingOptions.md
@@ -5,7 +5,7 @@ An object with options to customize the app's signer page
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**HeaderBackgroundColor** | **string** | | [optional] **LegalVersion** | **string** | | [optional] **LinkColor** | **string** | | [optional] **PageBackgroundColor** | **string** | | [optional] **PrimaryButtonColor** | **string** | | [optional] **PrimaryButtonColorHover** | **string** | | [optional] **PrimaryButtonTextColor** | **string** | | [optional] **PrimaryButtonTextColorHover** | **string** | | [optional] **SecondaryButtonColor** | **string** | | [optional] **SecondaryButtonColorHover** | **string** | | [optional] **SecondaryButtonTextColor** | **string** | | [optional] **SecondaryButtonTextColorHover** | **string** | | [optional] **TextColor1** | **string** | | [optional] **TextColor2** | **string** | | [optional]
+**HeaderBackgroundColor** | **string** | | **LegalVersion** | **string** | | **LinkColor** | **string** | | **PageBackgroundColor** | **string** | | **PrimaryButtonColor** | **string** | | **PrimaryButtonColorHover** | **string** | | **PrimaryButtonTextColor** | **string** | | **PrimaryButtonTextColorHover** | **string** | | **SecondaryButtonColor** | **string** | | **SecondaryButtonColorHover** | **string** | | **SecondaryButtonTextColor** | **string** | | **SecondaryButtonTextColorHover** | **string** | | **TextColor1** | **string** | | **TextColor2** | **string** | |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/sdks/dotnet/docs/SubWhiteLabelingOptions.md b/sdks/dotnet/docs/SubWhiteLabelingOptions.md
index 930a345f5..1634a1afb 100644
--- a/sdks/dotnet/docs/SubWhiteLabelingOptions.md
+++ b/sdks/dotnet/docs/SubWhiteLabelingOptions.md
@@ -5,7 +5,7 @@ An array of elements and values serialized to a string, to be used to customize
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**HeaderBackgroundColor** | **string** | | [optional] [default to "#1A1A1A"]**LegalVersion** | **string** | | [optional] [default to LegalVersionEnum.Terms1]**LinkColor** | **string** | | [optional] [default to "#00B3E6"]**PageBackgroundColor** | **string** | | [optional] [default to "#F7F8F9"]**PrimaryButtonColor** | **string** | | [optional] [default to "#00B3E6"]**PrimaryButtonColorHover** | **string** | | [optional] [default to "#00B3E6"]**PrimaryButtonTextColor** | **string** | | [optional] [default to "#FFFFFF"]**PrimaryButtonTextColorHover** | **string** | | [optional] [default to "#FFFFFF"]**SecondaryButtonColor** | **string** | | [optional] [default to "#FFFFFF"]**SecondaryButtonColorHover** | **string** | | [optional] [default to "#FFFFFF"]**SecondaryButtonTextColor** | **string** | | [optional] [default to "#00B3E6"]**SecondaryButtonTextColorHover** | **string** | | [optional] [default to "#00B3E6"]**TextColor1** | **string** | | [optional] [default to "#808080"]**TextColor2** | **string** | | [optional] [default to "#FFFFFF"]**ResetToDefault** | **bool** | Resets white labeling options to defaults. Only useful when updating an API App. | [optional]
+**HeaderBackgroundColor** | **string** | | [optional] [default to "#1a1a1a"]**LegalVersion** | **string** | | [optional] [default to LegalVersionEnum.Terms1]**LinkColor** | **string** | | [optional] [default to "#0061FE"]**PageBackgroundColor** | **string** | | [optional] [default to "#f7f8f9"]**PrimaryButtonColor** | **string** | | [optional] [default to "#0061FE"]**PrimaryButtonColorHover** | **string** | | [optional] [default to "#0061FE"]**PrimaryButtonTextColor** | **string** | | [optional] [default to "#ffffff"]**PrimaryButtonTextColorHover** | **string** | | [optional] [default to "#ffffff"]**SecondaryButtonColor** | **string** | | [optional] [default to "#ffffff"]**SecondaryButtonColorHover** | **string** | | [optional] [default to "#ffffff"]**SecondaryButtonTextColor** | **string** | | [optional] [default to "#0061FE"]**SecondaryButtonTextColorHover** | **string** | | [optional] [default to "#0061FE"]**TextColor1** | **string** | | [optional] [default to "#808080"]**TextColor2** | **string** | | [optional] [default to "#ffffff"]**ResetToDefault** | **bool** | Resets white labeling options to defaults. Only useful when updating an API App. | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponse.cs
index f4e1da05a..a1bfc7b45 100644
--- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponse.cs
+++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponse.cs
@@ -42,27 +42,52 @@ protected ApiAppResponse() { }
/// Initializes a new instance of the class.
///
/// The app's callback URL (for events).
- /// The app's client id.
- /// The time that the app was created.
- /// The domain name(s) associated with the app.
- /// The name of the app.
- /// Boolean to indicate if the app has been approved.
+ /// The app's client id (required).
+ /// The time that the app was created (required).
+ /// The domain name(s) associated with the app (required).
+ /// The name of the app (required).
+ /// Boolean to indicate if the app has been approved (required).
/// oauth.
- /// options.
- /// ownerAccount.
+ /// options (required).
+ /// ownerAccount (required).
/// whiteLabelingOptions.
public ApiAppResponse(string callbackUrl = default(string), string clientId = default(string), int createdAt = default(int), List domains = default(List), string name = default(string), bool isApproved = default(bool), ApiAppResponseOAuth oauth = default(ApiAppResponseOAuth), ApiAppResponseOptions options = default(ApiAppResponseOptions), ApiAppResponseOwnerAccount ownerAccount = default(ApiAppResponseOwnerAccount), ApiAppResponseWhiteLabelingOptions whiteLabelingOptions = default(ApiAppResponseWhiteLabelingOptions))
{
- this.CallbackUrl = callbackUrl;
+ // to ensure "clientId" is required (not null)
+ if (clientId == null)
+ {
+ throw new ArgumentNullException("clientId is a required property for ApiAppResponse and cannot be null");
+ }
this.ClientId = clientId;
this.CreatedAt = createdAt;
+ // to ensure "domains" is required (not null)
+ if (domains == null)
+ {
+ throw new ArgumentNullException("domains is a required property for ApiAppResponse and cannot be null");
+ }
this.Domains = domains;
+ // to ensure "name" is required (not null)
+ if (name == null)
+ {
+ throw new ArgumentNullException("name is a required property for ApiAppResponse and cannot be null");
+ }
this.Name = name;
this.IsApproved = isApproved;
- this.Oauth = oauth;
+ // to ensure "options" is required (not null)
+ if (options == null)
+ {
+ throw new ArgumentNullException("options is a required property for ApiAppResponse and cannot be null");
+ }
this.Options = options;
+ // to ensure "ownerAccount" is required (not null)
+ if (ownerAccount == null)
+ {
+ throw new ArgumentNullException("ownerAccount is a required property for ApiAppResponse and cannot be null");
+ }
this.OwnerAccount = ownerAccount;
+ this.CallbackUrl = callbackUrl;
+ this.Oauth = oauth;
this.WhiteLabelingOptions = whiteLabelingOptions;
}
@@ -82,66 +107,66 @@ public static ApiAppResponse Init(string jsonData)
return obj;
}
- ///
- /// The app's callback URL (for events)
- ///
- /// The app's callback URL (for events)
- [DataMember(Name = "callback_url", EmitDefaultValue = true)]
- public string CallbackUrl { get; set; }
-
///
/// The app's client id
///
/// The app's client id
- [DataMember(Name = "client_id", EmitDefaultValue = true)]
+ [DataMember(Name = "client_id", IsRequired = true, EmitDefaultValue = true)]
public string ClientId { get; set; }
///
/// The time that the app was created
///
/// The time that the app was created
- [DataMember(Name = "created_at", EmitDefaultValue = true)]
+ [DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = true)]
public int CreatedAt { get; set; }
///
/// The domain name(s) associated with the app
///
/// The domain name(s) associated with the app
- [DataMember(Name = "domains", EmitDefaultValue = true)]
+ [DataMember(Name = "domains", IsRequired = true, EmitDefaultValue = true)]
public List Domains { get; set; }
///
/// The name of the app
///
/// The name of the app
- [DataMember(Name = "name", EmitDefaultValue = true)]
+ [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)]
public string Name { get; set; }
///
/// Boolean to indicate if the app has been approved
///
/// Boolean to indicate if the app has been approved
- [DataMember(Name = "is_approved", EmitDefaultValue = true)]
+ [DataMember(Name = "is_approved", IsRequired = true, EmitDefaultValue = true)]
public bool IsApproved { get; set; }
- ///
- /// Gets or Sets Oauth
- ///
- [DataMember(Name = "oauth", EmitDefaultValue = true)]
- public ApiAppResponseOAuth Oauth { get; set; }
-
///
/// Gets or Sets Options
///
- [DataMember(Name = "options", EmitDefaultValue = true)]
+ [DataMember(Name = "options", IsRequired = true, EmitDefaultValue = true)]
public ApiAppResponseOptions Options { get; set; }
///
/// Gets or Sets OwnerAccount
///
- [DataMember(Name = "owner_account", EmitDefaultValue = true)]
+ [DataMember(Name = "owner_account", IsRequired = true, EmitDefaultValue = true)]
public ApiAppResponseOwnerAccount OwnerAccount { get; set; }
+ ///
+ /// The app's callback URL (for events)
+ ///
+ /// The app's callback URL (for events)
+ [DataMember(Name = "callback_url", EmitDefaultValue = true)]
+ public string CallbackUrl { get; set; }
+
+ ///
+ /// Gets or Sets Oauth
+ ///
+ [DataMember(Name = "oauth", EmitDefaultValue = true)]
+ public ApiAppResponseOAuth Oauth { get; set; }
+
///
/// Gets or Sets WhiteLabelingOptions
///
@@ -156,15 +181,15 @@ public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class ApiAppResponse {\n");
- sb.Append(" CallbackUrl: ").Append(CallbackUrl).Append("\n");
sb.Append(" ClientId: ").Append(ClientId).Append("\n");
sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n");
sb.Append(" Domains: ").Append(Domains).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" IsApproved: ").Append(IsApproved).Append("\n");
- sb.Append(" Oauth: ").Append(Oauth).Append("\n");
sb.Append(" Options: ").Append(Options).Append("\n");
sb.Append(" OwnerAccount: ").Append(OwnerAccount).Append("\n");
+ sb.Append(" CallbackUrl: ").Append(CallbackUrl).Append("\n");
+ sb.Append(" Oauth: ").Append(Oauth).Append("\n");
sb.Append(" WhiteLabelingOptions: ").Append(WhiteLabelingOptions).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -201,11 +226,6 @@ public bool Equals(ApiAppResponse input)
return false;
}
return
- (
- this.CallbackUrl == input.CallbackUrl ||
- (this.CallbackUrl != null &&
- this.CallbackUrl.Equals(input.CallbackUrl))
- ) &&
(
this.ClientId == input.ClientId ||
(this.ClientId != null &&
@@ -230,11 +250,6 @@ public bool Equals(ApiAppResponse input)
this.IsApproved == input.IsApproved ||
this.IsApproved.Equals(input.IsApproved)
) &&
- (
- this.Oauth == input.Oauth ||
- (this.Oauth != null &&
- this.Oauth.Equals(input.Oauth))
- ) &&
(
this.Options == input.Options ||
(this.Options != null &&
@@ -245,6 +260,16 @@ public bool Equals(ApiAppResponse input)
(this.OwnerAccount != null &&
this.OwnerAccount.Equals(input.OwnerAccount))
) &&
+ (
+ this.CallbackUrl == input.CallbackUrl ||
+ (this.CallbackUrl != null &&
+ this.CallbackUrl.Equals(input.CallbackUrl))
+ ) &&
+ (
+ this.Oauth == input.Oauth ||
+ (this.Oauth != null &&
+ this.Oauth.Equals(input.Oauth))
+ ) &&
(
this.WhiteLabelingOptions == input.WhiteLabelingOptions ||
(this.WhiteLabelingOptions != null &&
@@ -261,10 +286,6 @@ public override int GetHashCode()
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
- if (this.CallbackUrl != null)
- {
- hashCode = (hashCode * 59) + this.CallbackUrl.GetHashCode();
- }
if (this.ClientId != null)
{
hashCode = (hashCode * 59) + this.ClientId.GetHashCode();
@@ -279,10 +300,6 @@ public override int GetHashCode()
hashCode = (hashCode * 59) + this.Name.GetHashCode();
}
hashCode = (hashCode * 59) + this.IsApproved.GetHashCode();
- if (this.Oauth != null)
- {
- hashCode = (hashCode * 59) + this.Oauth.GetHashCode();
- }
if (this.Options != null)
{
hashCode = (hashCode * 59) + this.Options.GetHashCode();
@@ -291,6 +308,14 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.OwnerAccount.GetHashCode();
}
+ if (this.CallbackUrl != null)
+ {
+ hashCode = (hashCode * 59) + this.CallbackUrl.GetHashCode();
+ }
+ if (this.Oauth != null)
+ {
+ hashCode = (hashCode * 59) + this.Oauth.GetHashCode();
+ }
if (this.WhiteLabelingOptions != null)
{
hashCode = (hashCode * 59) + this.WhiteLabelingOptions.GetHashCode();
@@ -312,13 +337,6 @@ public List GetOpenApiTypes()
{
var types = new List();
types.Add(new OpenApiType()
- {
- Name = "callback_url",
- Property = "CallbackUrl",
- Type = "string",
- Value = CallbackUrl,
- });
- types.Add(new OpenApiType()
{
Name = "client_id",
Property = "ClientId",
@@ -354,13 +372,6 @@ public List GetOpenApiTypes()
Value = IsApproved,
});
types.Add(new OpenApiType()
- {
- Name = "oauth",
- Property = "Oauth",
- Type = "ApiAppResponseOAuth",
- Value = Oauth,
- });
- types.Add(new OpenApiType()
{
Name = "options",
Property = "Options",
@@ -375,6 +386,20 @@ public List GetOpenApiTypes()
Value = OwnerAccount,
});
types.Add(new OpenApiType()
+ {
+ Name = "callback_url",
+ Property = "CallbackUrl",
+ Type = "string",
+ Value = CallbackUrl,
+ });
+ types.Add(new OpenApiType()
+ {
+ Name = "oauth",
+ Property = "Oauth",
+ Type = "ApiAppResponseOAuth",
+ Value = Oauth,
+ });
+ types.Add(new OpenApiType()
{
Name = "white_labeling_options",
Property = "WhiteLabelingOptions",
diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs
index d5ceebef6..cb35f5013 100644
--- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs
+++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOAuth.cs
@@ -41,17 +41,27 @@ protected ApiAppResponseOAuth() { }
///
/// Initializes a new instance of the class.
///
- /// The app's OAuth callback URL..
+ /// The app's OAuth callback URL. (required).
/// The app's OAuth secret, or null if the app does not belong to user..
- /// Array of OAuth scopes used by the app..
- /// Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests..
+ /// Array of OAuth scopes used by the app. (required).
+ /// Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests. (required).
public ApiAppResponseOAuth(string callbackUrl = default(string), string secret = default(string), List scopes = default(List), bool chargesUsers = default(bool))
{
+ // to ensure "callbackUrl" is required (not null)
+ if (callbackUrl == null)
+ {
+ throw new ArgumentNullException("callbackUrl is a required property for ApiAppResponseOAuth and cannot be null");
+ }
this.CallbackUrl = callbackUrl;
- this.Secret = secret;
+ // to ensure "scopes" is required (not null)
+ if (scopes == null)
+ {
+ throw new ArgumentNullException("scopes is a required property for ApiAppResponseOAuth and cannot be null");
+ }
this.Scopes = scopes;
this.ChargesUsers = chargesUsers;
+ this.Secret = secret;
}
///
@@ -74,30 +84,30 @@ public static ApiAppResponseOAuth Init(string jsonData)
/// The app's OAuth callback URL.
///
/// The app's OAuth callback URL.
- [DataMember(Name = "callback_url", EmitDefaultValue = true)]
+ [DataMember(Name = "callback_url", IsRequired = true, EmitDefaultValue = true)]
public string CallbackUrl { get; set; }
- ///
- /// The app's OAuth secret, or null if the app does not belong to user.
- ///
- /// The app's OAuth secret, or null if the app does not belong to user.
- [DataMember(Name = "secret", EmitDefaultValue = true)]
- public string Secret { get; set; }
-
///
/// Array of OAuth scopes used by the app.
///
/// Array of OAuth scopes used by the app.
- [DataMember(Name = "scopes", EmitDefaultValue = true)]
+ [DataMember(Name = "scopes", IsRequired = true, EmitDefaultValue = true)]
public List Scopes { get; set; }
///
/// Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests.
///
/// Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests.
- [DataMember(Name = "charges_users", EmitDefaultValue = true)]
+ [DataMember(Name = "charges_users", IsRequired = true, EmitDefaultValue = true)]
public bool ChargesUsers { get; set; }
+ ///
+ /// The app's OAuth secret, or null if the app does not belong to user.
+ ///
+ /// The app's OAuth secret, or null if the app does not belong to user.
+ [DataMember(Name = "secret", EmitDefaultValue = true)]
+ public string Secret { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -107,9 +117,9 @@ public override string ToString()
StringBuilder sb = new StringBuilder();
sb.Append("class ApiAppResponseOAuth {\n");
sb.Append(" CallbackUrl: ").Append(CallbackUrl).Append("\n");
- sb.Append(" Secret: ").Append(Secret).Append("\n");
sb.Append(" Scopes: ").Append(Scopes).Append("\n");
sb.Append(" ChargesUsers: ").Append(ChargesUsers).Append("\n");
+ sb.Append(" Secret: ").Append(Secret).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -150,11 +160,6 @@ public bool Equals(ApiAppResponseOAuth input)
(this.CallbackUrl != null &&
this.CallbackUrl.Equals(input.CallbackUrl))
) &&
- (
- this.Secret == input.Secret ||
- (this.Secret != null &&
- this.Secret.Equals(input.Secret))
- ) &&
(
this.Scopes == input.Scopes ||
this.Scopes != null &&
@@ -164,6 +169,11 @@ public bool Equals(ApiAppResponseOAuth input)
(
this.ChargesUsers == input.ChargesUsers ||
this.ChargesUsers.Equals(input.ChargesUsers)
+ ) &&
+ (
+ this.Secret == input.Secret ||
+ (this.Secret != null &&
+ this.Secret.Equals(input.Secret))
);
}
@@ -180,15 +190,15 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.CallbackUrl.GetHashCode();
}
- if (this.Secret != null)
- {
- hashCode = (hashCode * 59) + this.Secret.GetHashCode();
- }
if (this.Scopes != null)
{
hashCode = (hashCode * 59) + this.Scopes.GetHashCode();
}
hashCode = (hashCode * 59) + this.ChargesUsers.GetHashCode();
+ if (this.Secret != null)
+ {
+ hashCode = (hashCode * 59) + this.Secret.GetHashCode();
+ }
return hashCode;
}
}
@@ -213,13 +223,6 @@ public List GetOpenApiTypes()
Value = CallbackUrl,
});
types.Add(new OpenApiType()
- {
- Name = "secret",
- Property = "Secret",
- Type = "string",
- Value = Secret,
- });
- types.Add(new OpenApiType()
{
Name = "scopes",
Property = "Scopes",
@@ -233,6 +236,13 @@ public List GetOpenApiTypes()
Type = "bool",
Value = ChargesUsers,
});
+ types.Add(new OpenApiType()
+ {
+ Name = "secret",
+ Property = "Secret",
+ Type = "string",
+ Value = Secret,
+ });
return types;
}
diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOptions.cs
index 10d6df91a..345f572dc 100644
--- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOptions.cs
+++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOptions.cs
@@ -41,7 +41,7 @@ protected ApiAppResponseOptions() { }
///
/// Initializes a new instance of the class.
///
- /// Boolean denoting if signers can \"Insert Everywhere\" in one click while signing a document.
+ /// Boolean denoting if signers can \"Insert Everywhere\" in one click while signing a document (required).
public ApiAppResponseOptions(bool canInsertEverywhere = default(bool))
{
@@ -68,7 +68,7 @@ public static ApiAppResponseOptions Init(string jsonData)
/// Boolean denoting if signers can \"Insert Everywhere\" in one click while signing a document
///
/// Boolean denoting if signers can \"Insert Everywhere\" in one click while signing a document
- [DataMember(Name = "can_insert_everywhere", EmitDefaultValue = true)]
+ [DataMember(Name = "can_insert_everywhere", IsRequired = true, EmitDefaultValue = true)]
public bool CanInsertEverywhere { get; set; }
///
diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOwnerAccount.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOwnerAccount.cs
index efb47222d..284dc155e 100644
--- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOwnerAccount.cs
+++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseOwnerAccount.cs
@@ -41,12 +41,22 @@ protected ApiAppResponseOwnerAccount() { }
///
/// Initializes a new instance of the class.
///
- /// The owner account's ID.
- /// The owner account's email address.
+ /// The owner account's ID (required).
+ /// The owner account's email address (required).
public ApiAppResponseOwnerAccount(string accountId = default(string), string emailAddress = default(string))
{
+ // to ensure "accountId" is required (not null)
+ if (accountId == null)
+ {
+ throw new ArgumentNullException("accountId is a required property for ApiAppResponseOwnerAccount and cannot be null");
+ }
this.AccountId = accountId;
+ // to ensure "emailAddress" is required (not null)
+ if (emailAddress == null)
+ {
+ throw new ArgumentNullException("emailAddress is a required property for ApiAppResponseOwnerAccount and cannot be null");
+ }
this.EmailAddress = emailAddress;
}
@@ -70,14 +80,14 @@ public static ApiAppResponseOwnerAccount Init(string jsonData)
/// The owner account's ID
///
/// The owner account's ID
- [DataMember(Name = "account_id", EmitDefaultValue = true)]
+ [DataMember(Name = "account_id", IsRequired = true, EmitDefaultValue = true)]
public string AccountId { get; set; }
///
/// The owner account's email address
///
/// The owner account's email address
- [DataMember(Name = "email_address", EmitDefaultValue = true)]
+ [DataMember(Name = "email_address", IsRequired = true, EmitDefaultValue = true)]
public string EmailAddress { get; set; }
///
diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseWhiteLabelingOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseWhiteLabelingOptions.cs
index 095ef8e70..005d6b50f 100644
--- a/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseWhiteLabelingOptions.cs
+++ b/sdks/dotnet/src/Dropbox.Sign/Model/ApiAppResponseWhiteLabelingOptions.cs
@@ -41,36 +41,106 @@ protected ApiAppResponseWhiteLabelingOptions() { }
///
/// Initializes a new instance of the class.
///
- /// headerBackgroundColor.
- /// legalVersion.
- /// linkColor.
- /// pageBackgroundColor.
- /// primaryButtonColor.
- /// primaryButtonColorHover.
- /// primaryButtonTextColor.
- /// primaryButtonTextColorHover.
- /// secondaryButtonColor.
- /// secondaryButtonColorHover.
- /// secondaryButtonTextColor.
- /// secondaryButtonTextColorHover.
- /// textColor1.
- /// textColor2.
+ /// headerBackgroundColor (required).
+ /// legalVersion (required).
+ /// linkColor (required).
+ /// pageBackgroundColor (required).
+ /// primaryButtonColor (required).
+ /// primaryButtonColorHover (required).
+ /// primaryButtonTextColor (required).
+ /// primaryButtonTextColorHover (required).
+ /// secondaryButtonColor (required).
+ /// secondaryButtonColorHover (required).
+ /// secondaryButtonTextColor (required).
+ /// secondaryButtonTextColorHover (required).
+ /// textColor1 (required).
+ /// textColor2 (required).
public ApiAppResponseWhiteLabelingOptions(string headerBackgroundColor = default(string), string legalVersion = default(string), string linkColor = default(string), string pageBackgroundColor = default(string), string primaryButtonColor = default(string), string primaryButtonColorHover = default(string), string primaryButtonTextColor = default(string), string primaryButtonTextColorHover = default(string), string secondaryButtonColor = default(string), string secondaryButtonColorHover = default(string), string secondaryButtonTextColor = default(string), string secondaryButtonTextColorHover = default(string), string textColor1 = default(string), string textColor2 = default(string))
{
+ // to ensure "headerBackgroundColor" is required (not null)
+ if (headerBackgroundColor == null)
+ {
+ throw new ArgumentNullException("headerBackgroundColor is a required property for ApiAppResponseWhiteLabelingOptions and cannot be null");
+ }
this.HeaderBackgroundColor = headerBackgroundColor;
+ // to ensure "legalVersion" is required (not null)
+ if (legalVersion == null)
+ {
+ throw new ArgumentNullException("legalVersion is a required property for ApiAppResponseWhiteLabelingOptions and cannot be null");
+ }
this.LegalVersion = legalVersion;
+ // to ensure "linkColor" is required (not null)
+ if (linkColor == null)
+ {
+ throw new ArgumentNullException("linkColor is a required property for ApiAppResponseWhiteLabelingOptions and cannot be null");
+ }
this.LinkColor = linkColor;
+ // to ensure "pageBackgroundColor" is required (not null)
+ if (pageBackgroundColor == null)
+ {
+ throw new ArgumentNullException("pageBackgroundColor is a required property for ApiAppResponseWhiteLabelingOptions and cannot be null");
+ }
this.PageBackgroundColor = pageBackgroundColor;
+ // to ensure "primaryButtonColor" is required (not null)
+ if (primaryButtonColor == null)
+ {
+ throw new ArgumentNullException("primaryButtonColor is a required property for ApiAppResponseWhiteLabelingOptions and cannot be null");
+ }
this.PrimaryButtonColor = primaryButtonColor;
+ // to ensure "primaryButtonColorHover" is required (not null)
+ if (primaryButtonColorHover == null)
+ {
+ throw new ArgumentNullException("primaryButtonColorHover is a required property for ApiAppResponseWhiteLabelingOptions and cannot be null");
+ }
this.PrimaryButtonColorHover = primaryButtonColorHover;
+ // to ensure "primaryButtonTextColor" is required (not null)
+ if (primaryButtonTextColor == null)
+ {
+ throw new ArgumentNullException("primaryButtonTextColor is a required property for ApiAppResponseWhiteLabelingOptions and cannot be null");
+ }
this.PrimaryButtonTextColor = primaryButtonTextColor;
+ // to ensure "primaryButtonTextColorHover" is required (not null)
+ if (primaryButtonTextColorHover == null)
+ {
+ throw new ArgumentNullException("primaryButtonTextColorHover is a required property for ApiAppResponseWhiteLabelingOptions and cannot be null");
+ }
this.PrimaryButtonTextColorHover = primaryButtonTextColorHover;
+ // to ensure "secondaryButtonColor" is required (not null)
+ if (secondaryButtonColor == null)
+ {
+ throw new ArgumentNullException("secondaryButtonColor is a required property for ApiAppResponseWhiteLabelingOptions and cannot be null");
+ }
this.SecondaryButtonColor = secondaryButtonColor;
+ // to ensure "secondaryButtonColorHover" is required (not null)
+ if (secondaryButtonColorHover == null)
+ {
+ throw new ArgumentNullException("secondaryButtonColorHover is a required property for ApiAppResponseWhiteLabelingOptions and cannot be null");
+ }
this.SecondaryButtonColorHover = secondaryButtonColorHover;
+ // to ensure "secondaryButtonTextColor" is required (not null)
+ if (secondaryButtonTextColor == null)
+ {
+ throw new ArgumentNullException("secondaryButtonTextColor is a required property for ApiAppResponseWhiteLabelingOptions and cannot be null");
+ }
this.SecondaryButtonTextColor = secondaryButtonTextColor;
+ // to ensure "secondaryButtonTextColorHover" is required (not null)
+ if (secondaryButtonTextColorHover == null)
+ {
+ throw new ArgumentNullException("secondaryButtonTextColorHover is a required property for ApiAppResponseWhiteLabelingOptions and cannot be null");
+ }
this.SecondaryButtonTextColorHover = secondaryButtonTextColorHover;
+ // to ensure "textColor1" is required (not null)
+ if (textColor1 == null)
+ {
+ throw new ArgumentNullException("textColor1 is a required property for ApiAppResponseWhiteLabelingOptions and cannot be null");
+ }
this.TextColor1 = textColor1;
+ // to ensure "textColor2" is required (not null)
+ if (textColor2 == null)
+ {
+ throw new ArgumentNullException("textColor2 is a required property for ApiAppResponseWhiteLabelingOptions and cannot be null");
+ }
this.TextColor2 = textColor2;
}
@@ -93,85 +163,85 @@ public static ApiAppResponseWhiteLabelingOptions Init(string jsonData)
///
/// Gets or Sets HeaderBackgroundColor
///
- [DataMember(Name = "header_background_color", EmitDefaultValue = true)]
+ [DataMember(Name = "header_background_color", IsRequired = true, EmitDefaultValue = true)]
public string HeaderBackgroundColor { get; set; }
///
/// Gets or Sets LegalVersion
///
- [DataMember(Name = "legal_version", EmitDefaultValue = true)]
+ [DataMember(Name = "legal_version", IsRequired = true, EmitDefaultValue = true)]
public string LegalVersion { get; set; }
///
/// Gets or Sets LinkColor
///
- [DataMember(Name = "link_color", EmitDefaultValue = true)]
+ [DataMember(Name = "link_color", IsRequired = true, EmitDefaultValue = true)]
public string LinkColor { get; set; }
///
/// Gets or Sets PageBackgroundColor
///
- [DataMember(Name = "page_background_color", EmitDefaultValue = true)]
+ [DataMember(Name = "page_background_color", IsRequired = true, EmitDefaultValue = true)]
public string PageBackgroundColor { get; set; }
///
/// Gets or Sets PrimaryButtonColor
///
- [DataMember(Name = "primary_button_color", EmitDefaultValue = true)]
+ [DataMember(Name = "primary_button_color", IsRequired = true, EmitDefaultValue = true)]
public string PrimaryButtonColor { get; set; }
///
/// Gets or Sets PrimaryButtonColorHover
///
- [DataMember(Name = "primary_button_color_hover", EmitDefaultValue = true)]
+ [DataMember(Name = "primary_button_color_hover", IsRequired = true, EmitDefaultValue = true)]
public string PrimaryButtonColorHover { get; set; }
///
/// Gets or Sets PrimaryButtonTextColor
///
- [DataMember(Name = "primary_button_text_color", EmitDefaultValue = true)]
+ [DataMember(Name = "primary_button_text_color", IsRequired = true, EmitDefaultValue = true)]
public string PrimaryButtonTextColor { get; set; }
///
/// Gets or Sets PrimaryButtonTextColorHover
///
- [DataMember(Name = "primary_button_text_color_hover", EmitDefaultValue = true)]
+ [DataMember(Name = "primary_button_text_color_hover", IsRequired = true, EmitDefaultValue = true)]
public string PrimaryButtonTextColorHover { get; set; }
///
/// Gets or Sets SecondaryButtonColor
///
- [DataMember(Name = "secondary_button_color", EmitDefaultValue = true)]
+ [DataMember(Name = "secondary_button_color", IsRequired = true, EmitDefaultValue = true)]
public string SecondaryButtonColor { get; set; }
///
/// Gets or Sets SecondaryButtonColorHover
///
- [DataMember(Name = "secondary_button_color_hover", EmitDefaultValue = true)]
+ [DataMember(Name = "secondary_button_color_hover", IsRequired = true, EmitDefaultValue = true)]
public string SecondaryButtonColorHover { get; set; }
///
/// Gets or Sets SecondaryButtonTextColor
///
- [DataMember(Name = "secondary_button_text_color", EmitDefaultValue = true)]
+ [DataMember(Name = "secondary_button_text_color", IsRequired = true, EmitDefaultValue = true)]
public string SecondaryButtonTextColor { get; set; }
///
/// Gets or Sets SecondaryButtonTextColorHover
///
- [DataMember(Name = "secondary_button_text_color_hover", EmitDefaultValue = true)]
+ [DataMember(Name = "secondary_button_text_color_hover", IsRequired = true, EmitDefaultValue = true)]
public string SecondaryButtonTextColorHover { get; set; }
///
/// Gets or Sets TextColor1
///
- [DataMember(Name = "text_color1", EmitDefaultValue = true)]
+ [DataMember(Name = "text_color1", IsRequired = true, EmitDefaultValue = true)]
public string TextColor1 { get; set; }
///
/// Gets or Sets TextColor2
///
- [DataMember(Name = "text_color2", EmitDefaultValue = true)]
+ [DataMember(Name = "text_color2", IsRequired = true, EmitDefaultValue = true)]
public string TextColor2 { get; set; }
///
diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SubWhiteLabelingOptions.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubWhiteLabelingOptions.cs
index a38eaa0d7..72d4ebb30 100644
--- a/sdks/dotnet/src/Dropbox.Sign/Model/SubWhiteLabelingOptions.cs
+++ b/sdks/dotnet/src/Dropbox.Sign/Model/SubWhiteLabelingOptions.cs
@@ -66,51 +66,51 @@ protected SubWhiteLabelingOptions() { }
///
/// Initializes a new instance of the class.
///
- /// headerBackgroundColor (default to "#1A1A1A").
+ /// headerBackgroundColor (default to "#1a1a1a").
/// legalVersion (default to LegalVersionEnum.Terms1).
- /// linkColor (default to "#00B3E6").
- /// pageBackgroundColor (default to "#F7F8F9").
- /// primaryButtonColor (default to "#00B3E6").
- /// primaryButtonColorHover (default to "#00B3E6").
- /// primaryButtonTextColor (default to "#FFFFFF").
- /// primaryButtonTextColorHover (default to "#FFFFFF").
- /// secondaryButtonColor (default to "#FFFFFF").
- /// secondaryButtonColorHover (default to "#FFFFFF").
- /// secondaryButtonTextColor (default to "#00B3E6").
- /// secondaryButtonTextColorHover (default to "#00B3E6").
+ /// linkColor (default to "#0061FE").
+ /// pageBackgroundColor (default to "#f7f8f9").
+ /// primaryButtonColor (default to "#0061FE").
+ /// primaryButtonColorHover (default to "#0061FE").
+ /// primaryButtonTextColor (default to "#ffffff").
+ /// primaryButtonTextColorHover (default to "#ffffff").
+ /// secondaryButtonColor (default to "#ffffff").
+ /// secondaryButtonColorHover (default to "#ffffff").
+ /// secondaryButtonTextColor (default to "#0061FE").
+ /// secondaryButtonTextColorHover (default to "#0061FE").
/// textColor1 (default to "#808080").
- /// textColor2 (default to "#FFFFFF").
+ /// textColor2 (default to "#ffffff").
/// Resets white labeling options to defaults. Only useful when updating an API App..
- public SubWhiteLabelingOptions(string headerBackgroundColor = @"#1A1A1A", LegalVersionEnum? legalVersion = LegalVersionEnum.Terms1, string linkColor = @"#00B3E6", string pageBackgroundColor = @"#F7F8F9", string primaryButtonColor = @"#00B3E6", string primaryButtonColorHover = @"#00B3E6", string primaryButtonTextColor = @"#FFFFFF", string primaryButtonTextColorHover = @"#FFFFFF", string secondaryButtonColor = @"#FFFFFF", string secondaryButtonColorHover = @"#FFFFFF", string secondaryButtonTextColor = @"#00B3E6", string secondaryButtonTextColorHover = @"#00B3E6", string textColor1 = @"#808080", string textColor2 = @"#FFFFFF", bool resetToDefault = default(bool))
+ public SubWhiteLabelingOptions(string headerBackgroundColor = @"#1a1a1a", LegalVersionEnum? legalVersion = LegalVersionEnum.Terms1, string linkColor = @"#0061FE", string pageBackgroundColor = @"#f7f8f9", string primaryButtonColor = @"#0061FE", string primaryButtonColorHover = @"#0061FE", string primaryButtonTextColor = @"#ffffff", string primaryButtonTextColorHover = @"#ffffff", string secondaryButtonColor = @"#ffffff", string secondaryButtonColorHover = @"#ffffff", string secondaryButtonTextColor = @"#0061FE", string secondaryButtonTextColorHover = @"#0061FE", string textColor1 = @"#808080", string textColor2 = @"#ffffff", bool resetToDefault = default(bool))
{
// use default value if no "headerBackgroundColor" provided
- this.HeaderBackgroundColor = headerBackgroundColor ?? "#1A1A1A";
+ this.HeaderBackgroundColor = headerBackgroundColor ?? "#1a1a1a";
this.LegalVersion = legalVersion;
// use default value if no "linkColor" provided
- this.LinkColor = linkColor ?? "#00B3E6";
+ this.LinkColor = linkColor ?? "#0061FE";
// use default value if no "pageBackgroundColor" provided
- this.PageBackgroundColor = pageBackgroundColor ?? "#F7F8F9";
+ this.PageBackgroundColor = pageBackgroundColor ?? "#f7f8f9";
// use default value if no "primaryButtonColor" provided
- this.PrimaryButtonColor = primaryButtonColor ?? "#00B3E6";
+ this.PrimaryButtonColor = primaryButtonColor ?? "#0061FE";
// use default value if no "primaryButtonColorHover" provided
- this.PrimaryButtonColorHover = primaryButtonColorHover ?? "#00B3E6";
+ this.PrimaryButtonColorHover = primaryButtonColorHover ?? "#0061FE";
// use default value if no "primaryButtonTextColor" provided
- this.PrimaryButtonTextColor = primaryButtonTextColor ?? "#FFFFFF";
+ this.PrimaryButtonTextColor = primaryButtonTextColor ?? "#ffffff";
// use default value if no "primaryButtonTextColorHover" provided
- this.PrimaryButtonTextColorHover = primaryButtonTextColorHover ?? "#FFFFFF";
+ this.PrimaryButtonTextColorHover = primaryButtonTextColorHover ?? "#ffffff";
// use default value if no "secondaryButtonColor" provided
- this.SecondaryButtonColor = secondaryButtonColor ?? "#FFFFFF";
+ this.SecondaryButtonColor = secondaryButtonColor ?? "#ffffff";
// use default value if no "secondaryButtonColorHover" provided
- this.SecondaryButtonColorHover = secondaryButtonColorHover ?? "#FFFFFF";
+ this.SecondaryButtonColorHover = secondaryButtonColorHover ?? "#ffffff";
// use default value if no "secondaryButtonTextColor" provided
- this.SecondaryButtonTextColor = secondaryButtonTextColor ?? "#00B3E6";
+ this.SecondaryButtonTextColor = secondaryButtonTextColor ?? "#0061FE";
// use default value if no "secondaryButtonTextColorHover" provided
- this.SecondaryButtonTextColorHover = secondaryButtonTextColorHover ?? "#00B3E6";
+ this.SecondaryButtonTextColorHover = secondaryButtonTextColorHover ?? "#0061FE";
// use default value if no "textColor1" provided
this.TextColor1 = textColor1 ?? "#808080";
// use default value if no "textColor2" provided
- this.TextColor2 = textColor2 ?? "#FFFFFF";
+ this.TextColor2 = textColor2 ?? "#ffffff";
this.ResetToDefault = resetToDefault;
}
diff --git a/sdks/java-v1/docs/ApiAppResponse.md b/sdks/java-v1/docs/ApiAppResponse.md
index afe95c850..7eb6e967d 100644
--- a/sdks/java-v1/docs/ApiAppResponse.md
+++ b/sdks/java-v1/docs/ApiAppResponse.md
@@ -8,15 +8,15 @@ Contains information about an API App.
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
+| `clientId`*_required_ | ```String``` | The app's client id | |
+| `createdAt`*_required_ | ```Integer``` | The time that the app was created | |
+| `domains`*_required_ | ```List``` | The domain name(s) associated with the app | |
+| `name`*_required_ | ```String``` | The name of the app | |
+| `isApproved`*_required_ | ```Boolean``` | Boolean to indicate if the app has been approved | |
+| `options`*_required_ | [```ApiAppResponseOptions```](ApiAppResponseOptions.md) | | |
+| `ownerAccount`*_required_ | [```ApiAppResponseOwnerAccount```](ApiAppResponseOwnerAccount.md) | | |
| `callbackUrl` | ```String``` | The app's callback URL (for events) | |
-| `clientId` | ```String``` | The app's client id | |
-| `createdAt` | ```Integer``` | The time that the app was created | |
-| `domains` | ```List``` | The domain name(s) associated with the app | |
-| `name` | ```String``` | The name of the app | |
-| `isApproved` | ```Boolean``` | Boolean to indicate if the app has been approved | |
| `oauth` | [```ApiAppResponseOAuth```](ApiAppResponseOAuth.md) | | |
-| `options` | [```ApiAppResponseOptions```](ApiAppResponseOptions.md) | | |
-| `ownerAccount` | [```ApiAppResponseOwnerAccount```](ApiAppResponseOwnerAccount.md) | | |
| `whiteLabelingOptions` | [```ApiAppResponseWhiteLabelingOptions```](ApiAppResponseWhiteLabelingOptions.md) | | |
diff --git a/sdks/java-v1/docs/ApiAppResponseOAuth.md b/sdks/java-v1/docs/ApiAppResponseOAuth.md
index c2f705c7a..93f22d3cc 100644
--- a/sdks/java-v1/docs/ApiAppResponseOAuth.md
+++ b/sdks/java-v1/docs/ApiAppResponseOAuth.md
@@ -8,10 +8,10 @@ An object describing the app's OAuth properties, or null if OAuth is not con
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
-| `callbackUrl` | ```String``` | The app's OAuth callback URL. | |
+| `callbackUrl`*_required_ | ```String``` | The app's OAuth callback URL. | |
+| `scopes`*_required_ | ```List``` | Array of OAuth scopes used by the app. | |
+| `chargesUsers`*_required_ | ```Boolean``` | Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests. | |
| `secret` | ```String``` | The app's OAuth secret, or null if the app does not belong to user. | |
-| `scopes` | ```List``` | Array of OAuth scopes used by the app. | |
-| `chargesUsers` | ```Boolean``` | Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests. | |
diff --git a/sdks/java-v1/docs/ApiAppResponseOptions.md b/sdks/java-v1/docs/ApiAppResponseOptions.md
index 07979f387..e6694664d 100644
--- a/sdks/java-v1/docs/ApiAppResponseOptions.md
+++ b/sdks/java-v1/docs/ApiAppResponseOptions.md
@@ -8,7 +8,7 @@ An object with options that override account settings.
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
-| `canInsertEverywhere` | ```Boolean``` | Boolean denoting if signers can "Insert Everywhere" in one click while signing a document | |
+| `canInsertEverywhere`*_required_ | ```Boolean``` | Boolean denoting if signers can "Insert Everywhere" in one click while signing a document | |
diff --git a/sdks/java-v1/docs/ApiAppResponseOwnerAccount.md b/sdks/java-v1/docs/ApiAppResponseOwnerAccount.md
index b4d6d4249..a9c5142b3 100644
--- a/sdks/java-v1/docs/ApiAppResponseOwnerAccount.md
+++ b/sdks/java-v1/docs/ApiAppResponseOwnerAccount.md
@@ -8,8 +8,8 @@ An object describing the app's owner
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
-| `accountId` | ```String``` | The owner account's ID | |
-| `emailAddress` | ```String``` | The owner account's email address | |
+| `accountId`*_required_ | ```String``` | The owner account's ID | |
+| `emailAddress`*_required_ | ```String``` | The owner account's email address | |
diff --git a/sdks/java-v1/docs/ApiAppResponseWhiteLabelingOptions.md b/sdks/java-v1/docs/ApiAppResponseWhiteLabelingOptions.md
index be6d022fd..f26b0591e 100644
--- a/sdks/java-v1/docs/ApiAppResponseWhiteLabelingOptions.md
+++ b/sdks/java-v1/docs/ApiAppResponseWhiteLabelingOptions.md
@@ -8,20 +8,20 @@ An object with options to customize the app's signer page
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
-| `headerBackgroundColor` | ```String``` | | |
-| `legalVersion` | ```String``` | | |
-| `linkColor` | ```String``` | | |
-| `pageBackgroundColor` | ```String``` | | |
-| `primaryButtonColor` | ```String``` | | |
-| `primaryButtonColorHover` | ```String``` | | |
-| `primaryButtonTextColor` | ```String``` | | |
-| `primaryButtonTextColorHover` | ```String``` | | |
-| `secondaryButtonColor` | ```String``` | | |
-| `secondaryButtonColorHover` | ```String``` | | |
-| `secondaryButtonTextColor` | ```String``` | | |
-| `secondaryButtonTextColorHover` | ```String``` | | |
-| `textColor1` | ```String``` | | |
-| `textColor2` | ```String``` | | |
+| `headerBackgroundColor`*_required_ | ```String``` | | |
+| `legalVersion`*_required_ | ```String``` | | |
+| `linkColor`*_required_ | ```String``` | | |
+| `pageBackgroundColor`*_required_ | ```String``` | | |
+| `primaryButtonColor`*_required_ | ```String``` | | |
+| `primaryButtonColorHover`*_required_ | ```String``` | | |
+| `primaryButtonTextColor`*_required_ | ```String``` | | |
+| `primaryButtonTextColorHover`*_required_ | ```String``` | | |
+| `secondaryButtonColor`*_required_ | ```String``` | | |
+| `secondaryButtonColorHover`*_required_ | ```String``` | | |
+| `secondaryButtonTextColor`*_required_ | ```String``` | | |
+| `secondaryButtonTextColorHover`*_required_ | ```String``` | | |
+| `textColor1`*_required_ | ```String``` | | |
+| `textColor2`*_required_ | ```String``` | | |
diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponse.java
index 9e5b0073d..434a38779 100644
--- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponse.java
+++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponse.java
@@ -27,15 +27,15 @@
/** Contains information about an API App. */
@JsonPropertyOrder({
- ApiAppResponse.JSON_PROPERTY_CALLBACK_URL,
ApiAppResponse.JSON_PROPERTY_CLIENT_ID,
ApiAppResponse.JSON_PROPERTY_CREATED_AT,
ApiAppResponse.JSON_PROPERTY_DOMAINS,
ApiAppResponse.JSON_PROPERTY_NAME,
ApiAppResponse.JSON_PROPERTY_IS_APPROVED,
- ApiAppResponse.JSON_PROPERTY_OAUTH,
ApiAppResponse.JSON_PROPERTY_OPTIONS,
ApiAppResponse.JSON_PROPERTY_OWNER_ACCOUNT,
+ ApiAppResponse.JSON_PROPERTY_CALLBACK_URL,
+ ApiAppResponse.JSON_PROPERTY_OAUTH,
ApiAppResponse.JSON_PROPERTY_WHITE_LABELING_OPTIONS
})
@javax.annotation.Generated(
@@ -43,9 +43,6 @@
comments = "Generator version: 7.8.0")
@JsonIgnoreProperties(ignoreUnknown = true)
public class ApiAppResponse {
- public static final String JSON_PROPERTY_CALLBACK_URL = "callback_url";
- private String callbackUrl;
-
public static final String JSON_PROPERTY_CLIENT_ID = "client_id";
private String clientId;
@@ -53,7 +50,7 @@ public class ApiAppResponse {
private Integer createdAt;
public static final String JSON_PROPERTY_DOMAINS = "domains";
- private List domains = null;
+ private List domains = new ArrayList<>();
public static final String JSON_PROPERTY_NAME = "name";
private String name;
@@ -61,15 +58,18 @@ public class ApiAppResponse {
public static final String JSON_PROPERTY_IS_APPROVED = "is_approved";
private Boolean isApproved;
- public static final String JSON_PROPERTY_OAUTH = "oauth";
- private ApiAppResponseOAuth oauth;
-
public static final String JSON_PROPERTY_OPTIONS = "options";
private ApiAppResponseOptions options;
public static final String JSON_PROPERTY_OWNER_ACCOUNT = "owner_account";
private ApiAppResponseOwnerAccount ownerAccount;
+ public static final String JSON_PROPERTY_CALLBACK_URL = "callback_url";
+ private String callbackUrl;
+
+ public static final String JSON_PROPERTY_OAUTH = "oauth";
+ private ApiAppResponseOAuth oauth;
+
public static final String JSON_PROPERTY_WHITE_LABELING_OPTIONS = "white_labeling_options";
private ApiAppResponseWhiteLabelingOptions whiteLabelingOptions;
@@ -89,28 +89,6 @@ public static ApiAppResponse init(HashMap data) throws Exception {
.readValue(new ObjectMapper().writeValueAsString(data), ApiAppResponse.class);
}
- public ApiAppResponse callbackUrl(String callbackUrl) {
- this.callbackUrl = callbackUrl;
- return this;
- }
-
- /**
- * The app's callback URL (for events)
- *
- * @return callbackUrl
- */
- @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CALLBACK_URL)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public String getCallbackUrl() {
- return callbackUrl;
- }
-
- @JsonProperty(JSON_PROPERTY_CALLBACK_URL)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setCallbackUrl(String callbackUrl) {
- this.callbackUrl = callbackUrl;
- }
-
public ApiAppResponse clientId(String clientId) {
this.clientId = clientId;
return this;
@@ -121,14 +99,15 @@ public ApiAppResponse clientId(String clientId) {
*
* @return clientId
*/
- @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLIENT_ID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @javax.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_CLIENT_ID)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getClientId() {
return clientId;
}
@JsonProperty(JSON_PROPERTY_CLIENT_ID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setClientId(String clientId) {
this.clientId = clientId;
}
@@ -143,14 +122,15 @@ public ApiAppResponse createdAt(Integer createdAt) {
*
* @return createdAt
*/
- @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CREATED_AT)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @javax.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_CREATED_AT)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getCreatedAt() {
return createdAt;
}
@JsonProperty(JSON_PROPERTY_CREATED_AT)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCreatedAt(Integer createdAt) {
this.createdAt = createdAt;
}
@@ -173,14 +153,15 @@ public ApiAppResponse addDomainsItem(String domainsItem) {
*
* @return domains
*/
- @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOMAINS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @javax.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_DOMAINS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getDomains() {
return domains;
}
@JsonProperty(JSON_PROPERTY_DOMAINS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setDomains(List domains) {
this.domains = domains;
}
@@ -195,14 +176,15 @@ public ApiAppResponse name(String name) {
*
* @return name
*/
- @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @javax.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_NAME)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getName() {
return name;
}
@JsonProperty(JSON_PROPERTY_NAME)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setName(String name) {
this.name = name;
}
@@ -217,40 +199,19 @@ public ApiAppResponse isApproved(Boolean isApproved) {
*
* @return isApproved
*/
- @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_APPROVED)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @javax.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_IS_APPROVED)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getIsApproved() {
return isApproved;
}
@JsonProperty(JSON_PROPERTY_IS_APPROVED)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setIsApproved(Boolean isApproved) {
this.isApproved = isApproved;
}
- public ApiAppResponse oauth(ApiAppResponseOAuth oauth) {
- this.oauth = oauth;
- return this;
- }
-
- /**
- * Get oauth
- *
- * @return oauth
- */
- @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OAUTH)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public ApiAppResponseOAuth getOauth() {
- return oauth;
- }
-
- @JsonProperty(JSON_PROPERTY_OAUTH)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setOauth(ApiAppResponseOAuth oauth) {
- this.oauth = oauth;
- }
-
public ApiAppResponse options(ApiAppResponseOptions options) {
this.options = options;
return this;
@@ -261,14 +222,15 @@ public ApiAppResponse options(ApiAppResponseOptions options) {
*
* @return options
*/
- @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OPTIONS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @javax.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_OPTIONS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public ApiAppResponseOptions getOptions() {
return options;
}
@JsonProperty(JSON_PROPERTY_OPTIONS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setOptions(ApiAppResponseOptions options) {
this.options = options;
}
@@ -283,18 +245,63 @@ public ApiAppResponse ownerAccount(ApiAppResponseOwnerAccount ownerAccount) {
*
* @return ownerAccount
*/
- @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OWNER_ACCOUNT)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @javax.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_OWNER_ACCOUNT)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public ApiAppResponseOwnerAccount getOwnerAccount() {
return ownerAccount;
}
@JsonProperty(JSON_PROPERTY_OWNER_ACCOUNT)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setOwnerAccount(ApiAppResponseOwnerAccount ownerAccount) {
this.ownerAccount = ownerAccount;
}
+ public ApiAppResponse callbackUrl(String callbackUrl) {
+ this.callbackUrl = callbackUrl;
+ return this;
+ }
+
+ /**
+ * The app's callback URL (for events)
+ *
+ * @return callbackUrl
+ */
+ @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CALLBACK_URL)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getCallbackUrl() {
+ return callbackUrl;
+ }
+
+ @JsonProperty(JSON_PROPERTY_CALLBACK_URL)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public void setCallbackUrl(String callbackUrl) {
+ this.callbackUrl = callbackUrl;
+ }
+
+ public ApiAppResponse oauth(ApiAppResponseOAuth oauth) {
+ this.oauth = oauth;
+ return this;
+ }
+
+ /**
+ * Get oauth
+ *
+ * @return oauth
+ */
+ @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OAUTH)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public ApiAppResponseOAuth getOauth() {
+ return oauth;
+ }
+
+ @JsonProperty(JSON_PROPERTY_OAUTH)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public void setOauth(ApiAppResponseOAuth oauth) {
+ this.oauth = oauth;
+ }
+
public ApiAppResponse whiteLabelingOptions(
ApiAppResponseWhiteLabelingOptions whiteLabelingOptions) {
this.whiteLabelingOptions = whiteLabelingOptions;
@@ -328,30 +335,30 @@ public boolean equals(Object o) {
return false;
}
ApiAppResponse apiAppResponse = (ApiAppResponse) o;
- return Objects.equals(this.callbackUrl, apiAppResponse.callbackUrl)
- && Objects.equals(this.clientId, apiAppResponse.clientId)
+ return Objects.equals(this.clientId, apiAppResponse.clientId)
&& Objects.equals(this.createdAt, apiAppResponse.createdAt)
&& Objects.equals(this.domains, apiAppResponse.domains)
&& Objects.equals(this.name, apiAppResponse.name)
&& Objects.equals(this.isApproved, apiAppResponse.isApproved)
- && Objects.equals(this.oauth, apiAppResponse.oauth)
&& Objects.equals(this.options, apiAppResponse.options)
&& Objects.equals(this.ownerAccount, apiAppResponse.ownerAccount)
+ && Objects.equals(this.callbackUrl, apiAppResponse.callbackUrl)
+ && Objects.equals(this.oauth, apiAppResponse.oauth)
&& Objects.equals(this.whiteLabelingOptions, apiAppResponse.whiteLabelingOptions);
}
@Override
public int hashCode() {
return Objects.hash(
- callbackUrl,
clientId,
createdAt,
domains,
name,
isApproved,
- oauth,
options,
ownerAccount,
+ callbackUrl,
+ oauth,
whiteLabelingOptions);
}
@@ -359,15 +366,15 @@ public int hashCode() {
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ApiAppResponse {\n");
- sb.append(" callbackUrl: ").append(toIndentedString(callbackUrl)).append("\n");
sb.append(" clientId: ").append(toIndentedString(clientId)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" domains: ").append(toIndentedString(domains)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" isApproved: ").append(toIndentedString(isApproved)).append("\n");
- sb.append(" oauth: ").append(toIndentedString(oauth)).append("\n");
sb.append(" options: ").append(toIndentedString(options)).append("\n");
sb.append(" ownerAccount: ").append(toIndentedString(ownerAccount)).append("\n");
+ sb.append(" callbackUrl: ").append(toIndentedString(callbackUrl)).append("\n");
+ sb.append(" oauth: ").append(toIndentedString(oauth)).append("\n");
sb.append(" whiteLabelingOptions: ")
.append(toIndentedString(whiteLabelingOptions))
.append("\n");
@@ -379,26 +386,6 @@ public Map createFormData() throws ApiException {
Map map = new HashMap<>();
boolean fileTypeFound = false;
try {
- if (callbackUrl != null) {
- if (isFileTypeOrListOfFiles(callbackUrl)) {
- fileTypeFound = true;
- }
-
- if (callbackUrl.getClass().equals(java.io.File.class)
- || callbackUrl.getClass().equals(Integer.class)
- || callbackUrl.getClass().equals(String.class)
- || callbackUrl.getClass().isEnum()) {
- map.put("callback_url", callbackUrl);
- } else if (isListOfFile(callbackUrl)) {
- for (int i = 0; i < getListSize(callbackUrl); i++) {
- map.put("callback_url[" + i + "]", getFromList(callbackUrl, i));
- }
- } else {
- map.put(
- "callback_url",
- JSON.getDefault().getMapper().writeValueAsString(callbackUrl));
- }
- }
if (clientId != null) {
if (isFileTypeOrListOfFiles(clientId)) {
fileTypeFound = true;
@@ -495,24 +482,6 @@ public Map createFormData() throws ApiException {
JSON.getDefault().getMapper().writeValueAsString(isApproved));
}
}
- if (oauth != null) {
- if (isFileTypeOrListOfFiles(oauth)) {
- fileTypeFound = true;
- }
-
- if (oauth.getClass().equals(java.io.File.class)
- || oauth.getClass().equals(Integer.class)
- || oauth.getClass().equals(String.class)
- || oauth.getClass().isEnum()) {
- map.put("oauth", oauth);
- } else if (isListOfFile(oauth)) {
- for (int i = 0; i < getListSize(oauth); i++) {
- map.put("oauth[" + i + "]", getFromList(oauth, i));
- }
- } else {
- map.put("oauth", JSON.getDefault().getMapper().writeValueAsString(oauth));
- }
- }
if (options != null) {
if (isFileTypeOrListOfFiles(options)) {
fileTypeFound = true;
@@ -551,6 +520,44 @@ public Map createFormData() throws ApiException {
JSON.getDefault().getMapper().writeValueAsString(ownerAccount));
}
}
+ if (callbackUrl != null) {
+ if (isFileTypeOrListOfFiles(callbackUrl)) {
+ fileTypeFound = true;
+ }
+
+ if (callbackUrl.getClass().equals(java.io.File.class)
+ || callbackUrl.getClass().equals(Integer.class)
+ || callbackUrl.getClass().equals(String.class)
+ || callbackUrl.getClass().isEnum()) {
+ map.put("callback_url", callbackUrl);
+ } else if (isListOfFile(callbackUrl)) {
+ for (int i = 0; i < getListSize(callbackUrl); i++) {
+ map.put("callback_url[" + i + "]", getFromList(callbackUrl, i));
+ }
+ } else {
+ map.put(
+ "callback_url",
+ JSON.getDefault().getMapper().writeValueAsString(callbackUrl));
+ }
+ }
+ if (oauth != null) {
+ if (isFileTypeOrListOfFiles(oauth)) {
+ fileTypeFound = true;
+ }
+
+ if (oauth.getClass().equals(java.io.File.class)
+ || oauth.getClass().equals(Integer.class)
+ || oauth.getClass().equals(String.class)
+ || oauth.getClass().isEnum()) {
+ map.put("oauth", oauth);
+ } else if (isListOfFile(oauth)) {
+ for (int i = 0; i < getListSize(oauth); i++) {
+ map.put("oauth[" + i + "]", getFromList(oauth, i));
+ }
+ } else {
+ map.put("oauth", JSON.getDefault().getMapper().writeValueAsString(oauth));
+ }
+ }
if (whiteLabelingOptions != null) {
if (isFileTypeOrListOfFiles(whiteLabelingOptions)) {
fileTypeFound = true;
diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponseOAuth.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponseOAuth.java
index 74ba41e86..71e53d84c 100644
--- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponseOAuth.java
+++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponseOAuth.java
@@ -31,9 +31,9 @@
*/
@JsonPropertyOrder({
ApiAppResponseOAuth.JSON_PROPERTY_CALLBACK_URL,
- ApiAppResponseOAuth.JSON_PROPERTY_SECRET,
ApiAppResponseOAuth.JSON_PROPERTY_SCOPES,
- ApiAppResponseOAuth.JSON_PROPERTY_CHARGES_USERS
+ ApiAppResponseOAuth.JSON_PROPERTY_CHARGES_USERS,
+ ApiAppResponseOAuth.JSON_PROPERTY_SECRET
})
@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
@@ -43,15 +43,15 @@ public class ApiAppResponseOAuth {
public static final String JSON_PROPERTY_CALLBACK_URL = "callback_url";
private String callbackUrl;
- public static final String JSON_PROPERTY_SECRET = "secret";
- private String secret;
-
public static final String JSON_PROPERTY_SCOPES = "scopes";
- private List scopes = null;
+ private List scopes = new ArrayList<>();
public static final String JSON_PROPERTY_CHARGES_USERS = "charges_users";
private Boolean chargesUsers;
+ public static final String JSON_PROPERTY_SECRET = "secret";
+ private String secret;
+
public ApiAppResponseOAuth() {}
/**
@@ -78,40 +78,19 @@ public ApiAppResponseOAuth callbackUrl(String callbackUrl) {
*
* @return callbackUrl
*/
- @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CALLBACK_URL)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @javax.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_CALLBACK_URL)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getCallbackUrl() {
return callbackUrl;
}
@JsonProperty(JSON_PROPERTY_CALLBACK_URL)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCallbackUrl(String callbackUrl) {
this.callbackUrl = callbackUrl;
}
- public ApiAppResponseOAuth secret(String secret) {
- this.secret = secret;
- return this;
- }
-
- /**
- * The app's OAuth secret, or null if the app does not belong to user.
- *
- * @return secret
- */
- @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SECRET)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public String getSecret() {
- return secret;
- }
-
- @JsonProperty(JSON_PROPERTY_SECRET)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setSecret(String secret) {
- this.secret = secret;
- }
-
public ApiAppResponseOAuth scopes(List scopes) {
this.scopes = scopes;
return this;
@@ -130,14 +109,15 @@ public ApiAppResponseOAuth addScopesItem(String scopesItem) {
*
* @return scopes
*/
- @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SCOPES)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @javax.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_SCOPES)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getScopes() {
return scopes;
}
@JsonProperty(JSON_PROPERTY_SCOPES)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setScopes(List scopes) {
this.scopes = scopes;
}
@@ -153,18 +133,41 @@ public ApiAppResponseOAuth chargesUsers(Boolean chargesUsers) {
*
* @return chargesUsers
*/
- @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CHARGES_USERS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @javax.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_CHARGES_USERS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getChargesUsers() {
return chargesUsers;
}
@JsonProperty(JSON_PROPERTY_CHARGES_USERS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setChargesUsers(Boolean chargesUsers) {
this.chargesUsers = chargesUsers;
}
+ public ApiAppResponseOAuth secret(String secret) {
+ this.secret = secret;
+ return this;
+ }
+
+ /**
+ * The app's OAuth secret, or null if the app does not belong to user.
+ *
+ * @return secret
+ */
+ @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SECRET)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getSecret() {
+ return secret;
+ }
+
+ @JsonProperty(JSON_PROPERTY_SECRET)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public void setSecret(String secret) {
+ this.secret = secret;
+ }
+
/** Return true if this ApiAppResponseOAuth object is equal to o. */
@Override
public boolean equals(Object o) {
@@ -176,14 +179,14 @@ public boolean equals(Object o) {
}
ApiAppResponseOAuth apiAppResponseOAuth = (ApiAppResponseOAuth) o;
return Objects.equals(this.callbackUrl, apiAppResponseOAuth.callbackUrl)
- && Objects.equals(this.secret, apiAppResponseOAuth.secret)
&& Objects.equals(this.scopes, apiAppResponseOAuth.scopes)
- && Objects.equals(this.chargesUsers, apiAppResponseOAuth.chargesUsers);
+ && Objects.equals(this.chargesUsers, apiAppResponseOAuth.chargesUsers)
+ && Objects.equals(this.secret, apiAppResponseOAuth.secret);
}
@Override
public int hashCode() {
- return Objects.hash(callbackUrl, secret, scopes, chargesUsers);
+ return Objects.hash(callbackUrl, scopes, chargesUsers, secret);
}
@Override
@@ -191,9 +194,9 @@ public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ApiAppResponseOAuth {\n");
sb.append(" callbackUrl: ").append(toIndentedString(callbackUrl)).append("\n");
- sb.append(" secret: ").append(toIndentedString(secret)).append("\n");
sb.append(" scopes: ").append(toIndentedString(scopes)).append("\n");
sb.append(" chargesUsers: ").append(toIndentedString(chargesUsers)).append("\n");
+ sb.append(" secret: ").append(toIndentedString(secret)).append("\n");
sb.append("}");
return sb.toString();
}
@@ -222,24 +225,6 @@ public Map createFormData() throws ApiException {
JSON.getDefault().getMapper().writeValueAsString(callbackUrl));
}
}
- if (secret != null) {
- if (isFileTypeOrListOfFiles(secret)) {
- fileTypeFound = true;
- }
-
- if (secret.getClass().equals(java.io.File.class)
- || secret.getClass().equals(Integer.class)
- || secret.getClass().equals(String.class)
- || secret.getClass().isEnum()) {
- map.put("secret", secret);
- } else if (isListOfFile(secret)) {
- for (int i = 0; i < getListSize(secret); i++) {
- map.put("secret[" + i + "]", getFromList(secret, i));
- }
- } else {
- map.put("secret", JSON.getDefault().getMapper().writeValueAsString(secret));
- }
- }
if (scopes != null) {
if (isFileTypeOrListOfFiles(scopes)) {
fileTypeFound = true;
@@ -278,6 +263,24 @@ public Map createFormData() throws ApiException {
JSON.getDefault().getMapper().writeValueAsString(chargesUsers));
}
}
+ if (secret != null) {
+ if (isFileTypeOrListOfFiles(secret)) {
+ fileTypeFound = true;
+ }
+
+ if (secret.getClass().equals(java.io.File.class)
+ || secret.getClass().equals(Integer.class)
+ || secret.getClass().equals(String.class)
+ || secret.getClass().isEnum()) {
+ map.put("secret", secret);
+ } else if (isListOfFile(secret)) {
+ for (int i = 0; i < getListSize(secret); i++) {
+ map.put("secret[" + i + "]", getFromList(secret, i));
+ }
+ } else {
+ map.put("secret", JSON.getDefault().getMapper().writeValueAsString(secret));
+ }
+ }
} catch (Exception e) {
throw new ApiException(e);
}
diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponseOptions.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponseOptions.java
index e2d672dda..4ad1d6b51 100644
--- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponseOptions.java
+++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponseOptions.java
@@ -61,14 +61,15 @@ public ApiAppResponseOptions canInsertEverywhere(Boolean canInsertEverywhere) {
*
* @return canInsertEverywhere
*/
- @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CAN_INSERT_EVERYWHERE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @javax.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_CAN_INSERT_EVERYWHERE)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getCanInsertEverywhere() {
return canInsertEverywhere;
}
@JsonProperty(JSON_PROPERTY_CAN_INSERT_EVERYWHERE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCanInsertEverywhere(Boolean canInsertEverywhere) {
this.canInsertEverywhere = canInsertEverywhere;
}
diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponseOwnerAccount.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponseOwnerAccount.java
index 7107a4329..be257dcf7 100644
--- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponseOwnerAccount.java
+++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponseOwnerAccount.java
@@ -67,14 +67,15 @@ public ApiAppResponseOwnerAccount accountId(String accountId) {
*
* @return accountId
*/
- @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNT_ID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @javax.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_ACCOUNT_ID)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getAccountId() {
return accountId;
}
@JsonProperty(JSON_PROPERTY_ACCOUNT_ID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setAccountId(String accountId) {
this.accountId = accountId;
}
@@ -89,14 +90,15 @@ public ApiAppResponseOwnerAccount emailAddress(String emailAddress) {
*
* @return emailAddress
*/
- @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @javax.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getEmailAddress() {
return emailAddress;
}
@JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setEmailAddress(String emailAddress) {
this.emailAddress = emailAddress;
}
diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponseWhiteLabelingOptions.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponseWhiteLabelingOptions.java
index 6efd8fc40..a788eb405 100644
--- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponseWhiteLabelingOptions.java
+++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponseWhiteLabelingOptions.java
@@ -121,14 +121,15 @@ public ApiAppResponseWhiteLabelingOptions headerBackgroundColor(String headerBac
*
* @return headerBackgroundColor
*/
- @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_HEADER_BACKGROUND_COLOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @javax.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_HEADER_BACKGROUND_COLOR)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getHeaderBackgroundColor() {
return headerBackgroundColor;
}
@JsonProperty(JSON_PROPERTY_HEADER_BACKGROUND_COLOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setHeaderBackgroundColor(String headerBackgroundColor) {
this.headerBackgroundColor = headerBackgroundColor;
}
@@ -143,14 +144,15 @@ public ApiAppResponseWhiteLabelingOptions legalVersion(String legalVersion) {
*
* @return legalVersion
*/
- @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_LEGAL_VERSION)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @javax.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_LEGAL_VERSION)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getLegalVersion() {
return legalVersion;
}
@JsonProperty(JSON_PROPERTY_LEGAL_VERSION)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setLegalVersion(String legalVersion) {
this.legalVersion = legalVersion;
}
@@ -165,14 +167,15 @@ public ApiAppResponseWhiteLabelingOptions linkColor(String linkColor) {
*
* @return linkColor
*/
- @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_LINK_COLOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @javax.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_LINK_COLOR)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getLinkColor() {
return linkColor;
}
@JsonProperty(JSON_PROPERTY_LINK_COLOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setLinkColor(String linkColor) {
this.linkColor = linkColor;
}
@@ -187,14 +190,15 @@ public ApiAppResponseWhiteLabelingOptions pageBackgroundColor(String pageBackgro
*
* @return pageBackgroundColor
*/
- @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PAGE_BACKGROUND_COLOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @javax.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_PAGE_BACKGROUND_COLOR)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getPageBackgroundColor() {
return pageBackgroundColor;
}
@JsonProperty(JSON_PROPERTY_PAGE_BACKGROUND_COLOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPageBackgroundColor(String pageBackgroundColor) {
this.pageBackgroundColor = pageBackgroundColor;
}
@@ -209,14 +213,15 @@ public ApiAppResponseWhiteLabelingOptions primaryButtonColor(String primaryButto
*
* @return primaryButtonColor
*/
- @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_COLOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @javax.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_COLOR)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getPrimaryButtonColor() {
return primaryButtonColor;
}
@JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_COLOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPrimaryButtonColor(String primaryButtonColor) {
this.primaryButtonColor = primaryButtonColor;
}
@@ -232,14 +237,15 @@ public ApiAppResponseWhiteLabelingOptions primaryButtonColorHover(
*
* @return primaryButtonColorHover
*/
- @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_COLOR_HOVER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @javax.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_COLOR_HOVER)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getPrimaryButtonColorHover() {
return primaryButtonColorHover;
}
@JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_COLOR_HOVER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPrimaryButtonColorHover(String primaryButtonColorHover) {
this.primaryButtonColorHover = primaryButtonColorHover;
}
@@ -255,14 +261,15 @@ public ApiAppResponseWhiteLabelingOptions primaryButtonTextColor(
*
* @return primaryButtonTextColor
*/
- @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @javax.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getPrimaryButtonTextColor() {
return primaryButtonTextColor;
}
@JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPrimaryButtonTextColor(String primaryButtonTextColor) {
this.primaryButtonTextColor = primaryButtonTextColor;
}
@@ -278,14 +285,15 @@ public ApiAppResponseWhiteLabelingOptions primaryButtonTextColorHover(
*
* @return primaryButtonTextColorHover
*/
- @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR_HOVER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @javax.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR_HOVER)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getPrimaryButtonTextColorHover() {
return primaryButtonTextColorHover;
}
@JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR_HOVER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPrimaryButtonTextColorHover(String primaryButtonTextColorHover) {
this.primaryButtonTextColorHover = primaryButtonTextColorHover;
}
@@ -300,14 +308,15 @@ public ApiAppResponseWhiteLabelingOptions secondaryButtonColor(String secondaryB
*
* @return secondaryButtonColor
*/
- @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_COLOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @javax.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_COLOR)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getSecondaryButtonColor() {
return secondaryButtonColor;
}
@JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_COLOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setSecondaryButtonColor(String secondaryButtonColor) {
this.secondaryButtonColor = secondaryButtonColor;
}
@@ -323,14 +332,15 @@ public ApiAppResponseWhiteLabelingOptions secondaryButtonColorHover(
*
* @return secondaryButtonColorHover
*/
- @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_COLOR_HOVER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @javax.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_COLOR_HOVER)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getSecondaryButtonColorHover() {
return secondaryButtonColorHover;
}
@JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_COLOR_HOVER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setSecondaryButtonColorHover(String secondaryButtonColorHover) {
this.secondaryButtonColorHover = secondaryButtonColorHover;
}
@@ -346,14 +356,15 @@ public ApiAppResponseWhiteLabelingOptions secondaryButtonTextColor(
*
* @return secondaryButtonTextColor
*/
- @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @javax.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getSecondaryButtonTextColor() {
return secondaryButtonTextColor;
}
@JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setSecondaryButtonTextColor(String secondaryButtonTextColor) {
this.secondaryButtonTextColor = secondaryButtonTextColor;
}
@@ -369,14 +380,15 @@ public ApiAppResponseWhiteLabelingOptions secondaryButtonTextColorHover(
*
* @return secondaryButtonTextColorHover
*/
- @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR_HOVER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @javax.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR_HOVER)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getSecondaryButtonTextColorHover() {
return secondaryButtonTextColorHover;
}
@JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR_HOVER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setSecondaryButtonTextColorHover(String secondaryButtonTextColorHover) {
this.secondaryButtonTextColorHover = secondaryButtonTextColorHover;
}
@@ -391,14 +403,15 @@ public ApiAppResponseWhiteLabelingOptions textColor1(String textColor1) {
*
* @return textColor1
*/
- @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEXT_COLOR1)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @javax.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_TEXT_COLOR1)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getTextColor1() {
return textColor1;
}
@JsonProperty(JSON_PROPERTY_TEXT_COLOR1)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setTextColor1(String textColor1) {
this.textColor1 = textColor1;
}
@@ -413,14 +426,15 @@ public ApiAppResponseWhiteLabelingOptions textColor2(String textColor2) {
*
* @return textColor2
*/
- @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEXT_COLOR2)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @javax.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_TEXT_COLOR2)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getTextColor2() {
return textColor2;
}
@JsonProperty(JSON_PROPERTY_TEXT_COLOR2)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setTextColor2(String textColor2) {
this.textColor2 = textColor2;
}
diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubWhiteLabelingOptions.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubWhiteLabelingOptions.java
index 450ca3d7c..2737e1b6d 100644
--- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubWhiteLabelingOptions.java
+++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubWhiteLabelingOptions.java
@@ -53,7 +53,7 @@
@JsonIgnoreProperties(ignoreUnknown = true)
public class SubWhiteLabelingOptions {
public static final String JSON_PROPERTY_HEADER_BACKGROUND_COLOR = "header_background_color";
- private String headerBackgroundColor = "#1A1A1A";
+ private String headerBackgroundColor = "#1a1a1a";
/** Gets or Sets legalVersion */
public enum LegalVersionEnum {
@@ -92,46 +92,46 @@ public static LegalVersionEnum fromValue(String value) {
private LegalVersionEnum legalVersion = LegalVersionEnum.TERMS1;
public static final String JSON_PROPERTY_LINK_COLOR = "link_color";
- private String linkColor = "#00B3E6";
+ private String linkColor = "#0061FE";
public static final String JSON_PROPERTY_PAGE_BACKGROUND_COLOR = "page_background_color";
- private String pageBackgroundColor = "#F7F8F9";
+ private String pageBackgroundColor = "#f7f8f9";
public static final String JSON_PROPERTY_PRIMARY_BUTTON_COLOR = "primary_button_color";
- private String primaryButtonColor = "#00B3E6";
+ private String primaryButtonColor = "#0061FE";
public static final String JSON_PROPERTY_PRIMARY_BUTTON_COLOR_HOVER =
"primary_button_color_hover";
- private String primaryButtonColorHover = "#00B3E6";
+ private String primaryButtonColorHover = "#0061FE";
public static final String JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR =
"primary_button_text_color";
- private String primaryButtonTextColor = "#FFFFFF";
+ private String primaryButtonTextColor = "#ffffff";
public static final String JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR_HOVER =
"primary_button_text_color_hover";
- private String primaryButtonTextColorHover = "#FFFFFF";
+ private String primaryButtonTextColorHover = "#ffffff";
public static final String JSON_PROPERTY_SECONDARY_BUTTON_COLOR = "secondary_button_color";
- private String secondaryButtonColor = "#FFFFFF";
+ private String secondaryButtonColor = "#ffffff";
public static final String JSON_PROPERTY_SECONDARY_BUTTON_COLOR_HOVER =
"secondary_button_color_hover";
- private String secondaryButtonColorHover = "#FFFFFF";
+ private String secondaryButtonColorHover = "#ffffff";
public static final String JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR =
"secondary_button_text_color";
- private String secondaryButtonTextColor = "#00B3E6";
+ private String secondaryButtonTextColor = "#0061FE";
public static final String JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR_HOVER =
"secondary_button_text_color_hover";
- private String secondaryButtonTextColorHover = "#00B3E6";
+ private String secondaryButtonTextColorHover = "#0061FE";
public static final String JSON_PROPERTY_TEXT_COLOR1 = "text_color1";
private String textColor1 = "#808080";
public static final String JSON_PROPERTY_TEXT_COLOR2 = "text_color2";
- private String textColor2 = "#FFFFFF";
+ private String textColor2 = "#ffffff";
public static final String JSON_PROPERTY_RESET_TO_DEFAULT = "reset_to_default";
private Boolean resetToDefault;
diff --git a/sdks/java-v2/docs/ApiAppResponse.md b/sdks/java-v2/docs/ApiAppResponse.md
index afe95c850..7eb6e967d 100644
--- a/sdks/java-v2/docs/ApiAppResponse.md
+++ b/sdks/java-v2/docs/ApiAppResponse.md
@@ -8,15 +8,15 @@ Contains information about an API App.
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
+| `clientId`*_required_ | ```String``` | The app's client id | |
+| `createdAt`*_required_ | ```Integer``` | The time that the app was created | |
+| `domains`*_required_ | ```List``` | The domain name(s) associated with the app | |
+| `name`*_required_ | ```String``` | The name of the app | |
+| `isApproved`*_required_ | ```Boolean``` | Boolean to indicate if the app has been approved | |
+| `options`*_required_ | [```ApiAppResponseOptions```](ApiAppResponseOptions.md) | | |
+| `ownerAccount`*_required_ | [```ApiAppResponseOwnerAccount```](ApiAppResponseOwnerAccount.md) | | |
| `callbackUrl` | ```String``` | The app's callback URL (for events) | |
-| `clientId` | ```String``` | The app's client id | |
-| `createdAt` | ```Integer``` | The time that the app was created | |
-| `domains` | ```List``` | The domain name(s) associated with the app | |
-| `name` | ```String``` | The name of the app | |
-| `isApproved` | ```Boolean``` | Boolean to indicate if the app has been approved | |
| `oauth` | [```ApiAppResponseOAuth```](ApiAppResponseOAuth.md) | | |
-| `options` | [```ApiAppResponseOptions```](ApiAppResponseOptions.md) | | |
-| `ownerAccount` | [```ApiAppResponseOwnerAccount```](ApiAppResponseOwnerAccount.md) | | |
| `whiteLabelingOptions` | [```ApiAppResponseWhiteLabelingOptions```](ApiAppResponseWhiteLabelingOptions.md) | | |
diff --git a/sdks/java-v2/docs/ApiAppResponseOAuth.md b/sdks/java-v2/docs/ApiAppResponseOAuth.md
index c2f705c7a..93f22d3cc 100644
--- a/sdks/java-v2/docs/ApiAppResponseOAuth.md
+++ b/sdks/java-v2/docs/ApiAppResponseOAuth.md
@@ -8,10 +8,10 @@ An object describing the app's OAuth properties, or null if OAuth is not con
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
-| `callbackUrl` | ```String``` | The app's OAuth callback URL. | |
+| `callbackUrl`*_required_ | ```String``` | The app's OAuth callback URL. | |
+| `scopes`*_required_ | ```List``` | Array of OAuth scopes used by the app. | |
+| `chargesUsers`*_required_ | ```Boolean``` | Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests. | |
| `secret` | ```String``` | The app's OAuth secret, or null if the app does not belong to user. | |
-| `scopes` | ```List``` | Array of OAuth scopes used by the app. | |
-| `chargesUsers` | ```Boolean``` | Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests. | |
diff --git a/sdks/java-v2/docs/ApiAppResponseOptions.md b/sdks/java-v2/docs/ApiAppResponseOptions.md
index 07979f387..e6694664d 100644
--- a/sdks/java-v2/docs/ApiAppResponseOptions.md
+++ b/sdks/java-v2/docs/ApiAppResponseOptions.md
@@ -8,7 +8,7 @@ An object with options that override account settings.
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
-| `canInsertEverywhere` | ```Boolean``` | Boolean denoting if signers can "Insert Everywhere" in one click while signing a document | |
+| `canInsertEverywhere`*_required_ | ```Boolean``` | Boolean denoting if signers can "Insert Everywhere" in one click while signing a document | |
diff --git a/sdks/java-v2/docs/ApiAppResponseOwnerAccount.md b/sdks/java-v2/docs/ApiAppResponseOwnerAccount.md
index b4d6d4249..a9c5142b3 100644
--- a/sdks/java-v2/docs/ApiAppResponseOwnerAccount.md
+++ b/sdks/java-v2/docs/ApiAppResponseOwnerAccount.md
@@ -8,8 +8,8 @@ An object describing the app's owner
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
-| `accountId` | ```String``` | The owner account's ID | |
-| `emailAddress` | ```String``` | The owner account's email address | |
+| `accountId`*_required_ | ```String``` | The owner account's ID | |
+| `emailAddress`*_required_ | ```String``` | The owner account's email address | |
diff --git a/sdks/java-v2/docs/ApiAppResponseWhiteLabelingOptions.md b/sdks/java-v2/docs/ApiAppResponseWhiteLabelingOptions.md
index be6d022fd..f26b0591e 100644
--- a/sdks/java-v2/docs/ApiAppResponseWhiteLabelingOptions.md
+++ b/sdks/java-v2/docs/ApiAppResponseWhiteLabelingOptions.md
@@ -8,20 +8,20 @@ An object with options to customize the app's signer page
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
-| `headerBackgroundColor` | ```String``` | | |
-| `legalVersion` | ```String``` | | |
-| `linkColor` | ```String``` | | |
-| `pageBackgroundColor` | ```String``` | | |
-| `primaryButtonColor` | ```String``` | | |
-| `primaryButtonColorHover` | ```String``` | | |
-| `primaryButtonTextColor` | ```String``` | | |
-| `primaryButtonTextColorHover` | ```String``` | | |
-| `secondaryButtonColor` | ```String``` | | |
-| `secondaryButtonColorHover` | ```String``` | | |
-| `secondaryButtonTextColor` | ```String``` | | |
-| `secondaryButtonTextColorHover` | ```String``` | | |
-| `textColor1` | ```String``` | | |
-| `textColor2` | ```String``` | | |
+| `headerBackgroundColor`*_required_ | ```String``` | | |
+| `legalVersion`*_required_ | ```String``` | | |
+| `linkColor`*_required_ | ```String``` | | |
+| `pageBackgroundColor`*_required_ | ```String``` | | |
+| `primaryButtonColor`*_required_ | ```String``` | | |
+| `primaryButtonColorHover`*_required_ | ```String``` | | |
+| `primaryButtonTextColor`*_required_ | ```String``` | | |
+| `primaryButtonTextColorHover`*_required_ | ```String``` | | |
+| `secondaryButtonColor`*_required_ | ```String``` | | |
+| `secondaryButtonColorHover`*_required_ | ```String``` | | |
+| `secondaryButtonTextColor`*_required_ | ```String``` | | |
+| `secondaryButtonTextColorHover`*_required_ | ```String``` | | |
+| `textColor1`*_required_ | ```String``` | | |
+| `textColor2`*_required_ | ```String``` | | |
diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponse.java
index ee5f12eaf..a77dd8745 100644
--- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponse.java
+++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponse.java
@@ -39,23 +39,20 @@
* Contains information about an API App.
*/
@JsonPropertyOrder({
- ApiAppResponse.JSON_PROPERTY_CALLBACK_URL,
ApiAppResponse.JSON_PROPERTY_CLIENT_ID,
ApiAppResponse.JSON_PROPERTY_CREATED_AT,
ApiAppResponse.JSON_PROPERTY_DOMAINS,
ApiAppResponse.JSON_PROPERTY_NAME,
ApiAppResponse.JSON_PROPERTY_IS_APPROVED,
- ApiAppResponse.JSON_PROPERTY_OAUTH,
ApiAppResponse.JSON_PROPERTY_OPTIONS,
ApiAppResponse.JSON_PROPERTY_OWNER_ACCOUNT,
+ ApiAppResponse.JSON_PROPERTY_CALLBACK_URL,
+ ApiAppResponse.JSON_PROPERTY_OAUTH,
ApiAppResponse.JSON_PROPERTY_WHITE_LABELING_OPTIONS
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0")
@JsonIgnoreProperties(ignoreUnknown=true)
public class ApiAppResponse {
- public static final String JSON_PROPERTY_CALLBACK_URL = "callback_url";
- private String callbackUrl;
-
public static final String JSON_PROPERTY_CLIENT_ID = "client_id";
private String clientId;
@@ -63,7 +60,7 @@ public class ApiAppResponse {
private Integer createdAt;
public static final String JSON_PROPERTY_DOMAINS = "domains";
- private List domains = null;
+ private List domains = new ArrayList<>();
public static final String JSON_PROPERTY_NAME = "name";
private String name;
@@ -71,15 +68,18 @@ public class ApiAppResponse {
public static final String JSON_PROPERTY_IS_APPROVED = "is_approved";
private Boolean isApproved;
- public static final String JSON_PROPERTY_OAUTH = "oauth";
- private ApiAppResponseOAuth oauth;
-
public static final String JSON_PROPERTY_OPTIONS = "options";
private ApiAppResponseOptions options;
public static final String JSON_PROPERTY_OWNER_ACCOUNT = "owner_account";
private ApiAppResponseOwnerAccount ownerAccount;
+ public static final String JSON_PROPERTY_CALLBACK_URL = "callback_url";
+ private String callbackUrl;
+
+ public static final String JSON_PROPERTY_OAUTH = "oauth";
+ private ApiAppResponseOAuth oauth;
+
public static final String JSON_PROPERTY_WHITE_LABELING_OPTIONS = "white_labeling_options";
private ApiAppResponseWhiteLabelingOptions whiteLabelingOptions;
@@ -101,31 +101,6 @@ static public ApiAppResponse init(HashMap data) throws Exception {
);
}
- public ApiAppResponse callbackUrl(String callbackUrl) {
- this.callbackUrl = callbackUrl;
- return this;
- }
-
- /**
- * The app's callback URL (for events)
- * @return callbackUrl
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_CALLBACK_URL)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getCallbackUrl() {
- return callbackUrl;
- }
-
-
- @JsonProperty(JSON_PROPERTY_CALLBACK_URL)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setCallbackUrl(String callbackUrl) {
- this.callbackUrl = callbackUrl;
- }
-
-
public ApiAppResponse clientId(String clientId) {
this.clientId = clientId;
return this;
@@ -135,9 +110,9 @@ public ApiAppResponse clientId(String clientId) {
* The app's client id
* @return clientId
*/
- @jakarta.annotation.Nullable
+ @jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_CLIENT_ID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getClientId() {
return clientId;
@@ -145,7 +120,7 @@ public String getClientId() {
@JsonProperty(JSON_PROPERTY_CLIENT_ID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setClientId(String clientId) {
this.clientId = clientId;
}
@@ -160,9 +135,9 @@ public ApiAppResponse createdAt(Integer createdAt) {
* The time that the app was created
* @return createdAt
*/
- @jakarta.annotation.Nullable
+ @jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_CREATED_AT)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getCreatedAt() {
return createdAt;
@@ -170,7 +145,7 @@ public Integer getCreatedAt() {
@JsonProperty(JSON_PROPERTY_CREATED_AT)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCreatedAt(Integer createdAt) {
this.createdAt = createdAt;
}
@@ -193,9 +168,9 @@ public ApiAppResponse addDomainsItem(String domainsItem) {
* The domain name(s) associated with the app
* @return domains
*/
- @jakarta.annotation.Nullable
+ @jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_DOMAINS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getDomains() {
return domains;
@@ -203,7 +178,7 @@ public List getDomains() {
@JsonProperty(JSON_PROPERTY_DOMAINS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setDomains(List domains) {
this.domains = domains;
}
@@ -218,9 +193,9 @@ public ApiAppResponse name(String name) {
* The name of the app
* @return name
*/
- @jakarta.annotation.Nullable
+ @jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_NAME)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getName() {
return name;
@@ -228,7 +203,7 @@ public String getName() {
@JsonProperty(JSON_PROPERTY_NAME)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setName(String name) {
this.name = name;
}
@@ -243,9 +218,9 @@ public ApiAppResponse isApproved(Boolean isApproved) {
* Boolean to indicate if the app has been approved
* @return isApproved
*/
- @jakarta.annotation.Nullable
+ @jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_IS_APPROVED)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getIsApproved() {
return isApproved;
@@ -253,37 +228,12 @@ public Boolean getIsApproved() {
@JsonProperty(JSON_PROPERTY_IS_APPROVED)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setIsApproved(Boolean isApproved) {
this.isApproved = isApproved;
}
- public ApiAppResponse oauth(ApiAppResponseOAuth oauth) {
- this.oauth = oauth;
- return this;
- }
-
- /**
- * Get oauth
- * @return oauth
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_OAUTH)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public ApiAppResponseOAuth getOauth() {
- return oauth;
- }
-
-
- @JsonProperty(JSON_PROPERTY_OAUTH)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setOauth(ApiAppResponseOAuth oauth) {
- this.oauth = oauth;
- }
-
-
public ApiAppResponse options(ApiAppResponseOptions options) {
this.options = options;
return this;
@@ -293,9 +243,9 @@ public ApiAppResponse options(ApiAppResponseOptions options) {
* Get options
* @return options
*/
- @jakarta.annotation.Nullable
+ @jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_OPTIONS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public ApiAppResponseOptions getOptions() {
return options;
@@ -303,7 +253,7 @@ public ApiAppResponseOptions getOptions() {
@JsonProperty(JSON_PROPERTY_OPTIONS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setOptions(ApiAppResponseOptions options) {
this.options = options;
}
@@ -318,9 +268,9 @@ public ApiAppResponse ownerAccount(ApiAppResponseOwnerAccount ownerAccount) {
* Get ownerAccount
* @return ownerAccount
*/
- @jakarta.annotation.Nullable
+ @jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_OWNER_ACCOUNT)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public ApiAppResponseOwnerAccount getOwnerAccount() {
return ownerAccount;
@@ -328,12 +278,62 @@ public ApiAppResponseOwnerAccount getOwnerAccount() {
@JsonProperty(JSON_PROPERTY_OWNER_ACCOUNT)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setOwnerAccount(ApiAppResponseOwnerAccount ownerAccount) {
this.ownerAccount = ownerAccount;
}
+ public ApiAppResponse callbackUrl(String callbackUrl) {
+ this.callbackUrl = callbackUrl;
+ return this;
+ }
+
+ /**
+ * The app's callback URL (for events)
+ * @return callbackUrl
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_CALLBACK_URL)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+
+ public String getCallbackUrl() {
+ return callbackUrl;
+ }
+
+
+ @JsonProperty(JSON_PROPERTY_CALLBACK_URL)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public void setCallbackUrl(String callbackUrl) {
+ this.callbackUrl = callbackUrl;
+ }
+
+
+ public ApiAppResponse oauth(ApiAppResponseOAuth oauth) {
+ this.oauth = oauth;
+ return this;
+ }
+
+ /**
+ * Get oauth
+ * @return oauth
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_OAUTH)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+
+ public ApiAppResponseOAuth getOauth() {
+ return oauth;
+ }
+
+
+ @JsonProperty(JSON_PROPERTY_OAUTH)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public void setOauth(ApiAppResponseOAuth oauth) {
+ this.oauth = oauth;
+ }
+
+
public ApiAppResponse whiteLabelingOptions(ApiAppResponseWhiteLabelingOptions whiteLabelingOptions) {
this.whiteLabelingOptions = whiteLabelingOptions;
return this;
@@ -371,36 +371,36 @@ public boolean equals(Object o) {
return false;
}
ApiAppResponse apiAppResponse = (ApiAppResponse) o;
- return Objects.equals(this.callbackUrl, apiAppResponse.callbackUrl) &&
- Objects.equals(this.clientId, apiAppResponse.clientId) &&
+ return Objects.equals(this.clientId, apiAppResponse.clientId) &&
Objects.equals(this.createdAt, apiAppResponse.createdAt) &&
Objects.equals(this.domains, apiAppResponse.domains) &&
Objects.equals(this.name, apiAppResponse.name) &&
Objects.equals(this.isApproved, apiAppResponse.isApproved) &&
- Objects.equals(this.oauth, apiAppResponse.oauth) &&
Objects.equals(this.options, apiAppResponse.options) &&
Objects.equals(this.ownerAccount, apiAppResponse.ownerAccount) &&
+ Objects.equals(this.callbackUrl, apiAppResponse.callbackUrl) &&
+ Objects.equals(this.oauth, apiAppResponse.oauth) &&
Objects.equals(this.whiteLabelingOptions, apiAppResponse.whiteLabelingOptions);
}
@Override
public int hashCode() {
- return Objects.hash(callbackUrl, clientId, createdAt, domains, name, isApproved, oauth, options, ownerAccount, whiteLabelingOptions);
+ return Objects.hash(clientId, createdAt, domains, name, isApproved, options, ownerAccount, callbackUrl, oauth, whiteLabelingOptions);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ApiAppResponse {\n");
- sb.append(" callbackUrl: ").append(toIndentedString(callbackUrl)).append("\n");
sb.append(" clientId: ").append(toIndentedString(clientId)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" domains: ").append(toIndentedString(domains)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" isApproved: ").append(toIndentedString(isApproved)).append("\n");
- sb.append(" oauth: ").append(toIndentedString(oauth)).append("\n");
sb.append(" options: ").append(toIndentedString(options)).append("\n");
sb.append(" ownerAccount: ").append(toIndentedString(ownerAccount)).append("\n");
+ sb.append(" callbackUrl: ").append(toIndentedString(callbackUrl)).append("\n");
+ sb.append(" oauth: ").append(toIndentedString(oauth)).append("\n");
sb.append(" whiteLabelingOptions: ").append(toIndentedString(whiteLabelingOptions)).append("\n");
sb.append("}");
return sb.toString();
@@ -410,25 +410,6 @@ public Map createFormData() throws ApiException {
Map map = new HashMap<>();
boolean fileTypeFound = false;
try {
- if (callbackUrl != null) {
- if (isFileTypeOrListOfFiles(callbackUrl)) {
- fileTypeFound = true;
- }
-
- if (callbackUrl.getClass().equals(java.io.File.class) ||
- callbackUrl.getClass().equals(Integer.class) ||
- callbackUrl.getClass().equals(String.class) ||
- callbackUrl.getClass().isEnum()) {
- map.put("callback_url", callbackUrl);
- } else if (isListOfFile(callbackUrl)) {
- for(int i = 0; i< getListSize(callbackUrl); i++) {
- map.put("callback_url[" + i + "]", getFromList(callbackUrl, i));
- }
- }
- else {
- map.put("callback_url", JSON.getDefault().getMapper().writeValueAsString(callbackUrl));
- }
- }
if (clientId != null) {
if (isFileTypeOrListOfFiles(clientId)) {
fileTypeFound = true;
@@ -524,25 +505,6 @@ public Map createFormData() throws ApiException {
map.put("is_approved", JSON.getDefault().getMapper().writeValueAsString(isApproved));
}
}
- if (oauth != null) {
- if (isFileTypeOrListOfFiles(oauth)) {
- fileTypeFound = true;
- }
-
- if (oauth.getClass().equals(java.io.File.class) ||
- oauth.getClass().equals(Integer.class) ||
- oauth.getClass().equals(String.class) ||
- oauth.getClass().isEnum()) {
- map.put("oauth", oauth);
- } else if (isListOfFile(oauth)) {
- for(int i = 0; i< getListSize(oauth); i++) {
- map.put("oauth[" + i + "]", getFromList(oauth, i));
- }
- }
- else {
- map.put("oauth", JSON.getDefault().getMapper().writeValueAsString(oauth));
- }
- }
if (options != null) {
if (isFileTypeOrListOfFiles(options)) {
fileTypeFound = true;
@@ -581,6 +543,44 @@ public Map createFormData() throws ApiException {
map.put("owner_account", JSON.getDefault().getMapper().writeValueAsString(ownerAccount));
}
}
+ if (callbackUrl != null) {
+ if (isFileTypeOrListOfFiles(callbackUrl)) {
+ fileTypeFound = true;
+ }
+
+ if (callbackUrl.getClass().equals(java.io.File.class) ||
+ callbackUrl.getClass().equals(Integer.class) ||
+ callbackUrl.getClass().equals(String.class) ||
+ callbackUrl.getClass().isEnum()) {
+ map.put("callback_url", callbackUrl);
+ } else if (isListOfFile(callbackUrl)) {
+ for(int i = 0; i< getListSize(callbackUrl); i++) {
+ map.put("callback_url[" + i + "]", getFromList(callbackUrl, i));
+ }
+ }
+ else {
+ map.put("callback_url", JSON.getDefault().getMapper().writeValueAsString(callbackUrl));
+ }
+ }
+ if (oauth != null) {
+ if (isFileTypeOrListOfFiles(oauth)) {
+ fileTypeFound = true;
+ }
+
+ if (oauth.getClass().equals(java.io.File.class) ||
+ oauth.getClass().equals(Integer.class) ||
+ oauth.getClass().equals(String.class) ||
+ oauth.getClass().isEnum()) {
+ map.put("oauth", oauth);
+ } else if (isListOfFile(oauth)) {
+ for(int i = 0; i< getListSize(oauth); i++) {
+ map.put("oauth[" + i + "]", getFromList(oauth, i));
+ }
+ }
+ else {
+ map.put("oauth", JSON.getDefault().getMapper().writeValueAsString(oauth));
+ }
+ }
if (whiteLabelingOptions != null) {
if (isFileTypeOrListOfFiles(whiteLabelingOptions)) {
fileTypeFound = true;
diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponseOAuth.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponseOAuth.java
index b071e4067..ae0ebedbd 100644
--- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponseOAuth.java
+++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponseOAuth.java
@@ -36,9 +36,9 @@
*/
@JsonPropertyOrder({
ApiAppResponseOAuth.JSON_PROPERTY_CALLBACK_URL,
- ApiAppResponseOAuth.JSON_PROPERTY_SECRET,
ApiAppResponseOAuth.JSON_PROPERTY_SCOPES,
- ApiAppResponseOAuth.JSON_PROPERTY_CHARGES_USERS
+ ApiAppResponseOAuth.JSON_PROPERTY_CHARGES_USERS,
+ ApiAppResponseOAuth.JSON_PROPERTY_SECRET
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0")
@JsonIgnoreProperties(ignoreUnknown=true)
@@ -46,15 +46,15 @@ public class ApiAppResponseOAuth {
public static final String JSON_PROPERTY_CALLBACK_URL = "callback_url";
private String callbackUrl;
- public static final String JSON_PROPERTY_SECRET = "secret";
- private String secret;
-
public static final String JSON_PROPERTY_SCOPES = "scopes";
- private List scopes = null;
+ private List scopes = new ArrayList<>();
public static final String JSON_PROPERTY_CHARGES_USERS = "charges_users";
private Boolean chargesUsers;
+ public static final String JSON_PROPERTY_SECRET = "secret";
+ private String secret;
+
public ApiAppResponseOAuth() {
}
@@ -82,9 +82,9 @@ public ApiAppResponseOAuth callbackUrl(String callbackUrl) {
* The app's OAuth callback URL.
* @return callbackUrl
*/
- @jakarta.annotation.Nullable
+ @jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_CALLBACK_URL)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getCallbackUrl() {
return callbackUrl;
@@ -92,37 +92,12 @@ public String getCallbackUrl() {
@JsonProperty(JSON_PROPERTY_CALLBACK_URL)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCallbackUrl(String callbackUrl) {
this.callbackUrl = callbackUrl;
}
- public ApiAppResponseOAuth secret(String secret) {
- this.secret = secret;
- return this;
- }
-
- /**
- * The app's OAuth secret, or null if the app does not belong to user.
- * @return secret
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_SECRET)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getSecret() {
- return secret;
- }
-
-
- @JsonProperty(JSON_PROPERTY_SECRET)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setSecret(String secret) {
- this.secret = secret;
- }
-
-
public ApiAppResponseOAuth scopes(List scopes) {
this.scopes = scopes;
return this;
@@ -140,9 +115,9 @@ public ApiAppResponseOAuth addScopesItem(String scopesItem) {
* Array of OAuth scopes used by the app.
* @return scopes
*/
- @jakarta.annotation.Nullable
+ @jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_SCOPES)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getScopes() {
return scopes;
@@ -150,7 +125,7 @@ public List getScopes() {
@JsonProperty(JSON_PROPERTY_SCOPES)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setScopes(List scopes) {
this.scopes = scopes;
}
@@ -165,9 +140,9 @@ public ApiAppResponseOAuth chargesUsers(Boolean chargesUsers) {
* Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests.
* @return chargesUsers
*/
- @jakarta.annotation.Nullable
+ @jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_CHARGES_USERS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getChargesUsers() {
return chargesUsers;
@@ -175,12 +150,37 @@ public Boolean getChargesUsers() {
@JsonProperty(JSON_PROPERTY_CHARGES_USERS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setChargesUsers(Boolean chargesUsers) {
this.chargesUsers = chargesUsers;
}
+ public ApiAppResponseOAuth secret(String secret) {
+ this.secret = secret;
+ return this;
+ }
+
+ /**
+ * The app's OAuth secret, or null if the app does not belong to user.
+ * @return secret
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_SECRET)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+
+ public String getSecret() {
+ return secret;
+ }
+
+
+ @JsonProperty(JSON_PROPERTY_SECRET)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public void setSecret(String secret) {
+ this.secret = secret;
+ }
+
+
/**
* Return true if this ApiAppResponseOAuth object is equal to o.
*/
@@ -194,14 +194,14 @@ public boolean equals(Object o) {
}
ApiAppResponseOAuth apiAppResponseOAuth = (ApiAppResponseOAuth) o;
return Objects.equals(this.callbackUrl, apiAppResponseOAuth.callbackUrl) &&
- Objects.equals(this.secret, apiAppResponseOAuth.secret) &&
Objects.equals(this.scopes, apiAppResponseOAuth.scopes) &&
- Objects.equals(this.chargesUsers, apiAppResponseOAuth.chargesUsers);
+ Objects.equals(this.chargesUsers, apiAppResponseOAuth.chargesUsers) &&
+ Objects.equals(this.secret, apiAppResponseOAuth.secret);
}
@Override
public int hashCode() {
- return Objects.hash(callbackUrl, secret, scopes, chargesUsers);
+ return Objects.hash(callbackUrl, scopes, chargesUsers, secret);
}
@Override
@@ -209,9 +209,9 @@ public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ApiAppResponseOAuth {\n");
sb.append(" callbackUrl: ").append(toIndentedString(callbackUrl)).append("\n");
- sb.append(" secret: ").append(toIndentedString(secret)).append("\n");
sb.append(" scopes: ").append(toIndentedString(scopes)).append("\n");
sb.append(" chargesUsers: ").append(toIndentedString(chargesUsers)).append("\n");
+ sb.append(" secret: ").append(toIndentedString(secret)).append("\n");
sb.append("}");
return sb.toString();
}
@@ -239,25 +239,6 @@ public Map createFormData() throws ApiException {
map.put("callback_url", JSON.getDefault().getMapper().writeValueAsString(callbackUrl));
}
}
- if (secret != null) {
- if (isFileTypeOrListOfFiles(secret)) {
- fileTypeFound = true;
- }
-
- if (secret.getClass().equals(java.io.File.class) ||
- secret.getClass().equals(Integer.class) ||
- secret.getClass().equals(String.class) ||
- secret.getClass().isEnum()) {
- map.put("secret", secret);
- } else if (isListOfFile(secret)) {
- for(int i = 0; i< getListSize(secret); i++) {
- map.put("secret[" + i + "]", getFromList(secret, i));
- }
- }
- else {
- map.put("secret", JSON.getDefault().getMapper().writeValueAsString(secret));
- }
- }
if (scopes != null) {
if (isFileTypeOrListOfFiles(scopes)) {
fileTypeFound = true;
@@ -296,6 +277,25 @@ public Map createFormData() throws ApiException {
map.put("charges_users", JSON.getDefault().getMapper().writeValueAsString(chargesUsers));
}
}
+ if (secret != null) {
+ if (isFileTypeOrListOfFiles(secret)) {
+ fileTypeFound = true;
+ }
+
+ if (secret.getClass().equals(java.io.File.class) ||
+ secret.getClass().equals(Integer.class) ||
+ secret.getClass().equals(String.class) ||
+ secret.getClass().isEnum()) {
+ map.put("secret", secret);
+ } else if (isListOfFile(secret)) {
+ for(int i = 0; i< getListSize(secret); i++) {
+ map.put("secret[" + i + "]", getFromList(secret, i));
+ }
+ }
+ else {
+ map.put("secret", JSON.getDefault().getMapper().writeValueAsString(secret));
+ }
+ }
} catch (Exception e) {
throw new ApiException(e);
}
diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponseOptions.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponseOptions.java
index 2cffd69d5..8ef6ba51f 100644
--- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponseOptions.java
+++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponseOptions.java
@@ -68,9 +68,9 @@ public ApiAppResponseOptions canInsertEverywhere(Boolean canInsertEverywhere) {
* Boolean denoting if signers can \"Insert Everywhere\" in one click while signing a document
* @return canInsertEverywhere
*/
- @jakarta.annotation.Nullable
+ @jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_CAN_INSERT_EVERYWHERE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getCanInsertEverywhere() {
return canInsertEverywhere;
@@ -78,7 +78,7 @@ public Boolean getCanInsertEverywhere() {
@JsonProperty(JSON_PROPERTY_CAN_INSERT_EVERYWHERE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCanInsertEverywhere(Boolean canInsertEverywhere) {
this.canInsertEverywhere = canInsertEverywhere;
}
diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponseOwnerAccount.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponseOwnerAccount.java
index 80f95b50a..f1e350634 100644
--- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponseOwnerAccount.java
+++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponseOwnerAccount.java
@@ -72,9 +72,9 @@ public ApiAppResponseOwnerAccount accountId(String accountId) {
* The owner account's ID
* @return accountId
*/
- @jakarta.annotation.Nullable
+ @jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_ACCOUNT_ID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getAccountId() {
return accountId;
@@ -82,7 +82,7 @@ public String getAccountId() {
@JsonProperty(JSON_PROPERTY_ACCOUNT_ID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setAccountId(String accountId) {
this.accountId = accountId;
}
@@ -97,9 +97,9 @@ public ApiAppResponseOwnerAccount emailAddress(String emailAddress) {
* The owner account's email address
* @return emailAddress
*/
- @jakarta.annotation.Nullable
+ @jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getEmailAddress() {
return emailAddress;
@@ -107,7 +107,7 @@ public String getEmailAddress() {
@JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setEmailAddress(String emailAddress) {
this.emailAddress = emailAddress;
}
diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponseWhiteLabelingOptions.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponseWhiteLabelingOptions.java
index 44b6f6e1e..9f0fb11d3 100644
--- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponseWhiteLabelingOptions.java
+++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponseWhiteLabelingOptions.java
@@ -120,9 +120,9 @@ public ApiAppResponseWhiteLabelingOptions headerBackgroundColor(String headerBac
* Get headerBackgroundColor
* @return headerBackgroundColor
*/
- @jakarta.annotation.Nullable
+ @jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_HEADER_BACKGROUND_COLOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getHeaderBackgroundColor() {
return headerBackgroundColor;
@@ -130,7 +130,7 @@ public String getHeaderBackgroundColor() {
@JsonProperty(JSON_PROPERTY_HEADER_BACKGROUND_COLOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setHeaderBackgroundColor(String headerBackgroundColor) {
this.headerBackgroundColor = headerBackgroundColor;
}
@@ -145,9 +145,9 @@ public ApiAppResponseWhiteLabelingOptions legalVersion(String legalVersion) {
* Get legalVersion
* @return legalVersion
*/
- @jakarta.annotation.Nullable
+ @jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_LEGAL_VERSION)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getLegalVersion() {
return legalVersion;
@@ -155,7 +155,7 @@ public String getLegalVersion() {
@JsonProperty(JSON_PROPERTY_LEGAL_VERSION)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setLegalVersion(String legalVersion) {
this.legalVersion = legalVersion;
}
@@ -170,9 +170,9 @@ public ApiAppResponseWhiteLabelingOptions linkColor(String linkColor) {
* Get linkColor
* @return linkColor
*/
- @jakarta.annotation.Nullable
+ @jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_LINK_COLOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getLinkColor() {
return linkColor;
@@ -180,7 +180,7 @@ public String getLinkColor() {
@JsonProperty(JSON_PROPERTY_LINK_COLOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setLinkColor(String linkColor) {
this.linkColor = linkColor;
}
@@ -195,9 +195,9 @@ public ApiAppResponseWhiteLabelingOptions pageBackgroundColor(String pageBackgro
* Get pageBackgroundColor
* @return pageBackgroundColor
*/
- @jakarta.annotation.Nullable
+ @jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_PAGE_BACKGROUND_COLOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getPageBackgroundColor() {
return pageBackgroundColor;
@@ -205,7 +205,7 @@ public String getPageBackgroundColor() {
@JsonProperty(JSON_PROPERTY_PAGE_BACKGROUND_COLOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPageBackgroundColor(String pageBackgroundColor) {
this.pageBackgroundColor = pageBackgroundColor;
}
@@ -220,9 +220,9 @@ public ApiAppResponseWhiteLabelingOptions primaryButtonColor(String primaryButto
* Get primaryButtonColor
* @return primaryButtonColor
*/
- @jakarta.annotation.Nullable
+ @jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_COLOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getPrimaryButtonColor() {
return primaryButtonColor;
@@ -230,7 +230,7 @@ public String getPrimaryButtonColor() {
@JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_COLOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPrimaryButtonColor(String primaryButtonColor) {
this.primaryButtonColor = primaryButtonColor;
}
@@ -245,9 +245,9 @@ public ApiAppResponseWhiteLabelingOptions primaryButtonColorHover(String primary
* Get primaryButtonColorHover
* @return primaryButtonColorHover
*/
- @jakarta.annotation.Nullable
+ @jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_COLOR_HOVER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getPrimaryButtonColorHover() {
return primaryButtonColorHover;
@@ -255,7 +255,7 @@ public String getPrimaryButtonColorHover() {
@JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_COLOR_HOVER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPrimaryButtonColorHover(String primaryButtonColorHover) {
this.primaryButtonColorHover = primaryButtonColorHover;
}
@@ -270,9 +270,9 @@ public ApiAppResponseWhiteLabelingOptions primaryButtonTextColor(String primaryB
* Get primaryButtonTextColor
* @return primaryButtonTextColor
*/
- @jakarta.annotation.Nullable
+ @jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getPrimaryButtonTextColor() {
return primaryButtonTextColor;
@@ -280,7 +280,7 @@ public String getPrimaryButtonTextColor() {
@JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPrimaryButtonTextColor(String primaryButtonTextColor) {
this.primaryButtonTextColor = primaryButtonTextColor;
}
@@ -295,9 +295,9 @@ public ApiAppResponseWhiteLabelingOptions primaryButtonTextColorHover(String pri
* Get primaryButtonTextColorHover
* @return primaryButtonTextColorHover
*/
- @jakarta.annotation.Nullable
+ @jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR_HOVER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getPrimaryButtonTextColorHover() {
return primaryButtonTextColorHover;
@@ -305,7 +305,7 @@ public String getPrimaryButtonTextColorHover() {
@JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR_HOVER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPrimaryButtonTextColorHover(String primaryButtonTextColorHover) {
this.primaryButtonTextColorHover = primaryButtonTextColorHover;
}
@@ -320,9 +320,9 @@ public ApiAppResponseWhiteLabelingOptions secondaryButtonColor(String secondaryB
* Get secondaryButtonColor
* @return secondaryButtonColor
*/
- @jakarta.annotation.Nullable
+ @jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_COLOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getSecondaryButtonColor() {
return secondaryButtonColor;
@@ -330,7 +330,7 @@ public String getSecondaryButtonColor() {
@JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_COLOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setSecondaryButtonColor(String secondaryButtonColor) {
this.secondaryButtonColor = secondaryButtonColor;
}
@@ -345,9 +345,9 @@ public ApiAppResponseWhiteLabelingOptions secondaryButtonColorHover(String secon
* Get secondaryButtonColorHover
* @return secondaryButtonColorHover
*/
- @jakarta.annotation.Nullable
+ @jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_COLOR_HOVER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getSecondaryButtonColorHover() {
return secondaryButtonColorHover;
@@ -355,7 +355,7 @@ public String getSecondaryButtonColorHover() {
@JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_COLOR_HOVER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setSecondaryButtonColorHover(String secondaryButtonColorHover) {
this.secondaryButtonColorHover = secondaryButtonColorHover;
}
@@ -370,9 +370,9 @@ public ApiAppResponseWhiteLabelingOptions secondaryButtonTextColor(String second
* Get secondaryButtonTextColor
* @return secondaryButtonTextColor
*/
- @jakarta.annotation.Nullable
+ @jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getSecondaryButtonTextColor() {
return secondaryButtonTextColor;
@@ -380,7 +380,7 @@ public String getSecondaryButtonTextColor() {
@JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setSecondaryButtonTextColor(String secondaryButtonTextColor) {
this.secondaryButtonTextColor = secondaryButtonTextColor;
}
@@ -395,9 +395,9 @@ public ApiAppResponseWhiteLabelingOptions secondaryButtonTextColorHover(String s
* Get secondaryButtonTextColorHover
* @return secondaryButtonTextColorHover
*/
- @jakarta.annotation.Nullable
+ @jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR_HOVER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getSecondaryButtonTextColorHover() {
return secondaryButtonTextColorHover;
@@ -405,7 +405,7 @@ public String getSecondaryButtonTextColorHover() {
@JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR_HOVER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setSecondaryButtonTextColorHover(String secondaryButtonTextColorHover) {
this.secondaryButtonTextColorHover = secondaryButtonTextColorHover;
}
@@ -420,9 +420,9 @@ public ApiAppResponseWhiteLabelingOptions textColor1(String textColor1) {
* Get textColor1
* @return textColor1
*/
- @jakarta.annotation.Nullable
+ @jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_TEXT_COLOR1)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getTextColor1() {
return textColor1;
@@ -430,7 +430,7 @@ public String getTextColor1() {
@JsonProperty(JSON_PROPERTY_TEXT_COLOR1)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setTextColor1(String textColor1) {
this.textColor1 = textColor1;
}
@@ -445,9 +445,9 @@ public ApiAppResponseWhiteLabelingOptions textColor2(String textColor2) {
* Get textColor2
* @return textColor2
*/
- @jakarta.annotation.Nullable
+ @jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_TEXT_COLOR2)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getTextColor2() {
return textColor2;
@@ -455,7 +455,7 @@ public String getTextColor2() {
@JsonProperty(JSON_PROPERTY_TEXT_COLOR2)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setTextColor2(String textColor2) {
this.textColor2 = textColor2;
}
diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubWhiteLabelingOptions.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubWhiteLabelingOptions.java
index 4f0a57b1f..a14d8cc1a 100644
--- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubWhiteLabelingOptions.java
+++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubWhiteLabelingOptions.java
@@ -53,7 +53,7 @@
@JsonIgnoreProperties(ignoreUnknown=true)
public class SubWhiteLabelingOptions {
public static final String JSON_PROPERTY_HEADER_BACKGROUND_COLOR = "header_background_color";
- private String headerBackgroundColor = "#1A1A1A";
+ private String headerBackgroundColor = "#1a1a1a";
/**
* Gets or Sets legalVersion
@@ -94,40 +94,40 @@ public static LegalVersionEnum fromValue(String value) {
private LegalVersionEnum legalVersion = LegalVersionEnum.TERMS1;
public static final String JSON_PROPERTY_LINK_COLOR = "link_color";
- private String linkColor = "#00B3E6";
+ private String linkColor = "#0061FE";
public static final String JSON_PROPERTY_PAGE_BACKGROUND_COLOR = "page_background_color";
- private String pageBackgroundColor = "#F7F8F9";
+ private String pageBackgroundColor = "#f7f8f9";
public static final String JSON_PROPERTY_PRIMARY_BUTTON_COLOR = "primary_button_color";
- private String primaryButtonColor = "#00B3E6";
+ private String primaryButtonColor = "#0061FE";
public static final String JSON_PROPERTY_PRIMARY_BUTTON_COLOR_HOVER = "primary_button_color_hover";
- private String primaryButtonColorHover = "#00B3E6";
+ private String primaryButtonColorHover = "#0061FE";
public static final String JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR = "primary_button_text_color";
- private String primaryButtonTextColor = "#FFFFFF";
+ private String primaryButtonTextColor = "#ffffff";
public static final String JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR_HOVER = "primary_button_text_color_hover";
- private String primaryButtonTextColorHover = "#FFFFFF";
+ private String primaryButtonTextColorHover = "#ffffff";
public static final String JSON_PROPERTY_SECONDARY_BUTTON_COLOR = "secondary_button_color";
- private String secondaryButtonColor = "#FFFFFF";
+ private String secondaryButtonColor = "#ffffff";
public static final String JSON_PROPERTY_SECONDARY_BUTTON_COLOR_HOVER = "secondary_button_color_hover";
- private String secondaryButtonColorHover = "#FFFFFF";
+ private String secondaryButtonColorHover = "#ffffff";
public static final String JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR = "secondary_button_text_color";
- private String secondaryButtonTextColor = "#00B3E6";
+ private String secondaryButtonTextColor = "#0061FE";
public static final String JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR_HOVER = "secondary_button_text_color_hover";
- private String secondaryButtonTextColorHover = "#00B3E6";
+ private String secondaryButtonTextColorHover = "#0061FE";
public static final String JSON_PROPERTY_TEXT_COLOR1 = "text_color1";
private String textColor1 = "#808080";
public static final String JSON_PROPERTY_TEXT_COLOR2 = "text_color2";
- private String textColor2 = "#FFFFFF";
+ private String textColor2 = "#ffffff";
public static final String JSON_PROPERTY_RESET_TO_DEFAULT = "reset_to_default";
private Boolean resetToDefault;
diff --git a/sdks/node/dist/api.js b/sdks/node/dist/api.js
index 69fdca0c9..94fc0d284 100644
--- a/sdks/node/dist/api.js
+++ b/sdks/node/dist/api.js
@@ -16784,11 +16784,6 @@ var _ApiAppResponse = class {
var ApiAppResponse = _ApiAppResponse;
ApiAppResponse.discriminator = void 0;
ApiAppResponse.attributeTypeMap = [
- {
- name: "callbackUrl",
- baseName: "callback_url",
- type: "string"
- },
{
name: "clientId",
baseName: "client_id",
@@ -16814,11 +16809,6 @@ ApiAppResponse.attributeTypeMap = [
baseName: "is_approved",
type: "boolean"
},
- {
- name: "oauth",
- baseName: "oauth",
- type: "ApiAppResponseOAuth"
- },
{
name: "options",
baseName: "options",
@@ -16829,6 +16819,16 @@ ApiAppResponse.attributeTypeMap = [
baseName: "owner_account",
type: "ApiAppResponseOwnerAccount"
},
+ {
+ name: "callbackUrl",
+ baseName: "callback_url",
+ type: "string"
+ },
+ {
+ name: "oauth",
+ baseName: "oauth",
+ type: "ApiAppResponseOAuth"
+ },
{
name: "whiteLabelingOptions",
baseName: "white_labeling_options",
@@ -16853,11 +16853,6 @@ ApiAppResponseOAuth.attributeTypeMap = [
baseName: "callback_url",
type: "string"
},
- {
- name: "secret",
- baseName: "secret",
- type: "string"
- },
{
name: "scopes",
baseName: "scopes",
@@ -16867,6 +16862,11 @@ ApiAppResponseOAuth.attributeTypeMap = [
name: "chargesUsers",
baseName: "charges_users",
type: "boolean"
+ },
+ {
+ name: "secret",
+ baseName: "secret",
+ type: "string"
}
];
@@ -21433,20 +21433,20 @@ SubUnclaimedDraftTemplateSigner.attributeTypeMap = [
// model/subWhiteLabelingOptions.ts
var _SubWhiteLabelingOptions = class {
constructor() {
- this["headerBackgroundColor"] = "#1A1A1A";
+ this["headerBackgroundColor"] = "#1a1a1a";
this["legalVersion"] = _SubWhiteLabelingOptions.LegalVersionEnum.Terms1;
- this["linkColor"] = "#00B3E6";
- this["pageBackgroundColor"] = "#F7F8F9";
- this["primaryButtonColor"] = "#00B3E6";
- this["primaryButtonColorHover"] = "#00B3E6";
- this["primaryButtonTextColor"] = "#FFFFFF";
- this["primaryButtonTextColorHover"] = "#FFFFFF";
- this["secondaryButtonColor"] = "#FFFFFF";
- this["secondaryButtonColorHover"] = "#FFFFFF";
- this["secondaryButtonTextColor"] = "#00B3E6";
- this["secondaryButtonTextColorHover"] = "#00B3E6";
+ this["linkColor"] = "#0061FE";
+ this["pageBackgroundColor"] = "#f7f8f9";
+ this["primaryButtonColor"] = "#0061FE";
+ this["primaryButtonColorHover"] = "#0061FE";
+ this["primaryButtonTextColor"] = "#ffffff";
+ this["primaryButtonTextColorHover"] = "#ffffff";
+ this["secondaryButtonColor"] = "#ffffff";
+ this["secondaryButtonColorHover"] = "#ffffff";
+ this["secondaryButtonTextColor"] = "#0061FE";
+ this["secondaryButtonTextColorHover"] = "#0061FE";
this["textColor1"] = "#808080";
- this["textColor2"] = "#FFFFFF";
+ this["textColor2"] = "#ffffff";
}
static getAttributeTypeMap() {
return _SubWhiteLabelingOptions.attributeTypeMap;
diff --git a/sdks/node/docs/model/ApiAppResponse.md b/sdks/node/docs/model/ApiAppResponse.md
index 4c0e4a9ca..19ff0fc6c 100644
--- a/sdks/node/docs/model/ApiAppResponse.md
+++ b/sdks/node/docs/model/ApiAppResponse.md
@@ -6,15 +6,15 @@ Contains information about an API App.
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+| `clientId`*_required_ | ```string``` | The app's client id | |
+| `createdAt`*_required_ | ```number``` | The time that the app was created | |
+| `domains`*_required_ | ```Array``` | The domain name(s) associated with the app | |
+| `name`*_required_ | ```string``` | The name of the app | |
+| `isApproved`*_required_ | ```boolean``` | Boolean to indicate if the app has been approved | |
+| `options`*_required_ | [```ApiAppResponseOptions```](ApiAppResponseOptions.md) | | |
+| `ownerAccount`*_required_ | [```ApiAppResponseOwnerAccount```](ApiAppResponseOwnerAccount.md) | | |
| `callbackUrl` | ```string``` | The app's callback URL (for events) | |
-| `clientId` | ```string``` | The app's client id | |
-| `createdAt` | ```number``` | The time that the app was created | |
-| `domains` | ```Array``` | The domain name(s) associated with the app | |
-| `name` | ```string``` | The name of the app | |
-| `isApproved` | ```boolean``` | Boolean to indicate if the app has been approved | |
| `oauth` | [```ApiAppResponseOAuth```](ApiAppResponseOAuth.md) | | |
-| `options` | [```ApiAppResponseOptions```](ApiAppResponseOptions.md) | | |
-| `ownerAccount` | [```ApiAppResponseOwnerAccount```](ApiAppResponseOwnerAccount.md) | | |
| `whiteLabelingOptions` | [```ApiAppResponseWhiteLabelingOptions```](ApiAppResponseWhiteLabelingOptions.md) | | |
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
diff --git a/sdks/node/docs/model/ApiAppResponseOAuth.md b/sdks/node/docs/model/ApiAppResponseOAuth.md
index 5f3376c3e..f0ecb2872 100644
--- a/sdks/node/docs/model/ApiAppResponseOAuth.md
+++ b/sdks/node/docs/model/ApiAppResponseOAuth.md
@@ -6,9 +6,9 @@ An object describing the app's OAuth properties, or null if OAuth is not con
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-| `callbackUrl` | ```string``` | The app's OAuth callback URL. | |
+| `callbackUrl`*_required_ | ```string``` | The app's OAuth callback URL. | |
+| `scopes`*_required_ | ```Array``` | Array of OAuth scopes used by the app. | |
+| `chargesUsers`*_required_ | ```boolean``` | Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests. | |
| `secret` | ```string``` | The app's OAuth secret, or null if the app does not belong to user. | |
-| `scopes` | ```Array``` | Array of OAuth scopes used by the app. | |
-| `chargesUsers` | ```boolean``` | Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests. | |
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
diff --git a/sdks/node/docs/model/ApiAppResponseOptions.md b/sdks/node/docs/model/ApiAppResponseOptions.md
index 2a3fcbabc..28dde9c26 100644
--- a/sdks/node/docs/model/ApiAppResponseOptions.md
+++ b/sdks/node/docs/model/ApiAppResponseOptions.md
@@ -6,6 +6,6 @@ An object with options that override account settings.
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-| `canInsertEverywhere` | ```boolean``` | Boolean denoting if signers can "Insert Everywhere" in one click while signing a document | |
+| `canInsertEverywhere`*_required_ | ```boolean``` | Boolean denoting if signers can "Insert Everywhere" in one click while signing a document | |
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
diff --git a/sdks/node/docs/model/ApiAppResponseOwnerAccount.md b/sdks/node/docs/model/ApiAppResponseOwnerAccount.md
index 5d1001008..8d25a2b50 100644
--- a/sdks/node/docs/model/ApiAppResponseOwnerAccount.md
+++ b/sdks/node/docs/model/ApiAppResponseOwnerAccount.md
@@ -6,7 +6,7 @@ An object describing the app's owner
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-| `accountId` | ```string``` | The owner account's ID | |
-| `emailAddress` | ```string``` | The owner account's email address | |
+| `accountId`*_required_ | ```string``` | The owner account's ID | |
+| `emailAddress`*_required_ | ```string``` | The owner account's email address | |
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
diff --git a/sdks/node/docs/model/ApiAppResponseWhiteLabelingOptions.md b/sdks/node/docs/model/ApiAppResponseWhiteLabelingOptions.md
index 927f4521e..fc420ef4c 100644
--- a/sdks/node/docs/model/ApiAppResponseWhiteLabelingOptions.md
+++ b/sdks/node/docs/model/ApiAppResponseWhiteLabelingOptions.md
@@ -6,19 +6,19 @@ An object with options to customize the app's signer page
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-| `headerBackgroundColor` | ```string``` | | |
-| `legalVersion` | ```string``` | | |
-| `linkColor` | ```string``` | | |
-| `pageBackgroundColor` | ```string``` | | |
-| `primaryButtonColor` | ```string``` | | |
-| `primaryButtonColorHover` | ```string``` | | |
-| `primaryButtonTextColor` | ```string``` | | |
-| `primaryButtonTextColorHover` | ```string``` | | |
-| `secondaryButtonColor` | ```string``` | | |
-| `secondaryButtonColorHover` | ```string``` | | |
-| `secondaryButtonTextColor` | ```string``` | | |
-| `secondaryButtonTextColorHover` | ```string``` | | |
-| `textColor1` | ```string``` | | |
-| `textColor2` | ```string``` | | |
+| `headerBackgroundColor`*_required_ | ```string``` | | |
+| `legalVersion`*_required_ | ```string``` | | |
+| `linkColor`*_required_ | ```string``` | | |
+| `pageBackgroundColor`*_required_ | ```string``` | | |
+| `primaryButtonColor`*_required_ | ```string``` | | |
+| `primaryButtonColorHover`*_required_ | ```string``` | | |
+| `primaryButtonTextColor`*_required_ | ```string``` | | |
+| `primaryButtonTextColorHover`*_required_ | ```string``` | | |
+| `secondaryButtonColor`*_required_ | ```string``` | | |
+| `secondaryButtonColorHover`*_required_ | ```string``` | | |
+| `secondaryButtonTextColor`*_required_ | ```string``` | | |
+| `secondaryButtonTextColorHover`*_required_ | ```string``` | | |
+| `textColor1`*_required_ | ```string``` | | |
+| `textColor2`*_required_ | ```string``` | | |
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
diff --git a/sdks/node/docs/model/SubWhiteLabelingOptions.md b/sdks/node/docs/model/SubWhiteLabelingOptions.md
index 6306db07d..b800c3f6b 100644
--- a/sdks/node/docs/model/SubWhiteLabelingOptions.md
+++ b/sdks/node/docs/model/SubWhiteLabelingOptions.md
@@ -8,20 +8,20 @@ Take a look at our [white labeling guide](https://developers.hellosign.com/api/r
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-| `headerBackgroundColor` | ```string``` | | [default to '#1A1A1A'] |
+| `headerBackgroundColor` | ```string``` | | [default to '#1a1a1a'] |
| `legalVersion` | ```string``` | | [default to LegalVersionEnum.Terms1] |
-| `linkColor` | ```string``` | | [default to '#00B3E6'] |
-| `pageBackgroundColor` | ```string``` | | [default to '#F7F8F9'] |
-| `primaryButtonColor` | ```string``` | | [default to '#00B3E6'] |
-| `primaryButtonColorHover` | ```string``` | | [default to '#00B3E6'] |
-| `primaryButtonTextColor` | ```string``` | | [default to '#FFFFFF'] |
-| `primaryButtonTextColorHover` | ```string``` | | [default to '#FFFFFF'] |
-| `secondaryButtonColor` | ```string``` | | [default to '#FFFFFF'] |
-| `secondaryButtonColorHover` | ```string``` | | [default to '#FFFFFF'] |
-| `secondaryButtonTextColor` | ```string``` | | [default to '#00B3E6'] |
-| `secondaryButtonTextColorHover` | ```string``` | | [default to '#00B3E6'] |
+| `linkColor` | ```string``` | | [default to '#0061FE'] |
+| `pageBackgroundColor` | ```string``` | | [default to '#f7f8f9'] |
+| `primaryButtonColor` | ```string``` | | [default to '#0061FE'] |
+| `primaryButtonColorHover` | ```string``` | | [default to '#0061FE'] |
+| `primaryButtonTextColor` | ```string``` | | [default to '#ffffff'] |
+| `primaryButtonTextColorHover` | ```string``` | | [default to '#ffffff'] |
+| `secondaryButtonColor` | ```string``` | | [default to '#ffffff'] |
+| `secondaryButtonColorHover` | ```string``` | | [default to '#ffffff'] |
+| `secondaryButtonTextColor` | ```string``` | | [default to '#0061FE'] |
+| `secondaryButtonTextColorHover` | ```string``` | | [default to '#0061FE'] |
| `textColor1` | ```string``` | | [default to '#808080'] |
-| `textColor2` | ```string``` | | [default to '#FFFFFF'] |
+| `textColor2` | ```string``` | | [default to '#ffffff'] |
| `resetToDefault` | ```boolean``` | Resets white labeling options to defaults. Only useful when updating an API App. | |
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
diff --git a/sdks/node/model/apiAppResponse.ts b/sdks/node/model/apiAppResponse.ts
index 167b3eb15..848cab40a 100644
--- a/sdks/node/model/apiAppResponse.ts
+++ b/sdks/node/model/apiAppResponse.ts
@@ -32,43 +32,38 @@ import { ApiAppResponseWhiteLabelingOptions } from "./apiAppResponseWhiteLabelin
* Contains information about an API App.
*/
export class ApiAppResponse {
- /**
- * The app\'s callback URL (for events)
- */
- "callbackUrl"?: string | null;
/**
* The app\'s client id
*/
- "clientId"?: string;
+ "clientId": string;
/**
* The time that the app was created
*/
- "createdAt"?: number;
+ "createdAt": number;
/**
* The domain name(s) associated with the app
*/
- "domains"?: Array;
+ "domains": Array;
/**
* The name of the app
*/
- "name"?: string;
+ "name": string;
/**
* Boolean to indicate if the app has been approved
*/
- "isApproved"?: boolean;
+ "isApproved": boolean;
+ "options": ApiAppResponseOptions;
+ "ownerAccount": ApiAppResponseOwnerAccount;
+ /**
+ * The app\'s callback URL (for events)
+ */
+ "callbackUrl"?: string | null;
"oauth"?: ApiAppResponseOAuth | null;
- "options"?: ApiAppResponseOptions | null;
- "ownerAccount"?: ApiAppResponseOwnerAccount;
"whiteLabelingOptions"?: ApiAppResponseWhiteLabelingOptions | null;
static discriminator: string | undefined = undefined;
static attributeTypeMap: AttributeTypeMap = [
- {
- name: "callbackUrl",
- baseName: "callback_url",
- type: "string",
- },
{
name: "clientId",
baseName: "client_id",
@@ -94,11 +89,6 @@ export class ApiAppResponse {
baseName: "is_approved",
type: "boolean",
},
- {
- name: "oauth",
- baseName: "oauth",
- type: "ApiAppResponseOAuth",
- },
{
name: "options",
baseName: "options",
@@ -109,6 +99,16 @@ export class ApiAppResponse {
baseName: "owner_account",
type: "ApiAppResponseOwnerAccount",
},
+ {
+ name: "callbackUrl",
+ baseName: "callback_url",
+ type: "string",
+ },
+ {
+ name: "oauth",
+ baseName: "oauth",
+ type: "ApiAppResponseOAuth",
+ },
{
name: "whiteLabelingOptions",
baseName: "white_labeling_options",
diff --git a/sdks/node/model/apiAppResponseOAuth.ts b/sdks/node/model/apiAppResponseOAuth.ts
index bd8d8fd29..9399bad82 100644
--- a/sdks/node/model/apiAppResponseOAuth.ts
+++ b/sdks/node/model/apiAppResponseOAuth.ts
@@ -31,19 +31,19 @@ export class ApiAppResponseOAuth {
/**
* The app\'s OAuth callback URL.
*/
- "callbackUrl"?: string;
- /**
- * The app\'s OAuth secret, or null if the app does not belong to user.
- */
- "secret"?: string;
+ "callbackUrl": string;
/**
* Array of OAuth scopes used by the app.
*/
- "scopes"?: Array;
+ "scopes": Array;
/**
* Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests.
*/
- "chargesUsers"?: boolean;
+ "chargesUsers": boolean;
+ /**
+ * The app\'s OAuth secret, or null if the app does not belong to user.
+ */
+ "secret"?: string | null;
static discriminator: string | undefined = undefined;
@@ -53,11 +53,6 @@ export class ApiAppResponseOAuth {
baseName: "callback_url",
type: "string",
},
- {
- name: "secret",
- baseName: "secret",
- type: "string",
- },
{
name: "scopes",
baseName: "scopes",
@@ -68,6 +63,11 @@ export class ApiAppResponseOAuth {
baseName: "charges_users",
type: "boolean",
},
+ {
+ name: "secret",
+ baseName: "secret",
+ type: "string",
+ },
];
static getAttributeTypeMap(): AttributeTypeMap {
diff --git a/sdks/node/model/apiAppResponseOptions.ts b/sdks/node/model/apiAppResponseOptions.ts
index 3d36cd672..8f121b054 100644
--- a/sdks/node/model/apiAppResponseOptions.ts
+++ b/sdks/node/model/apiAppResponseOptions.ts
@@ -31,7 +31,7 @@ export class ApiAppResponseOptions {
/**
* Boolean denoting if signers can \"Insert Everywhere\" in one click while signing a document
*/
- "canInsertEverywhere"?: boolean;
+ "canInsertEverywhere": boolean;
static discriminator: string | undefined = undefined;
diff --git a/sdks/node/model/apiAppResponseOwnerAccount.ts b/sdks/node/model/apiAppResponseOwnerAccount.ts
index 8abfae818..89d0a6735 100644
--- a/sdks/node/model/apiAppResponseOwnerAccount.ts
+++ b/sdks/node/model/apiAppResponseOwnerAccount.ts
@@ -31,11 +31,11 @@ export class ApiAppResponseOwnerAccount {
/**
* The owner account\'s ID
*/
- "accountId"?: string;
+ "accountId": string;
/**
* The owner account\'s email address
*/
- "emailAddress"?: string;
+ "emailAddress": string;
static discriminator: string | undefined = undefined;
diff --git a/sdks/node/model/apiAppResponseWhiteLabelingOptions.ts b/sdks/node/model/apiAppResponseWhiteLabelingOptions.ts
index 6c4beeebe..0ee36f0aa 100644
--- a/sdks/node/model/apiAppResponseWhiteLabelingOptions.ts
+++ b/sdks/node/model/apiAppResponseWhiteLabelingOptions.ts
@@ -28,20 +28,20 @@ import { AttributeTypeMap, ObjectSerializer } from "./";
* An object with options to customize the app\'s signer page
*/
export class ApiAppResponseWhiteLabelingOptions {
- "headerBackgroundColor"?: string;
- "legalVersion"?: string;
- "linkColor"?: string;
- "pageBackgroundColor"?: string;
- "primaryButtonColor"?: string;
- "primaryButtonColorHover"?: string;
- "primaryButtonTextColor"?: string;
- "primaryButtonTextColorHover"?: string;
- "secondaryButtonColor"?: string;
- "secondaryButtonColorHover"?: string;
- "secondaryButtonTextColor"?: string;
- "secondaryButtonTextColorHover"?: string;
- "textColor1"?: string;
- "textColor2"?: string;
+ "headerBackgroundColor": string;
+ "legalVersion": string;
+ "linkColor": string;
+ "pageBackgroundColor": string;
+ "primaryButtonColor": string;
+ "primaryButtonColorHover": string;
+ "primaryButtonTextColor": string;
+ "primaryButtonTextColorHover": string;
+ "secondaryButtonColor": string;
+ "secondaryButtonColorHover": string;
+ "secondaryButtonTextColor": string;
+ "secondaryButtonTextColorHover": string;
+ "textColor1": string;
+ "textColor2": string;
static discriminator: string | undefined = undefined;
diff --git a/sdks/node/model/subWhiteLabelingOptions.ts b/sdks/node/model/subWhiteLabelingOptions.ts
index 17a64f32e..0c1c50286 100644
--- a/sdks/node/model/subWhiteLabelingOptions.ts
+++ b/sdks/node/model/subWhiteLabelingOptions.ts
@@ -28,21 +28,21 @@ import { AttributeTypeMap, ObjectSerializer } from "./";
* An array of elements and values serialized to a string, to be used to customize the app\'s signer page. (Only applies to some API plans) Take a look at our [white labeling guide](https://developers.hellosign.com/api/reference/premium-branding/) to learn more.
*/
export class SubWhiteLabelingOptions {
- "headerBackgroundColor"?: string = "#1A1A1A";
+ "headerBackgroundColor"?: string = "#1a1a1a";
"legalVersion"?: SubWhiteLabelingOptions.LegalVersionEnum =
SubWhiteLabelingOptions.LegalVersionEnum.Terms1;
- "linkColor"?: string = "#00B3E6";
- "pageBackgroundColor"?: string = "#F7F8F9";
- "primaryButtonColor"?: string = "#00B3E6";
- "primaryButtonColorHover"?: string = "#00B3E6";
- "primaryButtonTextColor"?: string = "#FFFFFF";
- "primaryButtonTextColorHover"?: string = "#FFFFFF";
- "secondaryButtonColor"?: string = "#FFFFFF";
- "secondaryButtonColorHover"?: string = "#FFFFFF";
- "secondaryButtonTextColor"?: string = "#00B3E6";
- "secondaryButtonTextColorHover"?: string = "#00B3E6";
+ "linkColor"?: string = "#0061FE";
+ "pageBackgroundColor"?: string = "#f7f8f9";
+ "primaryButtonColor"?: string = "#0061FE";
+ "primaryButtonColorHover"?: string = "#0061FE";
+ "primaryButtonTextColor"?: string = "#ffffff";
+ "primaryButtonTextColorHover"?: string = "#ffffff";
+ "secondaryButtonColor"?: string = "#ffffff";
+ "secondaryButtonColorHover"?: string = "#ffffff";
+ "secondaryButtonTextColor"?: string = "#0061FE";
+ "secondaryButtonTextColorHover"?: string = "#0061FE";
"textColor1"?: string = "#808080";
- "textColor2"?: string = "#FFFFFF";
+ "textColor2"?: string = "#ffffff";
/**
* Resets white labeling options to defaults. Only useful when updating an API App.
*/
diff --git a/sdks/node/types/model/apiAppResponse.d.ts b/sdks/node/types/model/apiAppResponse.d.ts
index f0646b2c4..a85692e95 100644
--- a/sdks/node/types/model/apiAppResponse.d.ts
+++ b/sdks/node/types/model/apiAppResponse.d.ts
@@ -4,15 +4,15 @@ import { ApiAppResponseOptions } from "./apiAppResponseOptions";
import { ApiAppResponseOwnerAccount } from "./apiAppResponseOwnerAccount";
import { ApiAppResponseWhiteLabelingOptions } from "./apiAppResponseWhiteLabelingOptions";
export declare class ApiAppResponse {
+ "clientId": string;
+ "createdAt": number;
+ "domains": Array;
+ "name": string;
+ "isApproved": boolean;
+ "options": ApiAppResponseOptions;
+ "ownerAccount": ApiAppResponseOwnerAccount;
"callbackUrl"?: string | null;
- "clientId"?: string;
- "createdAt"?: number;
- "domains"?: Array;
- "name"?: string;
- "isApproved"?: boolean;
"oauth"?: ApiAppResponseOAuth | null;
- "options"?: ApiAppResponseOptions | null;
- "ownerAccount"?: ApiAppResponseOwnerAccount;
"whiteLabelingOptions"?: ApiAppResponseWhiteLabelingOptions | null;
static discriminator: string | undefined;
static attributeTypeMap: AttributeTypeMap;
diff --git a/sdks/node/types/model/apiAppResponseOAuth.d.ts b/sdks/node/types/model/apiAppResponseOAuth.d.ts
index 13f00a82d..23a7e12b1 100644
--- a/sdks/node/types/model/apiAppResponseOAuth.d.ts
+++ b/sdks/node/types/model/apiAppResponseOAuth.d.ts
@@ -1,9 +1,9 @@
import { AttributeTypeMap } from "./";
export declare class ApiAppResponseOAuth {
- "callbackUrl"?: string;
- "secret"?: string;
- "scopes"?: Array;
- "chargesUsers"?: boolean;
+ "callbackUrl": string;
+ "scopes": Array;
+ "chargesUsers": boolean;
+ "secret"?: string | null;
static discriminator: string | undefined;
static attributeTypeMap: AttributeTypeMap;
static getAttributeTypeMap(): AttributeTypeMap;
diff --git a/sdks/node/types/model/apiAppResponseOptions.d.ts b/sdks/node/types/model/apiAppResponseOptions.d.ts
index 2b869e068..19814cffe 100644
--- a/sdks/node/types/model/apiAppResponseOptions.d.ts
+++ b/sdks/node/types/model/apiAppResponseOptions.d.ts
@@ -1,6 +1,6 @@
import { AttributeTypeMap } from "./";
export declare class ApiAppResponseOptions {
- "canInsertEverywhere"?: boolean;
+ "canInsertEverywhere": boolean;
static discriminator: string | undefined;
static attributeTypeMap: AttributeTypeMap;
static getAttributeTypeMap(): AttributeTypeMap;
diff --git a/sdks/node/types/model/apiAppResponseOwnerAccount.d.ts b/sdks/node/types/model/apiAppResponseOwnerAccount.d.ts
index a1e4d7c5f..4a415c72d 100644
--- a/sdks/node/types/model/apiAppResponseOwnerAccount.d.ts
+++ b/sdks/node/types/model/apiAppResponseOwnerAccount.d.ts
@@ -1,7 +1,7 @@
import { AttributeTypeMap } from "./";
export declare class ApiAppResponseOwnerAccount {
- "accountId"?: string;
- "emailAddress"?: string;
+ "accountId": string;
+ "emailAddress": string;
static discriminator: string | undefined;
static attributeTypeMap: AttributeTypeMap;
static getAttributeTypeMap(): AttributeTypeMap;
diff --git a/sdks/node/types/model/apiAppResponseWhiteLabelingOptions.d.ts b/sdks/node/types/model/apiAppResponseWhiteLabelingOptions.d.ts
index 67ce3d5e8..ada78a6bc 100644
--- a/sdks/node/types/model/apiAppResponseWhiteLabelingOptions.d.ts
+++ b/sdks/node/types/model/apiAppResponseWhiteLabelingOptions.d.ts
@@ -1,19 +1,19 @@
import { AttributeTypeMap } from "./";
export declare class ApiAppResponseWhiteLabelingOptions {
- "headerBackgroundColor"?: string;
- "legalVersion"?: string;
- "linkColor"?: string;
- "pageBackgroundColor"?: string;
- "primaryButtonColor"?: string;
- "primaryButtonColorHover"?: string;
- "primaryButtonTextColor"?: string;
- "primaryButtonTextColorHover"?: string;
- "secondaryButtonColor"?: string;
- "secondaryButtonColorHover"?: string;
- "secondaryButtonTextColor"?: string;
- "secondaryButtonTextColorHover"?: string;
- "textColor1"?: string;
- "textColor2"?: string;
+ "headerBackgroundColor": string;
+ "legalVersion": string;
+ "linkColor": string;
+ "pageBackgroundColor": string;
+ "primaryButtonColor": string;
+ "primaryButtonColorHover": string;
+ "primaryButtonTextColor": string;
+ "primaryButtonTextColorHover": string;
+ "secondaryButtonColor": string;
+ "secondaryButtonColorHover": string;
+ "secondaryButtonTextColor": string;
+ "secondaryButtonTextColorHover": string;
+ "textColor1": string;
+ "textColor2": string;
static discriminator: string | undefined;
static attributeTypeMap: AttributeTypeMap;
static getAttributeTypeMap(): AttributeTypeMap;
diff --git a/sdks/php/docs/Model/ApiAppResponse.md b/sdks/php/docs/Model/ApiAppResponse.md
index 975df4b5c..389d4f22d 100644
--- a/sdks/php/docs/Model/ApiAppResponse.md
+++ b/sdks/php/docs/Model/ApiAppResponse.md
@@ -6,15 +6,15 @@ Contains information about an API App.
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+| `client_id`*_required_ | ```string``` | The app's client id | |
+| `created_at`*_required_ | ```int``` | The time that the app was created | |
+| `domains`*_required_ | ```string[]``` | The domain name(s) associated with the app | |
+| `name`*_required_ | ```string``` | The name of the app | |
+| `is_approved`*_required_ | ```bool``` | Boolean to indicate if the app has been approved | |
+| `options`*_required_ | [```\Dropbox\Sign\Model\ApiAppResponseOptions```](ApiAppResponseOptions.md) | | |
+| `owner_account`*_required_ | [```\Dropbox\Sign\Model\ApiAppResponseOwnerAccount```](ApiAppResponseOwnerAccount.md) | | |
| `callback_url` | ```string``` | The app's callback URL (for events) | |
-| `client_id` | ```string``` | The app's client id | |
-| `created_at` | ```int``` | The time that the app was created | |
-| `domains` | ```string[]``` | The domain name(s) associated with the app | |
-| `name` | ```string``` | The name of the app | |
-| `is_approved` | ```bool``` | Boolean to indicate if the app has been approved | |
| `oauth` | [```\Dropbox\Sign\Model\ApiAppResponseOAuth```](ApiAppResponseOAuth.md) | | |
-| `options` | [```\Dropbox\Sign\Model\ApiAppResponseOptions```](ApiAppResponseOptions.md) | | |
-| `owner_account` | [```\Dropbox\Sign\Model\ApiAppResponseOwnerAccount```](ApiAppResponseOwnerAccount.md) | | |
| `white_labeling_options` | [```\Dropbox\Sign\Model\ApiAppResponseWhiteLabelingOptions```](ApiAppResponseWhiteLabelingOptions.md) | | |
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
diff --git a/sdks/php/docs/Model/ApiAppResponseOAuth.md b/sdks/php/docs/Model/ApiAppResponseOAuth.md
index f6010fe20..b6b938d1f 100644
--- a/sdks/php/docs/Model/ApiAppResponseOAuth.md
+++ b/sdks/php/docs/Model/ApiAppResponseOAuth.md
@@ -6,9 +6,9 @@ An object describing the app's OAuth properties, or null if OAuth is not con
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-| `callback_url` | ```string``` | The app's OAuth callback URL. | |
+| `callback_url`*_required_ | ```string``` | The app's OAuth callback URL. | |
+| `scopes`*_required_ | ```string[]``` | Array of OAuth scopes used by the app. | |
+| `charges_users`*_required_ | ```bool``` | Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests. | |
| `secret` | ```string``` | The app's OAuth secret, or null if the app does not belong to user. | |
-| `scopes` | ```string[]``` | Array of OAuth scopes used by the app. | |
-| `charges_users` | ```bool``` | Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests. | |
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
diff --git a/sdks/php/docs/Model/ApiAppResponseOptions.md b/sdks/php/docs/Model/ApiAppResponseOptions.md
index 872e8ed0f..7aa892f36 100644
--- a/sdks/php/docs/Model/ApiAppResponseOptions.md
+++ b/sdks/php/docs/Model/ApiAppResponseOptions.md
@@ -6,6 +6,6 @@ An object with options that override account settings.
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-| `can_insert_everywhere` | ```bool``` | Boolean denoting if signers can "Insert Everywhere" in one click while signing a document | |
+| `can_insert_everywhere`*_required_ | ```bool``` | Boolean denoting if signers can "Insert Everywhere" in one click while signing a document | |
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
diff --git a/sdks/php/docs/Model/ApiAppResponseOwnerAccount.md b/sdks/php/docs/Model/ApiAppResponseOwnerAccount.md
index 8f1ce1963..2d3a9256d 100644
--- a/sdks/php/docs/Model/ApiAppResponseOwnerAccount.md
+++ b/sdks/php/docs/Model/ApiAppResponseOwnerAccount.md
@@ -6,7 +6,7 @@ An object describing the app's owner
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-| `account_id` | ```string``` | The owner account's ID | |
-| `email_address` | ```string``` | The owner account's email address | |
+| `account_id`*_required_ | ```string``` | The owner account's ID | |
+| `email_address`*_required_ | ```string``` | The owner account's email address | |
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
diff --git a/sdks/php/docs/Model/ApiAppResponseWhiteLabelingOptions.md b/sdks/php/docs/Model/ApiAppResponseWhiteLabelingOptions.md
index 6e963383c..49b3472b6 100644
--- a/sdks/php/docs/Model/ApiAppResponseWhiteLabelingOptions.md
+++ b/sdks/php/docs/Model/ApiAppResponseWhiteLabelingOptions.md
@@ -6,19 +6,19 @@ An object with options to customize the app's signer page
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-| `header_background_color` | ```string``` | | |
-| `legal_version` | ```string``` | | |
-| `link_color` | ```string``` | | |
-| `page_background_color` | ```string``` | | |
-| `primary_button_color` | ```string``` | | |
-| `primary_button_color_hover` | ```string``` | | |
-| `primary_button_text_color` | ```string``` | | |
-| `primary_button_text_color_hover` | ```string``` | | |
-| `secondary_button_color` | ```string``` | | |
-| `secondary_button_color_hover` | ```string``` | | |
-| `secondary_button_text_color` | ```string``` | | |
-| `secondary_button_text_color_hover` | ```string``` | | |
-| `text_color1` | ```string``` | | |
-| `text_color2` | ```string``` | | |
+| `header_background_color`*_required_ | ```string``` | | |
+| `legal_version`*_required_ | ```string``` | | |
+| `link_color`*_required_ | ```string``` | | |
+| `page_background_color`*_required_ | ```string``` | | |
+| `primary_button_color`*_required_ | ```string``` | | |
+| `primary_button_color_hover`*_required_ | ```string``` | | |
+| `primary_button_text_color`*_required_ | ```string``` | | |
+| `primary_button_text_color_hover`*_required_ | ```string``` | | |
+| `secondary_button_color`*_required_ | ```string``` | | |
+| `secondary_button_color_hover`*_required_ | ```string``` | | |
+| `secondary_button_text_color`*_required_ | ```string``` | | |
+| `secondary_button_text_color_hover`*_required_ | ```string``` | | |
+| `text_color1`*_required_ | ```string``` | | |
+| `text_color2`*_required_ | ```string``` | | |
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
diff --git a/sdks/php/docs/Model/SubWhiteLabelingOptions.md b/sdks/php/docs/Model/SubWhiteLabelingOptions.md
index a8a07faac..976f55aaa 100644
--- a/sdks/php/docs/Model/SubWhiteLabelingOptions.md
+++ b/sdks/php/docs/Model/SubWhiteLabelingOptions.md
@@ -8,20 +8,20 @@ Take a look at our [white labeling guide](https://developers.hellosign.com/api/r
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-| `header_background_color` | ```string``` | | [default to '#1A1A1A'] |
+| `header_background_color` | ```string``` | | [default to '#1a1a1a'] |
| `legal_version` | ```string``` | | [default to 'terms1'] |
-| `link_color` | ```string``` | | [default to '#00B3E6'] |
-| `page_background_color` | ```string``` | | [default to '#F7F8F9'] |
-| `primary_button_color` | ```string``` | | [default to '#00B3E6'] |
-| `primary_button_color_hover` | ```string``` | | [default to '#00B3E6'] |
-| `primary_button_text_color` | ```string``` | | [default to '#FFFFFF'] |
-| `primary_button_text_color_hover` | ```string``` | | [default to '#FFFFFF'] |
-| `secondary_button_color` | ```string``` | | [default to '#FFFFFF'] |
-| `secondary_button_color_hover` | ```string``` | | [default to '#FFFFFF'] |
-| `secondary_button_text_color` | ```string``` | | [default to '#00B3E6'] |
-| `secondary_button_text_color_hover` | ```string``` | | [default to '#00B3E6'] |
+| `link_color` | ```string``` | | [default to '#0061FE'] |
+| `page_background_color` | ```string``` | | [default to '#f7f8f9'] |
+| `primary_button_color` | ```string``` | | [default to '#0061FE'] |
+| `primary_button_color_hover` | ```string``` | | [default to '#0061FE'] |
+| `primary_button_text_color` | ```string``` | | [default to '#ffffff'] |
+| `primary_button_text_color_hover` | ```string``` | | [default to '#ffffff'] |
+| `secondary_button_color` | ```string``` | | [default to '#ffffff'] |
+| `secondary_button_color_hover` | ```string``` | | [default to '#ffffff'] |
+| `secondary_button_text_color` | ```string``` | | [default to '#0061FE'] |
+| `secondary_button_text_color_hover` | ```string``` | | [default to '#0061FE'] |
| `text_color1` | ```string``` | | [default to '#808080'] |
-| `text_color2` | ```string``` | | [default to '#FFFFFF'] |
+| `text_color2` | ```string``` | | [default to '#ffffff'] |
| `reset_to_default` | ```bool``` | Resets white labeling options to defaults. Only useful when updating an API App. | |
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
diff --git a/sdks/php/src/Model/ApiAppResponse.php b/sdks/php/src/Model/ApiAppResponse.php
index 3e214031d..886069fcf 100644
--- a/sdks/php/src/Model/ApiAppResponse.php
+++ b/sdks/php/src/Model/ApiAppResponse.php
@@ -58,15 +58,15 @@ class ApiAppResponse implements ModelInterface, ArrayAccess, JsonSerializable
* @var string[]
*/
protected static $openAPITypes = [
- 'callback_url' => 'string',
'client_id' => 'string',
'created_at' => 'int',
'domains' => 'string[]',
'name' => 'string',
'is_approved' => 'bool',
- 'oauth' => '\Dropbox\Sign\Model\ApiAppResponseOAuth',
'options' => '\Dropbox\Sign\Model\ApiAppResponseOptions',
'owner_account' => '\Dropbox\Sign\Model\ApiAppResponseOwnerAccount',
+ 'callback_url' => 'string',
+ 'oauth' => '\Dropbox\Sign\Model\ApiAppResponseOAuth',
'white_labeling_options' => '\Dropbox\Sign\Model\ApiAppResponseWhiteLabelingOptions',
];
@@ -78,15 +78,15 @@ class ApiAppResponse implements ModelInterface, ArrayAccess, JsonSerializable
* @psalm-var array
*/
protected static $openAPIFormats = [
- 'callback_url' => null,
'client_id' => null,
'created_at' => null,
'domains' => null,
'name' => null,
'is_approved' => null,
- 'oauth' => null,
'options' => null,
'owner_account' => null,
+ 'callback_url' => null,
+ 'oauth' => null,
'white_labeling_options' => null,
];
@@ -96,15 +96,15 @@ class ApiAppResponse implements ModelInterface, ArrayAccess, JsonSerializable
* @var bool[]
*/
protected static array $openAPINullables = [
- 'callback_url' => true,
'client_id' => false,
'created_at' => false,
'domains' => false,
'name' => false,
'is_approved' => false,
- 'oauth' => true,
- 'options' => true,
+ 'options' => false,
'owner_account' => false,
+ 'callback_url' => true,
+ 'oauth' => true,
'white_labeling_options' => true,
];
@@ -186,15 +186,15 @@ public function isNullableSetToNull(string $property): bool
* @var string[]
*/
protected static $attributeMap = [
- 'callback_url' => 'callback_url',
'client_id' => 'client_id',
'created_at' => 'created_at',
'domains' => 'domains',
'name' => 'name',
'is_approved' => 'is_approved',
- 'oauth' => 'oauth',
'options' => 'options',
'owner_account' => 'owner_account',
+ 'callback_url' => 'callback_url',
+ 'oauth' => 'oauth',
'white_labeling_options' => 'white_labeling_options',
];
@@ -204,15 +204,15 @@ public function isNullableSetToNull(string $property): bool
* @var string[]
*/
protected static $setters = [
- 'callback_url' => 'setCallbackUrl',
'client_id' => 'setClientId',
'created_at' => 'setCreatedAt',
'domains' => 'setDomains',
'name' => 'setName',
'is_approved' => 'setIsApproved',
- 'oauth' => 'setOauth',
'options' => 'setOptions',
'owner_account' => 'setOwnerAccount',
+ 'callback_url' => 'setCallbackUrl',
+ 'oauth' => 'setOauth',
'white_labeling_options' => 'setWhiteLabelingOptions',
];
@@ -222,15 +222,15 @@ public function isNullableSetToNull(string $property): bool
* @var string[]
*/
protected static $getters = [
- 'callback_url' => 'getCallbackUrl',
'client_id' => 'getClientId',
'created_at' => 'getCreatedAt',
'domains' => 'getDomains',
'name' => 'getName',
'is_approved' => 'getIsApproved',
- 'oauth' => 'getOauth',
'options' => 'getOptions',
'owner_account' => 'getOwnerAccount',
+ 'callback_url' => 'getCallbackUrl',
+ 'oauth' => 'getOauth',
'white_labeling_options' => 'getWhiteLabelingOptions',
];
@@ -290,15 +290,15 @@ public function getModelName()
*/
public function __construct(array $data = null)
{
- $this->setIfExists('callback_url', $data ?? [], null);
$this->setIfExists('client_id', $data ?? [], null);
$this->setIfExists('created_at', $data ?? [], null);
$this->setIfExists('domains', $data ?? [], null);
$this->setIfExists('name', $data ?? [], null);
$this->setIfExists('is_approved', $data ?? [], null);
- $this->setIfExists('oauth', $data ?? [], null);
$this->setIfExists('options', $data ?? [], null);
$this->setIfExists('owner_account', $data ?? [], null);
+ $this->setIfExists('callback_url', $data ?? [], null);
+ $this->setIfExists('oauth', $data ?? [], null);
$this->setIfExists('white_labeling_options', $data ?? [], null);
}
@@ -345,7 +345,30 @@ private function setIfExists(string $variableName, array $fields, $defaultValue)
*/
public function listInvalidProperties()
{
- return [];
+ $invalidProperties = [];
+
+ if ($this->container['client_id'] === null) {
+ $invalidProperties[] = "'client_id' can't be null";
+ }
+ if ($this->container['created_at'] === null) {
+ $invalidProperties[] = "'created_at' can't be null";
+ }
+ if ($this->container['domains'] === null) {
+ $invalidProperties[] = "'domains' can't be null";
+ }
+ if ($this->container['name'] === null) {
+ $invalidProperties[] = "'name' can't be null";
+ }
+ if ($this->container['is_approved'] === null) {
+ $invalidProperties[] = "'is_approved' can't be null";
+ }
+ if ($this->container['options'] === null) {
+ $invalidProperties[] = "'options' can't be null";
+ }
+ if ($this->container['owner_account'] === null) {
+ $invalidProperties[] = "'owner_account' can't be null";
+ }
+ return $invalidProperties;
}
/**
@@ -359,44 +382,10 @@ public function valid()
return count($this->listInvalidProperties()) === 0;
}
- /**
- * Gets callback_url
- *
- * @return string|null
- */
- public function getCallbackUrl()
- {
- return $this->container['callback_url'];
- }
-
- /**
- * Sets callback_url
- *
- * @param string|null $callback_url The app's callback URL (for events)
- *
- * @return self
- */
- public function setCallbackUrl(?string $callback_url)
- {
- if (is_null($callback_url)) {
- array_push($this->openAPINullablesSetToNull, 'callback_url');
- } else {
- $nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
- $index = array_search('callback_url', $nullablesSetToNull);
- if ($index !== false) {
- unset($nullablesSetToNull[$index]);
- $this->setOpenAPINullablesSetToNull($nullablesSetToNull);
- }
- }
- $this->container['callback_url'] = $callback_url;
-
- return $this;
- }
-
/**
* Gets client_id
*
- * @return string|null
+ * @return string
*/
public function getClientId()
{
@@ -406,11 +395,11 @@ public function getClientId()
/**
* Sets client_id
*
- * @param string|null $client_id The app's client id
+ * @param string $client_id The app's client id
*
* @return self
*/
- public function setClientId(?string $client_id)
+ public function setClientId(string $client_id)
{
if (is_null($client_id)) {
throw new InvalidArgumentException('non-nullable client_id cannot be null');
@@ -423,7 +412,7 @@ public function setClientId(?string $client_id)
/**
* Gets created_at
*
- * @return int|null
+ * @return int
*/
public function getCreatedAt()
{
@@ -433,11 +422,11 @@ public function getCreatedAt()
/**
* Sets created_at
*
- * @param int|null $created_at The time that the app was created
+ * @param int $created_at The time that the app was created
*
* @return self
*/
- public function setCreatedAt(?int $created_at)
+ public function setCreatedAt(int $created_at)
{
if (is_null($created_at)) {
throw new InvalidArgumentException('non-nullable created_at cannot be null');
@@ -450,7 +439,7 @@ public function setCreatedAt(?int $created_at)
/**
* Gets domains
*
- * @return string[]|null
+ * @return string[]
*/
public function getDomains()
{
@@ -460,11 +449,11 @@ public function getDomains()
/**
* Sets domains
*
- * @param string[]|null $domains The domain name(s) associated with the app
+ * @param string[] $domains The domain name(s) associated with the app
*
* @return self
*/
- public function setDomains(?array $domains)
+ public function setDomains(array $domains)
{
if (is_null($domains)) {
throw new InvalidArgumentException('non-nullable domains cannot be null');
@@ -477,7 +466,7 @@ public function setDomains(?array $domains)
/**
* Gets name
*
- * @return string|null
+ * @return string
*/
public function getName()
{
@@ -487,11 +476,11 @@ public function getName()
/**
* Sets name
*
- * @param string|null $name The name of the app
+ * @param string $name The name of the app
*
* @return self
*/
- public function setName(?string $name)
+ public function setName(string $name)
{
if (is_null($name)) {
throw new InvalidArgumentException('non-nullable name cannot be null');
@@ -504,7 +493,7 @@ public function setName(?string $name)
/**
* Gets is_approved
*
- * @return bool|null
+ * @return bool
*/
public function getIsApproved()
{
@@ -514,11 +503,11 @@ public function getIsApproved()
/**
* Sets is_approved
*
- * @param bool|null $is_approved Boolean to indicate if the app has been approved
+ * @param bool $is_approved Boolean to indicate if the app has been approved
*
* @return self
*/
- public function setIsApproved(?bool $is_approved)
+ public function setIsApproved(bool $is_approved)
{
if (is_null($is_approved)) {
throw new InvalidArgumentException('non-nullable is_approved cannot be null');
@@ -529,96 +518,123 @@ public function setIsApproved(?bool $is_approved)
}
/**
- * Gets oauth
+ * Gets options
*
- * @return ApiAppResponseOAuth|null
+ * @return ApiAppResponseOptions
*/
- public function getOauth()
+ public function getOptions()
{
- return $this->container['oauth'];
+ return $this->container['options'];
}
/**
- * Sets oauth
+ * Sets options
*
- * @param ApiAppResponseOAuth|null $oauth oauth
+ * @param ApiAppResponseOptions $options options
*
* @return self
*/
- public function setOauth(?ApiAppResponseOAuth $oauth)
+ public function setOptions(ApiAppResponseOptions $options)
{
- if (is_null($oauth)) {
- array_push($this->openAPINullablesSetToNull, 'oauth');
- } else {
- $nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
- $index = array_search('oauth', $nullablesSetToNull);
- if ($index !== false) {
- unset($nullablesSetToNull[$index]);
- $this->setOpenAPINullablesSetToNull($nullablesSetToNull);
- }
+ if (is_null($options)) {
+ throw new InvalidArgumentException('non-nullable options cannot be null');
}
- $this->container['oauth'] = $oauth;
+ $this->container['options'] = $options;
return $this;
}
/**
- * Gets options
+ * Gets owner_account
*
- * @return ApiAppResponseOptions|null
+ * @return ApiAppResponseOwnerAccount
*/
- public function getOptions()
+ public function getOwnerAccount()
{
- return $this->container['options'];
+ return $this->container['owner_account'];
}
/**
- * Sets options
+ * Sets owner_account
*
- * @param ApiAppResponseOptions|null $options options
+ * @param ApiAppResponseOwnerAccount $owner_account owner_account
*
* @return self
*/
- public function setOptions(?ApiAppResponseOptions $options)
+ public function setOwnerAccount(ApiAppResponseOwnerAccount $owner_account)
{
- if (is_null($options)) {
- array_push($this->openAPINullablesSetToNull, 'options');
+ if (is_null($owner_account)) {
+ throw new InvalidArgumentException('non-nullable owner_account cannot be null');
+ }
+ $this->container['owner_account'] = $owner_account;
+
+ return $this;
+ }
+
+ /**
+ * Gets callback_url
+ *
+ * @return string|null
+ */
+ public function getCallbackUrl()
+ {
+ return $this->container['callback_url'];
+ }
+
+ /**
+ * Sets callback_url
+ *
+ * @param string|null $callback_url The app's callback URL (for events)
+ *
+ * @return self
+ */
+ public function setCallbackUrl(?string $callback_url)
+ {
+ if (is_null($callback_url)) {
+ array_push($this->openAPINullablesSetToNull, 'callback_url');
} else {
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
- $index = array_search('options', $nullablesSetToNull);
+ $index = array_search('callback_url', $nullablesSetToNull);
if ($index !== false) {
unset($nullablesSetToNull[$index]);
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
}
}
- $this->container['options'] = $options;
+ $this->container['callback_url'] = $callback_url;
return $this;
}
/**
- * Gets owner_account
+ * Gets oauth
*
- * @return ApiAppResponseOwnerAccount|null
+ * @return ApiAppResponseOAuth|null
*/
- public function getOwnerAccount()
+ public function getOauth()
{
- return $this->container['owner_account'];
+ return $this->container['oauth'];
}
/**
- * Sets owner_account
+ * Sets oauth
*
- * @param ApiAppResponseOwnerAccount|null $owner_account owner_account
+ * @param ApiAppResponseOAuth|null $oauth oauth
*
* @return self
*/
- public function setOwnerAccount(?ApiAppResponseOwnerAccount $owner_account)
+ public function setOauth(?ApiAppResponseOAuth $oauth)
{
- if (is_null($owner_account)) {
- throw new InvalidArgumentException('non-nullable owner_account cannot be null');
+ if (is_null($oauth)) {
+ array_push($this->openAPINullablesSetToNull, 'oauth');
+ } else {
+ $nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
+ $index = array_search('oauth', $nullablesSetToNull);
+ if ($index !== false) {
+ unset($nullablesSetToNull[$index]);
+ $this->setOpenAPINullablesSetToNull($nullablesSetToNull);
+ }
}
- $this->container['owner_account'] = $owner_account;
+ $this->container['oauth'] = $oauth;
return $this;
}
diff --git a/sdks/php/src/Model/ApiAppResponseOAuth.php b/sdks/php/src/Model/ApiAppResponseOAuth.php
index 57a61134a..0c7a3a08e 100644
--- a/sdks/php/src/Model/ApiAppResponseOAuth.php
+++ b/sdks/php/src/Model/ApiAppResponseOAuth.php
@@ -59,9 +59,9 @@ class ApiAppResponseOAuth implements ModelInterface, ArrayAccess, JsonSerializab
*/
protected static $openAPITypes = [
'callback_url' => 'string',
- 'secret' => 'string',
'scopes' => 'string[]',
'charges_users' => 'bool',
+ 'secret' => 'string',
];
/**
@@ -73,9 +73,9 @@ class ApiAppResponseOAuth implements ModelInterface, ArrayAccess, JsonSerializab
*/
protected static $openAPIFormats = [
'callback_url' => null,
- 'secret' => null,
'scopes' => null,
'charges_users' => null,
+ 'secret' => null,
];
/**
@@ -85,9 +85,9 @@ class ApiAppResponseOAuth implements ModelInterface, ArrayAccess, JsonSerializab
*/
protected static array $openAPINullables = [
'callback_url' => false,
- 'secret' => false,
'scopes' => false,
'charges_users' => false,
+ 'secret' => true,
];
/**
@@ -169,9 +169,9 @@ public function isNullableSetToNull(string $property): bool
*/
protected static $attributeMap = [
'callback_url' => 'callback_url',
- 'secret' => 'secret',
'scopes' => 'scopes',
'charges_users' => 'charges_users',
+ 'secret' => 'secret',
];
/**
@@ -181,9 +181,9 @@ public function isNullableSetToNull(string $property): bool
*/
protected static $setters = [
'callback_url' => 'setCallbackUrl',
- 'secret' => 'setSecret',
'scopes' => 'setScopes',
'charges_users' => 'setChargesUsers',
+ 'secret' => 'setSecret',
];
/**
@@ -193,9 +193,9 @@ public function isNullableSetToNull(string $property): bool
*/
protected static $getters = [
'callback_url' => 'getCallbackUrl',
- 'secret' => 'getSecret',
'scopes' => 'getScopes',
'charges_users' => 'getChargesUsers',
+ 'secret' => 'getSecret',
];
/**
@@ -255,9 +255,9 @@ public function getModelName()
public function __construct(array $data = null)
{
$this->setIfExists('callback_url', $data ?? [], null);
- $this->setIfExists('secret', $data ?? [], null);
$this->setIfExists('scopes', $data ?? [], null);
$this->setIfExists('charges_users', $data ?? [], null);
+ $this->setIfExists('secret', $data ?? [], null);
}
/**
@@ -303,7 +303,18 @@ private function setIfExists(string $variableName, array $fields, $defaultValue)
*/
public function listInvalidProperties()
{
- return [];
+ $invalidProperties = [];
+
+ if ($this->container['callback_url'] === null) {
+ $invalidProperties[] = "'callback_url' can't be null";
+ }
+ if ($this->container['scopes'] === null) {
+ $invalidProperties[] = "'scopes' can't be null";
+ }
+ if ($this->container['charges_users'] === null) {
+ $invalidProperties[] = "'charges_users' can't be null";
+ }
+ return $invalidProperties;
}
/**
@@ -320,7 +331,7 @@ public function valid()
/**
* Gets callback_url
*
- * @return string|null
+ * @return string
*/
public function getCallbackUrl()
{
@@ -330,11 +341,11 @@ public function getCallbackUrl()
/**
* Sets callback_url
*
- * @param string|null $callback_url the app's OAuth callback URL
+ * @param string $callback_url the app's OAuth callback URL
*
* @return self
*/
- public function setCallbackUrl(?string $callback_url)
+ public function setCallbackUrl(string $callback_url)
{
if (is_null($callback_url)) {
throw new InvalidArgumentException('non-nullable callback_url cannot be null');
@@ -345,82 +356,89 @@ public function setCallbackUrl(?string $callback_url)
}
/**
- * Gets secret
+ * Gets scopes
*
- * @return string|null
+ * @return string[]
*/
- public function getSecret()
+ public function getScopes()
{
- return $this->container['secret'];
+ return $this->container['scopes'];
}
/**
- * Sets secret
+ * Sets scopes
*
- * @param string|null $secret the app's OAuth secret, or null if the app does not belong to user
+ * @param string[] $scopes array of OAuth scopes used by the app
*
* @return self
*/
- public function setSecret(?string $secret)
+ public function setScopes(array $scopes)
{
- if (is_null($secret)) {
- throw new InvalidArgumentException('non-nullable secret cannot be null');
+ if (is_null($scopes)) {
+ throw new InvalidArgumentException('non-nullable scopes cannot be null');
}
- $this->container['secret'] = $secret;
+ $this->container['scopes'] = $scopes;
return $this;
}
/**
- * Gets scopes
+ * Gets charges_users
*
- * @return string[]|null
+ * @return bool
*/
- public function getScopes()
+ public function getChargesUsers()
{
- return $this->container['scopes'];
+ return $this->container['charges_users'];
}
/**
- * Sets scopes
+ * Sets charges_users
*
- * @param string[]|null $scopes array of OAuth scopes used by the app
+ * @param bool $charges_users boolean indicating whether the app owner or the account granting permission is billed for OAuth requests
*
* @return self
*/
- public function setScopes(?array $scopes)
+ public function setChargesUsers(bool $charges_users)
{
- if (is_null($scopes)) {
- throw new InvalidArgumentException('non-nullable scopes cannot be null');
+ if (is_null($charges_users)) {
+ throw new InvalidArgumentException('non-nullable charges_users cannot be null');
}
- $this->container['scopes'] = $scopes;
+ $this->container['charges_users'] = $charges_users;
return $this;
}
/**
- * Gets charges_users
+ * Gets secret
*
- * @return bool|null
+ * @return string|null
*/
- public function getChargesUsers()
+ public function getSecret()
{
- return $this->container['charges_users'];
+ return $this->container['secret'];
}
/**
- * Sets charges_users
+ * Sets secret
*
- * @param bool|null $charges_users boolean indicating whether the app owner or the account granting permission is billed for OAuth requests
+ * @param string|null $secret the app's OAuth secret, or null if the app does not belong to user
*
* @return self
*/
- public function setChargesUsers(?bool $charges_users)
+ public function setSecret(?string $secret)
{
- if (is_null($charges_users)) {
- throw new InvalidArgumentException('non-nullable charges_users cannot be null');
+ if (is_null($secret)) {
+ array_push($this->openAPINullablesSetToNull, 'secret');
+ } else {
+ $nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
+ $index = array_search('secret', $nullablesSetToNull);
+ if ($index !== false) {
+ unset($nullablesSetToNull[$index]);
+ $this->setOpenAPINullablesSetToNull($nullablesSetToNull);
+ }
}
- $this->container['charges_users'] = $charges_users;
+ $this->container['secret'] = $secret;
return $this;
}
diff --git a/sdks/php/src/Model/ApiAppResponseOptions.php b/sdks/php/src/Model/ApiAppResponseOptions.php
index 99c11f02a..af4718a13 100644
--- a/sdks/php/src/Model/ApiAppResponseOptions.php
+++ b/sdks/php/src/Model/ApiAppResponseOptions.php
@@ -282,7 +282,12 @@ private function setIfExists(string $variableName, array $fields, $defaultValue)
*/
public function listInvalidProperties()
{
- return [];
+ $invalidProperties = [];
+
+ if ($this->container['can_insert_everywhere'] === null) {
+ $invalidProperties[] = "'can_insert_everywhere' can't be null";
+ }
+ return $invalidProperties;
}
/**
@@ -299,7 +304,7 @@ public function valid()
/**
* Gets can_insert_everywhere
*
- * @return bool|null
+ * @return bool
*/
public function getCanInsertEverywhere()
{
@@ -309,11 +314,11 @@ public function getCanInsertEverywhere()
/**
* Sets can_insert_everywhere
*
- * @param bool|null $can_insert_everywhere Boolean denoting if signers can \"Insert Everywhere\" in one click while signing a document
+ * @param bool $can_insert_everywhere Boolean denoting if signers can \"Insert Everywhere\" in one click while signing a document
*
* @return self
*/
- public function setCanInsertEverywhere(?bool $can_insert_everywhere)
+ public function setCanInsertEverywhere(bool $can_insert_everywhere)
{
if (is_null($can_insert_everywhere)) {
throw new InvalidArgumentException('non-nullable can_insert_everywhere cannot be null');
diff --git a/sdks/php/src/Model/ApiAppResponseOwnerAccount.php b/sdks/php/src/Model/ApiAppResponseOwnerAccount.php
index ffc120960..02f1f44d8 100644
--- a/sdks/php/src/Model/ApiAppResponseOwnerAccount.php
+++ b/sdks/php/src/Model/ApiAppResponseOwnerAccount.php
@@ -289,7 +289,15 @@ private function setIfExists(string $variableName, array $fields, $defaultValue)
*/
public function listInvalidProperties()
{
- return [];
+ $invalidProperties = [];
+
+ if ($this->container['account_id'] === null) {
+ $invalidProperties[] = "'account_id' can't be null";
+ }
+ if ($this->container['email_address'] === null) {
+ $invalidProperties[] = "'email_address' can't be null";
+ }
+ return $invalidProperties;
}
/**
@@ -306,7 +314,7 @@ public function valid()
/**
* Gets account_id
*
- * @return string|null
+ * @return string
*/
public function getAccountId()
{
@@ -316,11 +324,11 @@ public function getAccountId()
/**
* Sets account_id
*
- * @param string|null $account_id The owner account's ID
+ * @param string $account_id The owner account's ID
*
* @return self
*/
- public function setAccountId(?string $account_id)
+ public function setAccountId(string $account_id)
{
if (is_null($account_id)) {
throw new InvalidArgumentException('non-nullable account_id cannot be null');
@@ -333,7 +341,7 @@ public function setAccountId(?string $account_id)
/**
* Gets email_address
*
- * @return string|null
+ * @return string
*/
public function getEmailAddress()
{
@@ -343,11 +351,11 @@ public function getEmailAddress()
/**
* Sets email_address
*
- * @param string|null $email_address The owner account's email address
+ * @param string $email_address The owner account's email address
*
* @return self
*/
- public function setEmailAddress(?string $email_address)
+ public function setEmailAddress(string $email_address)
{
if (is_null($email_address)) {
throw new InvalidArgumentException('non-nullable email_address cannot be null');
diff --git a/sdks/php/src/Model/ApiAppResponseWhiteLabelingOptions.php b/sdks/php/src/Model/ApiAppResponseWhiteLabelingOptions.php
index 95f29f5f4..185d3782c 100644
--- a/sdks/php/src/Model/ApiAppResponseWhiteLabelingOptions.php
+++ b/sdks/php/src/Model/ApiAppResponseWhiteLabelingOptions.php
@@ -373,7 +373,51 @@ private function setIfExists(string $variableName, array $fields, $defaultValue)
*/
public function listInvalidProperties()
{
- return [];
+ $invalidProperties = [];
+
+ if ($this->container['header_background_color'] === null) {
+ $invalidProperties[] = "'header_background_color' can't be null";
+ }
+ if ($this->container['legal_version'] === null) {
+ $invalidProperties[] = "'legal_version' can't be null";
+ }
+ if ($this->container['link_color'] === null) {
+ $invalidProperties[] = "'link_color' can't be null";
+ }
+ if ($this->container['page_background_color'] === null) {
+ $invalidProperties[] = "'page_background_color' can't be null";
+ }
+ if ($this->container['primary_button_color'] === null) {
+ $invalidProperties[] = "'primary_button_color' can't be null";
+ }
+ if ($this->container['primary_button_color_hover'] === null) {
+ $invalidProperties[] = "'primary_button_color_hover' can't be null";
+ }
+ if ($this->container['primary_button_text_color'] === null) {
+ $invalidProperties[] = "'primary_button_text_color' can't be null";
+ }
+ if ($this->container['primary_button_text_color_hover'] === null) {
+ $invalidProperties[] = "'primary_button_text_color_hover' can't be null";
+ }
+ if ($this->container['secondary_button_color'] === null) {
+ $invalidProperties[] = "'secondary_button_color' can't be null";
+ }
+ if ($this->container['secondary_button_color_hover'] === null) {
+ $invalidProperties[] = "'secondary_button_color_hover' can't be null";
+ }
+ if ($this->container['secondary_button_text_color'] === null) {
+ $invalidProperties[] = "'secondary_button_text_color' can't be null";
+ }
+ if ($this->container['secondary_button_text_color_hover'] === null) {
+ $invalidProperties[] = "'secondary_button_text_color_hover' can't be null";
+ }
+ if ($this->container['text_color1'] === null) {
+ $invalidProperties[] = "'text_color1' can't be null";
+ }
+ if ($this->container['text_color2'] === null) {
+ $invalidProperties[] = "'text_color2' can't be null";
+ }
+ return $invalidProperties;
}
/**
@@ -390,7 +434,7 @@ public function valid()
/**
* Gets header_background_color
*
- * @return string|null
+ * @return string
*/
public function getHeaderBackgroundColor()
{
@@ -400,11 +444,11 @@ public function getHeaderBackgroundColor()
/**
* Sets header_background_color
*
- * @param string|null $header_background_color header_background_color
+ * @param string $header_background_color header_background_color
*
* @return self
*/
- public function setHeaderBackgroundColor(?string $header_background_color)
+ public function setHeaderBackgroundColor(string $header_background_color)
{
if (is_null($header_background_color)) {
throw new InvalidArgumentException('non-nullable header_background_color cannot be null');
@@ -417,7 +461,7 @@ public function setHeaderBackgroundColor(?string $header_background_color)
/**
* Gets legal_version
*
- * @return string|null
+ * @return string
*/
public function getLegalVersion()
{
@@ -427,11 +471,11 @@ public function getLegalVersion()
/**
* Sets legal_version
*
- * @param string|null $legal_version legal_version
+ * @param string $legal_version legal_version
*
* @return self
*/
- public function setLegalVersion(?string $legal_version)
+ public function setLegalVersion(string $legal_version)
{
if (is_null($legal_version)) {
throw new InvalidArgumentException('non-nullable legal_version cannot be null');
@@ -444,7 +488,7 @@ public function setLegalVersion(?string $legal_version)
/**
* Gets link_color
*
- * @return string|null
+ * @return string
*/
public function getLinkColor()
{
@@ -454,11 +498,11 @@ public function getLinkColor()
/**
* Sets link_color
*
- * @param string|null $link_color link_color
+ * @param string $link_color link_color
*
* @return self
*/
- public function setLinkColor(?string $link_color)
+ public function setLinkColor(string $link_color)
{
if (is_null($link_color)) {
throw new InvalidArgumentException('non-nullable link_color cannot be null');
@@ -471,7 +515,7 @@ public function setLinkColor(?string $link_color)
/**
* Gets page_background_color
*
- * @return string|null
+ * @return string
*/
public function getPageBackgroundColor()
{
@@ -481,11 +525,11 @@ public function getPageBackgroundColor()
/**
* Sets page_background_color
*
- * @param string|null $page_background_color page_background_color
+ * @param string $page_background_color page_background_color
*
* @return self
*/
- public function setPageBackgroundColor(?string $page_background_color)
+ public function setPageBackgroundColor(string $page_background_color)
{
if (is_null($page_background_color)) {
throw new InvalidArgumentException('non-nullable page_background_color cannot be null');
@@ -498,7 +542,7 @@ public function setPageBackgroundColor(?string $page_background_color)
/**
* Gets primary_button_color
*
- * @return string|null
+ * @return string
*/
public function getPrimaryButtonColor()
{
@@ -508,11 +552,11 @@ public function getPrimaryButtonColor()
/**
* Sets primary_button_color
*
- * @param string|null $primary_button_color primary_button_color
+ * @param string $primary_button_color primary_button_color
*
* @return self
*/
- public function setPrimaryButtonColor(?string $primary_button_color)
+ public function setPrimaryButtonColor(string $primary_button_color)
{
if (is_null($primary_button_color)) {
throw new InvalidArgumentException('non-nullable primary_button_color cannot be null');
@@ -525,7 +569,7 @@ public function setPrimaryButtonColor(?string $primary_button_color)
/**
* Gets primary_button_color_hover
*
- * @return string|null
+ * @return string
*/
public function getPrimaryButtonColorHover()
{
@@ -535,11 +579,11 @@ public function getPrimaryButtonColorHover()
/**
* Sets primary_button_color_hover
*
- * @param string|null $primary_button_color_hover primary_button_color_hover
+ * @param string $primary_button_color_hover primary_button_color_hover
*
* @return self
*/
- public function setPrimaryButtonColorHover(?string $primary_button_color_hover)
+ public function setPrimaryButtonColorHover(string $primary_button_color_hover)
{
if (is_null($primary_button_color_hover)) {
throw new InvalidArgumentException('non-nullable primary_button_color_hover cannot be null');
@@ -552,7 +596,7 @@ public function setPrimaryButtonColorHover(?string $primary_button_color_hover)
/**
* Gets primary_button_text_color
*
- * @return string|null
+ * @return string
*/
public function getPrimaryButtonTextColor()
{
@@ -562,11 +606,11 @@ public function getPrimaryButtonTextColor()
/**
* Sets primary_button_text_color
*
- * @param string|null $primary_button_text_color primary_button_text_color
+ * @param string $primary_button_text_color primary_button_text_color
*
* @return self
*/
- public function setPrimaryButtonTextColor(?string $primary_button_text_color)
+ public function setPrimaryButtonTextColor(string $primary_button_text_color)
{
if (is_null($primary_button_text_color)) {
throw new InvalidArgumentException('non-nullable primary_button_text_color cannot be null');
@@ -579,7 +623,7 @@ public function setPrimaryButtonTextColor(?string $primary_button_text_color)
/**
* Gets primary_button_text_color_hover
*
- * @return string|null
+ * @return string
*/
public function getPrimaryButtonTextColorHover()
{
@@ -589,11 +633,11 @@ public function getPrimaryButtonTextColorHover()
/**
* Sets primary_button_text_color_hover
*
- * @param string|null $primary_button_text_color_hover primary_button_text_color_hover
+ * @param string $primary_button_text_color_hover primary_button_text_color_hover
*
* @return self
*/
- public function setPrimaryButtonTextColorHover(?string $primary_button_text_color_hover)
+ public function setPrimaryButtonTextColorHover(string $primary_button_text_color_hover)
{
if (is_null($primary_button_text_color_hover)) {
throw new InvalidArgumentException('non-nullable primary_button_text_color_hover cannot be null');
@@ -606,7 +650,7 @@ public function setPrimaryButtonTextColorHover(?string $primary_button_text_colo
/**
* Gets secondary_button_color
*
- * @return string|null
+ * @return string
*/
public function getSecondaryButtonColor()
{
@@ -616,11 +660,11 @@ public function getSecondaryButtonColor()
/**
* Sets secondary_button_color
*
- * @param string|null $secondary_button_color secondary_button_color
+ * @param string $secondary_button_color secondary_button_color
*
* @return self
*/
- public function setSecondaryButtonColor(?string $secondary_button_color)
+ public function setSecondaryButtonColor(string $secondary_button_color)
{
if (is_null($secondary_button_color)) {
throw new InvalidArgumentException('non-nullable secondary_button_color cannot be null');
@@ -633,7 +677,7 @@ public function setSecondaryButtonColor(?string $secondary_button_color)
/**
* Gets secondary_button_color_hover
*
- * @return string|null
+ * @return string
*/
public function getSecondaryButtonColorHover()
{
@@ -643,11 +687,11 @@ public function getSecondaryButtonColorHover()
/**
* Sets secondary_button_color_hover
*
- * @param string|null $secondary_button_color_hover secondary_button_color_hover
+ * @param string $secondary_button_color_hover secondary_button_color_hover
*
* @return self
*/
- public function setSecondaryButtonColorHover(?string $secondary_button_color_hover)
+ public function setSecondaryButtonColorHover(string $secondary_button_color_hover)
{
if (is_null($secondary_button_color_hover)) {
throw new InvalidArgumentException('non-nullable secondary_button_color_hover cannot be null');
@@ -660,7 +704,7 @@ public function setSecondaryButtonColorHover(?string $secondary_button_color_hov
/**
* Gets secondary_button_text_color
*
- * @return string|null
+ * @return string
*/
public function getSecondaryButtonTextColor()
{
@@ -670,11 +714,11 @@ public function getSecondaryButtonTextColor()
/**
* Sets secondary_button_text_color
*
- * @param string|null $secondary_button_text_color secondary_button_text_color
+ * @param string $secondary_button_text_color secondary_button_text_color
*
* @return self
*/
- public function setSecondaryButtonTextColor(?string $secondary_button_text_color)
+ public function setSecondaryButtonTextColor(string $secondary_button_text_color)
{
if (is_null($secondary_button_text_color)) {
throw new InvalidArgumentException('non-nullable secondary_button_text_color cannot be null');
@@ -687,7 +731,7 @@ public function setSecondaryButtonTextColor(?string $secondary_button_text_color
/**
* Gets secondary_button_text_color_hover
*
- * @return string|null
+ * @return string
*/
public function getSecondaryButtonTextColorHover()
{
@@ -697,11 +741,11 @@ public function getSecondaryButtonTextColorHover()
/**
* Sets secondary_button_text_color_hover
*
- * @param string|null $secondary_button_text_color_hover secondary_button_text_color_hover
+ * @param string $secondary_button_text_color_hover secondary_button_text_color_hover
*
* @return self
*/
- public function setSecondaryButtonTextColorHover(?string $secondary_button_text_color_hover)
+ public function setSecondaryButtonTextColorHover(string $secondary_button_text_color_hover)
{
if (is_null($secondary_button_text_color_hover)) {
throw new InvalidArgumentException('non-nullable secondary_button_text_color_hover cannot be null');
@@ -714,7 +758,7 @@ public function setSecondaryButtonTextColorHover(?string $secondary_button_text_
/**
* Gets text_color1
*
- * @return string|null
+ * @return string
*/
public function getTextColor1()
{
@@ -724,11 +768,11 @@ public function getTextColor1()
/**
* Sets text_color1
*
- * @param string|null $text_color1 text_color1
+ * @param string $text_color1 text_color1
*
* @return self
*/
- public function setTextColor1(?string $text_color1)
+ public function setTextColor1(string $text_color1)
{
if (is_null($text_color1)) {
throw new InvalidArgumentException('non-nullable text_color1 cannot be null');
@@ -741,7 +785,7 @@ public function setTextColor1(?string $text_color1)
/**
* Gets text_color2
*
- * @return string|null
+ * @return string
*/
public function getTextColor2()
{
@@ -751,11 +795,11 @@ public function getTextColor2()
/**
* Sets text_color2
*
- * @param string|null $text_color2 text_color2
+ * @param string $text_color2 text_color2
*
* @return self
*/
- public function setTextColor2(?string $text_color2)
+ public function setTextColor2(string $text_color2)
{
if (is_null($text_color2)) {
throw new InvalidArgumentException('non-nullable text_color2 cannot be null');
diff --git a/sdks/php/src/Model/SubWhiteLabelingOptions.php b/sdks/php/src/Model/SubWhiteLabelingOptions.php
index 4f16b4928..0abcbd111 100644
--- a/sdks/php/src/Model/SubWhiteLabelingOptions.php
+++ b/sdks/php/src/Model/SubWhiteLabelingOptions.php
@@ -336,20 +336,20 @@ public function getLegalVersionAllowableValues()
*/
public function __construct(array $data = null)
{
- $this->setIfExists('header_background_color', $data ?? [], '#1A1A1A');
+ $this->setIfExists('header_background_color', $data ?? [], '#1a1a1a');
$this->setIfExists('legal_version', $data ?? [], 'terms1');
- $this->setIfExists('link_color', $data ?? [], '#00B3E6');
- $this->setIfExists('page_background_color', $data ?? [], '#F7F8F9');
- $this->setIfExists('primary_button_color', $data ?? [], '#00B3E6');
- $this->setIfExists('primary_button_color_hover', $data ?? [], '#00B3E6');
- $this->setIfExists('primary_button_text_color', $data ?? [], '#FFFFFF');
- $this->setIfExists('primary_button_text_color_hover', $data ?? [], '#FFFFFF');
- $this->setIfExists('secondary_button_color', $data ?? [], '#FFFFFF');
- $this->setIfExists('secondary_button_color_hover', $data ?? [], '#FFFFFF');
- $this->setIfExists('secondary_button_text_color', $data ?? [], '#00B3E6');
- $this->setIfExists('secondary_button_text_color_hover', $data ?? [], '#00B3E6');
+ $this->setIfExists('link_color', $data ?? [], '#0061FE');
+ $this->setIfExists('page_background_color', $data ?? [], '#f7f8f9');
+ $this->setIfExists('primary_button_color', $data ?? [], '#0061FE');
+ $this->setIfExists('primary_button_color_hover', $data ?? [], '#0061FE');
+ $this->setIfExists('primary_button_text_color', $data ?? [], '#ffffff');
+ $this->setIfExists('primary_button_text_color_hover', $data ?? [], '#ffffff');
+ $this->setIfExists('secondary_button_color', $data ?? [], '#ffffff');
+ $this->setIfExists('secondary_button_color_hover', $data ?? [], '#ffffff');
+ $this->setIfExists('secondary_button_text_color', $data ?? [], '#0061FE');
+ $this->setIfExists('secondary_button_text_color_hover', $data ?? [], '#0061FE');
$this->setIfExists('text_color1', $data ?? [], '#808080');
- $this->setIfExists('text_color2', $data ?? [], '#FFFFFF');
+ $this->setIfExists('text_color2', $data ?? [], '#ffffff');
$this->setIfExists('reset_to_default', $data ?? [], null);
}
diff --git a/sdks/python/docs/ApiAppResponse.md b/sdks/python/docs/ApiAppResponse.md
index ae25a38c4..c3461ca70 100644
--- a/sdks/python/docs/ApiAppResponse.md
+++ b/sdks/python/docs/ApiAppResponse.md
@@ -5,15 +5,15 @@ Contains information about an API App.
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+| `client_id`*_required_ | ```str``` | The app's client id | |
+| `created_at`*_required_ | ```int``` | The time that the app was created | |
+| `domains`*_required_ | ```List[str]``` | The domain name(s) associated with the app | |
+| `name`*_required_ | ```str``` | The name of the app | |
+| `is_approved`*_required_ | ```bool``` | Boolean to indicate if the app has been approved | |
+| `options`*_required_ | [```ApiAppResponseOptions```](ApiAppResponseOptions.md) | | |
+| `owner_account`*_required_ | [```ApiAppResponseOwnerAccount```](ApiAppResponseOwnerAccount.md) | | |
| `callback_url` | ```str``` | The app's callback URL (for events) | |
-| `client_id` | ```str``` | The app's client id | |
-| `created_at` | ```int``` | The time that the app was created | |
-| `domains` | ```List[str]``` | The domain name(s) associated with the app | |
-| `name` | ```str``` | The name of the app | |
-| `is_approved` | ```bool``` | Boolean to indicate if the app has been approved | |
| `oauth` | [```ApiAppResponseOAuth```](ApiAppResponseOAuth.md) | | |
-| `options` | [```ApiAppResponseOptions```](ApiAppResponseOptions.md) | | |
-| `owner_account` | [```ApiAppResponseOwnerAccount```](ApiAppResponseOwnerAccount.md) | | |
| `white_labeling_options` | [```ApiAppResponseWhiteLabelingOptions```](ApiAppResponseWhiteLabelingOptions.md) | | |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/sdks/python/docs/ApiAppResponseOAuth.md b/sdks/python/docs/ApiAppResponseOAuth.md
index 0c18e5f1e..a5aa95788 100644
--- a/sdks/python/docs/ApiAppResponseOAuth.md
+++ b/sdks/python/docs/ApiAppResponseOAuth.md
@@ -5,10 +5,10 @@ An object describing the app's OAuth properties, or null if OAuth is not con
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-| `callback_url` | ```str``` | The app's OAuth callback URL. | |
+| `callback_url`*_required_ | ```str``` | The app's OAuth callback URL. | |
+| `scopes`*_required_ | ```List[str]``` | Array of OAuth scopes used by the app. | |
+| `charges_users`*_required_ | ```bool``` | Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests. | |
| `secret` | ```str``` | The app's OAuth secret, or null if the app does not belong to user. | |
-| `scopes` | ```List[str]``` | Array of OAuth scopes used by the app. | |
-| `charges_users` | ```bool``` | Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests. | |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/sdks/python/docs/ApiAppResponseOptions.md b/sdks/python/docs/ApiAppResponseOptions.md
index 42f8144e5..96f399312 100644
--- a/sdks/python/docs/ApiAppResponseOptions.md
+++ b/sdks/python/docs/ApiAppResponseOptions.md
@@ -5,7 +5,7 @@ An object with options that override account settings.
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-| `can_insert_everywhere` | ```bool``` | Boolean denoting if signers can "Insert Everywhere" in one click while signing a document | |
+| `can_insert_everywhere`*_required_ | ```bool``` | Boolean denoting if signers can "Insert Everywhere" in one click while signing a document | |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/sdks/python/docs/ApiAppResponseOwnerAccount.md b/sdks/python/docs/ApiAppResponseOwnerAccount.md
index 9b8e22f08..b11b8402e 100644
--- a/sdks/python/docs/ApiAppResponseOwnerAccount.md
+++ b/sdks/python/docs/ApiAppResponseOwnerAccount.md
@@ -5,8 +5,8 @@ An object describing the app's owner
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-| `account_id` | ```str``` | The owner account's ID | |
-| `email_address` | ```str``` | The owner account's email address | |
+| `account_id`*_required_ | ```str``` | The owner account's ID | |
+| `email_address`*_required_ | ```str``` | The owner account's email address | |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/sdks/python/docs/ApiAppResponseWhiteLabelingOptions.md b/sdks/python/docs/ApiAppResponseWhiteLabelingOptions.md
index 375c8f2cf..ee9742c8e 100644
--- a/sdks/python/docs/ApiAppResponseWhiteLabelingOptions.md
+++ b/sdks/python/docs/ApiAppResponseWhiteLabelingOptions.md
@@ -5,20 +5,20 @@ An object with options to customize the app's signer page
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-| `header_background_color` | ```str``` | | |
-| `legal_version` | ```str``` | | |
-| `link_color` | ```str``` | | |
-| `page_background_color` | ```str``` | | |
-| `primary_button_color` | ```str``` | | |
-| `primary_button_color_hover` | ```str``` | | |
-| `primary_button_text_color` | ```str``` | | |
-| `primary_button_text_color_hover` | ```str``` | | |
-| `secondary_button_color` | ```str``` | | |
-| `secondary_button_color_hover` | ```str``` | | |
-| `secondary_button_text_color` | ```str``` | | |
-| `secondary_button_text_color_hover` | ```str``` | | |
-| `text_color1` | ```str``` | | |
-| `text_color2` | ```str``` | | |
+| `header_background_color`*_required_ | ```str``` | | |
+| `legal_version`*_required_ | ```str``` | | |
+| `link_color`*_required_ | ```str``` | | |
+| `page_background_color`*_required_ | ```str``` | | |
+| `primary_button_color`*_required_ | ```str``` | | |
+| `primary_button_color_hover`*_required_ | ```str``` | | |
+| `primary_button_text_color`*_required_ | ```str``` | | |
+| `primary_button_text_color_hover`*_required_ | ```str``` | | |
+| `secondary_button_color`*_required_ | ```str``` | | |
+| `secondary_button_color_hover`*_required_ | ```str``` | | |
+| `secondary_button_text_color`*_required_ | ```str``` | | |
+| `secondary_button_text_color_hover`*_required_ | ```str``` | | |
+| `text_color1`*_required_ | ```str``` | | |
+| `text_color2`*_required_ | ```str``` | | |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/sdks/python/docs/SubWhiteLabelingOptions.md b/sdks/python/docs/SubWhiteLabelingOptions.md
index ac301537d..f911527c3 100644
--- a/sdks/python/docs/SubWhiteLabelingOptions.md
+++ b/sdks/python/docs/SubWhiteLabelingOptions.md
@@ -7,20 +7,20 @@ Take a look at our [white labeling guide](https://developers.hellosign.com/api/r
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-| `header_background_color` | ```str``` | | [default to '#1A1A1A'] |
+| `header_background_color` | ```str``` | | [default to '#1a1a1a'] |
| `legal_version` | ```str``` | | [default to 'terms1'] |
-| `link_color` | ```str``` | | [default to '#00B3E6'] |
-| `page_background_color` | ```str``` | | [default to '#F7F8F9'] |
-| `primary_button_color` | ```str``` | | [default to '#00B3E6'] |
-| `primary_button_color_hover` | ```str``` | | [default to '#00B3E6'] |
-| `primary_button_text_color` | ```str``` | | [default to '#FFFFFF'] |
-| `primary_button_text_color_hover` | ```str``` | | [default to '#FFFFFF'] |
-| `secondary_button_color` | ```str``` | | [default to '#FFFFFF'] |
-| `secondary_button_color_hover` | ```str``` | | [default to '#FFFFFF'] |
-| `secondary_button_text_color` | ```str``` | | [default to '#00B3E6'] |
-| `secondary_button_text_color_hover` | ```str``` | | [default to '#00B3E6'] |
+| `link_color` | ```str``` | | [default to '#0061FE'] |
+| `page_background_color` | ```str``` | | [default to '#f7f8f9'] |
+| `primary_button_color` | ```str``` | | [default to '#0061FE'] |
+| `primary_button_color_hover` | ```str``` | | [default to '#0061FE'] |
+| `primary_button_text_color` | ```str``` | | [default to '#ffffff'] |
+| `primary_button_text_color_hover` | ```str``` | | [default to '#ffffff'] |
+| `secondary_button_color` | ```str``` | | [default to '#ffffff'] |
+| `secondary_button_color_hover` | ```str``` | | [default to '#ffffff'] |
+| `secondary_button_text_color` | ```str``` | | [default to '#0061FE'] |
+| `secondary_button_text_color_hover` | ```str``` | | [default to '#0061FE'] |
| `text_color1` | ```str``` | | [default to '#808080'] |
-| `text_color2` | ```str``` | | [default to '#FFFFFF'] |
+| `text_color2` | ```str``` | | [default to '#ffffff'] |
| `reset_to_default` | ```bool``` | Resets white labeling options to defaults. Only useful when updating an API App. | |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/sdks/python/dropbox_sign/models/api_app_response.py b/sdks/python/dropbox_sign/models/api_app_response.py
index a1f0bf157..9381e2f88 100644
--- a/sdks/python/dropbox_sign/models/api_app_response.py
+++ b/sdks/python/dropbox_sign/models/api_app_response.py
@@ -40,36 +40,32 @@ class ApiAppResponse(BaseModel):
Contains information about an API App.
""" # noqa: E501
- callback_url: Optional[StrictStr] = Field(
- default=None, description="The app's callback URL (for events)"
- )
- client_id: Optional[StrictStr] = Field(
- default=None, description="The app's client id"
- )
- created_at: Optional[StrictInt] = Field(
- default=None, description="The time that the app was created"
+ client_id: StrictStr = Field(description="The app's client id")
+ created_at: StrictInt = Field(description="The time that the app was created")
+ domains: List[StrictStr] = Field(
+ description="The domain name(s) associated with the app"
)
- domains: Optional[List[StrictStr]] = Field(
- default=None, description="The domain name(s) associated with the app"
+ name: StrictStr = Field(description="The name of the app")
+ is_approved: StrictBool = Field(
+ description="Boolean to indicate if the app has been approved"
)
- name: Optional[StrictStr] = Field(default=None, description="The name of the app")
- is_approved: Optional[StrictBool] = Field(
- default=None, description="Boolean to indicate if the app has been approved"
+ options: ApiAppResponseOptions
+ owner_account: ApiAppResponseOwnerAccount
+ callback_url: Optional[StrictStr] = Field(
+ default=None, description="The app's callback URL (for events)"
)
oauth: Optional[ApiAppResponseOAuth] = None
- options: Optional[ApiAppResponseOptions] = None
- owner_account: Optional[ApiAppResponseOwnerAccount] = None
white_labeling_options: Optional[ApiAppResponseWhiteLabelingOptions] = None
__properties: ClassVar[List[str]] = [
- "callback_url",
"client_id",
"created_at",
"domains",
"name",
"is_approved",
- "oauth",
"options",
"owner_account",
+ "callback_url",
+ "oauth",
"white_labeling_options",
]
@@ -123,15 +119,15 @@ def to_dict(self, excluded_fields: Set[str] = None) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
- # override the default output from pydantic by calling `to_dict()` of oauth
- if self.oauth:
- _dict["oauth"] = self.oauth.to_dict()
# override the default output from pydantic by calling `to_dict()` of options
if self.options:
_dict["options"] = self.options.to_dict()
# override the default output from pydantic by calling `to_dict()` of owner_account
if self.owner_account:
_dict["owner_account"] = self.owner_account.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of oauth
+ if self.oauth:
+ _dict["oauth"] = self.oauth.to_dict()
# override the default output from pydantic by calling `to_dict()` of white_labeling_options
if self.white_labeling_options:
_dict["white_labeling_options"] = self.white_labeling_options.to_dict()
@@ -148,17 +144,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
_obj = cls.model_validate(
{
- "callback_url": obj.get("callback_url"),
"client_id": obj.get("client_id"),
"created_at": obj.get("created_at"),
"domains": obj.get("domains"),
"name": obj.get("name"),
"is_approved": obj.get("is_approved"),
- "oauth": (
- ApiAppResponseOAuth.from_dict(obj["oauth"])
- if obj.get("oauth") is not None
- else None
- ),
"options": (
ApiAppResponseOptions.from_dict(obj["options"])
if obj.get("options") is not None
@@ -169,6 +159,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
if obj.get("owner_account") is not None
else None
),
+ "callback_url": obj.get("callback_url"),
+ "oauth": (
+ ApiAppResponseOAuth.from_dict(obj["oauth"])
+ if obj.get("oauth") is not None
+ else None
+ ),
"white_labeling_options": (
ApiAppResponseWhiteLabelingOptions.from_dict(
obj["white_labeling_options"]
@@ -193,15 +189,15 @@ def init(cls, data: Any) -> Self:
@classmethod
def openapi_types(cls) -> Dict[str, str]:
return {
- "callback_url": "(str,)",
"client_id": "(str,)",
"created_at": "(int,)",
"domains": "(List[str],)",
"name": "(str,)",
"is_approved": "(bool,)",
- "oauth": "(ApiAppResponseOAuth,)",
"options": "(ApiAppResponseOptions,)",
"owner_account": "(ApiAppResponseOwnerAccount,)",
+ "callback_url": "(str,)",
+ "oauth": "(ApiAppResponseOAuth,)",
"white_labeling_options": "(ApiAppResponseWhiteLabelingOptions,)",
}
diff --git a/sdks/python/dropbox_sign/models/api_app_response_o_auth.py b/sdks/python/dropbox_sign/models/api_app_response_o_auth.py
index 981f94d9f..cd0f83dfa 100644
--- a/sdks/python/dropbox_sign/models/api_app_response_o_auth.py
+++ b/sdks/python/dropbox_sign/models/api_app_response_o_auth.py
@@ -32,25 +32,22 @@ class ApiAppResponseOAuth(BaseModel):
An object describing the app's OAuth properties, or null if OAuth is not configured for the app.
""" # noqa: E501
- callback_url: Optional[StrictStr] = Field(
- default=None, description="The app's OAuth callback URL."
+ callback_url: StrictStr = Field(description="The app's OAuth callback URL.")
+ scopes: List[StrictStr] = Field(
+ description="Array of OAuth scopes used by the app."
+ )
+ charges_users: StrictBool = Field(
+ description="Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests."
)
secret: Optional[StrictStr] = Field(
default=None,
description="The app's OAuth secret, or null if the app does not belong to user.",
)
- scopes: Optional[List[StrictStr]] = Field(
- default=None, description="Array of OAuth scopes used by the app."
- )
- charges_users: Optional[StrictBool] = Field(
- default=None,
- description="Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests.",
- )
__properties: ClassVar[List[str]] = [
"callback_url",
- "secret",
"scopes",
"charges_users",
+ "secret",
]
model_config = ConfigDict(
@@ -117,9 +114,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
_obj = cls.model_validate(
{
"callback_url": obj.get("callback_url"),
- "secret": obj.get("secret"),
"scopes": obj.get("scopes"),
"charges_users": obj.get("charges_users"),
+ "secret": obj.get("secret"),
}
)
return _obj
@@ -138,9 +135,9 @@ def init(cls, data: Any) -> Self:
def openapi_types(cls) -> Dict[str, str]:
return {
"callback_url": "(str,)",
- "secret": "(str,)",
"scopes": "(List[str],)",
"charges_users": "(bool,)",
+ "secret": "(str,)",
}
@classmethod
diff --git a/sdks/python/dropbox_sign/models/api_app_response_options.py b/sdks/python/dropbox_sign/models/api_app_response_options.py
index 751daf0de..cedaa70a5 100644
--- a/sdks/python/dropbox_sign/models/api_app_response_options.py
+++ b/sdks/python/dropbox_sign/models/api_app_response_options.py
@@ -19,7 +19,7 @@
import json
from pydantic import BaseModel, ConfigDict, Field, StrictBool
-from typing import Any, ClassVar, Dict, List, Optional
+from typing import Any, ClassVar, Dict, List
from typing import Optional, Set, Tuple
from typing_extensions import Self
import io
@@ -32,9 +32,8 @@ class ApiAppResponseOptions(BaseModel):
An object with options that override account settings.
""" # noqa: E501
- can_insert_everywhere: Optional[StrictBool] = Field(
- default=None,
- description='Boolean denoting if signers can "Insert Everywhere" in one click while signing a document',
+ can_insert_everywhere: StrictBool = Field(
+ description='Boolean denoting if signers can "Insert Everywhere" in one click while signing a document'
)
__properties: ClassVar[List[str]] = ["can_insert_everywhere"]
diff --git a/sdks/python/dropbox_sign/models/api_app_response_owner_account.py b/sdks/python/dropbox_sign/models/api_app_response_owner_account.py
index c1ed456c8..a3710b418 100644
--- a/sdks/python/dropbox_sign/models/api_app_response_owner_account.py
+++ b/sdks/python/dropbox_sign/models/api_app_response_owner_account.py
@@ -19,7 +19,7 @@
import json
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
+from typing import Any, ClassVar, Dict, List
from typing import Optional, Set, Tuple
from typing_extensions import Self
import io
@@ -32,12 +32,8 @@ class ApiAppResponseOwnerAccount(BaseModel):
An object describing the app's owner
""" # noqa: E501
- account_id: Optional[StrictStr] = Field(
- default=None, description="The owner account's ID"
- )
- email_address: Optional[StrictStr] = Field(
- default=None, description="The owner account's email address"
- )
+ account_id: StrictStr = Field(description="The owner account's ID")
+ email_address: StrictStr = Field(description="The owner account's email address")
__properties: ClassVar[List[str]] = ["account_id", "email_address"]
model_config = ConfigDict(
diff --git a/sdks/python/dropbox_sign/models/api_app_response_white_labeling_options.py b/sdks/python/dropbox_sign/models/api_app_response_white_labeling_options.py
index 734022f90..b3f7a02f6 100644
--- a/sdks/python/dropbox_sign/models/api_app_response_white_labeling_options.py
+++ b/sdks/python/dropbox_sign/models/api_app_response_white_labeling_options.py
@@ -19,7 +19,7 @@
import json
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
+from typing import Any, ClassVar, Dict, List
from typing import Optional, Set, Tuple
from typing_extensions import Self
import io
@@ -32,20 +32,20 @@ class ApiAppResponseWhiteLabelingOptions(BaseModel):
An object with options to customize the app's signer page
""" # noqa: E501
- header_background_color: Optional[StrictStr] = None
- legal_version: Optional[StrictStr] = None
- link_color: Optional[StrictStr] = None
- page_background_color: Optional[StrictStr] = None
- primary_button_color: Optional[StrictStr] = None
- primary_button_color_hover: Optional[StrictStr] = None
- primary_button_text_color: Optional[StrictStr] = None
- primary_button_text_color_hover: Optional[StrictStr] = None
- secondary_button_color: Optional[StrictStr] = None
- secondary_button_color_hover: Optional[StrictStr] = None
- secondary_button_text_color: Optional[StrictStr] = None
- secondary_button_text_color_hover: Optional[StrictStr] = None
- text_color1: Optional[StrictStr] = None
- text_color2: Optional[StrictStr] = None
+ header_background_color: StrictStr
+ legal_version: StrictStr
+ link_color: StrictStr
+ page_background_color: StrictStr
+ primary_button_color: StrictStr
+ primary_button_color_hover: StrictStr
+ primary_button_text_color: StrictStr
+ primary_button_text_color_hover: StrictStr
+ secondary_button_color: StrictStr
+ secondary_button_color_hover: StrictStr
+ secondary_button_text_color: StrictStr
+ secondary_button_text_color_hover: StrictStr
+ text_color1: StrictStr
+ text_color2: StrictStr
__properties: ClassVar[List[str]] = [
"header_background_color",
"legal_version",
diff --git a/sdks/python/dropbox_sign/models/sub_white_labeling_options.py b/sdks/python/dropbox_sign/models/sub_white_labeling_options.py
index 63b8b6f98..218da2aea 100644
--- a/sdks/python/dropbox_sign/models/sub_white_labeling_options.py
+++ b/sdks/python/dropbox_sign/models/sub_white_labeling_options.py
@@ -39,20 +39,20 @@ class SubWhiteLabelingOptions(BaseModel):
An array of elements and values serialized to a string, to be used to customize the app's signer page. (Only applies to some API plans) Take a look at our [white labeling guide](https://developers.hellosign.com/api/reference/premium-branding/) to learn more.
""" # noqa: E501
- header_background_color: Optional[StrictStr] = "#1A1A1A"
+ header_background_color: Optional[StrictStr] = "#1a1a1a"
legal_version: Optional[StrictStr] = "terms1"
- link_color: Optional[StrictStr] = "#00B3E6"
- page_background_color: Optional[StrictStr] = "#F7F8F9"
- primary_button_color: Optional[StrictStr] = "#00B3E6"
- primary_button_color_hover: Optional[StrictStr] = "#00B3E6"
- primary_button_text_color: Optional[StrictStr] = "#FFFFFF"
- primary_button_text_color_hover: Optional[StrictStr] = "#FFFFFF"
- secondary_button_color: Optional[StrictStr] = "#FFFFFF"
- secondary_button_color_hover: Optional[StrictStr] = "#FFFFFF"
- secondary_button_text_color: Optional[StrictStr] = "#00B3E6"
- secondary_button_text_color_hover: Optional[StrictStr] = "#00B3E6"
+ link_color: Optional[StrictStr] = "#0061FE"
+ page_background_color: Optional[StrictStr] = "#f7f8f9"
+ primary_button_color: Optional[StrictStr] = "#0061FE"
+ primary_button_color_hover: Optional[StrictStr] = "#0061FE"
+ primary_button_text_color: Optional[StrictStr] = "#ffffff"
+ primary_button_text_color_hover: Optional[StrictStr] = "#ffffff"
+ secondary_button_color: Optional[StrictStr] = "#ffffff"
+ secondary_button_color_hover: Optional[StrictStr] = "#ffffff"
+ secondary_button_text_color: Optional[StrictStr] = "#0061FE"
+ secondary_button_text_color_hover: Optional[StrictStr] = "#0061FE"
text_color1: Optional[StrictStr] = "#808080"
- text_color2: Optional[StrictStr] = "#FFFFFF"
+ text_color2: Optional[StrictStr] = "#ffffff"
reset_to_default: Optional[StrictBool] = Field(
default=None,
description="Resets white labeling options to defaults. Only useful when updating an API App.",
@@ -151,7 +151,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"header_background_color": (
obj.get("header_background_color")
if obj.get("header_background_color") is not None
- else "#1A1A1A"
+ else "#1a1a1a"
),
"legal_version": (
obj.get("legal_version")
@@ -161,52 +161,52 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"link_color": (
obj.get("link_color")
if obj.get("link_color") is not None
- else "#00B3E6"
+ else "#0061FE"
),
"page_background_color": (
obj.get("page_background_color")
if obj.get("page_background_color") is not None
- else "#F7F8F9"
+ else "#f7f8f9"
),
"primary_button_color": (
obj.get("primary_button_color")
if obj.get("primary_button_color") is not None
- else "#00B3E6"
+ else "#0061FE"
),
"primary_button_color_hover": (
obj.get("primary_button_color_hover")
if obj.get("primary_button_color_hover") is not None
- else "#00B3E6"
+ else "#0061FE"
),
"primary_button_text_color": (
obj.get("primary_button_text_color")
if obj.get("primary_button_text_color") is not None
- else "#FFFFFF"
+ else "#ffffff"
),
"primary_button_text_color_hover": (
obj.get("primary_button_text_color_hover")
if obj.get("primary_button_text_color_hover") is not None
- else "#FFFFFF"
+ else "#ffffff"
),
"secondary_button_color": (
obj.get("secondary_button_color")
if obj.get("secondary_button_color") is not None
- else "#FFFFFF"
+ else "#ffffff"
),
"secondary_button_color_hover": (
obj.get("secondary_button_color_hover")
if obj.get("secondary_button_color_hover") is not None
- else "#FFFFFF"
+ else "#ffffff"
),
"secondary_button_text_color": (
obj.get("secondary_button_text_color")
if obj.get("secondary_button_text_color") is not None
- else "#00B3E6"
+ else "#0061FE"
),
"secondary_button_text_color_hover": (
obj.get("secondary_button_text_color_hover")
if obj.get("secondary_button_text_color_hover") is not None
- else "#00B3E6"
+ else "#0061FE"
),
"text_color1": (
obj.get("text_color1")
@@ -216,7 +216,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"text_color2": (
obj.get("text_color2")
if obj.get("text_color2") is not None
- else "#FFFFFF"
+ else "#ffffff"
),
"reset_to_default": obj.get("reset_to_default"),
}
diff --git a/sdks/ruby/docs/ApiAppResponse.md b/sdks/ruby/docs/ApiAppResponse.md
index ff1067f07..aabe14b57 100644
--- a/sdks/ruby/docs/ApiAppResponse.md
+++ b/sdks/ruby/docs/ApiAppResponse.md
@@ -6,14 +6,14 @@ Contains information about an API App.
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
+| `client_id`*_required_ | ```String``` | The app's client id | |
+| `created_at`*_required_ | ```Integer``` | The time that the app was created | |
+| `domains`*_required_ | ```Array``` | The domain name(s) associated with the app | |
+| `name`*_required_ | ```String``` | The name of the app | |
+| `is_approved`*_required_ | ```Boolean``` | Boolean to indicate if the app has been approved | |
+| `options`*_required_ | [```ApiAppResponseOptions```](ApiAppResponseOptions.md) | | |
+| `owner_account`*_required_ | [```ApiAppResponseOwnerAccount```](ApiAppResponseOwnerAccount.md) | | |
| `callback_url` | ```String``` | The app's callback URL (for events) | |
-| `client_id` | ```String``` | The app's client id | |
-| `created_at` | ```Integer``` | The time that the app was created | |
-| `domains` | ```Array``` | The domain name(s) associated with the app | |
-| `name` | ```String``` | The name of the app | |
-| `is_approved` | ```Boolean``` | Boolean to indicate if the app has been approved | |
| `oauth` | [```ApiAppResponseOAuth```](ApiAppResponseOAuth.md) | | |
-| `options` | [```ApiAppResponseOptions```](ApiAppResponseOptions.md) | | |
-| `owner_account` | [```ApiAppResponseOwnerAccount```](ApiAppResponseOwnerAccount.md) | | |
| `white_labeling_options` | [```ApiAppResponseWhiteLabelingOptions```](ApiAppResponseWhiteLabelingOptions.md) | | |
diff --git a/sdks/ruby/docs/ApiAppResponseOAuth.md b/sdks/ruby/docs/ApiAppResponseOAuth.md
index b39bcc302..f4ee09acd 100644
--- a/sdks/ruby/docs/ApiAppResponseOAuth.md
+++ b/sdks/ruby/docs/ApiAppResponseOAuth.md
@@ -6,8 +6,8 @@ An object describing the app's OAuth properties, or null if OAuth is not con
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
-| `callback_url` | ```String``` | The app's OAuth callback URL. | |
+| `callback_url`*_required_ | ```String``` | The app's OAuth callback URL. | |
+| `scopes`*_required_ | ```Array``` | Array of OAuth scopes used by the app. | |
+| `charges_users`*_required_ | ```Boolean``` | Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests. | |
| `secret` | ```String``` | The app's OAuth secret, or null if the app does not belong to user. | |
-| `scopes` | ```Array``` | Array of OAuth scopes used by the app. | |
-| `charges_users` | ```Boolean``` | Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests. | |
diff --git a/sdks/ruby/docs/ApiAppResponseOptions.md b/sdks/ruby/docs/ApiAppResponseOptions.md
index 6661e960f..1e25ee967 100644
--- a/sdks/ruby/docs/ApiAppResponseOptions.md
+++ b/sdks/ruby/docs/ApiAppResponseOptions.md
@@ -6,5 +6,5 @@ An object with options that override account settings.
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
-| `can_insert_everywhere` | ```Boolean``` | Boolean denoting if signers can "Insert Everywhere" in one click while signing a document | |
+| `can_insert_everywhere`*_required_ | ```Boolean``` | Boolean denoting if signers can "Insert Everywhere" in one click while signing a document | |
diff --git a/sdks/ruby/docs/ApiAppResponseOwnerAccount.md b/sdks/ruby/docs/ApiAppResponseOwnerAccount.md
index 6ae8b315d..0ed1d1466 100644
--- a/sdks/ruby/docs/ApiAppResponseOwnerAccount.md
+++ b/sdks/ruby/docs/ApiAppResponseOwnerAccount.md
@@ -6,6 +6,6 @@ An object describing the app's owner
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
-| `account_id` | ```String``` | The owner account's ID | |
-| `email_address` | ```String``` | The owner account's email address | |
+| `account_id`*_required_ | ```String``` | The owner account's ID | |
+| `email_address`*_required_ | ```String``` | The owner account's email address | |
diff --git a/sdks/ruby/docs/ApiAppResponseWhiteLabelingOptions.md b/sdks/ruby/docs/ApiAppResponseWhiteLabelingOptions.md
index 3b02d6762..7f567105e 100644
--- a/sdks/ruby/docs/ApiAppResponseWhiteLabelingOptions.md
+++ b/sdks/ruby/docs/ApiAppResponseWhiteLabelingOptions.md
@@ -6,18 +6,18 @@ An object with options to customize the app's signer page
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
-| `header_background_color` | ```String``` | | |
-| `legal_version` | ```String``` | | |
-| `link_color` | ```String``` | | |
-| `page_background_color` | ```String``` | | |
-| `primary_button_color` | ```String``` | | |
-| `primary_button_color_hover` | ```String``` | | |
-| `primary_button_text_color` | ```String``` | | |
-| `primary_button_text_color_hover` | ```String``` | | |
-| `secondary_button_color` | ```String``` | | |
-| `secondary_button_color_hover` | ```String``` | | |
-| `secondary_button_text_color` | ```String``` | | |
-| `secondary_button_text_color_hover` | ```String``` | | |
-| `text_color1` | ```String``` | | |
-| `text_color2` | ```String``` | | |
+| `header_background_color`*_required_ | ```String``` | | |
+| `legal_version`*_required_ | ```String``` | | |
+| `link_color`*_required_ | ```String``` | | |
+| `page_background_color`*_required_ | ```String``` | | |
+| `primary_button_color`*_required_ | ```String``` | | |
+| `primary_button_color_hover`*_required_ | ```String``` | | |
+| `primary_button_text_color`*_required_ | ```String``` | | |
+| `primary_button_text_color_hover`*_required_ | ```String``` | | |
+| `secondary_button_color`*_required_ | ```String``` | | |
+| `secondary_button_color_hover`*_required_ | ```String``` | | |
+| `secondary_button_text_color`*_required_ | ```String``` | | |
+| `secondary_button_text_color_hover`*_required_ | ```String``` | | |
+| `text_color1`*_required_ | ```String``` | | |
+| `text_color2`*_required_ | ```String``` | | |
diff --git a/sdks/ruby/docs/SubWhiteLabelingOptions.md b/sdks/ruby/docs/SubWhiteLabelingOptions.md
index cf92be65b..5be083c58 100644
--- a/sdks/ruby/docs/SubWhiteLabelingOptions.md
+++ b/sdks/ruby/docs/SubWhiteLabelingOptions.md
@@ -8,19 +8,19 @@ Take a look at our [white labeling guide](https://developers.hellosign.com/api/r
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
-| `header_background_color` | ```String``` | | [default to '#1A1A1A'] |
+| `header_background_color` | ```String``` | | [default to '#1a1a1a'] |
| `legal_version` | ```String``` | | [default to 'terms1'] |
-| `link_color` | ```String``` | | [default to '#00B3E6'] |
-| `page_background_color` | ```String``` | | [default to '#F7F8F9'] |
-| `primary_button_color` | ```String``` | | [default to '#00B3E6'] |
-| `primary_button_color_hover` | ```String``` | | [default to '#00B3E6'] |
-| `primary_button_text_color` | ```String``` | | [default to '#FFFFFF'] |
-| `primary_button_text_color_hover` | ```String``` | | [default to '#FFFFFF'] |
-| `secondary_button_color` | ```String``` | | [default to '#FFFFFF'] |
-| `secondary_button_color_hover` | ```String``` | | [default to '#FFFFFF'] |
-| `secondary_button_text_color` | ```String``` | | [default to '#00B3E6'] |
-| `secondary_button_text_color_hover` | ```String``` | | [default to '#00B3E6'] |
+| `link_color` | ```String``` | | [default to '#0061FE'] |
+| `page_background_color` | ```String``` | | [default to '#f7f8f9'] |
+| `primary_button_color` | ```String``` | | [default to '#0061FE'] |
+| `primary_button_color_hover` | ```String``` | | [default to '#0061FE'] |
+| `primary_button_text_color` | ```String``` | | [default to '#ffffff'] |
+| `primary_button_text_color_hover` | ```String``` | | [default to '#ffffff'] |
+| `secondary_button_color` | ```String``` | | [default to '#ffffff'] |
+| `secondary_button_color_hover` | ```String``` | | [default to '#ffffff'] |
+| `secondary_button_text_color` | ```String``` | | [default to '#0061FE'] |
+| `secondary_button_text_color_hover` | ```String``` | | [default to '#0061FE'] |
| `text_color1` | ```String``` | | [default to '#808080'] |
-| `text_color2` | ```String``` | | [default to '#FFFFFF'] |
+| `text_color2` | ```String``` | | [default to '#ffffff'] |
| `reset_to_default` | ```Boolean``` | Resets white labeling options to defaults. Only useful when updating an API App. | |
diff --git a/sdks/ruby/lib/dropbox-sign/models/api_app_response.rb b/sdks/ruby/lib/dropbox-sign/models/api_app_response.rb
index 2f7923ed0..e7b21b8d0 100644
--- a/sdks/ruby/lib/dropbox-sign/models/api_app_response.rb
+++ b/sdks/ruby/lib/dropbox-sign/models/api_app_response.rb
@@ -19,10 +19,6 @@ module Dropbox
module Dropbox::Sign
# Contains information about an API App.
class ApiAppResponse
- # The app's callback URL (for events)
- # @return [String, nil]
- attr_accessor :callback_url
-
# The app's client id
# @return [String]
attr_accessor :client_id
@@ -43,30 +39,34 @@ class ApiAppResponse
# @return [Boolean]
attr_accessor :is_approved
- # @return [ApiAppResponseOAuth, nil]
- attr_accessor :oauth
-
- # @return [ApiAppResponseOptions, nil]
+ # @return [ApiAppResponseOptions]
attr_accessor :options
# @return [ApiAppResponseOwnerAccount]
attr_accessor :owner_account
+ # The app's callback URL (for events)
+ # @return [String, nil]
+ attr_accessor :callback_url
+
+ # @return [ApiAppResponseOAuth, nil]
+ attr_accessor :oauth
+
# @return [ApiAppResponseWhiteLabelingOptions, nil]
attr_accessor :white_labeling_options
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
- :'callback_url' => :'callback_url',
:'client_id' => :'client_id',
:'created_at' => :'created_at',
:'domains' => :'domains',
:'name' => :'name',
:'is_approved' => :'is_approved',
- :'oauth' => :'oauth',
:'options' => :'options',
:'owner_account' => :'owner_account',
+ :'callback_url' => :'callback_url',
+ :'oauth' => :'oauth',
:'white_labeling_options' => :'white_labeling_options'
}
end
@@ -79,15 +79,15 @@ def self.acceptable_attributes
# Attribute type mapping.
def self.openapi_types
{
- :'callback_url' => :'String',
:'client_id' => :'String',
:'created_at' => :'Integer',
:'domains' => :'Array',
:'name' => :'String',
:'is_approved' => :'Boolean',
- :'oauth' => :'ApiAppResponseOAuth',
:'options' => :'ApiAppResponseOptions',
:'owner_account' => :'ApiAppResponseOwnerAccount',
+ :'callback_url' => :'String',
+ :'oauth' => :'ApiAppResponseOAuth',
:'white_labeling_options' => :'ApiAppResponseWhiteLabelingOptions'
}
end
@@ -97,7 +97,6 @@ def self.openapi_nullable
Set.new([
:'callback_url',
:'oauth',
- :'options',
:'white_labeling_options'
])
end
@@ -142,10 +141,6 @@ def initialize(attributes = {})
h[k.to_sym] = v
}
- if attributes.key?(:'callback_url')
- self.callback_url = attributes[:'callback_url']
- end
-
if attributes.key?(:'client_id')
self.client_id = attributes[:'client_id']
end
@@ -168,10 +163,6 @@ def initialize(attributes = {})
self.is_approved = attributes[:'is_approved']
end
- if attributes.key?(:'oauth')
- self.oauth = attributes[:'oauth']
- end
-
if attributes.key?(:'options')
self.options = attributes[:'options']
end
@@ -180,6 +171,14 @@ def initialize(attributes = {})
self.owner_account = attributes[:'owner_account']
end
+ if attributes.key?(:'callback_url')
+ self.callback_url = attributes[:'callback_url']
+ end
+
+ if attributes.key?(:'oauth')
+ self.oauth = attributes[:'oauth']
+ end
+
if attributes.key?(:'white_labeling_options')
self.white_labeling_options = attributes[:'white_labeling_options']
end
@@ -189,12 +188,47 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
+ if @client_id.nil?
+ invalid_properties.push('invalid value for "client_id", client_id cannot be nil.')
+ end
+
+ if @created_at.nil?
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
+ end
+
+ if @domains.nil?
+ invalid_properties.push('invalid value for "domains", domains cannot be nil.')
+ end
+
+ if @name.nil?
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
+ end
+
+ if @is_approved.nil?
+ invalid_properties.push('invalid value for "is_approved", is_approved cannot be nil.')
+ end
+
+ if @options.nil?
+ invalid_properties.push('invalid value for "options", options cannot be nil.')
+ end
+
+ if @owner_account.nil?
+ invalid_properties.push('invalid value for "owner_account", owner_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 @client_id.nil?
+ return false if @created_at.nil?
+ return false if @domains.nil?
+ return false if @name.nil?
+ return false if @is_approved.nil?
+ return false if @options.nil?
+ return false if @owner_account.nil?
true
end
@@ -203,15 +237,15 @@ def valid?
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
- callback_url == o.callback_url &&
client_id == o.client_id &&
created_at == o.created_at &&
domains == o.domains &&
name == o.name &&
is_approved == o.is_approved &&
- oauth == o.oauth &&
options == o.options &&
owner_account == o.owner_account &&
+ callback_url == o.callback_url &&
+ oauth == o.oauth &&
white_labeling_options == o.white_labeling_options
end
@@ -224,7 +258,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [callback_url, client_id, created_at, domains, name, is_approved, oauth, options, owner_account, white_labeling_options].hash
+ [client_id, created_at, domains, name, is_approved, options, owner_account, callback_url, oauth, white_labeling_options].hash
end
# Builds the object from hash
diff --git a/sdks/ruby/lib/dropbox-sign/models/api_app_response_o_auth.rb b/sdks/ruby/lib/dropbox-sign/models/api_app_response_o_auth.rb
index c17650a5b..1cc322299 100644
--- a/sdks/ruby/lib/dropbox-sign/models/api_app_response_o_auth.rb
+++ b/sdks/ruby/lib/dropbox-sign/models/api_app_response_o_auth.rb
@@ -23,10 +23,6 @@ class ApiAppResponseOAuth
# @return [String]
attr_accessor :callback_url
- # The app's OAuth secret, or null if the app does not belong to user.
- # @return [String]
- attr_accessor :secret
-
# Array of OAuth scopes used by the app.
# @return [Array]
attr_accessor :scopes
@@ -35,13 +31,17 @@ class ApiAppResponseOAuth
# @return [Boolean]
attr_accessor :charges_users
+ # The app's OAuth secret, or null if the app does not belong to user.
+ # @return [String, nil]
+ attr_accessor :secret
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'callback_url' => :'callback_url',
- :'secret' => :'secret',
:'scopes' => :'scopes',
- :'charges_users' => :'charges_users'
+ :'charges_users' => :'charges_users',
+ :'secret' => :'secret'
}
end
@@ -54,15 +54,16 @@ def self.acceptable_attributes
def self.openapi_types
{
:'callback_url' => :'String',
- :'secret' => :'String',
:'scopes' => :'Array',
- :'charges_users' => :'Boolean'
+ :'charges_users' => :'Boolean',
+ :'secret' => :'String'
}
end
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
+ :'secret'
])
end
@@ -110,10 +111,6 @@ def initialize(attributes = {})
self.callback_url = attributes[:'callback_url']
end
- if attributes.key?(:'secret')
- self.secret = attributes[:'secret']
- end
-
if attributes.key?(:'scopes')
if (value = attributes[:'scopes']).is_a?(Array)
self.scopes = value
@@ -123,18 +120,37 @@ def initialize(attributes = {})
if attributes.key?(:'charges_users')
self.charges_users = attributes[:'charges_users']
end
+
+ if attributes.key?(:'secret')
+ self.secret = attributes[:'secret']
+ 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 @callback_url.nil?
+ invalid_properties.push('invalid value for "callback_url", callback_url cannot be nil.')
+ end
+
+ if @scopes.nil?
+ invalid_properties.push('invalid value for "scopes", scopes cannot be nil.')
+ end
+
+ if @charges_users.nil?
+ invalid_properties.push('invalid value for "charges_users", charges_users 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 @callback_url.nil?
+ return false if @scopes.nil?
+ return false if @charges_users.nil?
true
end
@@ -144,9 +160,9 @@ def ==(o)
return true if self.equal?(o)
self.class == o.class &&
callback_url == o.callback_url &&
- secret == o.secret &&
scopes == o.scopes &&
- charges_users == o.charges_users
+ charges_users == o.charges_users &&
+ secret == o.secret
end
# @see the `==` method
@@ -158,7 +174,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [callback_url, secret, scopes, charges_users].hash
+ [callback_url, scopes, charges_users, secret].hash
end
# Builds the object from hash
diff --git a/sdks/ruby/lib/dropbox-sign/models/api_app_response_options.rb b/sdks/ruby/lib/dropbox-sign/models/api_app_response_options.rb
index 8e7742ae2..7370fdbea 100644
--- a/sdks/ruby/lib/dropbox-sign/models/api_app_response_options.rb
+++ b/sdks/ruby/lib/dropbox-sign/models/api_app_response_options.rb
@@ -97,12 +97,17 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
+ if @can_insert_everywhere.nil?
+ invalid_properties.push('invalid value for "can_insert_everywhere", can_insert_everywhere 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 @can_insert_everywhere.nil?
true
end
diff --git a/sdks/ruby/lib/dropbox-sign/models/api_app_response_owner_account.rb b/sdks/ruby/lib/dropbox-sign/models/api_app_response_owner_account.rb
index 50abb33d1..067aa02f4 100644
--- a/sdks/ruby/lib/dropbox-sign/models/api_app_response_owner_account.rb
+++ b/sdks/ruby/lib/dropbox-sign/models/api_app_response_owner_account.rb
@@ -107,12 +107,22 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
+ if @account_id.nil?
+ invalid_properties.push('invalid value for "account_id", account_id cannot be nil.')
+ end
+
+ if @email_address.nil?
+ invalid_properties.push('invalid value for "email_address", email_address 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_id.nil?
+ return false if @email_address.nil?
true
end
diff --git a/sdks/ruby/lib/dropbox-sign/models/api_app_response_white_labeling_options.rb b/sdks/ruby/lib/dropbox-sign/models/api_app_response_white_labeling_options.rb
index 99f0227d1..be704ff9f 100644
--- a/sdks/ruby/lib/dropbox-sign/models/api_app_response_white_labeling_options.rb
+++ b/sdks/ruby/lib/dropbox-sign/models/api_app_response_white_labeling_options.rb
@@ -213,12 +213,82 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
+ if @header_background_color.nil?
+ invalid_properties.push('invalid value for "header_background_color", header_background_color cannot be nil.')
+ end
+
+ if @legal_version.nil?
+ invalid_properties.push('invalid value for "legal_version", legal_version cannot be nil.')
+ end
+
+ if @link_color.nil?
+ invalid_properties.push('invalid value for "link_color", link_color cannot be nil.')
+ end
+
+ if @page_background_color.nil?
+ invalid_properties.push('invalid value for "page_background_color", page_background_color cannot be nil.')
+ end
+
+ if @primary_button_color.nil?
+ invalid_properties.push('invalid value for "primary_button_color", primary_button_color cannot be nil.')
+ end
+
+ if @primary_button_color_hover.nil?
+ invalid_properties.push('invalid value for "primary_button_color_hover", primary_button_color_hover cannot be nil.')
+ end
+
+ if @primary_button_text_color.nil?
+ invalid_properties.push('invalid value for "primary_button_text_color", primary_button_text_color cannot be nil.')
+ end
+
+ if @primary_button_text_color_hover.nil?
+ invalid_properties.push('invalid value for "primary_button_text_color_hover", primary_button_text_color_hover cannot be nil.')
+ end
+
+ if @secondary_button_color.nil?
+ invalid_properties.push('invalid value for "secondary_button_color", secondary_button_color cannot be nil.')
+ end
+
+ if @secondary_button_color_hover.nil?
+ invalid_properties.push('invalid value for "secondary_button_color_hover", secondary_button_color_hover cannot be nil.')
+ end
+
+ if @secondary_button_text_color.nil?
+ invalid_properties.push('invalid value for "secondary_button_text_color", secondary_button_text_color cannot be nil.')
+ end
+
+ if @secondary_button_text_color_hover.nil?
+ invalid_properties.push('invalid value for "secondary_button_text_color_hover", secondary_button_text_color_hover cannot be nil.')
+ end
+
+ if @text_color1.nil?
+ invalid_properties.push('invalid value for "text_color1", text_color1 cannot be nil.')
+ end
+
+ if @text_color2.nil?
+ invalid_properties.push('invalid value for "text_color2", text_color2 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 @header_background_color.nil?
+ return false if @legal_version.nil?
+ return false if @link_color.nil?
+ return false if @page_background_color.nil?
+ return false if @primary_button_color.nil?
+ return false if @primary_button_color_hover.nil?
+ return false if @primary_button_text_color.nil?
+ return false if @primary_button_text_color_hover.nil?
+ return false if @secondary_button_color.nil?
+ return false if @secondary_button_color_hover.nil?
+ return false if @secondary_button_text_color.nil?
+ return false if @secondary_button_text_color_hover.nil?
+ return false if @text_color1.nil?
+ return false if @text_color2.nil?
true
end
diff --git a/sdks/ruby/lib/dropbox-sign/models/sub_white_labeling_options.rb b/sdks/ruby/lib/dropbox-sign/models/sub_white_labeling_options.rb
index 023a55297..d6c25e221 100644
--- a/sdks/ruby/lib/dropbox-sign/models/sub_white_labeling_options.rb
+++ b/sdks/ruby/lib/dropbox-sign/models/sub_white_labeling_options.rb
@@ -183,7 +183,7 @@ def initialize(attributes = {})
if attributes.key?(:'header_background_color')
self.header_background_color = attributes[:'header_background_color']
else
- self.header_background_color = '#1A1A1A'
+ self.header_background_color = '#1a1a1a'
end
if attributes.key?(:'legal_version')
@@ -195,61 +195,61 @@ def initialize(attributes = {})
if attributes.key?(:'link_color')
self.link_color = attributes[:'link_color']
else
- self.link_color = '#00B3E6'
+ self.link_color = '#0061FE'
end
if attributes.key?(:'page_background_color')
self.page_background_color = attributes[:'page_background_color']
else
- self.page_background_color = '#F7F8F9'
+ self.page_background_color = '#f7f8f9'
end
if attributes.key?(:'primary_button_color')
self.primary_button_color = attributes[:'primary_button_color']
else
- self.primary_button_color = '#00B3E6'
+ self.primary_button_color = '#0061FE'
end
if attributes.key?(:'primary_button_color_hover')
self.primary_button_color_hover = attributes[:'primary_button_color_hover']
else
- self.primary_button_color_hover = '#00B3E6'
+ self.primary_button_color_hover = '#0061FE'
end
if attributes.key?(:'primary_button_text_color')
self.primary_button_text_color = attributes[:'primary_button_text_color']
else
- self.primary_button_text_color = '#FFFFFF'
+ self.primary_button_text_color = '#ffffff'
end
if attributes.key?(:'primary_button_text_color_hover')
self.primary_button_text_color_hover = attributes[:'primary_button_text_color_hover']
else
- self.primary_button_text_color_hover = '#FFFFFF'
+ self.primary_button_text_color_hover = '#ffffff'
end
if attributes.key?(:'secondary_button_color')
self.secondary_button_color = attributes[:'secondary_button_color']
else
- self.secondary_button_color = '#FFFFFF'
+ self.secondary_button_color = '#ffffff'
end
if attributes.key?(:'secondary_button_color_hover')
self.secondary_button_color_hover = attributes[:'secondary_button_color_hover']
else
- self.secondary_button_color_hover = '#FFFFFF'
+ self.secondary_button_color_hover = '#ffffff'
end
if attributes.key?(:'secondary_button_text_color')
self.secondary_button_text_color = attributes[:'secondary_button_text_color']
else
- self.secondary_button_text_color = '#00B3E6'
+ self.secondary_button_text_color = '#0061FE'
end
if attributes.key?(:'secondary_button_text_color_hover')
self.secondary_button_text_color_hover = attributes[:'secondary_button_text_color_hover']
else
- self.secondary_button_text_color_hover = '#00B3E6'
+ self.secondary_button_text_color_hover = '#0061FE'
end
if attributes.key?(:'text_color1')
@@ -261,7 +261,7 @@ def initialize(attributes = {})
if attributes.key?(:'text_color2')
self.text_color2 = attributes[:'text_color2']
else
- self.text_color2 = '#FFFFFF'
+ self.text_color2 = '#ffffff'
end
if attributes.key?(:'reset_to_default')
diff --git a/test_fixtures/ApiAppCreateRequest.json b/test_fixtures/ApiAppCreateRequest.json
index ac9729d12..2ee8e41a2 100644
--- a/test_fixtures/ApiAppCreateRequest.json
+++ b/test_fixtures/ApiAppCreateRequest.json
@@ -18,18 +18,18 @@
"white_labeling_options": {
"header_background_color": "#1A1A1A",
"legal_version": "terms1",
- "link_color": "#00B3E6",
- "page_background_color": "#F7F8F9",
- "primary_button_color": "#00b3e6",
- "primary_button_color_hover": "#00B3E6",
+ "link_color": "#0061FE",
+ "page_background_color": "#f7f8f9",
+ "primary_button_color": "#0061FE",
+ "primary_button_color_hover": "#0061FE",
"primary_button_text_color": "#ffffff",
- "primary_button_text_color_hover": "#FFFFFF",
- "secondary_button_color": "#FFFFFF",
- "secondary_button_color_hover": "#FFFFFF",
- "secondary_button_text_color": "#00B3E6",
- "secondary_button_text_color_hover": "#00B3E6",
+ "primary_button_text_color_hover": "#ffffff",
+ "secondary_button_color": "#ffffff",
+ "secondary_button_color_hover": "#ffffff",
+ "secondary_button_text_color": "#0061FE",
+ "secondary_button_text_color_hover": "#0061FE",
"text_color1": "#808080",
- "text_color2": "#FFFFFF"
+ "text_color2": "#ffffff"
}
}
}
diff --git a/test_fixtures/ApiAppGetResponse.json b/test_fixtures/ApiAppGetResponse.json
index 07843c389..f7d799fe7 100644
--- a/test_fixtures/ApiAppGetResponse.json
+++ b/test_fixtures/ApiAppGetResponse.json
@@ -7,7 +7,7 @@
"is_approved": false,
"name": "My Production App",
"oauth": {
- "callback_url": "http://example.com/oauth",
+ "callback_url": "https://example.com/oauth",
"scopes": [
"basic_account_info",
"request_signature"
@@ -15,13 +15,28 @@
"charges_users": false,
"secret": "98891a1b59f312d04cd88e4e0c498d75"
},
+ "options": {
+ "can_insert_everywhere": true
+ },
"owner_account": {
"account_id": "dc5deeb9e10b044c591ef2475aafad1d1d3bd888",
"email_address": "john@example.com"
},
"white_labeling_options": {
- "primary_button_color": "#00b3e6",
- "primary_button_text_color": "#ffffff"
+ "header_background_color": "#1A1A1A",
+ "legal_version": "terms1",
+ "link_color": "#0061FE",
+ "page_background_color": "#f7f8f9",
+ "primary_button_color": "#0061FE",
+ "primary_button_color_hover": "#0061FE",
+ "primary_button_text_color": "#ffffff",
+ "primary_button_text_color_hover": "#ffffff",
+ "secondary_button_color": "#ffffff",
+ "secondary_button_color_hover": "#ffffff",
+ "secondary_button_text_color": "#0061FE",
+ "secondary_button_text_color_hover": "#0061FE",
+ "text_color1": "#808080",
+ "text_color2": "#ffffff"
}
}
}
diff --git a/test_fixtures/ApiAppListResponse.json b/test_fixtures/ApiAppListResponse.json
index 6bbacb494..cc17d45d3 100644
--- a/test_fixtures/ApiAppListResponse.json
+++ b/test_fixtures/ApiAppListResponse.json
@@ -8,7 +8,7 @@
"is_approved": true,
"name": "My Production App",
"oauth": {
- "callback_url": "http://example.com/oauth",
+ "callback_url": "https://example.com/oauth",
"scopes": [
"basic_account_info",
"request_signature"
@@ -16,6 +16,9 @@
"charges_users": false,
"secret": "98891a1b59f312d04cd88e4e0c498d75"
},
+ "options": {
+ "can_insert_everywhere": true
+ },
"owner_account": {
"account_id": "dc5deeb9e10b044c591ef2475aafad1d1d3bd888",
"email_address": "john@example.com"
@@ -27,6 +30,9 @@
"domains": ["example.com"],
"is_approved": false,
"name": "My Other App",
+ "options": {
+ "can_insert_everywhere": true
+ },
"owner_account": {
"account_id": "dc5deeb9e10b044c591ef2475aafad1d1d3bd888",
"email_address": "john@example.com"
diff --git a/test_fixtures/ApiAppUpdateRequest.json b/test_fixtures/ApiAppUpdateRequest.json
index 4744e05f1..ee4e9ffc8 100644
--- a/test_fixtures/ApiAppUpdateRequest.json
+++ b/test_fixtures/ApiAppUpdateRequest.json
@@ -4,7 +4,7 @@
"domains": [
"example.com"
],
- "callback_url": "http://example.com/dropboxsign",
+ "callback_url": "https://example.com/dropboxsign",
"oauth": {
"callback_url": "https://example.com/oauth",
"scopes": [
@@ -18,18 +18,18 @@
"white_labeling_options": {
"header_background_color": "#1A1A1A",
"legal_version": "terms1",
- "link_color": "#00B3E6",
- "page_background_color": "#F7F8F9",
- "primary_button_color": "#00b3e6",
- "primary_button_color_hover": "#00B3E6",
+ "link_color": "#0061FE",
+ "page_background_color": "#f7f8f9",
+ "primary_button_color": "#0061FE",
+ "primary_button_color_hover": "#0061FE",
"primary_button_text_color": "#ffffff",
- "primary_button_text_color_hover": "#FFFFFF",
- "secondary_button_color": "#FFFFFF",
- "secondary_button_color_hover": "#FFFFFF",
- "secondary_button_text_color": "#00B3E6",
- "secondary_button_text_color_hover": "#00B3E6",
+ "primary_button_text_color_hover": "#ffffff",
+ "secondary_button_color": "#ffffff",
+ "secondary_button_color_hover": "#ffffff",
+ "secondary_button_text_color": "#0061FE",
+ "secondary_button_text_color_hover": "#0061FE",
"text_color1": "#808080",
- "text_color2": "#FFFFFF"
+ "text_color2": "#ffffff"
}
}
}