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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion openapi-raw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10417,7 +10417,7 @@ components:
fax_pages_sent:
description: '_t__AccountUsage::FAX_PAGES_SENT'
type: integer
default: 0
nullable: true
type: object
x-internal-class: true
AccountVerifyResponseAccount:
Expand Down
2 changes: 1 addition & 1 deletion openapi-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11025,7 +11025,7 @@ components:
fax_pages_sent:
description: 'Number of fax pages sent'
type: integer
default: 0
nullable: true
type: object
x-internal-class: true
AccountVerifyResponseAccount:
Expand Down
2 changes: 1 addition & 1 deletion openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11003,7 +11003,7 @@ components:
fax_pages_sent:
description: 'Number of fax pages sent'
type: integer
default: 0
nullable: true
type: object
x-internal-class: true
AccountVerifyResponseAccount:
Expand Down
2 changes: 1 addition & 1 deletion sdks/dotnet/docs/AccountResponseUsage.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Details concerning monthly usage

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**FaxPagesSent** | **int** | Number of fax pages sent | [optional] [default to 0]
**FaxPagesSent** | **int?** | Number of fax pages sent | [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)

16 changes: 10 additions & 6 deletions sdks/dotnet/src/Dropbox.Sign/Model/AccountResponseUsage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ protected AccountResponseUsage() { }
/// <summary>
/// Initializes a new instance of the <see cref="AccountResponseUsage" /> class.
/// </summary>
/// <param name="faxPagesSent">Number of fax pages sent (default to 0).</param>
public AccountResponseUsage(int faxPagesSent = 0)
/// <param name="faxPagesSent">Number of fax pages sent.</param>
public AccountResponseUsage(int? faxPagesSent = default(int?))
{

this.FaxPagesSent = faxPagesSent;
Expand All @@ -69,7 +69,7 @@ public static AccountResponseUsage Init(string jsonData)
/// </summary>
/// <value>Number of fax pages sent</value>
[DataMember(Name = "fax_pages_sent", EmitDefaultValue = true)]
public int FaxPagesSent { get; set; }
public int? FaxPagesSent { get; set; }

/// <summary>
/// Returns the string presentation of the object
Expand Down Expand Up @@ -117,7 +117,8 @@ public bool Equals(AccountResponseUsage input)
return
(
this.FaxPagesSent == input.FaxPagesSent ||
this.FaxPagesSent.Equals(input.FaxPagesSent)
(this.FaxPagesSent != null &&
this.FaxPagesSent.Equals(input.FaxPagesSent))
);
}

Expand All @@ -130,7 +131,10 @@ public override int GetHashCode()
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
hashCode = (hashCode * 59) + this.FaxPagesSent.GetHashCode();
if (this.FaxPagesSent != null)
{
hashCode = (hashCode * 59) + this.FaxPagesSent.GetHashCode();
}
return hashCode;
}
}
Expand All @@ -151,7 +155,7 @@ public List<OpenApiType> GetOpenApiTypes()
{
Name = "fax_pages_sent",
Property = "FaxPagesSent",
Type = "int",
Type = "int?",
Value = FaxPagesSent,
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
@JsonIgnoreProperties(ignoreUnknown = true)
public class AccountResponseUsage {
public static final String JSON_PROPERTY_FAX_PAGES_SENT = "fax_pages_sent";
private Integer faxPagesSent = 0;
private Integer faxPagesSent;

public AccountResponseUsage() {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
@JsonIgnoreProperties(ignoreUnknown=true)
public class AccountResponseUsage {
public static final String JSON_PROPERTY_FAX_PAGES_SENT = "fax_pages_sent";
private Integer faxPagesSent = 0;
private Integer faxPagesSent;

public AccountResponseUsage() {
}
Expand Down
3 changes: 0 additions & 3 deletions sdks/node/dist/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -16568,9 +16568,6 @@ AccountResponseQuotas.attributeTypeMap = [

// model/accountResponseUsage.ts
var _AccountResponseUsage = class {
constructor() {
this["faxPagesSent"] = 0;
}
static getAttributeTypeMap() {
return _AccountResponseUsage.attributeTypeMap;
}
Expand Down
2 changes: 1 addition & 1 deletion sdks/node/docs/model/AccountResponseUsage.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ Details concerning monthly usage

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
| `faxPagesSent` | ```number``` | Number of fax pages sent | [default to 0] |
| `faxPagesSent` | ```number``` | Number of fax pages sent | |

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
2 changes: 1 addition & 1 deletion sdks/node/model/accountResponseUsage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class AccountResponseUsage {
/**
* Number of fax pages sent
*/
"faxPagesSent"?: number = 0;
"faxPagesSent"?: number | null;

static discriminator: string | undefined = undefined;

Expand Down
2 changes: 1 addition & 1 deletion sdks/node/types/model/accountResponseUsage.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AttributeTypeMap } from "./";
export declare class AccountResponseUsage {
"faxPagesSent"?: number;
"faxPagesSent"?: number | null;
static discriminator: string | undefined;
static attributeTypeMap: AttributeTypeMap;
static getAttributeTypeMap(): AttributeTypeMap;
Expand Down
2 changes: 1 addition & 1 deletion sdks/php/docs/Model/AccountResponseUsage.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ Details concerning monthly usage

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
| `fax_pages_sent` | ```int``` | Number of fax pages sent | [default to 0] |
| `fax_pages_sent` | ```int``` | Number of fax pages sent | |

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
14 changes: 10 additions & 4 deletions sdks/php/src/Model/AccountResponseUsage.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

use ArrayAccess;
use Dropbox\Sign\ObjectSerializer;
use InvalidArgumentException;
use JsonSerializable;
use ReturnTypeWillChange;

Expand Down Expand Up @@ -78,7 +77,7 @@ class AccountResponseUsage implements ModelInterface, ArrayAccess, JsonSerializa
* @var bool[]
*/
protected static array $openAPINullables = [
'fax_pages_sent' => false,
'fax_pages_sent' => true,
];

/**
Expand Down Expand Up @@ -236,7 +235,7 @@ public function getModelName()
*/
public function __construct(array $data = null)
{
$this->setIfExists('fax_pages_sent', $data ?? [], 0);
$this->setIfExists('fax_pages_sent', $data ?? [], null);
}

/**
Expand Down Expand Up @@ -316,7 +315,14 @@ public function getFaxPagesSent()
public function setFaxPagesSent(?int $fax_pages_sent)
{
if (is_null($fax_pages_sent)) {
throw new InvalidArgumentException('non-nullable fax_pages_sent cannot be null');
array_push($this->openAPINullablesSetToNull, 'fax_pages_sent');
} else {
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
$index = array_search('fax_pages_sent', $nullablesSetToNull);
if ($index !== false) {
unset($nullablesSetToNull[$index]);
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
}
}
$this->container['fax_pages_sent'] = $fax_pages_sent;

Expand Down
2 changes: 1 addition & 1 deletion sdks/python/docs/AccountResponseUsage.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Details concerning monthly usage
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
| `fax_pages_sent` | ```int``` | Number of fax pages sent | [default to 0] |
| `fax_pages_sent` | ```int``` | Number of fax pages sent | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

12 changes: 2 additions & 10 deletions sdks/python/dropbox_sign/models/account_response_usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class AccountResponseUsage(BaseModel):
""" # noqa: E501

fax_pages_sent: Optional[StrictInt] = Field(
default=0, description="Number of fax pages sent"
default=None, description="Number of fax pages sent"
)
__properties: ClassVar[List[str]] = ["fax_pages_sent"]

Expand Down Expand Up @@ -98,15 +98,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
if not isinstance(obj, dict):
return cls.model_validate(obj)

_obj = cls.model_validate(
{
"fax_pages_sent": (
obj.get("fax_pages_sent")
if obj.get("fax_pages_sent") is not None
else 0
)
}
)
_obj = cls.model_validate({"fax_pages_sent": obj.get("fax_pages_sent")})
return _obj

@classmethod
Expand Down
2 changes: 1 addition & 1 deletion sdks/ruby/docs/AccountResponseUsage.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ Details concerning monthly usage

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| `fax_pages_sent` | ```Integer``` | Number of fax pages sent | [default to 0] |
| `fax_pages_sent` | ```Integer``` | Number of fax pages sent | |

5 changes: 2 additions & 3 deletions sdks/ruby/lib/dropbox-sign/models/account_response_usage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module Dropbox::Sign
# Details concerning monthly usage
class AccountResponseUsage
# Number of fax pages sent
# @return [Integer]
# @return [Integer, nil]
attr_accessor :fax_pages_sent

# Attribute mapping from ruby-style variable name to JSON key.
Expand All @@ -45,6 +45,7 @@ def self.openapi_types
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
:'fax_pages_sent'
])
end

Expand Down Expand Up @@ -90,8 +91,6 @@ def initialize(attributes = {})

if attributes.key?(:'fax_pages_sent')
self.fax_pages_sent = attributes[:'fax_pages_sent']
else
self.fax_pages_sent = 0
end
end

Expand Down