diff --git a/client/src/test/java/com/sinch/sdk/domains/numbers/adapters/converters/ScheduledSmsProvisioningDtoConverterTest.java b/client/src/test/java/com/sinch/sdk/domains/numbers/adapters/converters/ScheduledSmsProvisioningDtoConverterTest.java index 3a7ff9d00..1e5f302b0 100644 --- a/client/src/test/java/com/sinch/sdk/domains/numbers/adapters/converters/ScheduledSmsProvisioningDtoConverterTest.java +++ b/client/src/test/java/com/sinch/sdk/domains/numbers/adapters/converters/ScheduledSmsProvisioningDtoConverterTest.java @@ -24,7 +24,7 @@ void convert() { ScheduledSmsProvisioning converted = ScheduledSmsProvisioningDtoConverter.convert( - SmsConfigurationDtoTest.configuration.getScheduledProvisioning()); + SmsConfigurationDtoTest.configurationResponse.getScheduledProvisioning()); TestHelpers.recursiveEquals(provisioning, converted); } } diff --git a/client/src/test/java/com/sinch/sdk/domains/numbers/adapters/converters/ScheduledVoiceProvisioningDtoConverterTest.java b/client/src/test/java/com/sinch/sdk/domains/numbers/adapters/converters/ScheduledVoiceProvisioningDtoConverterTest.java index a27a5d0f6..222852dfe 100644 --- a/client/src/test/java/com/sinch/sdk/domains/numbers/adapters/converters/ScheduledVoiceProvisioningDtoConverterTest.java +++ b/client/src/test/java/com/sinch/sdk/domains/numbers/adapters/converters/ScheduledVoiceProvisioningDtoConverterTest.java @@ -20,7 +20,7 @@ void convert() { ScheduledVoiceProvisioning converted = ScheduledVoiceProvisioningDtoConverter.convert( - VoiceConfigurationDtoTest.configurationRTC.getScheduledProvisioning()); + VoiceConfigurationDtoTest.configurationResponseRTC.getScheduledProvisioning()); TestHelpers.recursiveEquals(provisioning, converted); } } diff --git a/client/src/test/java/com/sinch/sdk/domains/numbers/adapters/converters/SmsConfigurationDtoConverterTest.java b/client/src/test/java/com/sinch/sdk/domains/numbers/adapters/converters/SmsConfigurationDtoConverterTest.java index 4cb3ef798..094ee4f29 100644 --- a/client/src/test/java/com/sinch/sdk/domains/numbers/adapters/converters/SmsConfigurationDtoConverterTest.java +++ b/client/src/test/java/com/sinch/sdk/domains/numbers/adapters/converters/SmsConfigurationDtoConverterTest.java @@ -15,7 +15,7 @@ class SmsConfigurationDtoConverterTest { void convertDto() { SMSConfiguration converted = - SmsConfigurationDtoConverter.convert(SmsConfigurationDtoTest.configuration); + SmsConfigurationDtoConverter.convert(SmsConfigurationDtoTest.configurationResponse); TestHelpers.recursiveEquals(configuration, converted); } } diff --git a/client/src/test/java/com/sinch/sdk/domains/numbers/adapters/converters/VoiceConfigurationDtoConverterTest.java b/client/src/test/java/com/sinch/sdk/domains/numbers/adapters/converters/VoiceConfigurationDtoConverterTest.java index 8ddf1b330..4b2bedfe4 100644 --- a/client/src/test/java/com/sinch/sdk/domains/numbers/adapters/converters/VoiceConfigurationDtoConverterTest.java +++ b/client/src/test/java/com/sinch/sdk/domains/numbers/adapters/converters/VoiceConfigurationDtoConverterTest.java @@ -18,7 +18,7 @@ class VoiceConfigurationDtoConverterTest { void convert() { VoiceConfiguration converted = - VoiceConfigurationDtoConverter.convert(VoiceConfigurationDtoTest.configurationRTC); + VoiceConfigurationDtoConverter.convert(VoiceConfigurationDtoTest.configurationResponseRTC); TestHelpers.recursiveEquals(configuration, converted); } } 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 d5a877ba4..9a74a8162 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 79badefc0..4d26f65fb 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 80b467a8b..cfc0c0186 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 280dae1d2..bf4e39701 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 fbec99141..35e3c5ba8 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 ac9acf7ee..32384b33f 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 825bee00e..f50a7cc2e 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 df4fd6f43..00ccae1c4 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 e196e5159..4f4be5182 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 4498882ac..4e7aa0b44 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 d5eaf2929..9599fdbbb 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 c154eb16e..9c1bebdfb 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 bfc85482e..fefe0bd6c 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 6cec67605..4c72e7812 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 d0283e33c..28a2540d2 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 0ac53ea7d..2efd7de6a 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 a6e505559..44c4f93dd 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 6442503b6..9b952392d 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 b4bed8d67..6cf52e173 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 f461417a1..3782eb781 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 8e4ac653c..c4e772ed8 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 4d2b5cfdb..58a99c936 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; } diff --git a/openapi-contracts/src/test/java/com/sinch/sdk/domains/numbers/models/v1/ActiveNumberDtoTest.java b/openapi-contracts/src/test/java/com/sinch/sdk/domains/numbers/models/v1/ActiveNumberDtoTest.java index 3ae0df20c..17b481528 100644 --- a/openapi-contracts/src/test/java/com/sinch/sdk/domains/numbers/models/v1/ActiveNumberDtoTest.java +++ b/openapi-contracts/src/test/java/com/sinch/sdk/domains/numbers/models/v1/ActiveNumberDtoTest.java @@ -40,8 +40,8 @@ public class ActiveNumberDtoTest extends NumbersBaseTest { .setPaymentIntervalMonths(1) .setNextChargeDate(Instant.parse("2023-09-22T15:49:58.813424Z")) .setExpireAt(Instant.parse("2023-10-06T15:49:58.813381Z")) - .setSmsConfiguration(SmsConfigurationDtoTest.configuration) - .setVoiceConfiguration(VoiceConfigurationDtoTest.configurationRTC) + .setSmsConfiguration(SmsConfigurationDtoTest.configurationResponse) + .setVoiceConfiguration(VoiceConfigurationDtoTest.configurationResponseRTC) .setCallbackUrl("foo callback") .build(); @@ -95,14 +95,6 @@ public class ActiveNumberDtoTest extends NumbersBaseTest { .setTotalSize(1) .build(); - @Test - void serialize() throws JsonProcessingException, JSONException { - - String serializedString = objectMapper.writeValueAsString(activeNumber); - - JSONAssert.assertEquals(activeNumberJson, serializedString, true); - } - @Test void deserialize() throws JsonProcessingException { diff --git a/openapi-contracts/src/test/java/com/sinch/sdk/domains/numbers/models/v1/ScheduledVoiceProvisioningDtoTest.java b/openapi-contracts/src/test/java/com/sinch/sdk/domains/numbers/models/v1/ScheduledVoiceProvisioningDtoTest.java index b277c910a..7240d3d7a 100644 --- a/openapi-contracts/src/test/java/com/sinch/sdk/domains/numbers/models/v1/ScheduledVoiceProvisioningDtoTest.java +++ b/openapi-contracts/src/test/java/com/sinch/sdk/domains/numbers/models/v1/ScheduledVoiceProvisioningDtoTest.java @@ -7,9 +7,7 @@ import com.sinch.sdk.domains.numbers.api.v1.adapters.NumbersBaseTest; import com.sinch.sdk.domains.numbers.models.v1.internal.ScheduledVoiceProvisioningInternalImpl; import java.time.Instant; -import org.json.JSONException; import org.junit.jupiter.api.Test; -import org.skyscreamer.jsonassert.JSONAssert; @TestWithResources public class ScheduledVoiceProvisioningDtoTest extends NumbersBaseTest { @@ -43,14 +41,6 @@ public class ScheduledVoiceProvisioningDtoTest extends NumbersBaseTest { .setLastUpdatedTime(Instant.parse("2024-07-01T11:58:35.610198Z")) .build(); - @Test - void serializeEST() throws JsonProcessingException, JSONException { - - String serializedString = objectMapper.writeValueAsString(provisioningEST); - - JSONAssert.assertEquals(provisioningJsonEST, serializedString, true); - } - @Test void deserializeEST() throws JsonProcessingException { @@ -61,14 +51,6 @@ void deserializeEST() throws JsonProcessingException { provisioningEST, deserializedString.getScheduledVoiceProvisioningESTImpl()); } - @Test - void serializeFAX() throws JsonProcessingException, JSONException { - - String serializedString = objectMapper.writeValueAsString(provisioningFAX); - - JSONAssert.assertEquals(provisioningJsonFAX, serializedString, true); - } - @Test void deserializeFAX() throws JsonProcessingException { @@ -79,14 +61,6 @@ void deserializeFAX() throws JsonProcessingException { provisioningFAX, deserializedString.getScheduledVoiceProvisioningFAXImpl()); } - @Test - void serializeRTC() throws JsonProcessingException, JSONException { - - String serializedString = objectMapper.writeValueAsString(provisioningRTC); - - JSONAssert.assertEquals(provisioningJsonRTC, serializedString, true); - } - @Test void deserializeRTC() throws JsonProcessingException { diff --git a/openapi-contracts/src/test/java/com/sinch/sdk/domains/numbers/models/v1/SmsConfigurationDtoTest.java b/openapi-contracts/src/test/java/com/sinch/sdk/domains/numbers/models/v1/SmsConfigurationDtoTest.java index 00c72dba6..7ace72dfa 100644 --- a/openapi-contracts/src/test/java/com/sinch/sdk/domains/numbers/models/v1/SmsConfigurationDtoTest.java +++ b/openapi-contracts/src/test/java/com/sinch/sdk/domains/numbers/models/v1/SmsConfigurationDtoTest.java @@ -18,8 +18,11 @@ @TestWithResources public class SmsConfigurationDtoTest extends NumbersBaseTest { - @GivenTextResource("/domains/numbers/v1/active/SmsConfigurationDto.json") - String configurationJSON; + @GivenTextResource("/domains/numbers/v1/active/SmsConfigurationRequestDto.json") + String configurationRequestJSON; + + @GivenTextResource("/domains/numbers/v1/active/SmsConfigurationResponseDto.json") + String configurationResponseJSON; @GivenTextResource("/domains/numbers/v1/active/SmsConfigurationDtoServicePlanIdNull.json") String SMSConfigurationDtoServicePlanIdNull; @@ -27,7 +30,12 @@ public class SmsConfigurationDtoTest extends NumbersBaseTest { @GivenTextResource("/domains/numbers/v1/active/SmsConfigurationDtoServicePlanIdValue.json") String SMSConfigurationDtoServicePlanIdValue; - public static SmsConfiguration configuration = + public static SmsConfiguration configurationRequest = + SmsConfiguration.builder() + .setServicePlanId("service plan id") + .setCampaignId("campaign id") + .build(); + public static SmsConfiguration configurationResponse = SmsConfiguration.builder() .setServicePlanId("service plan id") .setCampaignId("campaign id") @@ -44,18 +52,18 @@ public class SmsConfigurationDtoTest extends NumbersBaseTest { @Test void serialize() throws JsonProcessingException, JSONException { - String serializedString = objectMapper.writeValueAsString(configuration); + String serializedString = objectMapper.writeValueAsString(configurationRequest); - JSONAssert.assertEquals(configurationJSON, serializedString, true); + JSONAssert.assertEquals(configurationRequestJSON, serializedString, true); } @Test void deserialize() throws JsonProcessingException { SmsConfiguration deserializedString = - objectMapper.readValue(configurationJSON, configuration.getClass()); + objectMapper.readValue(configurationResponseJSON, SmsConfiguration.class); - TestHelpers.recursiveEquals(configuration, deserializedString); + TestHelpers.recursiveEquals(configurationResponse, deserializedString); } @Test diff --git a/openapi-contracts/src/test/java/com/sinch/sdk/domains/numbers/models/v1/VoiceConfigurationDtoTest.java b/openapi-contracts/src/test/java/com/sinch/sdk/domains/numbers/models/v1/VoiceConfigurationDtoTest.java index f2acf2f99..693fc8143 100644 --- a/openapi-contracts/src/test/java/com/sinch/sdk/domains/numbers/models/v1/VoiceConfigurationDtoTest.java +++ b/openapi-contracts/src/test/java/com/sinch/sdk/domains/numbers/models/v1/VoiceConfigurationDtoTest.java @@ -14,32 +14,50 @@ @TestWithResources public class VoiceConfigurationDtoTest extends NumbersBaseTest { - @GivenTextResource("/domains/numbers/v1/active/VoiceConfigurationDtoEST.json") - String configurationJsonEST; + @GivenTextResource("/domains/numbers/v1/active/VoiceConfigurationRequestDtoEST.json") + String configurationRequestJsonEST; - @GivenTextResource("/domains/numbers/v1/active/VoiceConfigurationDtoFAX.json") - String configurationJsonFAX; + @GivenTextResource("/domains/numbers/v1/active/VoiceConfigurationResponseDtoEST.json") + String configurationResponseJsonEST; - @GivenTextResource("/domains/numbers/v1/active/VoiceConfigurationDtoRTC.json") - String configurationJsonRTC; + @GivenTextResource("/domains/numbers/v1/active/VoiceConfigurationRequestDtoFAX.json") + String configurationRequestJsonFAX; + + @GivenTextResource("/domains/numbers/v1/active/VoiceConfigurationResponseDtoFAX.json") + String configurationResponseJsonFAX; + + @GivenTextResource("/domains/numbers/v1/active/VoiceConfigurationRequestDtoRTC.json") + String configurationRequestJsonRTC; + + @GivenTextResource("/domains/numbers/v1/active/VoiceConfigurationResponseDtoRTC.json") + String configurationResponseJsonRTC; @GivenTextResource("/domains/numbers/v1/active/VoiceConfigurationDtoRTCSwitchToFAX.json") String configurationJsonRTCSwitchToFAX; - public static VoiceConfigurationEST configurationEST = + public static VoiceConfigurationEST configurationRequestEST = + VoiceConfigurationEST.builder().setTrunkId("AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEE").build(); + + public static VoiceConfigurationEST configurationResponseEST = VoiceConfigurationEST.builder() .setTrunkId("AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEE") .setLastUpdatedTime(Instant.parse("2024-06-30T07:08:09.10Z")) .setScheduledProvisioning(ScheduledVoiceProvisioningDtoTest.provisioningEST) .build(); + public static VoiceConfigurationFAX configurationRequestFAX = + VoiceConfigurationFAX.builder().setServiceId("AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEE").build(); - public static VoiceConfigurationFAX configurationFAX = + public static VoiceConfigurationFAX configurationResponseFAX = VoiceConfigurationFAX.builder() .setServiceId("AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEE") .setLastUpdatedTime(Instant.parse("2024-06-30T07:08:09.10Z")) .setScheduledProvisioning(ScheduledVoiceProvisioningDtoTest.provisioningFAX) .build(); - public static VoiceConfigurationRTC configurationRTC = + + public static VoiceConfigurationRTC configurationRequestRTC = + VoiceConfigurationRTC.builder().setAppId("AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEE").build(); + + public static VoiceConfigurationRTC configurationResponseRTC = VoiceConfigurationRTC.builder() .setAppId("AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEE") .setLastUpdatedTime(Instant.parse("2024-06-30T07:08:09.10Z")) @@ -56,52 +74,52 @@ public class VoiceConfigurationDtoTest extends NumbersBaseTest { @Test void serializeEST() throws JsonProcessingException, JSONException { - String serializedString = objectMapper.writeValueAsString(configurationEST); + String serializedString = objectMapper.writeValueAsString(configurationRequestEST); - JSONAssert.assertEquals(configurationJsonEST, serializedString, true); + JSONAssert.assertEquals(configurationRequestJsonEST, serializedString, true); } @Test void deserializeEST() throws JsonProcessingException { VoiceConfiguration deserializedString = - objectMapper.readValue(configurationJsonEST, VoiceConfigurationEST.class); + objectMapper.readValue(configurationResponseJsonEST, VoiceConfigurationEST.class); - TestHelpers.recursiveEquals(configurationEST, deserializedString); + TestHelpers.recursiveEquals(configurationResponseEST, deserializedString); } @Test void serializeFAX() throws JsonProcessingException, JSONException { - String serializedString = objectMapper.writeValueAsString(configurationFAX); + String serializedString = objectMapper.writeValueAsString(configurationRequestFAX); - JSONAssert.assertEquals(configurationJsonFAX, serializedString, true); + JSONAssert.assertEquals(configurationRequestJsonFAX, serializedString, true); } @Test void deserializeFAX() throws JsonProcessingException { VoiceConfiguration deserializedString = - objectMapper.readValue(configurationJsonFAX, VoiceConfigurationFAX.class); + objectMapper.readValue(configurationResponseJsonFAX, VoiceConfigurationFAX.class); - TestHelpers.recursiveEquals(configurationFAX, deserializedString); + TestHelpers.recursiveEquals(configurationResponseFAX, deserializedString); } @Test void serializeRTC() throws JsonProcessingException, JSONException { - String serializedString = objectMapper.writeValueAsString(configurationRTC); + String serializedString = objectMapper.writeValueAsString(configurationRequestRTC); - JSONAssert.assertEquals(configurationJsonRTC, serializedString, true); + JSONAssert.assertEquals(configurationRequestJsonRTC, serializedString, true); } @Test void deserializeRTC() throws JsonProcessingException { VoiceConfiguration deserializedString = - objectMapper.readValue(configurationJsonRTC, VoiceConfigurationRTC.class); + objectMapper.readValue(configurationResponseJsonRTC, VoiceConfigurationRTC.class); - TestHelpers.recursiveEquals(configurationRTC, deserializedString); + TestHelpers.recursiveEquals(configurationResponseRTC, deserializedString); } @Test @@ -117,7 +135,7 @@ void deserializeRTCSwitchToFax() throws JsonProcessingException { void deserialize() throws JsonProcessingException { VoiceConfigurationInternalImpl deserializedString = - objectMapper.readValue(configurationJsonRTC, VoiceConfigurationInternalImpl.class); - TestHelpers.recursiveEquals(configurationRTC, deserializedString.getActualInstance()); + objectMapper.readValue(configurationRequestJsonRTC, VoiceConfigurationInternalImpl.class); + TestHelpers.recursiveEquals(configurationRequestRTC, deserializedString.getActualInstance()); } } diff --git a/openapi-contracts/src/test/resources/domains/numbers/v1/active/SmsConfigurationRequestDto.json b/openapi-contracts/src/test/resources/domains/numbers/v1/active/SmsConfigurationRequestDto.json new file mode 100644 index 000000000..1736f0f60 --- /dev/null +++ b/openapi-contracts/src/test/resources/domains/numbers/v1/active/SmsConfigurationRequestDto.json @@ -0,0 +1,4 @@ +{ + "servicePlanId": "service plan id", + "campaignId": "campaign id" +} diff --git a/openapi-contracts/src/test/resources/domains/numbers/v1/active/SmsConfigurationDto.json b/openapi-contracts/src/test/resources/domains/numbers/v1/active/SmsConfigurationResponseDto.json similarity index 100% rename from openapi-contracts/src/test/resources/domains/numbers/v1/active/SmsConfigurationDto.json rename to openapi-contracts/src/test/resources/domains/numbers/v1/active/SmsConfigurationResponseDto.json diff --git a/openapi-contracts/src/test/resources/domains/numbers/v1/active/VoiceConfigurationRequestDtoEST.json b/openapi-contracts/src/test/resources/domains/numbers/v1/active/VoiceConfigurationRequestDtoEST.json new file mode 100644 index 000000000..eae9135ce --- /dev/null +++ b/openapi-contracts/src/test/resources/domains/numbers/v1/active/VoiceConfigurationRequestDtoEST.json @@ -0,0 +1,4 @@ +{ + "trunkId": "AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEE", + "type": "EST" +} diff --git a/openapi-contracts/src/test/resources/domains/numbers/v1/active/VoiceConfigurationRequestDtoFAX.json b/openapi-contracts/src/test/resources/domains/numbers/v1/active/VoiceConfigurationRequestDtoFAX.json new file mode 100644 index 000000000..d09bda7a8 --- /dev/null +++ b/openapi-contracts/src/test/resources/domains/numbers/v1/active/VoiceConfigurationRequestDtoFAX.json @@ -0,0 +1,4 @@ +{ + "serviceId": "AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEE", + "type": "FAX" +} diff --git a/openapi-contracts/src/test/resources/domains/numbers/v1/active/VoiceConfigurationRequestDtoRTC.json b/openapi-contracts/src/test/resources/domains/numbers/v1/active/VoiceConfigurationRequestDtoRTC.json new file mode 100644 index 000000000..f5842acce --- /dev/null +++ b/openapi-contracts/src/test/resources/domains/numbers/v1/active/VoiceConfigurationRequestDtoRTC.json @@ -0,0 +1,4 @@ +{ + "appId": "AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEE", + "type": "RTC" +} diff --git a/openapi-contracts/src/test/resources/domains/numbers/v1/active/VoiceConfigurationDtoEST.json b/openapi-contracts/src/test/resources/domains/numbers/v1/active/VoiceConfigurationResponseDtoEST.json similarity index 100% rename from openapi-contracts/src/test/resources/domains/numbers/v1/active/VoiceConfigurationDtoEST.json rename to openapi-contracts/src/test/resources/domains/numbers/v1/active/VoiceConfigurationResponseDtoEST.json diff --git a/openapi-contracts/src/test/resources/domains/numbers/v1/active/VoiceConfigurationDtoFAX.json b/openapi-contracts/src/test/resources/domains/numbers/v1/active/VoiceConfigurationResponseDtoFAX.json similarity index 100% rename from openapi-contracts/src/test/resources/domains/numbers/v1/active/VoiceConfigurationDtoFAX.json rename to openapi-contracts/src/test/resources/domains/numbers/v1/active/VoiceConfigurationResponseDtoFAX.json diff --git a/openapi-contracts/src/test/resources/domains/numbers/v1/active/VoiceConfigurationDtoRTC.json b/openapi-contracts/src/test/resources/domains/numbers/v1/active/VoiceConfigurationResponseDtoRTC.json similarity index 100% rename from openapi-contracts/src/test/resources/domains/numbers/v1/active/VoiceConfigurationDtoRTC.json rename to openapi-contracts/src/test/resources/domains/numbers/v1/active/VoiceConfigurationResponseDtoRTC.json