@@ -13,8 +13,8 @@ import dm.sent.core.JsonValue
1313import dm.sent.core.checkKnown
1414import dm.sent.core.toImmutable
1515import dm.sent.errors.SentInvalidDataException
16+ import dm.sent.models.channels.markets.ChannelMarket
1617import dm.sent.models.channels.rcs.RcsAgent
17- import dm.sent.models.channels.sms.SmsMarket
1818import dm.sent.models.channels.voice.VoiceNumber
1919import dm.sent.models.channels.whatsapp.WhatsappChannel
2020import java.util.Collections
@@ -32,7 +32,7 @@ private constructor(
3232 private val customerId: JsonField <String >,
3333 private val mms: JsonField <List <MmsMarket >>,
3434 private val rcs: JsonField <RcsAgent >,
35- private val sms: JsonField <List <SmsMarket >>,
35+ private val sms: JsonField <List <ChannelMarket >>,
3636 private val voice: JsonField <List <VoiceNumber >>,
3737 private val whatsapp: JsonField <WhatsappChannel >,
3838 private val additionalProperties: MutableMap <String , JsonValue >,
@@ -45,7 +45,7 @@ private constructor(
4545 customerId: JsonField <String > = JsonMissing .of(),
4646 @JsonProperty(" mms" ) @ExcludeMissing mms: JsonField <List <MmsMarket >> = JsonMissing .of(),
4747 @JsonProperty(" rcs" ) @ExcludeMissing rcs: JsonField <RcsAgent > = JsonMissing .of(),
48- @JsonProperty(" sms" ) @ExcludeMissing sms: JsonField <List <SmsMarket >> = JsonMissing .of(),
48+ @JsonProperty(" sms" ) @ExcludeMissing sms: JsonField <List <ChannelMarket >> = JsonMissing .of(),
4949 @JsonProperty(" voice" )
5050 @ExcludeMissing
5151 voice: JsonField <List <VoiceNumber >> = JsonMissing .of(),
@@ -102,7 +102,7 @@ private constructor(
102102 * @throws SentInvalidDataException if the JSON field has an unexpected type (e.g. if the server
103103 * responded with an unexpected value).
104104 */
105- fun sms (): Optional <List <SmsMarket >> = sms.getOptional(" sms" )
105+ fun sms (): Optional <List <ChannelMarket >> = sms.getOptional(" sms" )
106106
107107 /* *
108108 * The numbers this profile carries phone calls on, one entry per number, or empty when none.
@@ -148,7 +148,7 @@ private constructor(
148148 *
149149 * Unlike [sms], this method doesn't throw if the JSON field has an unexpected type.
150150 */
151- @JsonProperty(" sms" ) @ExcludeMissing fun _sms (): JsonField <List <SmsMarket >> = sms
151+ @JsonProperty(" sms" ) @ExcludeMissing fun _sms (): JsonField <List <ChannelMarket >> = sms
152152
153153 /* *
154154 * Returns the raw JSON value of [voice].
@@ -188,7 +188,7 @@ private constructor(
188188 private var customerId: JsonField <String > = JsonMissing .of()
189189 private var mms: JsonField <MutableList <MmsMarket >>? = null
190190 private var rcs: JsonField <RcsAgent > = JsonMissing .of()
191- private var sms: JsonField <MutableList <SmsMarket >>? = null
191+ private var sms: JsonField <MutableList <ChannelMarket >>? = null
192192 private var voice: JsonField <MutableList <VoiceNumber >>? = null
193193 private var whatsapp: JsonField <WhatsappChannel > = JsonMissing .of()
194194 private var additionalProperties: MutableMap <String , JsonValue > = mutableMapOf ()
@@ -283,25 +283,25 @@ private constructor(
283283 */
284284 fun rcs (rcs : JsonField <RcsAgent >) = apply { this .rcs = rcs }
285285
286- fun sms (sms : List <SmsMarket >) = sms(JsonField .of(sms))
286+ fun sms (sms : List <ChannelMarket >) = sms(JsonField .of(sms))
287287
288288 /* *
289289 * Sets [Builder.sms] to an arbitrary JSON value.
290290 *
291- * You should usually call [Builder.sms] with a well-typed `List<SmsMarket >` value instead.
292- * This method is primarily for setting the field to an undocumented or not yet supported
293- * value.
291+ * You should usually call [Builder.sms] with a well-typed `List<ChannelMarket >` value
292+ * instead. This method is primarily for setting the field to an undocumented or not yet
293+ * supported value.
294294 */
295- fun sms (sms : JsonField <List <SmsMarket >>) = apply {
295+ fun sms (sms : JsonField <List <ChannelMarket >>) = apply {
296296 this .sms = sms.map { it.toMutableList() }
297297 }
298298
299299 /* *
300- * Adds a single [SmsMarket ] to [Builder.sms].
300+ * Adds a single [ChannelMarket ] to [Builder.sms].
301301 *
302302 * @throws IllegalStateException if the field was previously set to a non-list.
303303 */
304- fun addSms (sms : SmsMarket ) = apply {
304+ fun addSms (sms : ChannelMarket ) = apply {
305305 this .sms =
306306 (this .sms ? : JsonField .of(mutableListOf ())).also { checkKnown(" sms" , it).add(sms) }
307307 }
0 commit comments