Skip to content

Commit 72883ec

Browse files
feat(api): manual updates
1 parent 6d430fc commit 72883ec

22 files changed

Lines changed: 546 additions & 490 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 959
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-5471b42def181422e461f5657935bcc5d80f62e169b34b60d017257cab8ed6a7.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-3260c0cfb88ce2653c37c4c97e1dd39b965df4f2c14177677bc46d95b104525d.yml
33
openapi_spec_hash: 93b8671a542b331e067319184c943fdd
4-
config_hash: 42a440e814378897b5ca0c2ad29c7f99
4+
config_hash: 0bcc56e67986936da66e382674e17c79

hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/cms/mediabridge/InboundDbObjectType.kt

Lines changed: 77 additions & 72 deletions
Large diffs are not rendered by default.

hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/webhooksjournal/CollectionResponseSubscriptionResponseNoPaging.kt renamed to hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/webhooksjournal/JournalCollectionResponseSubscriptionResponseNoPaging.kt

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ import java.util.Collections
1818
import java.util.Objects
1919
import kotlin.jvm.optionals.getOrNull
2020

21-
class CollectionResponseSubscriptionResponseNoPaging
21+
class JournalCollectionResponseSubscriptionResponseNoPaging
2222
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
2323
private constructor(
24-
private val results: JsonField<List<SubscriptionResponse>>,
24+
private val results: JsonField<List<JournalSubscriptionResponse>>,
2525
private val additionalProperties: MutableMap<String, JsonValue>,
2626
) {
2727

2828
@JsonCreator
2929
private constructor(
3030
@JsonProperty("results")
3131
@ExcludeMissing
32-
results: JsonField<List<SubscriptionResponse>> = JsonMissing.of()
32+
results: JsonField<List<JournalSubscriptionResponse>> = JsonMissing.of()
3333
) : this(results, mutableMapOf())
3434

3535
/**
@@ -39,7 +39,7 @@ private constructor(
3939
* @throws HubSpotInvalidDataException if the JSON field has an unexpected type or is
4040
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
4141
*/
42-
fun results(): List<SubscriptionResponse> = results.getRequired("results")
42+
fun results(): List<JournalSubscriptionResponse> = results.getRequired("results")
4343

4444
/**
4545
* Returns the raw JSON value of [results].
@@ -48,7 +48,7 @@ private constructor(
4848
*/
4949
@JsonProperty("results")
5050
@ExcludeMissing
51-
fun _results(): JsonField<List<SubscriptionResponse>> = results
51+
fun _results(): JsonField<List<JournalSubscriptionResponse>> = results
5252

5353
@JsonAnySetter
5454
private fun putAdditionalProperty(key: String, value: JsonValue) {
@@ -66,7 +66,7 @@ private constructor(
6666

6767
/**
6868
* Returns a mutable builder for constructing an instance of
69-
* [CollectionResponseSubscriptionResponseNoPaging].
69+
* [JournalCollectionResponseSubscriptionResponseNoPaging].
7070
*
7171
* The following fields are required:
7272
* ```java
@@ -76,46 +76,49 @@ private constructor(
7676
@JvmStatic fun builder() = Builder()
7777
}
7878

79-
/** A builder for [CollectionResponseSubscriptionResponseNoPaging]. */
79+
/** A builder for [JournalCollectionResponseSubscriptionResponseNoPaging]. */
8080
class Builder internal constructor() {
8181

82-
private var results: JsonField<MutableList<SubscriptionResponse>>? = null
82+
private var results: JsonField<MutableList<JournalSubscriptionResponse>>? = null
8383
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()
8484

8585
@JvmSynthetic
8686
internal fun from(
87-
collectionResponseSubscriptionResponseNoPaging:
88-
CollectionResponseSubscriptionResponseNoPaging
87+
journalCollectionResponseSubscriptionResponseNoPaging:
88+
JournalCollectionResponseSubscriptionResponseNoPaging
8989
) = apply {
9090
results =
91-
collectionResponseSubscriptionResponseNoPaging.results.map { it.toMutableList() }
91+
journalCollectionResponseSubscriptionResponseNoPaging.results.map {
92+
it.toMutableList()
93+
}
9294
additionalProperties =
93-
collectionResponseSubscriptionResponseNoPaging.additionalProperties.toMutableMap()
95+
journalCollectionResponseSubscriptionResponseNoPaging.additionalProperties
96+
.toMutableMap()
9497
}
9598

9699
/**
97100
* An array of subscription responses, where each item contains details about a specific
98101
* subscription. Each item follows the SubscriptionResponse schema.
99102
*/
100-
fun results(results: List<SubscriptionResponse>) = results(JsonField.of(results))
103+
fun results(results: List<JournalSubscriptionResponse>) = results(JsonField.of(results))
101104

102105
/**
103106
* Sets [Builder.results] to an arbitrary JSON value.
104107
*
105-
* You should usually call [Builder.results] with a well-typed `List<SubscriptionResponse>`
106-
* value instead. This method is primarily for setting the field to an undocumented or not
107-
* yet supported value.
108+
* You should usually call [Builder.results] with a well-typed
109+
* `List<JournalSubscriptionResponse>` value instead. This method is primarily for setting
110+
* the field to an undocumented or not yet supported value.
108111
*/
109-
fun results(results: JsonField<List<SubscriptionResponse>>) = apply {
112+
fun results(results: JsonField<List<JournalSubscriptionResponse>>) = apply {
110113
this.results = results.map { it.toMutableList() }
111114
}
112115

113116
/**
114-
* Adds a single [SubscriptionResponse] to [results].
117+
* Adds a single [JournalSubscriptionResponse] to [results].
115118
*
116119
* @throws IllegalStateException if the field was previously set to a non-list.
117120
*/
118-
fun addResult(result: SubscriptionResponse) = apply {
121+
fun addResult(result: JournalSubscriptionResponse) = apply {
119122
results =
120123
(results ?: JsonField.of(mutableListOf())).also {
121124
checkKnown("results", it).add(result)
@@ -142,7 +145,7 @@ private constructor(
142145
}
143146

144147
/**
145-
* Returns an immutable instance of [CollectionResponseSubscriptionResponseNoPaging].
148+
* Returns an immutable instance of [JournalCollectionResponseSubscriptionResponseNoPaging].
146149
*
147150
* Further updates to this [Builder] will not mutate the returned instance.
148151
*
@@ -153,8 +156,8 @@ private constructor(
153156
*
154157
* @throws IllegalStateException if any required field is unset.
155158
*/
156-
fun build(): CollectionResponseSubscriptionResponseNoPaging =
157-
CollectionResponseSubscriptionResponseNoPaging(
159+
fun build(): JournalCollectionResponseSubscriptionResponseNoPaging =
160+
JournalCollectionResponseSubscriptionResponseNoPaging(
158161
checkRequired("results", results).map { it.toImmutable() },
159162
additionalProperties.toMutableMap(),
160163
)
@@ -170,7 +173,7 @@ private constructor(
170173
* @throws HubSpotInvalidDataException if any value type in this object doesn't match its
171174
* expected type.
172175
*/
173-
fun validate(): CollectionResponseSubscriptionResponseNoPaging = apply {
176+
fun validate(): JournalCollectionResponseSubscriptionResponseNoPaging = apply {
174177
if (validated) {
175178
return@apply
176179
}
@@ -201,7 +204,7 @@ private constructor(
201204
return true
202205
}
203206

204-
return other is CollectionResponseSubscriptionResponseNoPaging &&
207+
return other is JournalCollectionResponseSubscriptionResponseNoPaging &&
205208
results == other.results &&
206209
additionalProperties == other.additionalProperties
207210
}
@@ -211,5 +214,5 @@ private constructor(
211214
override fun hashCode(): Int = hashCode
212215

213216
override fun toString() =
214-
"CollectionResponseSubscriptionResponseNoPaging{results=$results, additionalProperties=$additionalProperties}"
217+
"JournalCollectionResponseSubscriptionResponseNoPaging{results=$results, additionalProperties=$additionalProperties}"
215218
}

hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/webhooksjournal/SubscriptionResponse.kt renamed to hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/webhooksjournal/JournalSubscriptionResponse.kt

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import java.util.Objects
2121
import java.util.Optional
2222
import kotlin.jvm.optionals.getOrNull
2323

24-
class SubscriptionResponse
24+
class JournalSubscriptionResponse
2525
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
2626
private constructor(
2727
private val id: JsonField<Long>,
@@ -367,7 +367,7 @@ private constructor(
367367
companion object {
368368

369369
/**
370-
* Returns a mutable builder for constructing an instance of [SubscriptionResponse].
370+
* Returns a mutable builder for constructing an instance of [JournalSubscriptionResponse].
371371
*
372372
* The following fields are required:
373373
* ```java
@@ -383,7 +383,7 @@ private constructor(
383383
@JvmStatic fun builder() = Builder()
384384
}
385385

386-
/** A builder for [SubscriptionResponse]. */
386+
/** A builder for [JournalSubscriptionResponse]. */
387387
class Builder internal constructor() {
388388

389389
private var id: JsonField<Long>? = null
@@ -404,24 +404,24 @@ private constructor(
404404
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()
405405

406406
@JvmSynthetic
407-
internal fun from(subscriptionResponse: SubscriptionResponse) = apply {
408-
id = subscriptionResponse.id
409-
actions = subscriptionResponse.actions.map { it.toMutableList() }
410-
appId = subscriptionResponse.appId
411-
createdAt = subscriptionResponse.createdAt
412-
objectTypeId = subscriptionResponse.objectTypeId
413-
subscriptionType = subscriptionResponse.subscriptionType
414-
updatedAt = subscriptionResponse.updatedAt
415-
actionOverrides = subscriptionResponse.actionOverrides
407+
internal fun from(journalSubscriptionResponse: JournalSubscriptionResponse) = apply {
408+
id = journalSubscriptionResponse.id
409+
actions = journalSubscriptionResponse.actions.map { it.toMutableList() }
410+
appId = journalSubscriptionResponse.appId
411+
createdAt = journalSubscriptionResponse.createdAt
412+
objectTypeId = journalSubscriptionResponse.objectTypeId
413+
subscriptionType = journalSubscriptionResponse.subscriptionType
414+
updatedAt = journalSubscriptionResponse.updatedAt
415+
actionOverrides = journalSubscriptionResponse.actionOverrides
416416
associatedObjectTypeIds =
417-
subscriptionResponse.associatedObjectTypeIds.map { it.toMutableList() }
418-
createdBy = subscriptionResponse.createdBy
419-
deletedAt = subscriptionResponse.deletedAt
420-
listIds = subscriptionResponse.listIds.map { it.toMutableList() }
421-
objectIds = subscriptionResponse.objectIds.map { it.toMutableList() }
422-
portalId = subscriptionResponse.portalId
423-
properties = subscriptionResponse.properties.map { it.toMutableList() }
424-
additionalProperties = subscriptionResponse.additionalProperties.toMutableMap()
417+
journalSubscriptionResponse.associatedObjectTypeIds.map { it.toMutableList() }
418+
createdBy = journalSubscriptionResponse.createdBy
419+
deletedAt = journalSubscriptionResponse.deletedAt
420+
listIds = journalSubscriptionResponse.listIds.map { it.toMutableList() }
421+
objectIds = journalSubscriptionResponse.objectIds.map { it.toMutableList() }
422+
portalId = journalSubscriptionResponse.portalId
423+
properties = journalSubscriptionResponse.properties.map { it.toMutableList() }
424+
additionalProperties = journalSubscriptionResponse.additionalProperties.toMutableMap()
425425
}
426426

427427
/** The unique identifier for the subscription, represented as an integer. */
@@ -727,7 +727,7 @@ private constructor(
727727
}
728728

729729
/**
730-
* Returns an immutable instance of [SubscriptionResponse].
730+
* Returns an immutable instance of [JournalSubscriptionResponse].
731731
*
732732
* Further updates to this [Builder] will not mutate the returned instance.
733733
*
@@ -744,8 +744,8 @@ private constructor(
744744
*
745745
* @throws IllegalStateException if any required field is unset.
746746
*/
747-
fun build(): SubscriptionResponse =
748-
SubscriptionResponse(
747+
fun build(): JournalSubscriptionResponse =
748+
JournalSubscriptionResponse(
749749
checkRequired("id", id),
750750
checkRequired("actions", actions).map { it.toImmutable() },
751751
checkRequired("appId", appId),
@@ -775,7 +775,7 @@ private constructor(
775775
* @throws HubSpotInvalidDataException if any value type in this object doesn't match its
776776
* expected type.
777777
*/
778-
fun validate(): SubscriptionResponse = apply {
778+
fun validate(): JournalSubscriptionResponse = apply {
779779
if (validated) {
780780
return@apply
781781
}
@@ -1313,7 +1313,7 @@ private constructor(
13131313
return true
13141314
}
13151315

1316-
return other is SubscriptionResponse &&
1316+
return other is JournalSubscriptionResponse &&
13171317
id == other.id &&
13181318
actions == other.actions &&
13191319
appId == other.appId &&
@@ -1356,5 +1356,5 @@ private constructor(
13561356
override fun hashCode(): Int = hashCode
13571357

13581358
override fun toString() =
1359-
"SubscriptionResponse{id=$id, actions=$actions, appId=$appId, createdAt=$createdAt, objectTypeId=$objectTypeId, subscriptionType=$subscriptionType, updatedAt=$updatedAt, actionOverrides=$actionOverrides, associatedObjectTypeIds=$associatedObjectTypeIds, createdBy=$createdBy, deletedAt=$deletedAt, listIds=$listIds, objectIds=$objectIds, portalId=$portalId, properties=$properties, additionalProperties=$additionalProperties}"
1359+
"JournalSubscriptionResponse{id=$id, actions=$actions, appId=$appId, createdAt=$createdAt, objectTypeId=$objectTypeId, subscriptionType=$subscriptionType, updatedAt=$updatedAt, actionOverrides=$actionOverrides, associatedObjectTypeIds=$associatedObjectTypeIds, createdBy=$createdBy, deletedAt=$deletedAt, listIds=$listIds, objectIds=$objectIds, portalId=$portalId, properties=$properties, additionalProperties=$additionalProperties}"
13601360
}

0 commit comments

Comments
 (0)