@@ -36,7 +36,6 @@ private constructor(
3636 private val numbers: JsonField <List <SmsNumber >>,
3737 private val reason: JsonField <String >,
3838 private val reasonCode: JsonField <String >,
39- private val senderValue: JsonField <String >,
4039 private val status: JsonField <Status >,
4140 private val additionalProperties: MutableMap <String , JsonValue >,
4241) {
@@ -57,21 +56,8 @@ private constructor(
5756 @JsonProperty(" reason_code" )
5857 @ExcludeMissing
5958 reasonCode: JsonField <String > = JsonMissing .of(),
60- @JsonProperty(" sender_value" )
61- @ExcludeMissing
62- senderValue: JsonField <String > = JsonMissing .of(),
6359 @JsonProperty(" status" ) @ExcludeMissing status: JsonField <Status > = JsonMissing .of(),
64- ) : this (
65- compliance,
66- country,
67- numberType,
68- numbers,
69- reason,
70- reasonCode,
71- senderValue,
72- status,
73- mutableMapOf (),
74- )
60+ ) : this (compliance, country, numberType, numbers, reason, reasonCode, status, mutableMapOf ())
7561
7662 /* *
7763 * What a market has been given: the identity it registers under, its programme, and any
@@ -138,16 +124,6 @@ private constructor(
138124 */
139125 fun reasonCode (): Optional <String > = reasonCode.getOptional(" reason_code" )
140126
141- /* *
142- * The sender itself. Null until a carrier-assigned number is procured. For a market holding
143- * several numbers, the first active one (the first assigned while none is active) — every
144- * number is in numbers.
145- *
146- * @throws SentInvalidDataException if the JSON field has an unexpected type (e.g. if the server
147- * responded with an unexpected value).
148- */
149- fun senderValue (): Optional <String > = senderValue.getOptional(" sender_value" )
150-
151127 /* *
152128 * Where this market's sender stands, in terms of who is holding it up — PROVISIONING,
153129 * ACTION_NEEDED, PENDING_REVIEW or ACTIVE. Read-only.
@@ -211,15 +187,6 @@ private constructor(
211187 */
212188 @JsonProperty(" reason_code" ) @ExcludeMissing fun _reasonCode (): JsonField <String > = reasonCode
213189
214- /* *
215- * Returns the raw JSON value of [senderValue].
216- *
217- * Unlike [senderValue], this method doesn't throw if the JSON field has an unexpected type.
218- */
219- @JsonProperty(" sender_value" )
220- @ExcludeMissing
221- fun _senderValue (): JsonField <String > = senderValue
222-
223190 /* *
224191 * Returns the raw JSON value of [status].
225192 *
@@ -254,7 +221,6 @@ private constructor(
254221 private var numbers: JsonField <MutableList <SmsNumber >>? = null
255222 private var reason: JsonField <String > = JsonMissing .of()
256223 private var reasonCode: JsonField <String > = JsonMissing .of()
257- private var senderValue: JsonField <String > = JsonMissing .of()
258224 private var status: JsonField <Status > = JsonMissing .of()
259225 private var additionalProperties: MutableMap <String , JsonValue > = mutableMapOf ()
260226
@@ -266,7 +232,6 @@ private constructor(
266232 numbers = smsMarket.numbers.map { it.toMutableList() }
267233 reason = smsMarket.reason
268234 reasonCode = smsMarket.reasonCode
269- senderValue = smsMarket.senderValue
270235 status = smsMarket.status
271236 additionalProperties = smsMarket.additionalProperties.toMutableMap()
272237 }
@@ -402,25 +367,6 @@ private constructor(
402367 */
403368 fun reasonCode (reasonCode : JsonField <String >) = apply { this .reasonCode = reasonCode }
404369
405- /* *
406- * The sender itself. Null until a carrier-assigned number is procured. For a market holding
407- * several numbers, the first active one (the first assigned while none is active) — every
408- * number is in numbers.
409- */
410- fun senderValue (senderValue : String? ) = senderValue(JsonField .ofNullable(senderValue))
411-
412- /* * Alias for calling [Builder.senderValue] with `senderValue.orElse(null)`. */
413- fun senderValue (senderValue : Optional <String >) = senderValue(senderValue.getOrNull())
414-
415- /* *
416- * Sets [Builder.senderValue] to an arbitrary JSON value.
417- *
418- * You should usually call [Builder.senderValue] with a well-typed [String] value instead.
419- * This method is primarily for setting the field to an undocumented or not yet supported
420- * value.
421- */
422- fun senderValue (senderValue : JsonField <String >) = apply { this .senderValue = senderValue }
423-
424370 /* *
425371 * Where this market's sender stands, in terms of who is holding it up — PROVISIONING,
426372 * ACTION_NEEDED, PENDING_REVIEW or ACTIVE. Read-only.
@@ -481,7 +427,6 @@ private constructor(
481427 (numbers ? : JsonMissing .of()).map { it.toImmutable() },
482428 reason,
483429 reasonCode,
484- senderValue,
485430 status,
486431 additionalProperties.toMutableMap(),
487432 )
@@ -508,7 +453,6 @@ private constructor(
508453 numbers().ifPresent { it.forEach { it.validate() } }
509454 reason()
510455 reasonCode()
511- senderValue()
512456 status().ifPresent { it.validate() }
513457 validated = true
514458 }
@@ -534,7 +478,6 @@ private constructor(
534478 (numbers.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ? : 0 ) +
535479 (if (reason.asKnown().isPresent) 1 else 0 ) +
536480 (if (reasonCode.asKnown().isPresent) 1 else 0 ) +
537- (if (senderValue.asKnown().isPresent) 1 else 0 ) +
538481 (status.asKnown().getOrNull()?.validity() ? : 0 )
539482
540483 /* *
@@ -792,7 +735,6 @@ private constructor(
792735 numbers == other.numbers &&
793736 reason == other.reason &&
794737 reasonCode == other.reasonCode &&
795- senderValue == other.senderValue &&
796738 status == other.status &&
797739 additionalProperties == other.additionalProperties
798740 }
@@ -805,7 +747,6 @@ private constructor(
805747 numbers,
806748 reason,
807749 reasonCode,
808- senderValue,
809750 status,
810751 additionalProperties,
811752 )
@@ -814,5 +755,5 @@ private constructor(
814755 override fun hashCode (): Int = hashCode
815756
816757 override fun toString () =
817- " SmsMarket{compliance=$compliance , country=$country , numberType=$numberType , numbers=$numbers , reason=$reason , reasonCode=$reasonCode , senderValue= $senderValue , status=$status , additionalProperties=$additionalProperties }"
758+ " SmsMarket{compliance=$compliance , country=$country , numberType=$numberType , numbers=$numbers , reason=$reason , reasonCode=$reasonCode , status=$status , additionalProperties=$additionalProperties }"
818759}
0 commit comments