@@ -18,18 +18,18 @@ import java.util.Collections
1818import java.util.Objects
1919import kotlin.jvm.optionals.getOrNull
2020
21- class CollectionResponseSubscriptionResponseNoPaging
21+ class JournalCollectionResponseSubscriptionResponseNoPaging
2222@JsonCreator(mode = JsonCreator .Mode .DISABLED )
2323private 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}
0 commit comments