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-alpha.4"
".": "0.1.0-alpha.5"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 959
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-a393b1d7074c56c47932ec0f1e328d567f1466ecdbc04c19e7067df1b097ecb0.yml
openapi_spec_hash: d0e76c7f7ecb1e8f701d4ced83be404f
config_hash: 3c65b4da968b08d5322cacebf983ccb9
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-823cfd41f503bd00779bc02af045a44617ded14a4612bc128567301eb2982763.yml
openapi_spec_hash: 3a53f40c597fb1a8ded7d5f8939b8cc1
config_hash: 8397c3cc951490dffa28dc7f9f0635e4
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.1.0-alpha.5 (2026-05-07)

Full Changelog: [v0.1.0-alpha.4...v0.1.0-alpha.5](https://github.com/HubSpot/hubspot-sdk-java/compare/v0.1.0-alpha.4...v0.1.0-alpha.5)

### Features

* **api:** manual updates ([95e362e](https://github.com/HubSpot/hubspot-sdk-java/commit/95e362ea8404c308485a64437b0cb438d5abe868))

## 0.1.0-alpha.4 (2026-05-06)

Full Changelog: [v0.1.0-alpha.3...v0.1.0-alpha.4](https://github.com/HubSpot/hubspot-sdk-java/compare/v0.1.0-alpha.3...v0.1.0-alpha.4)
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/com.hubspot.sdk/hubspot-java)](https://central.sonatype.com/artifact/com.hubspot.sdk/hubspot-java/0.1.0-alpha.4)
[![javadoc](https://javadoc.io/badge2/com.hubspot.sdk/hubspot-java/0.1.0-alpha.4/javadoc.svg)](https://javadoc.io/doc/com.hubspot.sdk/hubspot-java/0.1.0-alpha.4)
[![Maven Central](https://img.shields.io/maven-central/v/com.hubspot.sdk/hubspot-java)](https://central.sonatype.com/artifact/com.hubspot.sdk/hubspot-java/0.1.0-alpha.5)
[![javadoc](https://javadoc.io/badge2/com.hubspot.sdk/hubspot-java/0.1.0-alpha.5/javadoc.svg)](https://javadoc.io/doc/com.hubspot.sdk/hubspot-java/0.1.0-alpha.5)

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

Expand All @@ -13,7 +13,7 @@ It is generated with [Stainless](https://www.stainless.com/).

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

The REST API documentation can be found on [developers.hubspot.com](https://developers.hubspot.com/docs/api-reference/overview). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.hubspot.sdk/hubspot-java/0.1.0-alpha.4).
The REST API documentation can be found on [developers.hubspot.com](https://developers.hubspot.com/docs/api-reference/overview). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.hubspot.sdk/hubspot-java/0.1.0-alpha.5).

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

Expand All @@ -24,7 +24,7 @@ The REST API documentation can be found on [developers.hubspot.com](https://deve
### Gradle

```kotlin
implementation("com.hubspot.sdk:hubspot-java:0.1.0-alpha.4")
implementation("com.hubspot.sdk:hubspot-java:0.1.0-alpha.5")
```

### Maven
Expand All @@ -33,7 +33,7 @@ implementation("com.hubspot.sdk:hubspot-java:0.1.0-alpha.4")
<dependency>
<groupId>com.hubspot.sdk</groupId>
<artifactId>hubspot-java</artifactId>
<version>0.1.0-alpha.4</version>
<version>0.1.0-alpha.5</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 @@ -9,7 +9,7 @@ repositories {

allprojects {
group = "com.hubspot.sdk"
version = "0.1.0-alpha.4" // x-release-please-version
version = "0.1.0-alpha.5" // x-release-please-version
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import java.util.Objects
import java.util.Optional

/** The definition of an association */
class BaseAssociationDefinition
class AssociationDefinition
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
private constructor(
private val id: JsonField<String>,
Expand Down Expand Up @@ -162,7 +162,7 @@ private constructor(
companion object {

/**
* Returns a mutable builder for constructing an instance of [BaseAssociationDefinition].
* Returns a mutable builder for constructing an instance of [AssociationDefinition].
*
* The following fields are required:
* ```java
Expand All @@ -174,7 +174,7 @@ private constructor(
@JvmStatic fun builder() = Builder()
}

/** A builder for [BaseAssociationDefinition]. */
/** A builder for [AssociationDefinition]. */
class Builder internal constructor() {

private var id: JsonField<String>? = null
Expand All @@ -186,14 +186,14 @@ private constructor(
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()

@JvmSynthetic
internal fun from(baseAssociationDefinition: BaseAssociationDefinition) = apply {
id = baseAssociationDefinition.id
fromObjectTypeId = baseAssociationDefinition.fromObjectTypeId
toObjectTypeId = baseAssociationDefinition.toObjectTypeId
createdAt = baseAssociationDefinition.createdAt
name = baseAssociationDefinition.name
updatedAt = baseAssociationDefinition.updatedAt
additionalProperties = baseAssociationDefinition.additionalProperties.toMutableMap()
internal fun from(associationDefinition: AssociationDefinition) = apply {
id = associationDefinition.id
fromObjectTypeId = associationDefinition.fromObjectTypeId
toObjectTypeId = associationDefinition.toObjectTypeId
createdAt = associationDefinition.createdAt
name = associationDefinition.name
updatedAt = associationDefinition.updatedAt
additionalProperties = associationDefinition.additionalProperties.toMutableMap()
}

/** The unique ID of the associated object (e.g., a contact ID). */
Expand Down Expand Up @@ -291,7 +291,7 @@ private constructor(
}

/**
* Returns an immutable instance of [BaseAssociationDefinition].
* Returns an immutable instance of [AssociationDefinition].
*
* Further updates to this [Builder] will not mutate the returned instance.
*
Expand All @@ -304,8 +304,8 @@ private constructor(
*
* @throws IllegalStateException if any required field is unset.
*/
fun build(): BaseAssociationDefinition =
BaseAssociationDefinition(
fun build(): AssociationDefinition =
AssociationDefinition(
checkRequired("id", id),
checkRequired("fromObjectTypeId", fromObjectTypeId),
checkRequired("toObjectTypeId", toObjectTypeId),
Expand All @@ -326,7 +326,7 @@ private constructor(
* @throws HubSpotInvalidDataException if any value type in this object doesn't match its
* expected type.
*/
fun validate(): BaseAssociationDefinition = apply {
fun validate(): AssociationDefinition = apply {
if (validated) {
return@apply
}
Expand Down Expand Up @@ -367,7 +367,7 @@ private constructor(
return true
}

return other is BaseAssociationDefinition &&
return other is AssociationDefinition &&
id == other.id &&
fromObjectTypeId == other.fromObjectTypeId &&
toObjectTypeId == other.toObjectTypeId &&
Expand All @@ -392,5 +392,5 @@ private constructor(
override fun hashCode(): Int = hashCode

override fun toString() =
"BaseAssociationDefinition{id=$id, fromObjectTypeId=$fromObjectTypeId, toObjectTypeId=$toObjectTypeId, createdAt=$createdAt, name=$name, updatedAt=$updatedAt, additionalProperties=$additionalProperties}"
"AssociationDefinition{id=$id, fromObjectTypeId=$fromObjectTypeId, toObjectTypeId=$toObjectTypeId, createdAt=$createdAt, name=$name, updatedAt=$updatedAt, additionalProperties=$additionalProperties}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import java.util.Objects
import java.util.Optional
import kotlin.jvm.optionals.getOrNull

class BaseError
class ErrorData
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
private constructor(
private val category: JsonField<String>,
Expand Down Expand Up @@ -173,7 +173,7 @@ private constructor(
companion object {

/**
* Returns a mutable builder for constructing an instance of [BaseError].
* Returns a mutable builder for constructing an instance of [ErrorData].
*
* The following fields are required:
* ```java
Expand All @@ -185,7 +185,7 @@ private constructor(
@JvmStatic fun builder() = Builder()
}

/** A builder for [BaseError]. */
/** A builder for [ErrorData]. */
class Builder internal constructor() {

private var category: JsonField<String>? = null
Expand All @@ -198,15 +198,15 @@ private constructor(
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()

@JvmSynthetic
internal fun from(baseError: BaseError) = apply {
category = baseError.category
correlationId = baseError.correlationId
message = baseError.message
context = baseError.context
errors = baseError.errors.map { it.toMutableList() }
links = baseError.links
subCategory = baseError.subCategory
additionalProperties = baseError.additionalProperties.toMutableMap()
internal fun from(errorData: ErrorData) = apply {
category = errorData.category
correlationId = errorData.correlationId
message = errorData.message
context = errorData.context
errors = errorData.errors.map { it.toMutableList() }
links = errorData.links
subCategory = errorData.subCategory
additionalProperties = errorData.additionalProperties.toMutableMap()
}

/** The error category */
Expand Down Expand Up @@ -334,7 +334,7 @@ private constructor(
}

/**
* Returns an immutable instance of [BaseError].
* Returns an immutable instance of [ErrorData].
*
* Further updates to this [Builder] will not mutate the returned instance.
*
Expand All @@ -347,8 +347,8 @@ private constructor(
*
* @throws IllegalStateException if any required field is unset.
*/
fun build(): BaseError =
BaseError(
fun build(): ErrorData =
ErrorData(
checkRequired("category", category),
checkRequired("correlationId", correlationId),
checkRequired("message", message),
Expand All @@ -370,7 +370,7 @@ private constructor(
* @throws HubSpotInvalidDataException if any value type in this object doesn't match its
* expected type.
*/
fun validate(): BaseError = apply {
fun validate(): ErrorData = apply {
if (validated) {
return@apply
}
Expand Down Expand Up @@ -634,7 +634,7 @@ private constructor(
return true
}

return other is BaseError &&
return other is ErrorData &&
category == other.category &&
correlationId == other.correlationId &&
message == other.message &&
Expand All @@ -661,5 +661,5 @@ private constructor(
override fun hashCode(): Int = hashCode

override fun toString() =
"BaseError{category=$category, correlationId=$correlationId, message=$message, context=$context, errors=$errors, links=$links, subCategory=$subCategory, additionalProperties=$additionalProperties}"
"ErrorData{category=$category, correlationId=$correlationId, message=$message, context=$context, errors=$errors, links=$links, subCategory=$subCategory, additionalProperties=$additionalProperties}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import java.util.Objects
import java.util.Optional
import kotlin.jvm.optionals.getOrNull

class BaseObjectTypeDefinition
class ObjectTypeDefinition
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
private constructor(
private val id: JsonField<String>,
Expand Down Expand Up @@ -339,7 +339,7 @@ private constructor(
companion object {

/**
* Returns a mutable builder for constructing an instance of [BaseObjectTypeDefinition].
* Returns a mutable builder for constructing an instance of [ObjectTypeDefinition].
*
* The following fields are required:
* ```java
Expand All @@ -358,7 +358,7 @@ private constructor(
@JvmStatic fun builder() = Builder()
}

/** A builder for [BaseObjectTypeDefinition]. */
/** A builder for [ObjectTypeDefinition]. */
class Builder internal constructor() {

private var id: JsonField<String>? = null
Expand All @@ -379,26 +379,25 @@ private constructor(
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()

@JvmSynthetic
internal fun from(baseObjectTypeDefinition: BaseObjectTypeDefinition) = apply {
id = baseObjectTypeDefinition.id
allowsSensitiveProperties = baseObjectTypeDefinition.allowsSensitiveProperties
archived = baseObjectTypeDefinition.archived
fullyQualifiedName = baseObjectTypeDefinition.fullyQualifiedName
labels = baseObjectTypeDefinition.labels
name = baseObjectTypeDefinition.name
objectTypeId = baseObjectTypeDefinition.objectTypeId
requiredProperties =
baseObjectTypeDefinition.requiredProperties.map { it.toMutableList() }
internal fun from(objectTypeDefinition: ObjectTypeDefinition) = apply {
id = objectTypeDefinition.id
allowsSensitiveProperties = objectTypeDefinition.allowsSensitiveProperties
archived = objectTypeDefinition.archived
fullyQualifiedName = objectTypeDefinition.fullyQualifiedName
labels = objectTypeDefinition.labels
name = objectTypeDefinition.name
objectTypeId = objectTypeDefinition.objectTypeId
requiredProperties = objectTypeDefinition.requiredProperties.map { it.toMutableList() }
searchableProperties =
baseObjectTypeDefinition.searchableProperties.map { it.toMutableList() }
objectTypeDefinition.searchableProperties.map { it.toMutableList() }
secondaryDisplayProperties =
baseObjectTypeDefinition.secondaryDisplayProperties.map { it.toMutableList() }
createdAt = baseObjectTypeDefinition.createdAt
description = baseObjectTypeDefinition.description
portalId = baseObjectTypeDefinition.portalId
primaryDisplayProperty = baseObjectTypeDefinition.primaryDisplayProperty
updatedAt = baseObjectTypeDefinition.updatedAt
additionalProperties = baseObjectTypeDefinition.additionalProperties.toMutableMap()
objectTypeDefinition.secondaryDisplayProperties.map { it.toMutableList() }
createdAt = objectTypeDefinition.createdAt
description = objectTypeDefinition.description
portalId = objectTypeDefinition.portalId
primaryDisplayProperty = objectTypeDefinition.primaryDisplayProperty
updatedAt = objectTypeDefinition.updatedAt
additionalProperties = objectTypeDefinition.additionalProperties.toMutableMap()
}

fun id(id: String) = id(JsonField.of(id))
Expand Down Expand Up @@ -641,7 +640,7 @@ private constructor(
}

/**
* Returns an immutable instance of [BaseObjectTypeDefinition].
* Returns an immutable instance of [ObjectTypeDefinition].
*
* Further updates to this [Builder] will not mutate the returned instance.
*
Expand All @@ -661,8 +660,8 @@ private constructor(
*
* @throws IllegalStateException if any required field is unset.
*/
fun build(): BaseObjectTypeDefinition =
BaseObjectTypeDefinition(
fun build(): ObjectTypeDefinition =
ObjectTypeDefinition(
checkRequired("id", id),
checkRequired("allowsSensitiveProperties", allowsSensitiveProperties),
checkRequired("archived", archived),
Expand Down Expand Up @@ -696,7 +695,7 @@ private constructor(
* @throws HubSpotInvalidDataException if any value type in this object doesn't match its
* expected type.
*/
fun validate(): BaseObjectTypeDefinition = apply {
fun validate(): ObjectTypeDefinition = apply {
if (validated) {
return@apply
}
Expand Down Expand Up @@ -755,7 +754,7 @@ private constructor(
return true
}

return other is BaseObjectTypeDefinition &&
return other is ObjectTypeDefinition &&
id == other.id &&
allowsSensitiveProperties == other.allowsSensitiveProperties &&
archived == other.archived &&
Expand Down Expand Up @@ -798,5 +797,5 @@ private constructor(
override fun hashCode(): Int = hashCode

override fun toString() =
"BaseObjectTypeDefinition{id=$id, allowsSensitiveProperties=$allowsSensitiveProperties, archived=$archived, fullyQualifiedName=$fullyQualifiedName, labels=$labels, name=$name, objectTypeId=$objectTypeId, requiredProperties=$requiredProperties, searchableProperties=$searchableProperties, secondaryDisplayProperties=$secondaryDisplayProperties, createdAt=$createdAt, description=$description, portalId=$portalId, primaryDisplayProperty=$primaryDisplayProperty, updatedAt=$updatedAt, additionalProperties=$additionalProperties}"
"ObjectTypeDefinition{id=$id, allowsSensitiveProperties=$allowsSensitiveProperties, archived=$archived, fullyQualifiedName=$fullyQualifiedName, labels=$labels, name=$name, objectTypeId=$objectTypeId, requiredProperties=$requiredProperties, searchableProperties=$searchableProperties, secondaryDisplayProperties=$secondaryDisplayProperties, createdAt=$createdAt, description=$description, portalId=$portalId, primaryDisplayProperty=$primaryDisplayProperty, updatedAt=$updatedAt, additionalProperties=$additionalProperties}"
}
Loading
Loading