Skip to content

Commit

Permalink
style(internal): reduce verbosity of identity methods (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Nov 20, 2024
1 parent 7c2116f commit a8aa61f
Show file tree
Hide file tree
Showing 300 changed files with 3,580 additions and 5,737 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@ private constructor(
return true
}

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

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ private constructor(
return true
}

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

override fun hashCode() = value.hashCode()
Expand Down Expand Up @@ -394,7 +394,7 @@ private constructor(
return true
}

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

override fun hashCode() = value.hashCode()
Expand Down Expand Up @@ -547,7 +547,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 @@ -608,17 +608,14 @@ private constructor(
return true
}

return /* spotless:off */ other is AccountCollectionFlow && this.id == other.id && this.object_ == other.object_ && this.liveMode == other.liveMode && this.createdAt == other.createdAt && this.updatedAt == other.updatedAt && this.clientToken == other.clientToken && this.status == other.status && this.counterpartyId == other.counterpartyId && this.externalAccountId == other.externalAccountId && this.paymentTypes == other.paymentTypes && this.receivingCountries == other.receivingCountries && this.additionalProperties == other.additionalProperties /* spotless:on */
return /* spotless:off */ other is AccountCollectionFlow && id == other.id && object_ == other.object_ && liveMode == other.liveMode && createdAt == other.createdAt && updatedAt == other.updatedAt && clientToken == other.clientToken && status == other.status && counterpartyId == other.counterpartyId && externalAccountId == other.externalAccountId && paymentTypes == other.paymentTypes && receivingCountries == other.receivingCountries && additionalProperties == other.additionalProperties /* spotless:on */
}

private var hashCode: Int = 0
/* spotless:off */
private val hashCode: Int by lazy { Objects.hash(id, object_, liveMode, createdAt, updatedAt, clientToken, status, counterpartyId, externalAccountId, paymentTypes, receivingCountries, additionalProperties) }
/* spotless:on */

override fun hashCode(): Int {
if (hashCode == 0) {
hashCode = /* spotless:off */ Objects.hash(id, object_, liveMode, createdAt, updatedAt, clientToken, status, counterpartyId, externalAccountId, paymentTypes, receivingCountries, additionalProperties) /* spotless:on */
}
return hashCode
}
override fun hashCode(): Int = hashCode

override fun toString() =
"AccountCollectionFlow{id=$id, object_=$object_, liveMode=$liveMode, createdAt=$createdAt, updatedAt=$updatedAt, clientToken=$clientToken, status=$status, counterpartyId=$counterpartyId, externalAccountId=$externalAccountId, paymentTypes=$paymentTypes, receivingCountries=$receivingCountries, additionalProperties=$additionalProperties}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,17 +141,14 @@ constructor(
return true
}

return /* spotless:off */ other is AccountCollectionFlowCreateBody && this.counterpartyId == other.counterpartyId && this.paymentTypes == other.paymentTypes && this.receivingCountries == other.receivingCountries && this.additionalProperties == other.additionalProperties /* spotless:on */
return /* spotless:off */ other is AccountCollectionFlowCreateBody && counterpartyId == other.counterpartyId && paymentTypes == other.paymentTypes && receivingCountries == other.receivingCountries && additionalProperties == other.additionalProperties /* spotless:on */
}

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

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

override fun toString() =
"AccountCollectionFlowCreateBody{counterpartyId=$counterpartyId, paymentTypes=$paymentTypes, receivingCountries=$receivingCountries, additionalProperties=$additionalProperties}"
Expand All @@ -168,12 +165,10 @@ constructor(
return true
}

return /* spotless:off */ other is AccountCollectionFlowCreateParams && this.counterpartyId == other.counterpartyId && this.paymentTypes == other.paymentTypes && this.receivingCountries == other.receivingCountries && this.additionalHeaders == other.additionalHeaders && this.additionalQueryParams == other.additionalQueryParams && this.additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
return /* spotless:off */ other is AccountCollectionFlowCreateParams && counterpartyId == other.counterpartyId && paymentTypes == other.paymentTypes && receivingCountries == other.receivingCountries && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams && additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
}

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

override fun toString() =
"AccountCollectionFlowCreateParams{counterpartyId=$counterpartyId, paymentTypes=$paymentTypes, receivingCountries=$receivingCountries, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams, additionalBodyProperties=$additionalBodyProperties}"
Expand Down Expand Up @@ -372,7 +367,7 @@ constructor(
return true
}

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

override fun hashCode() = value.hashCode()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,10 @@ private constructor(
return true
}

return /* spotless:off */ other is AccountCollectionFlowListPage && this.accountCollectionFlowsService == other.accountCollectionFlowsService && this.params == other.params && this.response == other.response /* spotless:on */
return /* spotless:off */ other is AccountCollectionFlowListPage && accountCollectionFlowsService == other.accountCollectionFlowsService && params == other.params && response == other.response /* spotless:on */
}

override fun hashCode(): Int {
return /* spotless:off */ Objects.hash(accountCollectionFlowsService, params, response) /* spotless:on */
}
override fun hashCode(): Int = /* spotless:off */ Objects.hash(accountCollectionFlowsService, params, response) /* spotless:on */

override fun toString() =
"AccountCollectionFlowListPage{accountCollectionFlowsService=$accountCollectionFlowsService, params=$params, response=$response}"
Expand Down Expand Up @@ -125,15 +123,13 @@ private constructor(
return true
}

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

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

override fun toString() =
"AccountCollectionFlowListPage.Response{items=$items, additionalProperties=$additionalProperties}"
"Response{items=$items, additionalProperties=$additionalProperties}"

companion object {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,10 @@ private constructor(
return true
}

return /* spotless:off */ other is AccountCollectionFlowListPageAsync && this.accountCollectionFlowsService == other.accountCollectionFlowsService && this.params == other.params && this.response == other.response /* spotless:on */
return /* spotless:off */ other is AccountCollectionFlowListPageAsync && accountCollectionFlowsService == other.accountCollectionFlowsService && params == other.params && response == other.response /* spotless:on */
}

override fun hashCode(): Int {
return /* spotless:off */ Objects.hash(accountCollectionFlowsService, params, response) /* spotless:on */
}
override fun hashCode(): Int = /* spotless:off */ Objects.hash(accountCollectionFlowsService, params, response) /* spotless:on */

override fun toString() =
"AccountCollectionFlowListPageAsync{accountCollectionFlowsService=$accountCollectionFlowsService, params=$params, response=$response}"
Expand Down Expand Up @@ -128,15 +126,13 @@ private constructor(
return true
}

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

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

override fun toString() =
"AccountCollectionFlowListPageAsync.Response{items=$items, additionalProperties=$additionalProperties}"
"Response{items=$items, additionalProperties=$additionalProperties}"

companion object {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,10 @@ constructor(
return true
}

return /* spotless:off */ other is AccountCollectionFlowListParams && this.afterCursor == other.afterCursor && this.clientToken == other.clientToken && this.counterpartyId == other.counterpartyId && this.externalAccountId == other.externalAccountId && this.perPage == other.perPage && this.status == other.status && this.additionalHeaders == other.additionalHeaders && this.additionalQueryParams == other.additionalQueryParams /* spotless:on */
return /* spotless:off */ other is AccountCollectionFlowListParams && afterCursor == other.afterCursor && clientToken == other.clientToken && counterpartyId == other.counterpartyId && externalAccountId == other.externalAccountId && perPage == other.perPage && status == other.status && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
}

override fun hashCode(): Int {
return /* spotless:off */ Objects.hash(afterCursor, clientToken, counterpartyId, externalAccountId, perPage, status, additionalHeaders, additionalQueryParams) /* spotless:on */
}
override fun hashCode(): Int = /* spotless:off */ Objects.hash(afterCursor, clientToken, counterpartyId, externalAccountId, perPage, status, additionalHeaders, additionalQueryParams) /* spotless:on */

override fun toString() =
"AccountCollectionFlowListParams{afterCursor=$afterCursor, clientToken=$clientToken, counterpartyId=$counterpartyId, externalAccountId=$externalAccountId, perPage=$perPage, status=$status, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,10 @@ constructor(
return true
}

return /* spotless:off */ other is AccountCollectionFlowRetrieveParams && this.id == other.id && this.additionalHeaders == other.additionalHeaders && this.additionalQueryParams == other.additionalQueryParams /* spotless:on */
return /* spotless:off */ other is AccountCollectionFlowRetrieveParams && id == other.id && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
}

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

override fun toString() =
"AccountCollectionFlowRetrieveParams{id=$id, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
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 AccountCollectionFlowUpdateBody && this.status == other.status && this.additionalProperties == other.additionalProperties /* spotless:on */
return /* spotless:off */ other is AccountCollectionFlowUpdateBody && status == other.status && additionalProperties == other.additionalProperties /* spotless:on */
}

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

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

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

return /* spotless:off */ other is AccountCollectionFlowUpdateParams && this.id == other.id && this.status == other.status && this.additionalHeaders == other.additionalHeaders && this.additionalQueryParams == other.additionalQueryParams && this.additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
return /* spotless:off */ other is AccountCollectionFlowUpdateParams && id == other.id && status == other.status && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams && additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
}

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

override fun toString() =
"AccountCollectionFlowUpdateParams{id=$id, status=$status, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams, additionalBodyProperties=$additionalBodyProperties}"
Expand Down Expand Up @@ -331,7 +326,7 @@ 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
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ private constructor(
return true
}

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

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

return /* spotless:off */ other is AccountDetail && this.id == other.id && this.object_ == other.object_ && this.liveMode == other.liveMode && this.createdAt == other.createdAt && this.updatedAt == other.updatedAt && this.discardedAt == other.discardedAt && this.accountNumber == other.accountNumber && this.accountNumberType == other.accountNumberType && this.accountNumberSafe == other.accountNumberSafe && this.additionalProperties == other.additionalProperties /* spotless:on */
return /* spotless:off */ other is AccountDetail && id == other.id && object_ == other.object_ && liveMode == other.liveMode && createdAt == other.createdAt && updatedAt == other.updatedAt && discardedAt == other.discardedAt && accountNumber == other.accountNumber && accountNumberType == other.accountNumberType && accountNumberSafe == other.accountNumberSafe && additionalProperties == other.additionalProperties /* spotless:on */
}

private var hashCode: Int = 0
/* spotless:off */
private val hashCode: Int by lazy { Objects.hash(id, object_, liveMode, createdAt, updatedAt, discardedAt, accountNumber, accountNumberType, accountNumberSafe, additionalProperties) }
/* spotless:on */

override fun hashCode(): Int {
if (hashCode == 0) {
hashCode = /* spotless:off */ Objects.hash(id, object_, liveMode, createdAt, updatedAt, discardedAt, accountNumber, accountNumberType, accountNumberSafe, additionalProperties) /* spotless:on */
}
return hashCode
}
override fun hashCode(): Int = hashCode

override fun toString() =
"AccountDetail{id=$id, object_=$object_, liveMode=$liveMode, createdAt=$createdAt, updatedAt=$updatedAt, discardedAt=$discardedAt, accountNumber=$accountNumber, accountNumberType=$accountNumberType, accountNumberSafe=$accountNumberSafe, additionalProperties=$additionalProperties}"
Expand Down
Loading

0 comments on commit a8aa61f

Please sign in to comment.