Skip to content

Commit 7d1978f

Browse files
feat(api): api update (#391)
1 parent fce9ec7 commit 7d1978f

File tree

53 files changed

+84233
-751
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+84233
-751
lines changed

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 103
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-95a3d7780935a38e0cf076d4ad2d68bd1a5641bced8398d972db2e92751d364a.yml
3-
openapi_spec_hash: 9ebe818c4ad4f2d9c4e473b5192d7544
4-
config_hash: 54edf41f0377bc235f622fdaa7405f22
1+
configured_endpoints: 106
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-e8dad7eee5621fe2ba948dfd00dabf170d9d92ce615a9f04b0f546f4d8bf39ba.yml
3+
openapi_spec_hash: 3f6a98e3a1b3a47acebd67a960090ebf
4+
config_hash: 7e523cf79552b8936bd772f2e1025e5f

orb-java-core/src/main/kotlin/com/withorb/api/client/OrbClient.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import com.withorb.api.services.blocking.ItemService
1414
import com.withorb.api.services.blocking.MetricService
1515
import com.withorb.api.services.blocking.PlanService
1616
import com.withorb.api.services.blocking.PriceService
17+
import com.withorb.api.services.blocking.SubscriptionChangeService
1718
import com.withorb.api.services.blocking.SubscriptionService
1819
import com.withorb.api.services.blocking.TopLevelService
1920
import com.withorb.api.services.blocking.WebhookService
@@ -77,6 +78,8 @@ interface OrbClient {
7778

7879
fun dimensionalPriceGroups(): DimensionalPriceGroupService
7980

81+
fun subscriptionChanges(): SubscriptionChangeService
82+
8083
/**
8184
* Closes this client, relinquishing any underlying resources.
8285
*
@@ -120,5 +123,7 @@ interface OrbClient {
120123
fun alerts(): AlertService.WithRawResponse
121124

122125
fun dimensionalPriceGroups(): DimensionalPriceGroupService.WithRawResponse
126+
127+
fun subscriptionChanges(): SubscriptionChangeService.WithRawResponse
123128
}
124129
}

orb-java-core/src/main/kotlin/com/withorb/api/client/OrbClientAsync.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import com.withorb.api.services.async.ItemServiceAsync
1414
import com.withorb.api.services.async.MetricServiceAsync
1515
import com.withorb.api.services.async.PlanServiceAsync
1616
import com.withorb.api.services.async.PriceServiceAsync
17+
import com.withorb.api.services.async.SubscriptionChangeServiceAsync
1718
import com.withorb.api.services.async.SubscriptionServiceAsync
1819
import com.withorb.api.services.async.TopLevelServiceAsync
1920

@@ -74,6 +75,8 @@ interface OrbClientAsync {
7475

7576
fun dimensionalPriceGroups(): DimensionalPriceGroupServiceAsync
7677

78+
fun subscriptionChanges(): SubscriptionChangeServiceAsync
79+
7780
/**
7881
* Closes this client, relinquishing any underlying resources.
7982
*
@@ -117,5 +120,7 @@ interface OrbClientAsync {
117120
fun alerts(): AlertServiceAsync.WithRawResponse
118121

119122
fun dimensionalPriceGroups(): DimensionalPriceGroupServiceAsync.WithRawResponse
123+
124+
fun subscriptionChanges(): SubscriptionChangeServiceAsync.WithRawResponse
120125
}
121126
}

orb-java-core/src/main/kotlin/com/withorb/api/client/OrbClientAsyncImpl.kt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ import com.withorb.api.services.async.PlanServiceAsync
2828
import com.withorb.api.services.async.PlanServiceAsyncImpl
2929
import com.withorb.api.services.async.PriceServiceAsync
3030
import com.withorb.api.services.async.PriceServiceAsyncImpl
31+
import com.withorb.api.services.async.SubscriptionChangeServiceAsync
32+
import com.withorb.api.services.async.SubscriptionChangeServiceAsyncImpl
3133
import com.withorb.api.services.async.SubscriptionServiceAsync
3234
import com.withorb.api.services.async.SubscriptionServiceAsyncImpl
3335
import com.withorb.api.services.async.TopLevelServiceAsync
@@ -102,6 +104,10 @@ class OrbClientAsyncImpl(private val clientOptions: ClientOptions) : OrbClientAs
102104
DimensionalPriceGroupServiceAsyncImpl(clientOptionsWithUserAgent)
103105
}
104106

107+
private val subscriptionChanges: SubscriptionChangeServiceAsync by lazy {
108+
SubscriptionChangeServiceAsyncImpl(clientOptionsWithUserAgent)
109+
}
110+
105111
override fun sync(): OrbClient = sync
106112

107113
override fun withRawResponse(): OrbClientAsync.WithRawResponse = withRawResponse
@@ -135,6 +141,8 @@ class OrbClientAsyncImpl(private val clientOptions: ClientOptions) : OrbClientAs
135141
override fun dimensionalPriceGroups(): DimensionalPriceGroupServiceAsync =
136142
dimensionalPriceGroups
137143

144+
override fun subscriptionChanges(): SubscriptionChangeServiceAsync = subscriptionChanges
145+
138146
override fun close() = clientOptions.httpClient.close()
139147

140148
class WithRawResponseImpl internal constructor(private val clientOptions: ClientOptions) :
@@ -197,6 +205,10 @@ class OrbClientAsyncImpl(private val clientOptions: ClientOptions) : OrbClientAs
197205
DimensionalPriceGroupServiceAsyncImpl.WithRawResponseImpl(clientOptions)
198206
}
199207

208+
private val subscriptionChanges: SubscriptionChangeServiceAsync.WithRawResponse by lazy {
209+
SubscriptionChangeServiceAsyncImpl.WithRawResponseImpl(clientOptions)
210+
}
211+
200212
override fun topLevel(): TopLevelServiceAsync.WithRawResponse = topLevel
201213

202214
override fun coupons(): CouponServiceAsync.WithRawResponse = coupons
@@ -226,5 +238,8 @@ class OrbClientAsyncImpl(private val clientOptions: ClientOptions) : OrbClientAs
226238

227239
override fun dimensionalPriceGroups(): DimensionalPriceGroupServiceAsync.WithRawResponse =
228240
dimensionalPriceGroups
241+
242+
override fun subscriptionChanges(): SubscriptionChangeServiceAsync.WithRawResponse =
243+
subscriptionChanges
229244
}
230245
}

orb-java-core/src/main/kotlin/com/withorb/api/client/OrbClientImpl.kt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ import com.withorb.api.services.blocking.PlanService
2828
import com.withorb.api.services.blocking.PlanServiceImpl
2929
import com.withorb.api.services.blocking.PriceService
3030
import com.withorb.api.services.blocking.PriceServiceImpl
31+
import com.withorb.api.services.blocking.SubscriptionChangeService
32+
import com.withorb.api.services.blocking.SubscriptionChangeServiceImpl
3133
import com.withorb.api.services.blocking.SubscriptionService
3234
import com.withorb.api.services.blocking.SubscriptionServiceImpl
3335
import com.withorb.api.services.blocking.TopLevelService
@@ -94,6 +96,10 @@ class OrbClientImpl(private val clientOptions: ClientOptions) : OrbClient {
9496

9597
private val webhooks: WebhookService by lazy { WebhookServiceImpl(clientOptions) }
9698

99+
private val subscriptionChanges: SubscriptionChangeService by lazy {
100+
SubscriptionChangeServiceImpl(clientOptionsWithUserAgent)
101+
}
102+
97103
override fun async(): OrbClientAsync = async
98104

99105
override fun withRawResponse(): OrbClient.WithRawResponse = withRawResponse
@@ -128,6 +134,8 @@ class OrbClientImpl(private val clientOptions: ClientOptions) : OrbClient {
128134

129135
override fun dimensionalPriceGroups(): DimensionalPriceGroupService = dimensionalPriceGroups
130136

137+
override fun subscriptionChanges(): SubscriptionChangeService = subscriptionChanges
138+
131139
override fun close() = clientOptions.httpClient.close()
132140

133141
class WithRawResponseImpl internal constructor(private val clientOptions: ClientOptions) :
@@ -189,6 +197,10 @@ class OrbClientImpl(private val clientOptions: ClientOptions) : OrbClient {
189197
DimensionalPriceGroupServiceImpl.WithRawResponseImpl(clientOptions)
190198
}
191199

200+
private val subscriptionChanges: SubscriptionChangeService.WithRawResponse by lazy {
201+
SubscriptionChangeServiceImpl.WithRawResponseImpl(clientOptions)
202+
}
203+
192204
override fun topLevel(): TopLevelService.WithRawResponse = topLevel
193205

194206
override fun coupons(): CouponService.WithRawResponse = coupons
@@ -217,5 +229,8 @@ class OrbClientImpl(private val clientOptions: ClientOptions) : OrbClient {
217229

218230
override fun dimensionalPriceGroups(): DimensionalPriceGroupService.WithRawResponse =
219231
dimensionalPriceGroups
232+
233+
override fun subscriptionChanges(): SubscriptionChangeService.WithRawResponse =
234+
subscriptionChanges
220235
}
221236
}

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ private constructor(
111111
fun metadata(): Optional<Metadata> = body.metadata()
112112

113113
/**
114-
* When true, this invoice will automatically be issued upon creation. When false, the resulting
115-
* invoice will require manual review to issue. Defaulted to false.
114+
* When true, this invoice will be submitted for issuance upon creation. When false, the
115+
* resulting invoice will require manual review to issue. Defaulted to false.
116116
*
117117
* @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if the server
118118
* responded with an unexpected value).
@@ -422,7 +422,7 @@ private constructor(
422422
fun metadata(metadata: JsonField<Metadata>) = apply { body.metadata(metadata) }
423423

424424
/**
425-
* When true, this invoice will automatically be issued upon creation. When false, the
425+
* When true, this invoice will be submitted for issuance upon creation. When false, the
426426
* resulting invoice will require manual review to issue. Defaulted to false.
427427
*/
428428
fun willAutoIssue(willAutoIssue: Boolean) = apply { body.willAutoIssue(willAutoIssue) }
@@ -720,7 +720,7 @@ private constructor(
720720
fun metadata(): Optional<Metadata> = metadata.getOptional("metadata")
721721

722722
/**
723-
* When true, this invoice will automatically be issued upon creation. When false, the
723+
* When true, this invoice will be submitted for issuance upon creation. When false, the
724724
* resulting invoice will require manual review to issue. Defaulted to false.
725725
*
726726
* @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if the
@@ -1065,7 +1065,7 @@ private constructor(
10651065
fun metadata(metadata: JsonField<Metadata>) = apply { this.metadata = metadata }
10661066

10671067
/**
1068-
* When true, this invoice will automatically be issued upon creation. When false, the
1068+
* When true, this invoice will be submitted for issuance upon creation. When false, the
10691069
* resulting invoice will require manual review to issue. Defaulted to false.
10701070
*/
10711071
fun willAutoIssue(willAutoIssue: Boolean) = willAutoIssue(JsonField.of(willAutoIssue))

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10582,7 +10582,7 @@ private constructor(
1058210582
) : this(firstUnit, unitAmount, lastUnit, mutableMapOf())
1058310583

1058410584
/**
10585-
* Inclusive tier starting value
10585+
* Exclusive tier starting value
1058610586
*
1058710587
* @throws OrbInvalidDataException if the JSON field has an unexpected type or
1058810588
* is unexpectedly missing or null (e.g. if the server responded with an
@@ -10600,7 +10600,7 @@ private constructor(
1060010600
fun unitAmount(): String = unitAmount.getRequired("unit_amount")
1060110601

1060210602
/**
10603-
* Exclusive tier ending value. If null, this is treated as the last tier
10603+
* Inclusive tier ending value. If null, this is treated as the last tier
1060410604
*
1060510605
* @throws OrbInvalidDataException if the JSON field has an unexpected type
1060610606
* (e.g. if the server responded with an unexpected value).
@@ -10680,7 +10680,7 @@ private constructor(
1068010680
additionalProperties = tier.additionalProperties.toMutableMap()
1068110681
}
1068210682

10683-
/** Inclusive tier starting value */
10683+
/** Exclusive tier starting value */
1068410684
fun firstUnit(firstUnit: Double) = firstUnit(JsonField.of(firstUnit))
1068510685

1068610686
/**
@@ -10709,7 +10709,7 @@ private constructor(
1070910709
}
1071010710

1071110711
/**
10712-
* Exclusive tier ending value. If null, this is treated as the last tier
10712+
* Inclusive tier ending value. If null, this is treated as the last tier
1071310713
*/
1071410714
fun lastUnit(lastUnit: Double?) = lastUnit(JsonField.ofNullable(lastUnit))
1071510715

@@ -13038,7 +13038,7 @@ private constructor(
1303813038
fun bps(): Double = bps.getRequired("bps")
1303913039

1304013040
/**
13041-
* Inclusive tier starting value
13041+
* Exclusive tier starting value
1304213042
*
1304313043
* @throws OrbInvalidDataException if the JSON field has an unexpected type or
1304413044
* is unexpectedly missing or null (e.g. if the server responded with an
@@ -13047,7 +13047,7 @@ private constructor(
1304713047
fun minimumAmount(): String = minimumAmount.getRequired("minimum_amount")
1304813048

1304913049
/**
13050-
* Exclusive tier ending value
13050+
* Inclusive tier ending value
1305113051
*
1305213052
* @throws OrbInvalidDataException if the JSON field has an unexpected type
1305313053
* (e.g. if the server responded with an unexpected value).
@@ -13159,7 +13159,7 @@ private constructor(
1315913159
*/
1316013160
fun bps(bps: JsonField<Double>) = apply { this.bps = bps }
1316113161

13162-
/** Inclusive tier starting value */
13162+
/** Exclusive tier starting value */
1316313163
fun minimumAmount(minimumAmount: String) =
1316413164
minimumAmount(JsonField.of(minimumAmount))
1316513165

@@ -13174,7 +13174,7 @@ private constructor(
1317413174
this.minimumAmount = minimumAmount
1317513175
}
1317613176

13177-
/** Exclusive tier ending value */
13177+
/** Inclusive tier ending value */
1317813178
fun maximumAmount(maximumAmount: String?) =
1317913179
maximumAmount(JsonField.ofNullable(maximumAmount))
1318013180

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16463,7 +16463,7 @@ private constructor(
1646316463
) : this(firstUnit, unitAmount, lastUnit, mutableMapOf())
1646416464

1646516465
/**
16466-
* Inclusive tier starting value
16466+
* Exclusive tier starting value
1646716467
*
1646816468
* @throws OrbInvalidDataException if the JSON field has an unexpected type or is
1646916469
* unexpectedly missing or null (e.g. if the server responded with an unexpected
@@ -16481,7 +16481,7 @@ private constructor(
1648116481
fun unitAmount(): String = unitAmount.getRequired("unit_amount")
1648216482

1648316483
/**
16484-
* Exclusive tier ending value. If null, this is treated as the last tier
16484+
* Inclusive tier ending value. If null, this is treated as the last tier
1648516485
*
1648616486
* @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if
1648716487
* the server responded with an unexpected value).
@@ -16560,7 +16560,7 @@ private constructor(
1656016560
additionalProperties = tier.additionalProperties.toMutableMap()
1656116561
}
1656216562

16563-
/** Inclusive tier starting value */
16563+
/** Exclusive tier starting value */
1656416564
fun firstUnit(firstUnit: Double) = firstUnit(JsonField.of(firstUnit))
1656516565

1656616566
/**
@@ -16588,7 +16588,7 @@ private constructor(
1658816588
this.unitAmount = unitAmount
1658916589
}
1659016590

16591-
/** Exclusive tier ending value. If null, this is treated as the last tier */
16591+
/** Inclusive tier ending value. If null, this is treated as the last tier */
1659216592
fun lastUnit(lastUnit: Double?) = lastUnit(JsonField.ofNullable(lastUnit))
1659316593

1659416594
/**
@@ -20566,7 +20566,7 @@ private constructor(
2056620566
fun bps(): Double = bps.getRequired("bps")
2056720567

2056820568
/**
20569-
* Inclusive tier starting value
20569+
* Exclusive tier starting value
2057020570
*
2057120571
* @throws OrbInvalidDataException if the JSON field has an unexpected type or is
2057220572
* unexpectedly missing or null (e.g. if the server responded with an unexpected
@@ -20575,7 +20575,7 @@ private constructor(
2057520575
fun minimumAmount(): String = minimumAmount.getRequired("minimum_amount")
2057620576

2057720577
/**
20578-
* Exclusive tier ending value
20578+
* Inclusive tier ending value
2057920579
*
2058020580
* @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if
2058120581
* the server responded with an unexpected value).
@@ -20684,7 +20684,7 @@ private constructor(
2068420684
*/
2068520685
fun bps(bps: JsonField<Double>) = apply { this.bps = bps }
2068620686

20687-
/** Inclusive tier starting value */
20687+
/** Exclusive tier starting value */
2068820688
fun minimumAmount(minimumAmount: String) =
2068920689
minimumAmount(JsonField.of(minimumAmount))
2069020690

@@ -20699,7 +20699,7 @@ private constructor(
2069920699
this.minimumAmount = minimumAmount
2070020700
}
2070120701

20702-
/** Exclusive tier ending value */
20702+
/** Inclusive tier ending value */
2070320703
fun maximumAmount(maximumAmount: String?) =
2070420704
maximumAmount(JsonField.ofNullable(maximumAmount))
2070520705

0 commit comments

Comments
 (0)