Skip to content

Commit

Permalink
chore(internal): codegen related update (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Jan 14, 2025
1 parent 8424b59 commit 17b408e
Show file tree
Hide file tree
Showing 11 changed files with 153 additions and 237 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,6 @@ private constructor(
val additionalProperties: Map<String, JsonValue>,
) {

override fun equals(other: Any?): Boolean {
if (this === other) {
return true
}

return /* spotless:off */ other is PreludeError && this.additionalProperties == other.additionalProperties /* spotless:on */
}

override fun hashCode(): Int {
return /* spotless:off */ Objects.hash(additionalProperties) /* spotless:on */
}

override fun toString() = "PreludeError{additionalProperties=$additionalProperties}"

fun toBuilder() = Builder().from(this)

companion object {
Expand Down Expand Up @@ -71,4 +57,16 @@ private constructor(

fun build(): PreludeError = PreludeError(additionalProperties.toImmutable())
}

override fun equals(other: Any?): Boolean {
if (this === other) {
return true
}

return /* spotless:off */ other is PreludeError && additionalProperties == other.additionalProperties /* spotless:on */
}

override fun hashCode(): Int = /* spotless:off */ Objects.hash(additionalProperties) /* spotless:on */

override fun toString() = "PreludeError{additionalProperties=$additionalProperties}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -189,17 +189,14 @@ constructor(
return true
}

return /* spotless:off */ other is TransactionalSendBody && this.templateId == other.templateId && this.to == other.to && this.callbackUrl == other.callbackUrl && this.correlationId == other.correlationId && this.expiresAt == other.expiresAt && this.from == other.from && this.variables == other.variables && this.additionalProperties == other.additionalProperties /* spotless:on */
return /* spotless:off */ other is TransactionalSendBody && templateId == other.templateId && to == other.to && callbackUrl == other.callbackUrl && correlationId == other.correlationId && expiresAt == other.expiresAt && from == other.from && variables == other.variables && additionalProperties == other.additionalProperties /* spotless:on */
}

private var hashCode: Int = 0
/* spotless:off */
private val hashCode: Int by lazy { Objects.hash(templateId, to, callbackUrl, correlationId, expiresAt, from, variables, additionalProperties) }
/* spotless:on */

override fun hashCode(): Int {
if (hashCode == 0) {
hashCode = /* spotless:off */ Objects.hash(templateId, to, callbackUrl, correlationId, expiresAt, from, variables, additionalProperties) /* spotless:on */
}
return hashCode
}
override fun hashCode(): Int = hashCode

override fun toString() =
"TransactionalSendBody{templateId=$templateId, to=$to, callbackUrl=$callbackUrl, correlationId=$correlationId, expiresAt=$expiresAt, from=$from, variables=$variables, additionalProperties=$additionalProperties}"
Expand All @@ -216,12 +213,10 @@ constructor(
return true
}

return /* spotless:off */ other is TransactionalSendParams && this.templateId == other.templateId && this.to == other.to && this.callbackUrl == other.callbackUrl && this.correlationId == other.correlationId && this.expiresAt == other.expiresAt && this.from == other.from && this.variables == other.variables && this.additionalHeaders == other.additionalHeaders && this.additionalQueryParams == other.additionalQueryParams && this.additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
return /* spotless:off */ other is TransactionalSendParams && templateId == other.templateId && to == other.to && callbackUrl == other.callbackUrl && correlationId == other.correlationId && expiresAt == other.expiresAt && from == other.from && variables == other.variables && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams && additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
}

override fun hashCode(): Int {
return /* spotless:off */ Objects.hash(templateId, to, callbackUrl, correlationId, expiresAt, from, variables, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */
}
override fun hashCode(): Int = /* spotless:off */ Objects.hash(templateId, to, callbackUrl, correlationId, expiresAt, from, variables, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */

override fun toString() =
"TransactionalSendParams{templateId=$templateId, to=$to, callbackUrl=$callbackUrl, correlationId=$correlationId, expiresAt=$expiresAt, from=$from, variables=$variables, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams, additionalBodyProperties=$additionalBodyProperties}"
Expand Down Expand Up @@ -467,17 +462,14 @@ constructor(
return true
}

return /* spotless:off */ other is Variables && this.additionalProperties == other.additionalProperties /* spotless:on */
return /* spotless:off */ other is Variables && additionalProperties == other.additionalProperties /* spotless:on */
}

private var hashCode: Int = 0
/* spotless:off */
private val hashCode: Int by lazy { Objects.hash(additionalProperties) }
/* spotless:on */

override fun hashCode(): Int {
if (hashCode == 0) {
hashCode = /* spotless:off */ Objects.hash(additionalProperties) /* spotless:on */
}
return hashCode
}
override fun hashCode(): Int = hashCode

override fun toString() = "Variables{additionalProperties=$additionalProperties}"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,17 +300,14 @@ private constructor(
return true
}

return /* spotless:off */ other is Variables && this.additionalProperties == other.additionalProperties /* spotless:on */
return /* spotless:off */ other is Variables && additionalProperties == other.additionalProperties /* spotless:on */
}

private var hashCode: Int = 0
/* spotless:off */
private val hashCode: Int by lazy { Objects.hash(additionalProperties) }
/* spotless:on */

override fun hashCode(): Int {
if (hashCode == 0) {
hashCode = /* spotless:off */ Objects.hash(additionalProperties) /* spotless:on */
}
return hashCode
}
override fun hashCode(): Int = hashCode

override fun toString() = "Variables{additionalProperties=$additionalProperties}"
}
Expand All @@ -320,17 +317,14 @@ private constructor(
return true
}

return /* spotless:off */ other is TransactionalSendResponse && this.id == other.id && this.from == other.from && this.to == other.to && this.templateId == other.templateId && this.variables == other.variables && this.callbackUrl == other.callbackUrl && this.correlationId == other.correlationId && this.expiresAt == other.expiresAt && this.createdAt == other.createdAt && this.additionalProperties == other.additionalProperties /* spotless:on */
return /* spotless:off */ other is TransactionalSendResponse && id == other.id && from == other.from && to == other.to && templateId == other.templateId && variables == other.variables && callbackUrl == other.callbackUrl && correlationId == other.correlationId && expiresAt == other.expiresAt && createdAt == other.createdAt && additionalProperties == other.additionalProperties /* spotless:on */
}

private var hashCode: Int = 0
/* spotless:off */
private val hashCode: Int by lazy { Objects.hash(id, from, to, templateId, variables, callbackUrl, correlationId, expiresAt, createdAt, additionalProperties) }
/* spotless:on */

override fun hashCode(): Int {
if (hashCode == 0) {
hashCode = /* spotless:off */ Objects.hash(id, from, to, templateId, variables, callbackUrl, correlationId, expiresAt, createdAt, additionalProperties) /* spotless:on */
}
return hashCode
}
override fun hashCode(): Int = hashCode

override fun toString() =
"TransactionalSendResponse{id=$id, from=$from, to=$to, templateId=$templateId, variables=$variables, callbackUrl=$callbackUrl, correlationId=$correlationId, expiresAt=$expiresAt, createdAt=$createdAt, additionalProperties=$additionalProperties}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,14 @@ constructor(
return true
}

return /* spotless:off */ other is VerificationCheckBody && this.code == other.code && this.target == other.target && this.additionalProperties == other.additionalProperties /* spotless:on */
return /* spotless:off */ other is VerificationCheckBody && code == other.code && target == other.target && additionalProperties == other.additionalProperties /* spotless:on */
}

private var hashCode: Int = 0
/* spotless:off */
private val hashCode: Int by lazy { Objects.hash(code, target, additionalProperties) }
/* spotless:on */

override fun hashCode(): Int {
if (hashCode == 0) {
hashCode = /* spotless:off */ Objects.hash(code, target, additionalProperties) /* spotless:on */
}
return hashCode
}
override fun hashCode(): Int = hashCode

override fun toString() =
"VerificationCheckBody{code=$code, target=$target, additionalProperties=$additionalProperties}"
Expand All @@ -144,12 +141,10 @@ constructor(
return true
}

return /* spotless:off */ other is VerificationCheckParams && this.code == other.code && this.target == other.target && this.additionalHeaders == other.additionalHeaders && this.additionalQueryParams == other.additionalQueryParams && this.additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
return /* spotless:off */ other is VerificationCheckParams && code == other.code && target == other.target && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams && additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
}

override fun hashCode(): Int {
return /* spotless:off */ Objects.hash(code, target, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */
}
override fun hashCode(): Int = /* spotless:off */ Objects.hash(code, target, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */

override fun toString() =
"VerificationCheckParams{code=$code, target=$target, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams, additionalBodyProperties=$additionalBodyProperties}"
Expand Down Expand Up @@ -396,7 +391,7 @@ constructor(
return true
}

return /* spotless:off */ other is Type && this.value == other.value /* spotless:on */
return /* spotless:off */ other is Type && value == other.value /* spotless:on */
}

override fun hashCode() = value.hashCode()
Expand Down Expand Up @@ -439,17 +434,14 @@ constructor(
return true
}

return /* spotless:off */ other is Target && this.type == other.type && this.value == other.value && this.additionalProperties == other.additionalProperties /* spotless:on */
return /* spotless:off */ other is Target && type == other.type && value == other.value && additionalProperties == other.additionalProperties /* spotless:on */
}

private var hashCode: Int = 0
/* spotless:off */
private val hashCode: Int by lazy { Objects.hash(type, value, additionalProperties) }
/* spotless:on */

override fun hashCode(): Int {
if (hashCode == 0) {
hashCode = /* spotless:off */ Objects.hash(type, value, additionalProperties) /* spotless:on */
}
return hashCode
}
override fun hashCode(): Int = hashCode

override fun toString() =
"Target{type=$type, value=$value, additionalProperties=$additionalProperties}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,17 +218,14 @@ private constructor(
return true
}

return /* spotless:off */ other is Metadata && this.correlationId == other.correlationId && this.additionalProperties == other.additionalProperties /* spotless:on */
return /* spotless:off */ other is Metadata && correlationId == other.correlationId && additionalProperties == other.additionalProperties /* spotless:on */
}

private var hashCode: Int = 0
/* spotless:off */
private val hashCode: Int by lazy { Objects.hash(correlationId, additionalProperties) }
/* spotless:on */

override fun hashCode(): Int {
if (hashCode == 0) {
hashCode = /* spotless:off */ Objects.hash(correlationId, additionalProperties) /* spotless:on */
}
return hashCode
}
override fun hashCode(): Int = hashCode

override fun toString() =
"Metadata{correlationId=$correlationId, additionalProperties=$additionalProperties}"
Expand All @@ -247,7 +244,7 @@ private constructor(
return true
}

return /* spotless:off */ other is Status && this.value == other.value /* spotless:on */
return /* spotless:off */ other is Status && value == other.value /* spotless:on */
}

override fun hashCode() = value.hashCode()
Expand Down Expand Up @@ -302,17 +299,14 @@ private constructor(
return true
}

return /* spotless:off */ other is VerificationCheckResponse && this.id == other.id && this.status == other.status && this.metadata == other.metadata && this.requestId == other.requestId && this.additionalProperties == other.additionalProperties /* spotless:on */
return /* spotless:off */ other is VerificationCheckResponse && id == other.id && status == other.status && metadata == other.metadata && requestId == other.requestId && additionalProperties == other.additionalProperties /* spotless:on */
}

private var hashCode: Int = 0
/* spotless:off */
private val hashCode: Int by lazy { Objects.hash(id, status, metadata, requestId, additionalProperties) }
/* spotless:on */

override fun hashCode(): Int {
if (hashCode == 0) {
hashCode = /* spotless:off */ Objects.hash(id, status, metadata, requestId, additionalProperties) /* spotless:on */
}
return hashCode
}
override fun hashCode(): Int = hashCode

override fun toString() =
"VerificationCheckResponse{id=$id, status=$status, metadata=$metadata, requestId=$requestId, additionalProperties=$additionalProperties}"
Expand Down
Loading

0 comments on commit 17b408e

Please sign in to comment.