diff --git a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ActiveNumber.java b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ActiveNumber.java index d5a877ba..9a74a816 100644 --- a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ActiveNumber.java +++ b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ActiveNumber.java @@ -47,6 +47,7 @@ public interface ActiveNumber { * or SE. * * @return regionCode + * @readOnly This field is returned by the server and cannot be modified */ String getRegionCode(); @@ -75,6 +76,7 @@ public interface ActiveNumber { * How often the recurring price is charged in months. * * @return paymentIntervalMonths + * @readOnly This field is returned by the server and cannot be modified */ Integer getPaymentIntervalMonths(); @@ -82,6 +84,7 @@ public interface ActiveNumber { * The date of the next charge. * * @return nextChargeDate + * @readOnly This field is returned by the server and cannot be modified */ Instant getNextChargeDate(); @@ -89,6 +92,7 @@ public interface ActiveNumber { * The timestamp when the subscription will expire if an expiration date has been set. * * @return expireAt + * @readOnly This field is returned by the server and cannot be modified */ Instant getExpireAt(); @@ -158,6 +162,7 @@ interface Builder { * @param regionCode see getter * @return Current builder * @see #getRegionCode + * @readOnly This field is returned by the server and cannot be modified */ Builder setRegionCode(String regionCode); @@ -194,6 +199,7 @@ interface Builder { * @param paymentIntervalMonths see getter * @return Current builder * @see #getPaymentIntervalMonths + * @readOnly This field is returned by the server and cannot be modified */ Builder setPaymentIntervalMonths(Integer paymentIntervalMonths); @@ -203,6 +209,7 @@ interface Builder { * @param nextChargeDate see getter * @return Current builder * @see #getNextChargeDate + * @readOnly This field is returned by the server and cannot be modified */ Builder setNextChargeDate(Instant nextChargeDate); @@ -212,6 +219,7 @@ interface Builder { * @param expireAt see getter * @return Current builder * @see #getExpireAt + * @readOnly This field is returned by the server and cannot be modified */ Builder setExpireAt(Instant expireAt); diff --git a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ActiveNumberImpl.java b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ActiveNumberImpl.java index 79badefc..4d26f65f 100644 --- a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ActiveNumberImpl.java +++ b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ActiveNumberImpl.java @@ -152,8 +152,7 @@ public String getRegionCode() { return regionCode.orElse(null); } - @JsonProperty(JSON_PROPERTY_REGION_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public OptionalValue regionCode() { return regionCode; } @@ -196,8 +195,7 @@ public Integer getPaymentIntervalMonths() { return paymentIntervalMonths.orElse(null); } - @JsonProperty(JSON_PROPERTY_PAYMENT_INTERVAL_MONTHS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public OptionalValue paymentIntervalMonths() { return paymentIntervalMonths; } @@ -207,8 +205,7 @@ public Instant getNextChargeDate() { return nextChargeDate.orElse(null); } - @JsonProperty(JSON_PROPERTY_NEXT_CHARGE_DATE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public OptionalValue nextChargeDate() { return nextChargeDate; } @@ -218,8 +215,7 @@ public Instant getExpireAt() { return expireAt.orElse(null); } - @JsonProperty(JSON_PROPERTY_EXPIRE_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public OptionalValue expireAt() { return expireAt; } diff --git a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledSmsProvisioning.java b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledSmsProvisioning.java index 80b467a8..cfc0c018 100644 --- a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledSmsProvisioning.java +++ b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledSmsProvisioning.java @@ -25,6 +25,7 @@ public interface ScheduledSmsProvisioning { * The SMS service plan that the scheduled provisioning job will configured with the number. * * @return servicePlanId + * @readOnly This field is returned by the server and cannot be modified */ String getServicePlanId(); @@ -32,6 +33,7 @@ public interface ScheduledSmsProvisioning { * TCR campaign ID that the scheduled provisioning job will configure with the number. * * @return campaignId + * @readOnly This field is returned by the server and cannot be modified */ String getCampaignId(); @@ -46,6 +48,7 @@ public interface ScheduledSmsProvisioning { * Timestamp when the status was last updated. * * @return lastUpdatedTime + * @readOnly This field is returned by the server and cannot be modified */ Instant getLastUpdatedTime(); @@ -53,6 +56,7 @@ public interface ScheduledSmsProvisioning { * Get errorCodes * * @return errorCodes + * @readOnly This field is returned by the server and cannot be modified */ List getErrorCodes(); @@ -74,6 +78,7 @@ interface Builder { * @param servicePlanId see getter * @return Current builder * @see #getServicePlanId + * @readOnly This field is returned by the server and cannot be modified */ Builder setServicePlanId(String servicePlanId); @@ -83,6 +88,7 @@ interface Builder { * @param campaignId see getter * @return Current builder * @see #getCampaignId + * @readOnly This field is returned by the server and cannot be modified */ Builder setCampaignId(String campaignId); @@ -101,6 +107,7 @@ interface Builder { * @param lastUpdatedTime see getter * @return Current builder * @see #getLastUpdatedTime + * @readOnly This field is returned by the server and cannot be modified */ Builder setLastUpdatedTime(Instant lastUpdatedTime); @@ -110,6 +117,7 @@ interface Builder { * @param errorCodes see getter * @return Current builder * @see #getErrorCodes + * @readOnly This field is returned by the server and cannot be modified */ Builder setErrorCodes(List errorCodes); diff --git a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledSmsProvisioningImpl.java b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledSmsProvisioningImpl.java index 280dae1d..bf4e3970 100644 --- a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledSmsProvisioningImpl.java +++ b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledSmsProvisioningImpl.java @@ -63,8 +63,7 @@ public String getServicePlanId() { return servicePlanId.orElse(null); } - @JsonProperty(JSON_PROPERTY_SERVICE_PLAN_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public OptionalValue servicePlanId() { return servicePlanId; } @@ -74,8 +73,7 @@ public String getCampaignId() { return campaignId.orElse(null); } - @JsonProperty(JSON_PROPERTY_CAMPAIGN_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public OptionalValue campaignId() { return campaignId; } @@ -96,8 +94,7 @@ public Instant getLastUpdatedTime() { return lastUpdatedTime.orElse(null); } - @JsonProperty(JSON_PROPERTY_LAST_UPDATED_TIME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public OptionalValue lastUpdatedTime() { return lastUpdatedTime; } @@ -107,8 +104,7 @@ public List getErrorCodes() { return errorCodes.orElse(null); } - @JsonProperty(JSON_PROPERTY_ERROR_CODES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public OptionalValue> errorCodes() { return errorCodes; } diff --git a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledVoiceProvisioning.java b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledVoiceProvisioning.java index fbec9914..35e3c5ba 100644 --- a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledVoiceProvisioning.java +++ b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledVoiceProvisioning.java @@ -19,6 +19,7 @@ public interface ScheduledVoiceProvisioning { * Timestamp when the status was last updated. * * @return lastUpdatedTime + * @readOnly This field is returned by the server and cannot be modified */ Instant getLastUpdatedTime(); @@ -38,6 +39,7 @@ interface Builder { * @param lastUpdatedTime see getter * @return Current builder * @see #getLastUpdatedTime + * @readOnly This field is returned by the server and cannot be modified */ Builder setLastUpdatedTime(Instant lastUpdatedTime); diff --git a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledVoiceProvisioningEST.java b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledVoiceProvisioningEST.java index ac9acf7e..32384b33 100644 --- a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledVoiceProvisioningEST.java +++ b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledVoiceProvisioningEST.java @@ -22,6 +22,7 @@ public interface ScheduledVoiceProvisioningEST * Timestamp when the status was last updated. * * @return lastUpdatedTime + * @readOnly This field is returned by the server and cannot be modified */ Instant getLastUpdatedTime(); @@ -58,6 +59,7 @@ interface Builder { * @param lastUpdatedTime see getter * @return Current builder * @see #getLastUpdatedTime + * @readOnly This field is returned by the server and cannot be modified */ Builder setLastUpdatedTime(Instant lastUpdatedTime); diff --git a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledVoiceProvisioningESTImpl.java b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledVoiceProvisioningESTImpl.java index 825bee00..f50a7cc2 100644 --- a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledVoiceProvisioningESTImpl.java +++ b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledVoiceProvisioningESTImpl.java @@ -69,8 +69,7 @@ public Instant getLastUpdatedTime() { return lastUpdatedTime.orElse(null); } - @JsonProperty(JSON_PROPERTY_LAST_UPDATED_TIME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public OptionalValue lastUpdatedTime() { return lastUpdatedTime; } diff --git a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledVoiceProvisioningFAX.java b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledVoiceProvisioningFAX.java index df4fd6f4..00ccae1c 100644 --- a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledVoiceProvisioningFAX.java +++ b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledVoiceProvisioningFAX.java @@ -22,6 +22,7 @@ public interface ScheduledVoiceProvisioningFAX * Timestamp when the status was last updated. * * @return lastUpdatedTime + * @readOnly This field is returned by the server and cannot be modified */ Instant getLastUpdatedTime(); @@ -59,6 +60,7 @@ interface Builder * @param lastUpdatedTime see getter * @return Current builder * @see #getLastUpdatedTime + * @readOnly This field is returned by the server and cannot be modified */ Builder setLastUpdatedTime(Instant lastUpdatedTime); diff --git a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledVoiceProvisioningFAXImpl.java b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledVoiceProvisioningFAXImpl.java index e196e515..4f4be518 100644 --- a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledVoiceProvisioningFAXImpl.java +++ b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledVoiceProvisioningFAXImpl.java @@ -69,8 +69,7 @@ public Instant getLastUpdatedTime() { return lastUpdatedTime.orElse(null); } - @JsonProperty(JSON_PROPERTY_LAST_UPDATED_TIME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public OptionalValue lastUpdatedTime() { return lastUpdatedTime; } diff --git a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledVoiceProvisioningRTC.java b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledVoiceProvisioningRTC.java index 4498882a..4e7aa0b4 100644 --- a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledVoiceProvisioningRTC.java +++ b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledVoiceProvisioningRTC.java @@ -22,6 +22,7 @@ public interface ScheduledVoiceProvisioningRTC * Timestamp when the status was last updated. * * @return lastUpdatedTime + * @readOnly This field is returned by the server and cannot be modified */ Instant getLastUpdatedTime(); @@ -59,6 +60,7 @@ interface Builder * @param lastUpdatedTime see getter * @return Current builder * @see #getLastUpdatedTime + * @readOnly This field is returned by the server and cannot be modified */ Builder setLastUpdatedTime(Instant lastUpdatedTime); diff --git a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledVoiceProvisioningRTCImpl.java b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledVoiceProvisioningRTCImpl.java index d5eaf292..9599fdbb 100644 --- a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledVoiceProvisioningRTCImpl.java +++ b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/ScheduledVoiceProvisioningRTCImpl.java @@ -69,8 +69,7 @@ public Instant getLastUpdatedTime() { return lastUpdatedTime.orElse(null); } - @JsonProperty(JSON_PROPERTY_LAST_UPDATED_TIME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public OptionalValue lastUpdatedTime() { return lastUpdatedTime; } 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 c154eb16..9c1bebdf 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 @@ -19,6 +19,7 @@ public interface VoiceConfiguration { * Timestamp when the status was last updated. * * @return lastUpdatedTime + * @readOnly This field is returned by the server and cannot be modified */ Instant getLastUpdatedTime(); @@ -38,6 +39,7 @@ interface Builder { * @param lastUpdatedTime see getter * @return Current builder * @see #getLastUpdatedTime + * @readOnly This field is returned by the server and cannot be modified */ Builder setLastUpdatedTime(Instant lastUpdatedTime); 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 bfc85482..fefe0bd6 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 @@ -22,6 +22,7 @@ public interface VoiceConfigurationEST * Timestamp when the status was last updated. * * @return lastUpdatedTime + * @readOnly This field is returned by the server and cannot be modified */ Instant getLastUpdatedTime(); @@ -58,6 +59,7 @@ interface Builder { * @param lastUpdatedTime see getter * @return Current builder * @see #getLastUpdatedTime + * @readOnly This field is returned by the server and cannot be modified */ Builder setLastUpdatedTime(Instant lastUpdatedTime); 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 6cec6760..4c72e781 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 @@ -69,8 +69,7 @@ public Instant getLastUpdatedTime() { return lastUpdatedTime.orElse(null); } - @JsonProperty(JSON_PROPERTY_LAST_UPDATED_TIME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public OptionalValue lastUpdatedTime() { return lastUpdatedTime; } 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 d0283e33..28a2540d 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 @@ -22,6 +22,7 @@ public interface VoiceConfigurationFAX * Timestamp when the status was last updated. * * @return lastUpdatedTime + * @readOnly This field is returned by the server and cannot be modified */ Instant getLastUpdatedTime(); @@ -58,6 +59,7 @@ interface Builder { * @param lastUpdatedTime see getter * @return Current builder * @see #getLastUpdatedTime + * @readOnly This field is returned by the server and cannot be modified */ Builder setLastUpdatedTime(Instant lastUpdatedTime); 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 0ac53ea7..2efd7de6 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 @@ -69,8 +69,7 @@ public Instant getLastUpdatedTime() { return lastUpdatedTime.orElse(null); } - @JsonProperty(JSON_PROPERTY_LAST_UPDATED_TIME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public OptionalValue lastUpdatedTime() { return lastUpdatedTime; } 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 a6e50555..44c4f93d 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 @@ -22,6 +22,7 @@ public interface VoiceConfigurationRTC * Timestamp when the status was last updated. * * @return lastUpdatedTime + * @readOnly This field is returned by the server and cannot be modified */ Instant getLastUpdatedTime(); @@ -58,6 +59,7 @@ interface Builder { * @param lastUpdatedTime see getter * @return Current builder * @see #getLastUpdatedTime + * @readOnly This field is returned by the server and cannot be modified */ Builder setLastUpdatedTime(Instant lastUpdatedTime); 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 6442503b..9b952392 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 @@ -69,8 +69,7 @@ public Instant getLastUpdatedTime() { return lastUpdatedTime.orElse(null); } - @JsonProperty(JSON_PROPERTY_LAST_UPDATED_TIME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public OptionalValue lastUpdatedTime() { return lastUpdatedTime; } diff --git a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/regions/available/response/AvailableRegion.java b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/regions/available/response/AvailableRegion.java index b4bed8d6..6cf52e17 100644 --- a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/regions/available/response/AvailableRegion.java +++ b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/regions/available/response/AvailableRegion.java @@ -22,6 +22,7 @@ public interface AvailableRegion { * ISO 3166-1 alpha-2 region code. Examples: US, GB or SE. * * @return regionCode + * @readOnly This field is returned by the server and cannot be modified */ String getRegionCode(); @@ -29,6 +30,7 @@ public interface AvailableRegion { * Display name of the region. Examples: United States, United Kingdom or Sweden. * * @return regionName + * @readOnly This field is returned by the server and cannot be modified */ String getRegionName(); @@ -37,6 +39,7 @@ public interface AvailableRegion { * . * * @return types + * @readOnly This field is returned by the server and cannot be modified */ List getTypes(); @@ -58,6 +61,7 @@ interface Builder { * @param regionCode see getter * @return Current builder * @see #getRegionCode + * @readOnly This field is returned by the server and cannot be modified */ Builder setRegionCode(String regionCode); @@ -67,6 +71,7 @@ interface Builder { * @param regionName see getter * @return Current builder * @see #getRegionName + * @readOnly This field is returned by the server and cannot be modified */ Builder setRegionName(String regionName); @@ -76,6 +81,7 @@ interface Builder { * @param types see getter * @return Current builder * @see #getTypes + * @readOnly This field is returned by the server and cannot be modified */ Builder setTypes(List types); diff --git a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/regions/available/response/AvailableRegionImpl.java b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/regions/available/response/AvailableRegionImpl.java index f461417a..3782eb78 100644 --- a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/regions/available/response/AvailableRegionImpl.java +++ b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/regions/available/response/AvailableRegionImpl.java @@ -49,8 +49,7 @@ public String getRegionCode() { return regionCode.orElse(null); } - @JsonProperty(JSON_PROPERTY_REGION_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public OptionalValue regionCode() { return regionCode; } @@ -60,8 +59,7 @@ public String getRegionName() { return regionName.orElse(null); } - @JsonProperty(JSON_PROPERTY_REGION_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public OptionalValue regionName() { return regionName; } @@ -71,8 +69,7 @@ public List getTypes() { return types.orElse(null); } - @JsonProperty(JSON_PROPERTY_TYPES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public OptionalValue> types() { return types; } diff --git a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/response/AvailableNumber.java b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/response/AvailableNumber.java index 8e4ac653..c4e772ed 100644 --- a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/response/AvailableNumber.java +++ b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/response/AvailableNumber.java @@ -30,6 +30,7 @@ public interface AvailableNumber { * leading +. * * @return phoneNumber + * @readOnly This field is returned by the server and cannot be modified */ String getPhoneNumber(); @@ -38,6 +39,7 @@ public interface AvailableNumber { * or SE. * * @return regionCode + * @readOnly This field is returned by the server and cannot be modified */ String getRegionCode(); @@ -73,6 +75,7 @@ public interface AvailableNumber { * How often the recurring price is charged in months. * * @return paymentIntervalMonths + * @readOnly This field is returned by the server and cannot be modified */ Integer getPaymentIntervalMonths(); @@ -80,6 +83,7 @@ public interface AvailableNumber { * Whether or not supplementary documentation will be required to complete the number rental. * * @return supportingDocumentationRequired + * @readOnly This field is returned by the server and cannot be modified */ Boolean getSupportingDocumentationRequired(); @@ -101,6 +105,7 @@ interface Builder { * @param phoneNumber see getter * @return Current builder * @see #getPhoneNumber + * @readOnly This field is returned by the server and cannot be modified */ Builder setPhoneNumber(String phoneNumber); @@ -110,6 +115,7 @@ interface Builder { * @param regionCode see getter * @return Current builder * @see #getRegionCode + * @readOnly This field is returned by the server and cannot be modified */ Builder setRegionCode(String regionCode); @@ -155,6 +161,7 @@ interface Builder { * @param paymentIntervalMonths see getter * @return Current builder * @see #getPaymentIntervalMonths + * @readOnly This field is returned by the server and cannot be modified */ Builder setPaymentIntervalMonths(Integer paymentIntervalMonths); @@ -164,6 +171,7 @@ interface Builder { * @param supportingDocumentationRequired see getter * @return Current builder * @see #getSupportingDocumentationRequired + * @readOnly This field is returned by the server and cannot be modified */ Builder setSupportingDocumentationRequired(Boolean supportingDocumentationRequired); diff --git a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/response/AvailableNumberImpl.java b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/response/AvailableNumberImpl.java index 4d2b5cfd..58a99c93 100644 --- a/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/response/AvailableNumberImpl.java +++ b/openapi-contracts/src/main/com/sinch/sdk/domains/numbers/models/v1/response/AvailableNumberImpl.java @@ -87,8 +87,7 @@ public String getPhoneNumber() { return phoneNumber.orElse(null); } - @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public OptionalValue phoneNumber() { return phoneNumber; } @@ -98,8 +97,7 @@ public String getRegionCode() { return regionCode.orElse(null); } - @JsonProperty(JSON_PROPERTY_REGION_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public OptionalValue regionCode() { return regionCode; } @@ -153,8 +151,7 @@ public Integer getPaymentIntervalMonths() { return paymentIntervalMonths.orElse(null); } - @JsonProperty(JSON_PROPERTY_PAYMENT_INTERVAL_MONTHS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public OptionalValue paymentIntervalMonths() { return paymentIntervalMonths; } @@ -164,8 +161,7 @@ public Boolean getSupportingDocumentationRequired() { return supportingDocumentationRequired.orElse(null); } - @JsonProperty(JSON_PROPERTY_SUPPORTING_DOCUMENTATION_REQUIRED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public OptionalValue supportingDocumentationRequired() { return supportingDocumentationRequired; }