Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0-beta.24"
".": "0.1.0-beta.25"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 110
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stigg/stigg-afa11f1425d4cfca7c245c4c7df35052f9c2edde21f737a4d7613da9e903cee9.yml
openapi_spec_hash: 0429615df9aa3b7912b3ca45fba05e93
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stigg/stigg-512ec51333e2e803d366c0aebea858913541a7ef0269a56f9371686feed26cd8.yml
openapi_spec_hash: 9b6d9f90c1aff0165ef7769f2311a1bd
config_hash: 0eca08dde117ac62155a012abb0ecac7
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 0.1.0-beta.25 (2026-06-22)

Full Changelog: [v0.1.0-beta.24...v0.1.0-beta.25](https://github.com/stiggio/stigg-java/compare/v0.1.0-beta.24...v0.1.0-beta.25)

### Features

* **api:** add credit field to usage report response ([b87667c](https://github.com/stiggio/stigg-java/commit/b87667c0f25cc0a6e65726d4709014da76296688))
* **api:** add salesforceId parameter to subscription update ([58c0ffb](https://github.com/stiggio/stigg-java/commit/58c0ffb03807dbb21b9a665459d6aac28961e694))

## 0.1.0-beta.24 (2026-06-21)

Full Changelog: [v0.1.0-beta.23...v0.1.0-beta.24](https://github.com/stiggio/stigg-java/compare/v0.1.0-beta.23...v0.1.0-beta.24)
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<!-- x-release-please-start-version -->

[![Maven Central](https://img.shields.io/maven-central/v/io.stigg/stigg-java)](https://central.sonatype.com/artifact/io.stigg/stigg-java/0.1.0-beta.24)
[![javadoc](https://javadoc.io/badge2/io.stigg/stigg-java/0.1.0-beta.24/javadoc.svg)](https://javadoc.io/doc/io.stigg/stigg-java/0.1.0-beta.24)
[![Maven Central](https://img.shields.io/maven-central/v/io.stigg/stigg-java)](https://central.sonatype.com/artifact/io.stigg/stigg-java/0.1.0-beta.25)
[![javadoc](https://javadoc.io/badge2/io.stigg/stigg-java/0.1.0-beta.25/javadoc.svg)](https://javadoc.io/doc/io.stigg/stigg-java/0.1.0-beta.25)

<!-- x-release-please-end -->

Expand All @@ -22,7 +22,7 @@ Use the Stigg MCP Server to enable AI assistants to interact with this API, allo

<!-- x-release-please-start-version -->

Javadocs are available on [javadoc.io](https://javadoc.io/doc/io.stigg/stigg-java/0.1.0-beta.24).
Javadocs are available on [javadoc.io](https://javadoc.io/doc/io.stigg/stigg-java/0.1.0-beta.25).

<!-- x-release-please-end -->

Expand All @@ -33,7 +33,7 @@ Javadocs are available on [javadoc.io](https://javadoc.io/doc/io.stigg/stigg-jav
### Gradle

```kotlin
implementation("io.stigg:stigg-java:0.1.0-beta.24")
implementation("io.stigg:stigg-java:0.1.0-beta.25")
```

### Maven
Expand All @@ -42,7 +42,7 @@ implementation("io.stigg:stigg-java:0.1.0-beta.24")
<dependency>
<groupId>io.stigg</groupId>
<artifactId>stigg-java</artifactId>
<version>0.1.0-beta.24</version>
<version>0.1.0-beta.25</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repositories {

allprojects {
group = "io.stigg"
version = "0.1.0-beta.24" // x-release-please-version
version = "0.1.0-beta.25" // x-release-please-version
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,14 @@ private constructor(
*/
fun promotionCode(): Optional<String> = body.promotionCode()

/**
* Salesforce ID
*
* @throws StiggInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
*/
fun salesforceId(): Optional<String> = body.salesforceId()

/**
* @throws StiggInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
Expand Down Expand Up @@ -264,6 +272,13 @@ private constructor(
*/
fun _promotionCode(): JsonField<String> = body._promotionCode()

/**
* Returns the raw JSON value of [salesforceId].
*
* Unlike [salesforceId], this method doesn't throw if the JSON field has an unexpected type.
*/
fun _salesforceId(): JsonField<String> = body._salesforceId()

/**
* Returns the raw JSON value of [scheduleStrategy].
*
Expand Down Expand Up @@ -598,6 +613,23 @@ private constructor(
body.promotionCode(promotionCode)
}

/** Salesforce ID */
fun salesforceId(salesforceId: String?) = apply { body.salesforceId(salesforceId) }

/** Alias for calling [Builder.salesforceId] with `salesforceId.orElse(null)`. */
fun salesforceId(salesforceId: Optional<String>) = salesforceId(salesforceId.getOrNull())

/**
* Sets [Builder.salesforceId] to an arbitrary JSON value.
*
* You should usually call [Builder.salesforceId] with a well-typed [String] value instead.
* This method is primarily for setting the field to an undocumented or not yet supported
* value.
*/
fun salesforceId(salesforceId: JsonField<String>) = apply {
body.salesforceId(salesforceId)
}

fun scheduleStrategy(scheduleStrategy: ScheduleStrategy) = apply {
body.scheduleStrategy(scheduleStrategy)
}
Expand Down Expand Up @@ -797,6 +829,7 @@ private constructor(
private val minimumSpend: JsonField<MinimumSpend>,
private val priceOverrides: JsonField<List<PriceOverride>>,
private val promotionCode: JsonField<String>,
private val salesforceId: JsonField<String>,
private val scheduleStrategy: JsonField<ScheduleStrategy>,
private val trialEndDate: JsonField<OffsetDateTime>,
private val additionalProperties: MutableMap<String, JsonValue>,
Expand Down Expand Up @@ -844,6 +877,9 @@ private constructor(
@JsonProperty("promotionCode")
@ExcludeMissing
promotionCode: JsonField<String> = JsonMissing.of(),
@JsonProperty("salesforceId")
@ExcludeMissing
salesforceId: JsonField<String> = JsonMissing.of(),
@JsonProperty("scheduleStrategy")
@ExcludeMissing
scheduleStrategy: JsonField<ScheduleStrategy> = JsonMissing.of(),
Expand All @@ -865,6 +901,7 @@ private constructor(
minimumSpend,
priceOverrides,
promotionCode,
salesforceId,
scheduleStrategy,
trialEndDate,
mutableMapOf(),
Expand Down Expand Up @@ -969,6 +1006,14 @@ private constructor(
*/
fun promotionCode(): Optional<String> = promotionCode.getOptional("promotionCode")

/**
* Salesforce ID
*
* @throws StiggInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
*/
fun salesforceId(): Optional<String> = salesforceId.getOptional("salesforceId")

/**
* @throws StiggInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
Expand Down Expand Up @@ -1112,6 +1157,16 @@ private constructor(
@ExcludeMissing
fun _promotionCode(): JsonField<String> = promotionCode

/**
* Returns the raw JSON value of [salesforceId].
*
* Unlike [salesforceId], this method doesn't throw if the JSON field has an unexpected
* type.
*/
@JsonProperty("salesforceId")
@ExcludeMissing
fun _salesforceId(): JsonField<String> = salesforceId

/**
* Returns the raw JSON value of [scheduleStrategy].
*
Expand Down Expand Up @@ -1167,6 +1222,7 @@ private constructor(
private var minimumSpend: JsonField<MinimumSpend> = JsonMissing.of()
private var priceOverrides: JsonField<MutableList<PriceOverride>>? = null
private var promotionCode: JsonField<String> = JsonMissing.of()
private var salesforceId: JsonField<String> = JsonMissing.of()
private var scheduleStrategy: JsonField<ScheduleStrategy> = JsonMissing.of()
private var trialEndDate: JsonField<OffsetDateTime> = JsonMissing.of()
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()
Expand All @@ -1187,6 +1243,7 @@ private constructor(
minimumSpend = body.minimumSpend
priceOverrides = body.priceOverrides.map { it.toMutableList() }
promotionCode = body.promotionCode
salesforceId = body.salesforceId
scheduleStrategy = body.scheduleStrategy
trialEndDate = body.trialEndDate
additionalProperties = body.additionalProperties.toMutableMap()
Expand Down Expand Up @@ -1464,6 +1521,25 @@ private constructor(
this.promotionCode = promotionCode
}

/** Salesforce ID */
fun salesforceId(salesforceId: String?) =
salesforceId(JsonField.ofNullable(salesforceId))

/** Alias for calling [Builder.salesforceId] with `salesforceId.orElse(null)`. */
fun salesforceId(salesforceId: Optional<String>) =
salesforceId(salesforceId.getOrNull())

/**
* Sets [Builder.salesforceId] to an arbitrary JSON value.
*
* You should usually call [Builder.salesforceId] with a well-typed [String] value
* instead. This method is primarily for setting the field to an undocumented or not yet
* supported value.
*/
fun salesforceId(salesforceId: JsonField<String>) = apply {
this.salesforceId = salesforceId
}

fun scheduleStrategy(scheduleStrategy: ScheduleStrategy) =
scheduleStrategy(JsonField.of(scheduleStrategy))

Expand Down Expand Up @@ -1533,6 +1609,7 @@ private constructor(
minimumSpend,
(priceOverrides ?: JsonMissing.of()).map { it.toImmutable() },
promotionCode,
salesforceId,
scheduleStrategy,
trialEndDate,
additionalProperties.toMutableMap(),
Expand Down Expand Up @@ -1569,6 +1646,7 @@ private constructor(
minimumSpend().ifPresent { it.validate() }
priceOverrides().ifPresent { it.forEach { it.validate() } }
promotionCode()
salesforceId()
scheduleStrategy().ifPresent { it.validate() }
trialEndDate()
validated = true
Expand Down Expand Up @@ -1604,6 +1682,7 @@ private constructor(
(minimumSpend.asKnown().getOrNull()?.validity() ?: 0) +
(priceOverrides.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0) +
(if (promotionCode.asKnown().isPresent) 1 else 0) +
(if (salesforceId.asKnown().isPresent) 1 else 0) +
(scheduleStrategy.asKnown().getOrNull()?.validity() ?: 0) +
(if (trialEndDate.asKnown().isPresent) 1 else 0)

Expand All @@ -1627,6 +1706,7 @@ private constructor(
minimumSpend == other.minimumSpend &&
priceOverrides == other.priceOverrides &&
promotionCode == other.promotionCode &&
salesforceId == other.salesforceId &&
scheduleStrategy == other.scheduleStrategy &&
trialEndDate == other.trialEndDate &&
additionalProperties == other.additionalProperties
Expand All @@ -1648,6 +1728,7 @@ private constructor(
minimumSpend,
priceOverrides,
promotionCode,
salesforceId,
scheduleStrategy,
trialEndDate,
additionalProperties,
Expand All @@ -1657,7 +1738,7 @@ private constructor(
override fun hashCode(): Int = hashCode

override fun toString() =
"Body{addons=$addons, appliedCoupon=$appliedCoupon, awaitPaymentConfirmation=$awaitPaymentConfirmation, billingCycleAnchor=$billingCycleAnchor, billingInformation=$billingInformation, billingPeriod=$billingPeriod, budget=$budget, cancellationDate=$cancellationDate, charges=$charges, entitlements=$entitlements, metadata=$metadata, minimumSpend=$minimumSpend, priceOverrides=$priceOverrides, promotionCode=$promotionCode, scheduleStrategy=$scheduleStrategy, trialEndDate=$trialEndDate, additionalProperties=$additionalProperties}"
"Body{addons=$addons, appliedCoupon=$appliedCoupon, awaitPaymentConfirmation=$awaitPaymentConfirmation, billingCycleAnchor=$billingCycleAnchor, billingInformation=$billingInformation, billingPeriod=$billingPeriod, budget=$budget, cancellationDate=$cancellationDate, charges=$charges, entitlements=$entitlements, metadata=$metadata, minimumSpend=$minimumSpend, priceOverrides=$priceOverrides, promotionCode=$promotionCode, salesforceId=$salesforceId, scheduleStrategy=$scheduleStrategy, trialEndDate=$trialEndDate, additionalProperties=$additionalProperties}"
}

/** Addon configuration */
Expand Down
Loading
Loading