@@ -511,47 +511,45 @@ private constructor(
511511
512512 class Tier
513513 private constructor (
514- private val match: JsonField <Double >,
515- private val threshold: JsonField <Double >,
514+ private val match: JsonField <Long >,
515+ private val threshold: JsonField <Long >,
516516 private val additionalProperties: MutableMap <String , JsonValue >,
517517 ) {
518518
519519 @JsonCreator
520520 private constructor (
521- @JsonProperty(" match" ) @ExcludeMissing match: JsonField <Double > = JsonMissing .of(),
521+ @JsonProperty(" match" ) @ExcludeMissing match: JsonField <Long > = JsonMissing .of(),
522522 @JsonProperty(" threshold" )
523523 @ExcludeMissing
524- threshold: JsonField <Double > = JsonMissing .of(),
524+ threshold: JsonField <Long > = JsonMissing .of(),
525525 ) : this (match, threshold, mutableMapOf ())
526526
527527 /* *
528528 * @throws FinchInvalidDataException if the JSON field has an unexpected type (e.g. if
529529 * the server responded with an unexpected value).
530530 */
531- fun match (): Optional <Double > = match.getOptional(" match" )
531+ fun match (): Optional <Long > = match.getOptional(" match" )
532532
533533 /* *
534534 * @throws FinchInvalidDataException if the JSON field has an unexpected type (e.g. if
535535 * the server responded with an unexpected value).
536536 */
537- fun threshold (): Optional <Double > = threshold.getOptional(" threshold" )
537+ fun threshold (): Optional <Long > = threshold.getOptional(" threshold" )
538538
539539 /* *
540540 * Returns the raw JSON value of [match].
541541 *
542542 * Unlike [match], this method doesn't throw if the JSON field has an unexpected type.
543543 */
544- @JsonProperty(" match" ) @ExcludeMissing fun _match (): JsonField <Double > = match
544+ @JsonProperty(" match" ) @ExcludeMissing fun _match (): JsonField <Long > = match
545545
546546 /* *
547547 * Returns the raw JSON value of [threshold].
548548 *
549549 * Unlike [threshold], this method doesn't throw if the JSON field has an unexpected
550550 * type.
551551 */
552- @JsonProperty(" threshold" )
553- @ExcludeMissing
554- fun _threshold (): JsonField <Double > = threshold
552+ @JsonProperty(" threshold" ) @ExcludeMissing fun _threshold (): JsonField <Long > = threshold
555553
556554 @JsonAnySetter
557555 private fun putAdditionalProperty (key : String , value : JsonValue ) {
@@ -574,8 +572,8 @@ private constructor(
574572 /* * A builder for [Tier]. */
575573 class Builder internal constructor() {
576574
577- private var match: JsonField <Double > = JsonMissing .of()
578- private var threshold: JsonField <Double > = JsonMissing .of()
575+ private var match: JsonField <Long > = JsonMissing .of()
576+ private var threshold: JsonField <Long > = JsonMissing .of()
579577 private var additionalProperties: MutableMap <String , JsonValue > = mutableMapOf ()
580578
581579 @JvmSynthetic
@@ -585,27 +583,27 @@ private constructor(
585583 additionalProperties = tier.additionalProperties.toMutableMap()
586584 }
587585
588- fun match (match : Double ) = match(JsonField .of(match))
586+ fun match (match : Long ) = match(JsonField .of(match))
589587
590588 /* *
591589 * Sets [Builder.match] to an arbitrary JSON value.
592590 *
593- * You should usually call [Builder.match] with a well-typed [Double ] value instead.
591+ * You should usually call [Builder.match] with a well-typed [Long ] value instead.
594592 * This method is primarily for setting the field to an undocumented or not yet
595593 * supported value.
596594 */
597- fun match (match : JsonField <Double >) = apply { this .match = match }
595+ fun match (match : JsonField <Long >) = apply { this .match = match }
598596
599- fun threshold (threshold : Double ) = threshold(JsonField .of(threshold))
597+ fun threshold (threshold : Long ) = threshold(JsonField .of(threshold))
600598
601599 /* *
602600 * Sets [Builder.threshold] to an arbitrary JSON value.
603601 *
604- * You should usually call [Builder.threshold] with a well-typed [Double ] value
602+ * You should usually call [Builder.threshold] with a well-typed [Long ] value
605603 * instead. This method is primarily for setting the field to an undocumented or not
606604 * yet supported value.
607605 */
608- fun threshold (threshold : JsonField <Double >) = apply { this .threshold = threshold }
606+ fun threshold (threshold : JsonField <Long >) = apply { this .threshold = threshold }
609607
610608 fun additionalProperties (additionalProperties : Map <String , JsonValue >) = apply {
611609 this .additionalProperties.clear()
0 commit comments