From e6fefac6f31191edeb8fa175eb8701f7a5ce0332 Mon Sep 17 00:00:00 2001 From: Jean-Pierre Portier Date: Fri, 4 Oct 2024 07:00:08 +0200 Subject: [PATCH 1/2] refactor (Numbers): Specs synch: 'SMSConfiguration.scheduledProvisioning' defined as 'readOnly' --- .../sinch/sdk/domains/numbers/models/v1/SmsConfiguration.java | 2 ++ .../sdk/domains/numbers/models/v1/SmsConfigurationImpl.java | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/SmsConfiguration.java b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/SmsConfiguration.java index f39137a5a..6ce7721e5 100644 --- a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/SmsConfiguration.java +++ b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/SmsConfiguration.java @@ -45,6 +45,7 @@ public interface SmsConfiguration { * Get scheduledProvisioning * * @return scheduledProvisioning + * @readOnly This field is returned by the server and cannot be modified */ ScheduledSmsProvisioning getScheduledProvisioning(); @@ -84,6 +85,7 @@ interface Builder { * @param scheduledProvisioning see getter * @return Current builder * @see #getScheduledProvisioning + * @readOnly This field is returned by the server and cannot be modified */ Builder setScheduledProvisioning(ScheduledSmsProvisioning scheduledProvisioning); diff --git a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/SmsConfigurationImpl.java b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/SmsConfigurationImpl.java index 9021110e3..e4433468b 100644 --- a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/SmsConfigurationImpl.java +++ b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/SmsConfigurationImpl.java @@ -69,8 +69,7 @@ public ScheduledSmsProvisioning getScheduledProvisioning() { return scheduledProvisioning.orElse(null); } - @JsonProperty(JSON_PROPERTY_SCHEDULED_PROVISIONING) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public OptionalValue scheduledProvisioning() { return scheduledProvisioning; } From 220947fcb755ee89c7ed23b2e5f1f81197a5067d Mon Sep 17 00:00:00 2001 From: Jean-Pierre Portier Date: Fri, 4 Oct 2024 09:19:48 +0200 Subject: [PATCH 2/2] refactor (Numbers): Specs synch: 'VoiceConfiguration.scheduledProvisioning' defined as 'readOnly' --- .../sdk/domains/numbers/models/v1/VoiceConfiguration.java | 2 ++ .../sdk/domains/numbers/models/v1/VoiceConfigurationEST.java | 2 ++ .../domains/numbers/models/v1/VoiceConfigurationESTImpl.java | 3 +-- .../sdk/domains/numbers/models/v1/VoiceConfigurationFAX.java | 2 ++ .../domains/numbers/models/v1/VoiceConfigurationFAXImpl.java | 3 +-- .../sdk/domains/numbers/models/v1/VoiceConfigurationRTC.java | 2 ++ .../domains/numbers/models/v1/VoiceConfigurationRTCImpl.java | 3 +-- 7 files changed, 11 insertions(+), 6 deletions(-) diff --git a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/VoiceConfiguration.java b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/VoiceConfiguration.java index 9c1bebdfb..d7553593e 100644 --- a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/VoiceConfiguration.java +++ b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/VoiceConfiguration.java @@ -27,6 +27,7 @@ public interface VoiceConfiguration { * Get scheduledProvisioning * * @return scheduledProvisioning + * @readOnly This field is returned by the server and cannot be modified */ ScheduledVoiceProvisioning getScheduledProvisioning(); @@ -49,6 +50,7 @@ interface Builder { * @param scheduledProvisioning see getter * @return Current builder * @see #getScheduledProvisioning + * @readOnly This field is returned by the server and cannot be modified */ Builder setScheduledProvisioning(ScheduledVoiceProvisioning scheduledProvisioning); diff --git a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/VoiceConfigurationEST.java b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/VoiceConfigurationEST.java index fefe0bd6c..97a200183 100644 --- a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/VoiceConfigurationEST.java +++ b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/VoiceConfigurationEST.java @@ -30,6 +30,7 @@ public interface VoiceConfigurationEST * Get scheduledProvisioning * * @return scheduledProvisioning + * @readOnly This field is returned by the server and cannot be modified */ ScheduledVoiceProvisioning getScheduledProvisioning(); @@ -69,6 +70,7 @@ interface Builder { * @param scheduledProvisioning see getter * @return Current builder * @see #getScheduledProvisioning + * @readOnly This field is returned by the server and cannot be modified */ Builder setScheduledProvisioning(ScheduledVoiceProvisioning scheduledProvisioning); diff --git a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/VoiceConfigurationESTImpl.java b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/VoiceConfigurationESTImpl.java index 4c72e7812..5f244b0ff 100644 --- a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/VoiceConfigurationESTImpl.java +++ b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/VoiceConfigurationESTImpl.java @@ -79,8 +79,7 @@ public ScheduledVoiceProvisioning getScheduledProvisioning() { return scheduledProvisioning.orElse(null); } - @JsonProperty(JSON_PROPERTY_SCHEDULED_VOICE_PROVISIONING) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public OptionalValue scheduledProvisioning() { return scheduledProvisioning; } diff --git a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/VoiceConfigurationFAX.java b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/VoiceConfigurationFAX.java index 28a2540d2..998247531 100644 --- a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/VoiceConfigurationFAX.java +++ b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/VoiceConfigurationFAX.java @@ -30,6 +30,7 @@ public interface VoiceConfigurationFAX * Get scheduledProvisioning * * @return scheduledProvisioning + * @readOnly This field is returned by the server and cannot be modified */ ScheduledVoiceProvisioning getScheduledProvisioning(); @@ -69,6 +70,7 @@ interface Builder { * @param scheduledProvisioning see getter * @return Current builder * @see #getScheduledProvisioning + * @readOnly This field is returned by the server and cannot be modified */ Builder setScheduledProvisioning(ScheduledVoiceProvisioning scheduledProvisioning); diff --git a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/VoiceConfigurationFAXImpl.java b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/VoiceConfigurationFAXImpl.java index 2efd7de6a..3489261dc 100644 --- a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/VoiceConfigurationFAXImpl.java +++ b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/VoiceConfigurationFAXImpl.java @@ -79,8 +79,7 @@ public ScheduledVoiceProvisioning getScheduledProvisioning() { return scheduledProvisioning.orElse(null); } - @JsonProperty(JSON_PROPERTY_SCHEDULED_VOICE_PROVISIONING) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public OptionalValue scheduledProvisioning() { return scheduledProvisioning; } diff --git a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/VoiceConfigurationRTC.java b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/VoiceConfigurationRTC.java index 44c4f93dd..b2fe09ca1 100644 --- a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/VoiceConfigurationRTC.java +++ b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/VoiceConfigurationRTC.java @@ -30,6 +30,7 @@ public interface VoiceConfigurationRTC * Get scheduledProvisioning * * @return scheduledProvisioning + * @readOnly This field is returned by the server and cannot be modified */ ScheduledVoiceProvisioning getScheduledProvisioning(); @@ -69,6 +70,7 @@ interface Builder { * @param scheduledProvisioning see getter * @return Current builder * @see #getScheduledProvisioning + * @readOnly This field is returned by the server and cannot be modified */ Builder setScheduledProvisioning(ScheduledVoiceProvisioning scheduledProvisioning); diff --git a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/VoiceConfigurationRTCImpl.java b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/VoiceConfigurationRTCImpl.java index 9b952392d..08e529f3e 100644 --- a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/VoiceConfigurationRTCImpl.java +++ b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/VoiceConfigurationRTCImpl.java @@ -79,8 +79,7 @@ public ScheduledVoiceProvisioning getScheduledProvisioning() { return scheduledProvisioning.orElse(null); } - @JsonProperty(JSON_PROPERTY_SCHEDULED_VOICE_PROVISIONING) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public OptionalValue scheduledProvisioning() { return scheduledProvisioning; }