From 33de27eface71d833ea99262a2aa9c2d41753dbf Mon Sep 17 00:00:00 2001 From: Juan Treminio Date: Mon, 14 Oct 2024 11:08:24 -0500 Subject: [PATCH] Improvements to FaxLine response; reduces nullability --- openapi-raw.yaml | 5 +++ openapi-sdk.yaml | 5 +++ openapi.yaml | 5 +++ sdks/dotnet/docs/FaxLineResponseFaxLine.md | 2 +- .../Model/FaxLineResponseFaxLine.cs | 26 ++++++++---- sdks/java-v1/docs/FaxLineResponseFaxLine.md | 8 ++-- .../sign/model/FaxLineResponseFaxLine.java | 30 ++++++++------ sdks/java-v2/docs/FaxLineResponseFaxLine.md | 8 ++-- .../sign/model/FaxLineResponseFaxLine.java | 26 ++++++------ .../node/docs/model/FaxLineResponseFaxLine.md | 8 ++-- sdks/node/model/faxLineResponseFaxLine.ts | 8 ++-- .../types/model/faxLineResponseFaxLine.d.ts | 8 ++-- sdks/php/docs/Model/FaxLineResponseFaxLine.md | 8 ++-- sdks/php/src/Model/FaxLineResponseFaxLine.php | 40 +++++++++++++------ sdks/python/docs/FaxLineResponseFaxLine.md | 8 ++-- .../models/fax_line_response_fax_line.py | 10 ++--- sdks/ruby/docs/FaxLineResponseFaxLine.md | 8 ++-- .../models/fax_line_response_fax_line.rb | 20 ++++++++++ 18 files changed, 148 insertions(+), 85 deletions(-) diff --git a/openapi-raw.yaml b/openapi-raw.yaml index facc85abe..3a6326c0e 100644 --- a/openapi-raw.yaml +++ b/openapi-raw.yaml @@ -10018,6 +10018,11 @@ components: type: string type: object FaxLineResponseFaxLine: + required: + - accounts + - created_at + - number + - updated_at properties: number: description: '_t__FaxLineResponseFaxLine::NUMBER' diff --git a/openapi-sdk.yaml b/openapi-sdk.yaml index ae2e0628b..fdf51e5e2 100644 --- a/openapi-sdk.yaml +++ b/openapi-sdk.yaml @@ -10626,6 +10626,11 @@ components: type: string type: object FaxLineResponseFaxLine: + required: + - accounts + - created_at + - number + - updated_at properties: number: description: Number diff --git a/openapi.yaml b/openapi.yaml index 84dce9f1e..6d7da267d 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -10604,6 +10604,11 @@ components: type: string type: object FaxLineResponseFaxLine: + required: + - accounts + - created_at + - number + - updated_at properties: number: description: Number diff --git a/sdks/dotnet/docs/FaxLineResponseFaxLine.md b/sdks/dotnet/docs/FaxLineResponseFaxLine.md index 672e73d56..d540d8ead 100644 --- a/sdks/dotnet/docs/FaxLineResponseFaxLine.md +++ b/sdks/dotnet/docs/FaxLineResponseFaxLine.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Number** | **string** | Number | [optional] **CreatedAt** | **int** | Created at | [optional] **UpdatedAt** | **int** | Updated at | [optional] **Accounts** | [**List<AccountResponse>**](AccountResponse.md) | | [optional] +**Number** | **string** | Number | **CreatedAt** | **int** | Created at | **UpdatedAt** | **int** | Updated at | **Accounts** | [**List<AccountResponse>**](AccountResponse.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/dotnet/src/Dropbox.Sign/Model/FaxLineResponseFaxLine.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponseFaxLine.cs index f52374953..c2261e452 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponseFaxLine.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxLineResponseFaxLine.cs @@ -41,16 +41,26 @@ protected FaxLineResponseFaxLine() { } /// /// Initializes a new instance of the class. /// - /// Number. - /// Created at. - /// Updated at. - /// accounts. + /// Number (required). + /// Created at (required). + /// Updated at (required). + /// accounts (required). public FaxLineResponseFaxLine(string number = default(string), int createdAt = default(int), int updatedAt = default(int), List accounts = default(List)) { + // to ensure "number" is required (not null) + if (number == null) + { + throw new ArgumentNullException("number is a required property for FaxLineResponseFaxLine and cannot be null"); + } this.Number = number; this.CreatedAt = createdAt; this.UpdatedAt = updatedAt; + // to ensure "accounts" is required (not null) + if (accounts == null) + { + throw new ArgumentNullException("accounts is a required property for FaxLineResponseFaxLine and cannot be null"); + } this.Accounts = accounts; } @@ -74,27 +84,27 @@ public static FaxLineResponseFaxLine Init(string jsonData) /// Number /// /// Number - [DataMember(Name = "number", EmitDefaultValue = true)] + [DataMember(Name = "number", IsRequired = true, EmitDefaultValue = true)] public string Number { get; set; } /// /// Created at /// /// Created at - [DataMember(Name = "created_at", EmitDefaultValue = true)] + [DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = true)] public int CreatedAt { get; set; } /// /// Updated at /// /// Updated at - [DataMember(Name = "updated_at", EmitDefaultValue = true)] + [DataMember(Name = "updated_at", IsRequired = true, EmitDefaultValue = true)] public int UpdatedAt { get; set; } /// /// Gets or Sets Accounts /// - [DataMember(Name = "accounts", EmitDefaultValue = true)] + [DataMember(Name = "accounts", IsRequired = true, EmitDefaultValue = true)] public List Accounts { get; set; } /// diff --git a/sdks/java-v1/docs/FaxLineResponseFaxLine.md b/sdks/java-v1/docs/FaxLineResponseFaxLine.md index daf0d206a..eac0a881f 100644 --- a/sdks/java-v1/docs/FaxLineResponseFaxLine.md +++ b/sdks/java-v1/docs/FaxLineResponseFaxLine.md @@ -8,10 +8,10 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -| `number` | ```String``` | Number | | -| `createdAt` | ```Integer``` | Created at | | -| `updatedAt` | ```Integer``` | Updated at | | -| `accounts` | [```List```](AccountResponse.md) | | | +| `number`*_required_ | ```String``` | Number | | +| `createdAt`*_required_ | ```Integer``` | Created at | | +| `updatedAt`*_required_ | ```Integer``` | Updated at | | +| `accounts`*_required_ | [```List```](AccountResponse.md) | | | diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineResponseFaxLine.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineResponseFaxLine.java index 63ef50b37..a10a53a32 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineResponseFaxLine.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineResponseFaxLine.java @@ -47,7 +47,7 @@ public class FaxLineResponseFaxLine { private Integer updatedAt; public static final String JSON_PROPERTY_ACCOUNTS = "accounts"; - private List accounts = null; + private List accounts = new ArrayList<>(); public FaxLineResponseFaxLine() {} @@ -76,14 +76,15 @@ public FaxLineResponseFaxLine number(String number) { * * @return number */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NUMBER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getNumber() { return number; } @JsonProperty(JSON_PROPERTY_NUMBER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(String number) { this.number = number; } @@ -98,14 +99,15 @@ public FaxLineResponseFaxLine 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; } @@ -120,14 +122,15 @@ public FaxLineResponseFaxLine updatedAt(Integer updatedAt) { * * @return updatedAt */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_UPDATED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getUpdatedAt() { return updatedAt; } @JsonProperty(JSON_PROPERTY_UPDATED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setUpdatedAt(Integer updatedAt) { this.updatedAt = updatedAt; } @@ -150,14 +153,15 @@ public FaxLineResponseFaxLine addAccountsItem(AccountResponse accountsItem) { * * @return accounts */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNTS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ACCOUNTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getAccounts() { return accounts; } @JsonProperty(JSON_PROPERTY_ACCOUNTS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setAccounts(List accounts) { this.accounts = accounts; } diff --git a/sdks/java-v2/docs/FaxLineResponseFaxLine.md b/sdks/java-v2/docs/FaxLineResponseFaxLine.md index daf0d206a..eac0a881f 100644 --- a/sdks/java-v2/docs/FaxLineResponseFaxLine.md +++ b/sdks/java-v2/docs/FaxLineResponseFaxLine.md @@ -8,10 +8,10 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -| `number` | ```String``` | Number | | -| `createdAt` | ```Integer``` | Created at | | -| `updatedAt` | ```Integer``` | Updated at | | -| `accounts` | [```List```](AccountResponse.md) | | | +| `number`*_required_ | ```String``` | Number | | +| `createdAt`*_required_ | ```Integer``` | Created at | | +| `updatedAt`*_required_ | ```Integer``` | Updated at | | +| `accounts`*_required_ | [```List```](AccountResponse.md) | | | diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineResponseFaxLine.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineResponseFaxLine.java index 9b6b8c893..3dfe4de09 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineResponseFaxLine.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineResponseFaxLine.java @@ -54,7 +54,7 @@ public class FaxLineResponseFaxLine { private Integer updatedAt; public static final String JSON_PROPERTY_ACCOUNTS = "accounts"; - private List accounts = null; + private List accounts = new ArrayList<>(); public FaxLineResponseFaxLine() { } @@ -83,9 +83,9 @@ public FaxLineResponseFaxLine number(String number) { * Number * @return number */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NUMBER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getNumber() { return number; @@ -93,7 +93,7 @@ public String getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(String number) { this.number = number; } @@ -108,9 +108,9 @@ public FaxLineResponseFaxLine createdAt(Integer createdAt) { * Created at * @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; @@ -118,7 +118,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; } @@ -133,9 +133,9 @@ public FaxLineResponseFaxLine updatedAt(Integer updatedAt) { * Updated at * @return updatedAt */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_UPDATED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getUpdatedAt() { return updatedAt; @@ -143,7 +143,7 @@ public Integer getUpdatedAt() { @JsonProperty(JSON_PROPERTY_UPDATED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setUpdatedAt(Integer updatedAt) { this.updatedAt = updatedAt; } @@ -166,9 +166,9 @@ public FaxLineResponseFaxLine addAccountsItem(AccountResponse accountsItem) { * Get accounts * @return accounts */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNTS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getAccounts() { return accounts; @@ -176,7 +176,7 @@ public List getAccounts() { @JsonProperty(JSON_PROPERTY_ACCOUNTS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setAccounts(List accounts) { this.accounts = accounts; } diff --git a/sdks/node/docs/model/FaxLineResponseFaxLine.md b/sdks/node/docs/model/FaxLineResponseFaxLine.md index aaf5b0f21..c3b4d6cb8 100644 --- a/sdks/node/docs/model/FaxLineResponseFaxLine.md +++ b/sdks/node/docs/model/FaxLineResponseFaxLine.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -| `number` | ```string``` | Number | | -| `createdAt` | ```number``` | Created at | | -| `updatedAt` | ```number``` | Updated at | | -| `accounts` | [```Array```](AccountResponse.md) | | | +| `number`*_required_ | ```string``` | Number | | +| `createdAt`*_required_ | ```number``` | Created at | | +| `updatedAt`*_required_ | ```number``` | Updated at | | +| `accounts`*_required_ | [```Array```](AccountResponse.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/model/faxLineResponseFaxLine.ts b/sdks/node/model/faxLineResponseFaxLine.ts index aeefe37e2..4aa2b965d 100644 --- a/sdks/node/model/faxLineResponseFaxLine.ts +++ b/sdks/node/model/faxLineResponseFaxLine.ts @@ -29,16 +29,16 @@ export class FaxLineResponseFaxLine { /** * Number */ - "number"?: string; + "number": string; /** * Created at */ - "createdAt"?: number; + "createdAt": number; /** * Updated at */ - "updatedAt"?: number; - "accounts"?: Array; + "updatedAt": number; + "accounts": Array; static discriminator: string | undefined = undefined; diff --git a/sdks/node/types/model/faxLineResponseFaxLine.d.ts b/sdks/node/types/model/faxLineResponseFaxLine.d.ts index d5f8c4aa7..0a7f43ef1 100644 --- a/sdks/node/types/model/faxLineResponseFaxLine.d.ts +++ b/sdks/node/types/model/faxLineResponseFaxLine.d.ts @@ -1,10 +1,10 @@ import { AttributeTypeMap } from "./"; import { AccountResponse } from "./accountResponse"; export declare class FaxLineResponseFaxLine { - "number"?: string; - "createdAt"?: number; - "updatedAt"?: number; - "accounts"?: Array; + "number": string; + "createdAt": number; + "updatedAt": number; + "accounts": Array; static discriminator: string | undefined; static attributeTypeMap: AttributeTypeMap; static getAttributeTypeMap(): AttributeTypeMap; diff --git a/sdks/php/docs/Model/FaxLineResponseFaxLine.md b/sdks/php/docs/Model/FaxLineResponseFaxLine.md index 51f479adc..b9865f1fd 100644 --- a/sdks/php/docs/Model/FaxLineResponseFaxLine.md +++ b/sdks/php/docs/Model/FaxLineResponseFaxLine.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -| `number` | ```string``` | Number | | -| `created_at` | ```int``` | Created at | | -| `updated_at` | ```int``` | Updated at | | -| `accounts` | [```\Dropbox\Sign\Model\AccountResponse[]```](AccountResponse.md) | | | +| `number`*_required_ | ```string``` | Number | | +| `created_at`*_required_ | ```int``` | Created at | | +| `updated_at`*_required_ | ```int``` | Updated at | | +| `accounts`*_required_ | [```\Dropbox\Sign\Model\AccountResponse[]```](AccountResponse.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/src/Model/FaxLineResponseFaxLine.php b/sdks/php/src/Model/FaxLineResponseFaxLine.php index 4a3fe8fa7..be4353981 100644 --- a/sdks/php/src/Model/FaxLineResponseFaxLine.php +++ b/sdks/php/src/Model/FaxLineResponseFaxLine.php @@ -302,7 +302,21 @@ private function setIfExists(string $variableName, array $fields, $defaultValue) */ public function listInvalidProperties() { - return []; + $invalidProperties = []; + + if ($this->container['number'] === null) { + $invalidProperties[] = "'number' can't be null"; + } + if ($this->container['created_at'] === null) { + $invalidProperties[] = "'created_at' can't be null"; + } + if ($this->container['updated_at'] === null) { + $invalidProperties[] = "'updated_at' can't be null"; + } + if ($this->container['accounts'] === null) { + $invalidProperties[] = "'accounts' can't be null"; + } + return $invalidProperties; } /** @@ -319,7 +333,7 @@ public function valid() /** * Gets number * - * @return string|null + * @return string */ public function getNumber() { @@ -329,11 +343,11 @@ public function getNumber() /** * Sets number * - * @param string|null $number Number + * @param string $number Number * * @return self */ - public function setNumber(?string $number) + public function setNumber(string $number) { if (is_null($number)) { throw new InvalidArgumentException('non-nullable number cannot be null'); @@ -346,7 +360,7 @@ public function setNumber(?string $number) /** * Gets created_at * - * @return int|null + * @return int */ public function getCreatedAt() { @@ -356,11 +370,11 @@ public function getCreatedAt() /** * Sets created_at * - * @param int|null $created_at Created at + * @param int $created_at Created at * * @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'); @@ -373,7 +387,7 @@ public function setCreatedAt(?int $created_at) /** * Gets updated_at * - * @return int|null + * @return int */ public function getUpdatedAt() { @@ -383,11 +397,11 @@ public function getUpdatedAt() /** * Sets updated_at * - * @param int|null $updated_at Updated at + * @param int $updated_at Updated at * * @return self */ - public function setUpdatedAt(?int $updated_at) + public function setUpdatedAt(int $updated_at) { if (is_null($updated_at)) { throw new InvalidArgumentException('non-nullable updated_at cannot be null'); @@ -400,7 +414,7 @@ public function setUpdatedAt(?int $updated_at) /** * Gets accounts * - * @return AccountResponse[]|null + * @return AccountResponse[] */ public function getAccounts() { @@ -410,11 +424,11 @@ public function getAccounts() /** * Sets accounts * - * @param AccountResponse[]|null $accounts accounts + * @param AccountResponse[] $accounts accounts * * @return self */ - public function setAccounts(?array $accounts) + public function setAccounts(array $accounts) { if (is_null($accounts)) { throw new InvalidArgumentException('non-nullable accounts cannot be null'); diff --git a/sdks/python/docs/FaxLineResponseFaxLine.md b/sdks/python/docs/FaxLineResponseFaxLine.md index f3e14c0f7..ac5821f1b 100644 --- a/sdks/python/docs/FaxLineResponseFaxLine.md +++ b/sdks/python/docs/FaxLineResponseFaxLine.md @@ -5,10 +5,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -| `number` | ```str``` | Number | | -| `created_at` | ```int``` | Created at | | -| `updated_at` | ```int``` | Updated at | | -| `accounts` | [```List[AccountResponse]```](AccountResponse.md) | | | +| `number`*_required_ | ```str``` | Number | | +| `created_at`*_required_ | ```int``` | Created at | | +| `updated_at`*_required_ | ```int``` | Updated at | | +| `accounts`*_required_ | [```List[AccountResponse]```](AccountResponse.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/dropbox_sign/models/fax_line_response_fax_line.py b/sdks/python/dropbox_sign/models/fax_line_response_fax_line.py index 7d89f44cc..ac486d75d 100644 --- a/sdks/python/dropbox_sign/models/fax_line_response_fax_line.py +++ b/sdks/python/dropbox_sign/models/fax_line_response_fax_line.py @@ -19,7 +19,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional +from typing import Any, ClassVar, Dict, List from dropbox_sign.models.account_response import AccountResponse from typing import Optional, Set, Tuple from typing_extensions import Self @@ -33,10 +33,10 @@ class FaxLineResponseFaxLine(BaseModel): FaxLineResponseFaxLine """ # noqa: E501 - number: Optional[StrictStr] = Field(default=None, description="Number") - created_at: Optional[StrictInt] = Field(default=None, description="Created at") - updated_at: Optional[StrictInt] = Field(default=None, description="Updated at") - accounts: Optional[List[AccountResponse]] = None + number: StrictStr = Field(description="Number") + created_at: StrictInt = Field(description="Created at") + updated_at: StrictInt = Field(description="Updated at") + accounts: List[AccountResponse] __properties: ClassVar[List[str]] = [ "number", "created_at", diff --git a/sdks/ruby/docs/FaxLineResponseFaxLine.md b/sdks/ruby/docs/FaxLineResponseFaxLine.md index 03d2a1d95..390bdd37f 100644 --- a/sdks/ruby/docs/FaxLineResponseFaxLine.md +++ b/sdks/ruby/docs/FaxLineResponseFaxLine.md @@ -6,8 +6,8 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| `number` | ```String``` | Number | | -| `created_at` | ```Integer``` | Created at | | -| `updated_at` | ```Integer``` | Updated at | | -| `accounts` | [```Array```](AccountResponse.md) | | | +| `number`*_required_ | ```String``` | Number | | +| `created_at`*_required_ | ```Integer``` | Created at | | +| `updated_at`*_required_ | ```Integer``` | Updated at | | +| `accounts`*_required_ | [```Array```](AccountResponse.md) | | | diff --git a/sdks/ruby/lib/dropbox-sign/models/fax_line_response_fax_line.rb b/sdks/ruby/lib/dropbox-sign/models/fax_line_response_fax_line.rb index 02d7797ab..a293f3e77 100644 --- a/sdks/ruby/lib/dropbox-sign/models/fax_line_response_fax_line.rb +++ b/sdks/ruby/lib/dropbox-sign/models/fax_line_response_fax_line.rb @@ -127,12 +127,32 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new + if @number.nil? + invalid_properties.push('invalid value for "number", number cannot be nil.') + end + + if @created_at.nil? + invalid_properties.push('invalid value for "created_at", created_at cannot be nil.') + end + + if @updated_at.nil? + invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.') + end + + if @accounts.nil? + invalid_properties.push('invalid value for "accounts", accounts cannot be nil.') + end + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + return false if @number.nil? + return false if @created_at.nil? + return false if @updated_at.nil? + return false if @accounts.nil? true end