Skip to content

Commit 7661c8c

Browse files
feat(api): api update
1 parent ededc4d commit 7661c8c

11 files changed

Lines changed: 216 additions & 6 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 139
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-563cf1475c193333d5f8cab934fbf844e439db6218c5b9eccb089b5c1d797b4b.yml
3-
openapi_spec_hash: f2b06aac248aecb248e975af25f3911c
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-0186c0310e2a9f40302cc35f4248fca335b7ec8069502f684ba6f2fa37793033.yml
3+
openapi_spec_hash: 4fb1d2837ad3794864a7d59d393d6ff6
44
config_hash: 3279841440b02d4e8303c961d6983492

orb-java-core/src/main/kotlin/com/withorb/api/models/Item.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,8 @@ private constructor(
622622

623623
@JvmField val NUMERAL = of("numeral")
624624

625+
@JvmField val STRIPE_TAX = of("stripe_tax")
626+
625627
@JvmStatic fun of(value: String) = ExternalConnectionName(JsonField.of(value))
626628
}
627629

@@ -635,6 +637,7 @@ private constructor(
635637
AVALARA,
636638
ANROK,
637639
NUMERAL,
640+
STRIPE_TAX,
638641
}
639642

640643
/**
@@ -657,6 +660,7 @@ private constructor(
657660
AVALARA,
658661
ANROK,
659662
NUMERAL,
663+
STRIPE_TAX,
660664
/**
661665
* An enum member indicating that [ExternalConnectionName] was instantiated with an
662666
* unknown value.
@@ -681,6 +685,7 @@ private constructor(
681685
AVALARA -> Value.AVALARA
682686
ANROK -> Value.ANROK
683687
NUMERAL -> Value.NUMERAL
688+
STRIPE_TAX -> Value.STRIPE_TAX
684689
else -> Value._UNKNOWN
685690
}
686691

@@ -703,6 +708,7 @@ private constructor(
703708
AVALARA -> Known.AVALARA
704709
ANROK -> Known.ANROK
705710
NUMERAL -> Known.NUMERAL
711+
STRIPE_TAX -> Known.STRIPE_TAX
706712
else -> throw OrbInvalidDataException("Unknown ExternalConnectionName: $value")
707713
}
708714

orb-java-core/src/main/kotlin/com/withorb/api/models/ItemUpdateParams.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,8 @@ private constructor(
828828

829829
@JvmField val NUMERAL = of("numeral")
830830

831+
@JvmField val STRIPE_TAX = of("stripe_tax")
832+
831833
@JvmStatic fun of(value: String) = ExternalConnectionName(JsonField.of(value))
832834
}
833835

@@ -841,6 +843,7 @@ private constructor(
841843
AVALARA,
842844
ANROK,
843845
NUMERAL,
846+
STRIPE_TAX,
844847
}
845848

846849
/**
@@ -863,6 +866,7 @@ private constructor(
863866
AVALARA,
864867
ANROK,
865868
NUMERAL,
869+
STRIPE_TAX,
866870
/**
867871
* An enum member indicating that [ExternalConnectionName] was instantiated with an
868872
* unknown value.
@@ -887,6 +891,7 @@ private constructor(
887891
AVALARA -> Value.AVALARA
888892
ANROK -> Value.ANROK
889893
NUMERAL -> Value.NUMERAL
894+
STRIPE_TAX -> Value.STRIPE_TAX
890895
else -> Value._UNKNOWN
891896
}
892897

@@ -909,6 +914,7 @@ private constructor(
909914
AVALARA -> Known.AVALARA
910915
ANROK -> Known.ANROK
911916
NUMERAL -> Known.NUMERAL
917+
STRIPE_TAX -> Known.STRIPE_TAX
912918
else -> throw OrbInvalidDataException("Unknown ExternalConnectionName: $value")
913919
}
914920

orb-java-core/src/main/kotlin/com/withorb/api/models/NewFloatingScalableMatrixWithUnitPricingPrice.kt

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1318,6 +1318,7 @@ private constructor(
13181318
private val firstDimension: JsonField<String>,
13191319
private val matrixScalingFactors: JsonField<List<MatrixScalingFactor>>,
13201320
private val unitPrice: JsonField<String>,
1321+
private val groupingKey: JsonField<String>,
13211322
private val prorate: JsonField<Boolean>,
13221323
private val secondDimension: JsonField<String>,
13231324
private val additionalProperties: MutableMap<String, JsonValue>,
@@ -1334,6 +1335,9 @@ private constructor(
13341335
@JsonProperty("unit_price")
13351336
@ExcludeMissing
13361337
unitPrice: JsonField<String> = JsonMissing.of(),
1338+
@JsonProperty("grouping_key")
1339+
@ExcludeMissing
1340+
groupingKey: JsonField<String> = JsonMissing.of(),
13371341
@JsonProperty("prorate") @ExcludeMissing prorate: JsonField<Boolean> = JsonMissing.of(),
13381342
@JsonProperty("second_dimension")
13391343
@ExcludeMissing
@@ -1342,6 +1346,7 @@ private constructor(
13421346
firstDimension,
13431347
matrixScalingFactors,
13441348
unitPrice,
1349+
groupingKey,
13451350
prorate,
13461351
secondDimension,
13471352
mutableMapOf(),
@@ -1372,6 +1377,14 @@ private constructor(
13721377
*/
13731378
fun unitPrice(): String = unitPrice.getRequired("unit_price")
13741379

1380+
/**
1381+
* The property used to group this price
1382+
*
1383+
* @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if the
1384+
* server responded with an unexpected value).
1385+
*/
1386+
fun groupingKey(): Optional<String> = groupingKey.getOptional("grouping_key")
1387+
13751388
/**
13761389
* If true, the unit price will be prorated to the billing period
13771390
*
@@ -1415,6 +1428,15 @@ private constructor(
14151428
*/
14161429
@JsonProperty("unit_price") @ExcludeMissing fun _unitPrice(): JsonField<String> = unitPrice
14171430

1431+
/**
1432+
* Returns the raw JSON value of [groupingKey].
1433+
*
1434+
* Unlike [groupingKey], this method doesn't throw if the JSON field has an unexpected type.
1435+
*/
1436+
@JsonProperty("grouping_key")
1437+
@ExcludeMissing
1438+
fun _groupingKey(): JsonField<String> = groupingKey
1439+
14181440
/**
14191441
* Returns the raw JSON value of [prorate].
14201442
*
@@ -1466,6 +1488,7 @@ private constructor(
14661488
private var firstDimension: JsonField<String>? = null
14671489
private var matrixScalingFactors: JsonField<MutableList<MatrixScalingFactor>>? = null
14681490
private var unitPrice: JsonField<String>? = null
1491+
private var groupingKey: JsonField<String> = JsonMissing.of()
14691492
private var prorate: JsonField<Boolean> = JsonMissing.of()
14701493
private var secondDimension: JsonField<String> = JsonMissing.of()
14711494
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()
@@ -1480,6 +1503,7 @@ private constructor(
14801503
it.toMutableList()
14811504
}
14821505
unitPrice = scalableMatrixWithUnitPricingConfig.unitPrice
1506+
groupingKey = scalableMatrixWithUnitPricingConfig.groupingKey
14831507
prorate = scalableMatrixWithUnitPricingConfig.prorate
14841508
secondDimension = scalableMatrixWithUnitPricingConfig.secondDimension
14851509
additionalProperties =
@@ -1541,6 +1565,23 @@ private constructor(
15411565
*/
15421566
fun unitPrice(unitPrice: JsonField<String>) = apply { this.unitPrice = unitPrice }
15431567

1568+
/** The property used to group this price */
1569+
fun groupingKey(groupingKey: String?) = groupingKey(JsonField.ofNullable(groupingKey))
1570+
1571+
/** Alias for calling [Builder.groupingKey] with `groupingKey.orElse(null)`. */
1572+
fun groupingKey(groupingKey: Optional<String>) = groupingKey(groupingKey.getOrNull())
1573+
1574+
/**
1575+
* Sets [Builder.groupingKey] to an arbitrary JSON value.
1576+
*
1577+
* You should usually call [Builder.groupingKey] with a well-typed [String] value
1578+
* instead. This method is primarily for setting the field to an undocumented or not yet
1579+
* supported value.
1580+
*/
1581+
fun groupingKey(groupingKey: JsonField<String>) = apply {
1582+
this.groupingKey = groupingKey
1583+
}
1584+
15441585
/** If true, the unit price will be prorated to the billing period */
15451586
fun prorate(prorate: Boolean?) = prorate(JsonField.ofNullable(prorate))
15461587

@@ -1622,6 +1663,7 @@ private constructor(
16221663
it.toImmutable()
16231664
},
16241665
checkRequired("unitPrice", unitPrice),
1666+
groupingKey,
16251667
prorate,
16261668
secondDimension,
16271669
additionalProperties.toMutableMap(),
@@ -1638,6 +1680,7 @@ private constructor(
16381680
firstDimension()
16391681
matrixScalingFactors().forEach { it.validate() }
16401682
unitPrice()
1683+
groupingKey()
16411684
prorate()
16421685
secondDimension()
16431686
validated = true
@@ -1662,6 +1705,7 @@ private constructor(
16621705
(if (firstDimension.asKnown().isPresent) 1 else 0) +
16631706
(matrixScalingFactors.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0) +
16641707
(if (unitPrice.asKnown().isPresent) 1 else 0) +
1708+
(if (groupingKey.asKnown().isPresent) 1 else 0) +
16651709
(if (prorate.asKnown().isPresent) 1 else 0) +
16661710
(if (secondDimension.asKnown().isPresent) 1 else 0)
16671711

@@ -1944,6 +1988,7 @@ private constructor(
19441988
firstDimension == other.firstDimension &&
19451989
matrixScalingFactors == other.matrixScalingFactors &&
19461990
unitPrice == other.unitPrice &&
1991+
groupingKey == other.groupingKey &&
19471992
prorate == other.prorate &&
19481993
secondDimension == other.secondDimension &&
19491994
additionalProperties == other.additionalProperties
@@ -1954,6 +1999,7 @@ private constructor(
19541999
firstDimension,
19552000
matrixScalingFactors,
19562001
unitPrice,
2002+
groupingKey,
19572003
prorate,
19582004
secondDimension,
19592005
additionalProperties,
@@ -1963,7 +2009,7 @@ private constructor(
19632009
override fun hashCode(): Int = hashCode
19642010

19652011
override fun toString() =
1966-
"ScalableMatrixWithUnitPricingConfig{firstDimension=$firstDimension, matrixScalingFactors=$matrixScalingFactors, unitPrice=$unitPrice, prorate=$prorate, secondDimension=$secondDimension, additionalProperties=$additionalProperties}"
2012+
"ScalableMatrixWithUnitPricingConfig{firstDimension=$firstDimension, matrixScalingFactors=$matrixScalingFactors, unitPrice=$unitPrice, groupingKey=$groupingKey, prorate=$prorate, secondDimension=$secondDimension, additionalProperties=$additionalProperties}"
19672013
}
19682014

19692015
/**

orb-java-core/src/main/kotlin/com/withorb/api/models/NewPlanScalableMatrixWithUnitPricingPrice.kt

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1367,6 +1367,7 @@ private constructor(
13671367
private val firstDimension: JsonField<String>,
13681368
private val matrixScalingFactors: JsonField<List<MatrixScalingFactor>>,
13691369
private val unitPrice: JsonField<String>,
1370+
private val groupingKey: JsonField<String>,
13701371
private val prorate: JsonField<Boolean>,
13711372
private val secondDimension: JsonField<String>,
13721373
private val additionalProperties: MutableMap<String, JsonValue>,
@@ -1383,6 +1384,9 @@ private constructor(
13831384
@JsonProperty("unit_price")
13841385
@ExcludeMissing
13851386
unitPrice: JsonField<String> = JsonMissing.of(),
1387+
@JsonProperty("grouping_key")
1388+
@ExcludeMissing
1389+
groupingKey: JsonField<String> = JsonMissing.of(),
13861390
@JsonProperty("prorate") @ExcludeMissing prorate: JsonField<Boolean> = JsonMissing.of(),
13871391
@JsonProperty("second_dimension")
13881392
@ExcludeMissing
@@ -1391,6 +1395,7 @@ private constructor(
13911395
firstDimension,
13921396
matrixScalingFactors,
13931397
unitPrice,
1398+
groupingKey,
13941399
prorate,
13951400
secondDimension,
13961401
mutableMapOf(),
@@ -1421,6 +1426,14 @@ private constructor(
14211426
*/
14221427
fun unitPrice(): String = unitPrice.getRequired("unit_price")
14231428

1429+
/**
1430+
* The property used to group this price
1431+
*
1432+
* @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if the
1433+
* server responded with an unexpected value).
1434+
*/
1435+
fun groupingKey(): Optional<String> = groupingKey.getOptional("grouping_key")
1436+
14241437
/**
14251438
* If true, the unit price will be prorated to the billing period
14261439
*
@@ -1464,6 +1477,15 @@ private constructor(
14641477
*/
14651478
@JsonProperty("unit_price") @ExcludeMissing fun _unitPrice(): JsonField<String> = unitPrice
14661479

1480+
/**
1481+
* Returns the raw JSON value of [groupingKey].
1482+
*
1483+
* Unlike [groupingKey], this method doesn't throw if the JSON field has an unexpected type.
1484+
*/
1485+
@JsonProperty("grouping_key")
1486+
@ExcludeMissing
1487+
fun _groupingKey(): JsonField<String> = groupingKey
1488+
14671489
/**
14681490
* Returns the raw JSON value of [prorate].
14691491
*
@@ -1515,6 +1537,7 @@ private constructor(
15151537
private var firstDimension: JsonField<String>? = null
15161538
private var matrixScalingFactors: JsonField<MutableList<MatrixScalingFactor>>? = null
15171539
private var unitPrice: JsonField<String>? = null
1540+
private var groupingKey: JsonField<String> = JsonMissing.of()
15181541
private var prorate: JsonField<Boolean> = JsonMissing.of()
15191542
private var secondDimension: JsonField<String> = JsonMissing.of()
15201543
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()
@@ -1529,6 +1552,7 @@ private constructor(
15291552
it.toMutableList()
15301553
}
15311554
unitPrice = scalableMatrixWithUnitPricingConfig.unitPrice
1555+
groupingKey = scalableMatrixWithUnitPricingConfig.groupingKey
15321556
prorate = scalableMatrixWithUnitPricingConfig.prorate
15331557
secondDimension = scalableMatrixWithUnitPricingConfig.secondDimension
15341558
additionalProperties =
@@ -1590,6 +1614,23 @@ private constructor(
15901614
*/
15911615
fun unitPrice(unitPrice: JsonField<String>) = apply { this.unitPrice = unitPrice }
15921616

1617+
/** The property used to group this price */
1618+
fun groupingKey(groupingKey: String?) = groupingKey(JsonField.ofNullable(groupingKey))
1619+
1620+
/** Alias for calling [Builder.groupingKey] with `groupingKey.orElse(null)`. */
1621+
fun groupingKey(groupingKey: Optional<String>) = groupingKey(groupingKey.getOrNull())
1622+
1623+
/**
1624+
* Sets [Builder.groupingKey] to an arbitrary JSON value.
1625+
*
1626+
* You should usually call [Builder.groupingKey] with a well-typed [String] value
1627+
* instead. This method is primarily for setting the field to an undocumented or not yet
1628+
* supported value.
1629+
*/
1630+
fun groupingKey(groupingKey: JsonField<String>) = apply {
1631+
this.groupingKey = groupingKey
1632+
}
1633+
15931634
/** If true, the unit price will be prorated to the billing period */
15941635
fun prorate(prorate: Boolean?) = prorate(JsonField.ofNullable(prorate))
15951636

@@ -1671,6 +1712,7 @@ private constructor(
16711712
it.toImmutable()
16721713
},
16731714
checkRequired("unitPrice", unitPrice),
1715+
groupingKey,
16741716
prorate,
16751717
secondDimension,
16761718
additionalProperties.toMutableMap(),
@@ -1687,6 +1729,7 @@ private constructor(
16871729
firstDimension()
16881730
matrixScalingFactors().forEach { it.validate() }
16891731
unitPrice()
1732+
groupingKey()
16901733
prorate()
16911734
secondDimension()
16921735
validated = true
@@ -1711,6 +1754,7 @@ private constructor(
17111754
(if (firstDimension.asKnown().isPresent) 1 else 0) +
17121755
(matrixScalingFactors.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0) +
17131756
(if (unitPrice.asKnown().isPresent) 1 else 0) +
1757+
(if (groupingKey.asKnown().isPresent) 1 else 0) +
17141758
(if (prorate.asKnown().isPresent) 1 else 0) +
17151759
(if (secondDimension.asKnown().isPresent) 1 else 0)
17161760

@@ -1993,6 +2037,7 @@ private constructor(
19932037
firstDimension == other.firstDimension &&
19942038
matrixScalingFactors == other.matrixScalingFactors &&
19952039
unitPrice == other.unitPrice &&
2040+
groupingKey == other.groupingKey &&
19962041
prorate == other.prorate &&
19972042
secondDimension == other.secondDimension &&
19982043
additionalProperties == other.additionalProperties
@@ -2003,6 +2048,7 @@ private constructor(
20032048
firstDimension,
20042049
matrixScalingFactors,
20052050
unitPrice,
2051+
groupingKey,
20062052
prorate,
20072053
secondDimension,
20082054
additionalProperties,
@@ -2012,7 +2058,7 @@ private constructor(
20122058
override fun hashCode(): Int = hashCode
20132059

20142060
override fun toString() =
2015-
"ScalableMatrixWithUnitPricingConfig{firstDimension=$firstDimension, matrixScalingFactors=$matrixScalingFactors, unitPrice=$unitPrice, prorate=$prorate, secondDimension=$secondDimension, additionalProperties=$additionalProperties}"
2061+
"ScalableMatrixWithUnitPricingConfig{firstDimension=$firstDimension, matrixScalingFactors=$matrixScalingFactors, unitPrice=$unitPrice, groupingKey=$groupingKey, prorate=$prorate, secondDimension=$secondDimension, additionalProperties=$additionalProperties}"
20162062
}
20172063

20182064
/**

0 commit comments

Comments
 (0)