Skip to content

Commit 4f1e414

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): api update (#129)
1 parent 6323bfd commit 4f1e414

File tree

6 files changed

+91
-13
lines changed

6 files changed

+91
-13
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 97
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-0f43f737c6520ed2a2407628511350362959997f89a868c50aa38d47d5791171.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-40a4e23dd482299a046fb62fd2b5a1e03d455156cb8cd4573e92e4132d74b243.yml

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

Lines changed: 41 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ constructor(
4949
private val externalMarketplace: ExternalMarketplace?,
5050
private val externalMarketplaceReportingId: String?,
5151
private val externalPlanId: String?,
52+
private val filter: String?,
5253
private val initialPhaseOrder: Long?,
5354
private val invoicingThreshold: String?,
5455
private val metadata: Metadata?,
@@ -102,6 +103,8 @@ constructor(
102103

103104
fun externalPlanId(): Optional<String> = Optional.ofNullable(externalPlanId)
104105

106+
fun filter(): Optional<String> = Optional.ofNullable(filter)
107+
105108
fun initialPhaseOrder(): Optional<Long> = Optional.ofNullable(initialPhaseOrder)
106109

107110
fun invoicingThreshold(): Optional<String> = Optional.ofNullable(invoicingThreshold)
@@ -156,6 +159,7 @@ constructor(
156159
externalMarketplace,
157160
externalMarketplaceReportingId,
158161
externalPlanId,
162+
filter,
159163
initialPhaseOrder,
160164
invoicingThreshold,
161165
metadata,
@@ -197,6 +201,7 @@ constructor(
197201
private val externalMarketplace: ExternalMarketplace?,
198202
private val externalMarketplaceReportingId: String?,
199203
private val externalPlanId: String?,
204+
private val filter: String?,
200205
private val initialPhaseOrder: Long?,
201206
private val invoicingThreshold: String?,
202207
private val metadata: Metadata?,
@@ -277,6 +282,14 @@ constructor(
277282
*/
278283
@JsonProperty("external_plan_id") fun externalPlanId(): String? = externalPlanId
279284

285+
/**
286+
* An additional filter to apply to usage queries. This filter must be expressed as a
287+
* boolean
288+
* [computed property](../guides/extensibility/advanced-metrics#computed-properties). If
289+
* null, usage queries will not include any additional filter.
290+
*/
291+
@JsonProperty("filter") fun filter(): String? = filter
292+
280293
/** The phase of the plan to start with */
281294
@JsonProperty("initial_phase_order") fun initialPhaseOrder(): Long? = initialPhaseOrder
282295

@@ -381,6 +394,7 @@ constructor(
381394
private var externalMarketplace: ExternalMarketplace? = null
382395
private var externalMarketplaceReportingId: String? = null
383396
private var externalPlanId: String? = null
397+
private var filter: String? = null
384398
private var initialPhaseOrder: Long? = null
385399
private var invoicingThreshold: String? = null
386400
private var metadata: Metadata? = null
@@ -417,6 +431,7 @@ constructor(
417431
this.externalMarketplaceReportingId =
418432
subscriptionCreateBody.externalMarketplaceReportingId
419433
this.externalPlanId = subscriptionCreateBody.externalPlanId
434+
this.filter = subscriptionCreateBody.filter
420435
this.initialPhaseOrder = subscriptionCreateBody.initialPhaseOrder
421436
this.invoicingThreshold = subscriptionCreateBody.invoicingThreshold
422437
this.metadata = subscriptionCreateBody.metadata
@@ -529,6 +544,14 @@ constructor(
529544
this.externalPlanId = externalPlanId
530545
}
531546

547+
/**
548+
* An additional filter to apply to usage queries. This filter must be expressed as a
549+
* boolean
550+
* [computed property](../guides/extensibility/advanced-metrics#computed-properties). If
551+
* null, usage queries will not include any additional filter.
552+
*/
553+
@JsonProperty("filter") fun filter(filter: String) = apply { this.filter = filter }
554+
532555
/** The phase of the plan to start with */
533556
@JsonProperty("initial_phase_order")
534557
fun initialPhaseOrder(initialPhaseOrder: Long) = apply {
@@ -666,6 +689,7 @@ constructor(
666689
externalMarketplace,
667690
externalMarketplaceReportingId,
668691
externalPlanId,
692+
filter,
669693
initialPhaseOrder,
670694
invoicingThreshold,
671695
metadata,
@@ -689,17 +713,17 @@ constructor(
689713
return true
690714
}
691715

692-
return /* spotless:off */ other is SubscriptionCreateBody && addAdjustments == other.addAdjustments && addPrices == other.addPrices && alignBillingWithSubscriptionStartDate == other.alignBillingWithSubscriptionStartDate && autoCollection == other.autoCollection && awsRegion == other.awsRegion && billingCycleAnchorConfiguration == other.billingCycleAnchorConfiguration && couponRedemptionCode == other.couponRedemptionCode && creditsOverageRate == other.creditsOverageRate && customerId == other.customerId && defaultInvoiceMemo == other.defaultInvoiceMemo && endDate == other.endDate && externalCustomerId == other.externalCustomerId && externalMarketplace == other.externalMarketplace && externalMarketplaceReportingId == other.externalMarketplaceReportingId && externalPlanId == other.externalPlanId && initialPhaseOrder == other.initialPhaseOrder && invoicingThreshold == other.invoicingThreshold && metadata == other.metadata && netTerms == other.netTerms && perCreditOverageAmount == other.perCreditOverageAmount && planId == other.planId && planVersionNumber == other.planVersionNumber && priceOverrides == other.priceOverrides && removeAdjustments == other.removeAdjustments && removePrices == other.removePrices && replaceAdjustments == other.replaceAdjustments && replacePrices == other.replacePrices && startDate == other.startDate && trialDurationDays == other.trialDurationDays && additionalProperties == other.additionalProperties /* spotless:on */
716+
return /* spotless:off */ other is SubscriptionCreateBody && addAdjustments == other.addAdjustments && addPrices == other.addPrices && alignBillingWithSubscriptionStartDate == other.alignBillingWithSubscriptionStartDate && autoCollection == other.autoCollection && awsRegion == other.awsRegion && billingCycleAnchorConfiguration == other.billingCycleAnchorConfiguration && couponRedemptionCode == other.couponRedemptionCode && creditsOverageRate == other.creditsOverageRate && customerId == other.customerId && defaultInvoiceMemo == other.defaultInvoiceMemo && endDate == other.endDate && externalCustomerId == other.externalCustomerId && externalMarketplace == other.externalMarketplace && externalMarketplaceReportingId == other.externalMarketplaceReportingId && externalPlanId == other.externalPlanId && filter == other.filter && initialPhaseOrder == other.initialPhaseOrder && invoicingThreshold == other.invoicingThreshold && metadata == other.metadata && netTerms == other.netTerms && perCreditOverageAmount == other.perCreditOverageAmount && planId == other.planId && planVersionNumber == other.planVersionNumber && priceOverrides == other.priceOverrides && removeAdjustments == other.removeAdjustments && removePrices == other.removePrices && replaceAdjustments == other.replaceAdjustments && replacePrices == other.replacePrices && startDate == other.startDate && trialDurationDays == other.trialDurationDays && additionalProperties == other.additionalProperties /* spotless:on */
693717
}
694718

695719
/* spotless:off */
696-
private val hashCode: Int by lazy { Objects.hash(addAdjustments, addPrices, alignBillingWithSubscriptionStartDate, autoCollection, awsRegion, billingCycleAnchorConfiguration, couponRedemptionCode, creditsOverageRate, customerId, defaultInvoiceMemo, endDate, externalCustomerId, externalMarketplace, externalMarketplaceReportingId, externalPlanId, initialPhaseOrder, invoicingThreshold, metadata, netTerms, perCreditOverageAmount, planId, planVersionNumber, priceOverrides, removeAdjustments, removePrices, replaceAdjustments, replacePrices, startDate, trialDurationDays, additionalProperties) }
720+
private val hashCode: Int by lazy { Objects.hash(addAdjustments, addPrices, alignBillingWithSubscriptionStartDate, autoCollection, awsRegion, billingCycleAnchorConfiguration, couponRedemptionCode, creditsOverageRate, customerId, defaultInvoiceMemo, endDate, externalCustomerId, externalMarketplace, externalMarketplaceReportingId, externalPlanId, filter, initialPhaseOrder, invoicingThreshold, metadata, netTerms, perCreditOverageAmount, planId, planVersionNumber, priceOverrides, removeAdjustments, removePrices, replaceAdjustments, replacePrices, startDate, trialDurationDays, additionalProperties) }
697721
/* spotless:on */
698722

699723
override fun hashCode(): Int = hashCode
700724

701725
override fun toString() =
702-
"SubscriptionCreateBody{addAdjustments=$addAdjustments, addPrices=$addPrices, alignBillingWithSubscriptionStartDate=$alignBillingWithSubscriptionStartDate, autoCollection=$autoCollection, awsRegion=$awsRegion, billingCycleAnchorConfiguration=$billingCycleAnchorConfiguration, couponRedemptionCode=$couponRedemptionCode, creditsOverageRate=$creditsOverageRate, customerId=$customerId, defaultInvoiceMemo=$defaultInvoiceMemo, endDate=$endDate, externalCustomerId=$externalCustomerId, externalMarketplace=$externalMarketplace, externalMarketplaceReportingId=$externalMarketplaceReportingId, externalPlanId=$externalPlanId, initialPhaseOrder=$initialPhaseOrder, invoicingThreshold=$invoicingThreshold, metadata=$metadata, netTerms=$netTerms, perCreditOverageAmount=$perCreditOverageAmount, planId=$planId, planVersionNumber=$planVersionNumber, priceOverrides=$priceOverrides, removeAdjustments=$removeAdjustments, removePrices=$removePrices, replaceAdjustments=$replaceAdjustments, replacePrices=$replacePrices, startDate=$startDate, trialDurationDays=$trialDurationDays, additionalProperties=$additionalProperties}"
726+
"SubscriptionCreateBody{addAdjustments=$addAdjustments, addPrices=$addPrices, alignBillingWithSubscriptionStartDate=$alignBillingWithSubscriptionStartDate, autoCollection=$autoCollection, awsRegion=$awsRegion, billingCycleAnchorConfiguration=$billingCycleAnchorConfiguration, couponRedemptionCode=$couponRedemptionCode, creditsOverageRate=$creditsOverageRate, customerId=$customerId, defaultInvoiceMemo=$defaultInvoiceMemo, endDate=$endDate, externalCustomerId=$externalCustomerId, externalMarketplace=$externalMarketplace, externalMarketplaceReportingId=$externalMarketplaceReportingId, externalPlanId=$externalPlanId, filter=$filter, initialPhaseOrder=$initialPhaseOrder, invoicingThreshold=$invoicingThreshold, metadata=$metadata, netTerms=$netTerms, perCreditOverageAmount=$perCreditOverageAmount, planId=$planId, planVersionNumber=$planVersionNumber, priceOverrides=$priceOverrides, removeAdjustments=$removeAdjustments, removePrices=$removePrices, replaceAdjustments=$replaceAdjustments, replacePrices=$replacePrices, startDate=$startDate, trialDurationDays=$trialDurationDays, additionalProperties=$additionalProperties}"
703727
}
704728

705729
fun toBuilder() = Builder().from(this)
@@ -727,6 +751,7 @@ constructor(
727751
private var externalMarketplace: ExternalMarketplace? = null
728752
private var externalMarketplaceReportingId: String? = null
729753
private var externalPlanId: String? = null
754+
private var filter: String? = null
730755
private var initialPhaseOrder: Long? = null
731756
private var invoicingThreshold: String? = null
732757
private var metadata: Metadata? = null
@@ -765,6 +790,7 @@ constructor(
765790
externalMarketplace = subscriptionCreateParams.externalMarketplace
766791
externalMarketplaceReportingId = subscriptionCreateParams.externalMarketplaceReportingId
767792
externalPlanId = subscriptionCreateParams.externalPlanId
793+
filter = subscriptionCreateParams.filter
768794
initialPhaseOrder = subscriptionCreateParams.initialPhaseOrder
769795
invoicingThreshold = subscriptionCreateParams.invoicingThreshold
770796
metadata = subscriptionCreateParams.metadata
@@ -882,6 +908,14 @@ constructor(
882908
*/
883909
fun externalPlanId(externalPlanId: String) = apply { this.externalPlanId = externalPlanId }
884910

911+
/**
912+
* An additional filter to apply to usage queries. This filter must be expressed as a
913+
* boolean
914+
* [computed property](../guides/extensibility/advanced-metrics#computed-properties). If
915+
* null, usage queries will not include any additional filter.
916+
*/
917+
fun filter(filter: String) = apply { this.filter = filter }
918+
885919
/** The phase of the plan to start with */
886920
fun initialPhaseOrder(initialPhaseOrder: Long) = apply {
887921
this.initialPhaseOrder = initialPhaseOrder
@@ -1152,6 +1186,7 @@ constructor(
11521186
externalMarketplace,
11531187
externalMarketplaceReportingId,
11541188
externalPlanId,
1189+
filter,
11551190
initialPhaseOrder,
11561191
invoicingThreshold,
11571192
metadata,
@@ -51542,11 +51577,11 @@ constructor(
5154251577
return true
5154351578
}
5154451579

51545-
return /* spotless:off */ other is SubscriptionCreateParams && addAdjustments == other.addAdjustments && addPrices == other.addPrices && alignBillingWithSubscriptionStartDate == other.alignBillingWithSubscriptionStartDate && autoCollection == other.autoCollection && awsRegion == other.awsRegion && billingCycleAnchorConfiguration == other.billingCycleAnchorConfiguration && couponRedemptionCode == other.couponRedemptionCode && creditsOverageRate == other.creditsOverageRate && customerId == other.customerId && defaultInvoiceMemo == other.defaultInvoiceMemo && endDate == other.endDate && externalCustomerId == other.externalCustomerId && externalMarketplace == other.externalMarketplace && externalMarketplaceReportingId == other.externalMarketplaceReportingId && externalPlanId == other.externalPlanId && initialPhaseOrder == other.initialPhaseOrder && invoicingThreshold == other.invoicingThreshold && metadata == other.metadata && netTerms == other.netTerms && perCreditOverageAmount == other.perCreditOverageAmount && planId == other.planId && planVersionNumber == other.planVersionNumber && priceOverrides == other.priceOverrides && removeAdjustments == other.removeAdjustments && removePrices == other.removePrices && replaceAdjustments == other.replaceAdjustments && replacePrices == other.replacePrices && startDate == other.startDate && trialDurationDays == other.trialDurationDays && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams && additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
51580+
return /* spotless:off */ other is SubscriptionCreateParams && addAdjustments == other.addAdjustments && addPrices == other.addPrices && alignBillingWithSubscriptionStartDate == other.alignBillingWithSubscriptionStartDate && autoCollection == other.autoCollection && awsRegion == other.awsRegion && billingCycleAnchorConfiguration == other.billingCycleAnchorConfiguration && couponRedemptionCode == other.couponRedemptionCode && creditsOverageRate == other.creditsOverageRate && customerId == other.customerId && defaultInvoiceMemo == other.defaultInvoiceMemo && endDate == other.endDate && externalCustomerId == other.externalCustomerId && externalMarketplace == other.externalMarketplace && externalMarketplaceReportingId == other.externalMarketplaceReportingId && externalPlanId == other.externalPlanId && filter == other.filter && initialPhaseOrder == other.initialPhaseOrder && invoicingThreshold == other.invoicingThreshold && metadata == other.metadata && netTerms == other.netTerms && perCreditOverageAmount == other.perCreditOverageAmount && planId == other.planId && planVersionNumber == other.planVersionNumber && priceOverrides == other.priceOverrides && removeAdjustments == other.removeAdjustments && removePrices == other.removePrices && replaceAdjustments == other.replaceAdjustments && replacePrices == other.replacePrices && startDate == other.startDate && trialDurationDays == other.trialDurationDays && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams && additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
5154651581
}
5154751582

51548-
override fun hashCode(): Int = /* spotless:off */ Objects.hash(addAdjustments, addPrices, alignBillingWithSubscriptionStartDate, autoCollection, awsRegion, billingCycleAnchorConfiguration, couponRedemptionCode, creditsOverageRate, customerId, defaultInvoiceMemo, endDate, externalCustomerId, externalMarketplace, externalMarketplaceReportingId, externalPlanId, initialPhaseOrder, invoicingThreshold, metadata, netTerms, perCreditOverageAmount, planId, planVersionNumber, priceOverrides, removeAdjustments, removePrices, replaceAdjustments, replacePrices, startDate, trialDurationDays, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */
51583+
override fun hashCode(): Int = /* spotless:off */ Objects.hash(addAdjustments, addPrices, alignBillingWithSubscriptionStartDate, autoCollection, awsRegion, billingCycleAnchorConfiguration, couponRedemptionCode, creditsOverageRate, customerId, defaultInvoiceMemo, endDate, externalCustomerId, externalMarketplace, externalMarketplaceReportingId, externalPlanId, filter, initialPhaseOrder, invoicingThreshold, metadata, netTerms, perCreditOverageAmount, planId, planVersionNumber, priceOverrides, removeAdjustments, removePrices, replaceAdjustments, replacePrices, startDate, trialDurationDays, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */
5154951584

5155051585
override fun toString() =
51551-
"SubscriptionCreateParams{addAdjustments=$addAdjustments, addPrices=$addPrices, alignBillingWithSubscriptionStartDate=$alignBillingWithSubscriptionStartDate, autoCollection=$autoCollection, awsRegion=$awsRegion, billingCycleAnchorConfiguration=$billingCycleAnchorConfiguration, couponRedemptionCode=$couponRedemptionCode, creditsOverageRate=$creditsOverageRate, customerId=$customerId, defaultInvoiceMemo=$defaultInvoiceMemo, endDate=$endDate, externalCustomerId=$externalCustomerId, externalMarketplace=$externalMarketplace, externalMarketplaceReportingId=$externalMarketplaceReportingId, externalPlanId=$externalPlanId, initialPhaseOrder=$initialPhaseOrder, invoicingThreshold=$invoicingThreshold, metadata=$metadata, netTerms=$netTerms, perCreditOverageAmount=$perCreditOverageAmount, planId=$planId, planVersionNumber=$planVersionNumber, priceOverrides=$priceOverrides, removeAdjustments=$removeAdjustments, removePrices=$removePrices, replaceAdjustments=$replaceAdjustments, replacePrices=$replacePrices, startDate=$startDate, trialDurationDays=$trialDurationDays, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams, additionalBodyProperties=$additionalBodyProperties}"
51586+
"SubscriptionCreateParams{addAdjustments=$addAdjustments, addPrices=$addPrices, alignBillingWithSubscriptionStartDate=$alignBillingWithSubscriptionStartDate, autoCollection=$autoCollection, awsRegion=$awsRegion, billingCycleAnchorConfiguration=$billingCycleAnchorConfiguration, couponRedemptionCode=$couponRedemptionCode, creditsOverageRate=$creditsOverageRate, customerId=$customerId, defaultInvoiceMemo=$defaultInvoiceMemo, endDate=$endDate, externalCustomerId=$externalCustomerId, externalMarketplace=$externalMarketplace, externalMarketplaceReportingId=$externalMarketplaceReportingId, externalPlanId=$externalPlanId, filter=$filter, initialPhaseOrder=$initialPhaseOrder, invoicingThreshold=$invoicingThreshold, metadata=$metadata, netTerms=$netTerms, perCreditOverageAmount=$perCreditOverageAmount, planId=$planId, planVersionNumber=$planVersionNumber, priceOverrides=$priceOverrides, removeAdjustments=$removeAdjustments, removePrices=$removePrices, replaceAdjustments=$replaceAdjustments, replacePrices=$replacePrices, startDate=$startDate, trialDurationDays=$trialDurationDays, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams, additionalBodyProperties=$additionalBodyProperties}"
5155251587
}

0 commit comments

Comments
 (0)