Skip to content

Commit 9e451d0

Browse files
feat(api): api update
1 parent f45fb21 commit 9e451d0

7 files changed

Lines changed: 684 additions & 32 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 45
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-639dd4ab9ac2acad21a6764fda369a1d189a3e64bf71a65db36daf0f32d98242.yml
3-
openapi_spec_hash: c148f859bdd0b723c856bd472f115f1f
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-0583a6e86a80bc62551727b12c37e02a9b4e4ac5bce822b2e2c1cade3588a6f4.yml
3+
openapi_spec_hash: 53783b6cc1f63d9fb5d3a4dba7b0a806
44
config_hash: 53778a0b839c4f6ad34fbba051f5e8a6

finch-java-core/src/main/kotlin/com/tryfinch/api/models/CompanyBenefit.kt

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)