Skip to content

Commit df0a46a

Browse files
chore(internal): format identity methods
1 parent f36b145 commit df0a46a

399 files changed

Lines changed: 8381 additions & 2363 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

lithic-java-core/src/main/kotlin/com/lithic/api/core/Timeout.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,14 @@ private constructor(
157157
return true
158158
}
159159

160-
return /* spotless:off */ other is Timeout && connect == other.connect && read == other.read && write == other.write && request == other.request /* spotless:on */
160+
return other is Timeout &&
161+
connect == other.connect &&
162+
read == other.read &&
163+
write == other.write &&
164+
request == other.request
161165
}
162166

163-
override fun hashCode(): Int = /* spotless:off */ Objects.hash(connect, read, write, request) /* spotless:on */
167+
override fun hashCode(): Int = Objects.hash(connect, read, write, request)
164168

165169
override fun toString() =
166170
"Timeout{connect=$connect, read=$read, write=$write, request=$request}"

lithic-java-core/src/main/kotlin/com/lithic/api/models/Account.kt

Lines changed: 57 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -851,12 +851,16 @@ private constructor(
851851
return true
852852
}
853853

854-
return /* spotless:off */ other is SpendLimit && daily == other.daily && lifetime == other.lifetime && monthly == other.monthly && additionalProperties == other.additionalProperties /* spotless:on */
854+
return other is SpendLimit &&
855+
daily == other.daily &&
856+
lifetime == other.lifetime &&
857+
monthly == other.monthly &&
858+
additionalProperties == other.additionalProperties
855859
}
856860

857-
/* spotless:off */
858-
private val hashCode: Int by lazy { Objects.hash(daily, lifetime, monthly, additionalProperties) }
859-
/* spotless:on */
861+
private val hashCode: Int by lazy {
862+
Objects.hash(daily, lifetime, monthly, additionalProperties)
863+
}
860864

861865
override fun hashCode(): Int = hashCode
862866

@@ -998,7 +1002,7 @@ private constructor(
9981002
return true
9991003
}
10001004

1001-
return /* spotless:off */ other is State && value == other.value /* spotless:on */
1005+
return other is State && value == other.value
10021006
}
10031007

10041008
override fun hashCode() = value.hashCode()
@@ -1282,12 +1286,17 @@ private constructor(
12821286
return true
12831287
}
12841288

1285-
return /* spotless:off */ other is AccountHolder && token == other.token && businessAccountToken == other.businessAccountToken && email == other.email && phoneNumber == other.phoneNumber && additionalProperties == other.additionalProperties /* spotless:on */
1289+
return other is AccountHolder &&
1290+
token == other.token &&
1291+
businessAccountToken == other.businessAccountToken &&
1292+
email == other.email &&
1293+
phoneNumber == other.phoneNumber &&
1294+
additionalProperties == other.additionalProperties
12861295
}
12871296

1288-
/* spotless:off */
1289-
private val hashCode: Int by lazy { Objects.hash(token, businessAccountToken, email, phoneNumber, additionalProperties) }
1290-
/* spotless:on */
1297+
private val hashCode: Int by lazy {
1298+
Objects.hash(token, businessAccountToken, email, phoneNumber, additionalProperties)
1299+
}
12911300

12921301
override fun hashCode(): Int = hashCode
12931302

@@ -1476,7 +1485,7 @@ private constructor(
14761485
return true
14771486
}
14781487

1479-
return /* spotless:off */ other is Substatus && value == other.value /* spotless:on */
1488+
return other is Substatus && value == other.value
14801489
}
14811490

14821491
override fun hashCode() = value.hashCode()
@@ -1825,12 +1834,19 @@ private constructor(
18251834
return true
18261835
}
18271836

1828-
return /* spotless:off */ other is VerificationAddress && address1 == other.address1 && city == other.city && country == other.country && postalCode == other.postalCode && state == other.state && address2 == other.address2 && additionalProperties == other.additionalProperties /* spotless:on */
1837+
return other is VerificationAddress &&
1838+
address1 == other.address1 &&
1839+
city == other.city &&
1840+
country == other.country &&
1841+
postalCode == other.postalCode &&
1842+
state == other.state &&
1843+
address2 == other.address2 &&
1844+
additionalProperties == other.additionalProperties
18291845
}
18301846

1831-
/* spotless:off */
1832-
private val hashCode: Int by lazy { Objects.hash(address1, city, country, postalCode, state, address2, additionalProperties) }
1833-
/* spotless:on */
1847+
private val hashCode: Int by lazy {
1848+
Objects.hash(address1, city, country, postalCode, state, address2, additionalProperties)
1849+
}
18341850

18351851
override fun hashCode(): Int = hashCode
18361852

@@ -1843,12 +1859,35 @@ private constructor(
18431859
return true
18441860
}
18451861

1846-
return /* spotless:off */ other is Account && token == other.token && created == other.created && spendLimit == other.spendLimit && state == other.state && accountHolder == other.accountHolder && authRuleTokens == other.authRuleTokens && cardholderCurrency == other.cardholderCurrency && comment == other.comment && substatus == other.substatus && verificationAddress == other.verificationAddress && additionalProperties == other.additionalProperties /* spotless:on */
1862+
return other is Account &&
1863+
token == other.token &&
1864+
created == other.created &&
1865+
spendLimit == other.spendLimit &&
1866+
state == other.state &&
1867+
accountHolder == other.accountHolder &&
1868+
authRuleTokens == other.authRuleTokens &&
1869+
cardholderCurrency == other.cardholderCurrency &&
1870+
comment == other.comment &&
1871+
substatus == other.substatus &&
1872+
verificationAddress == other.verificationAddress &&
1873+
additionalProperties == other.additionalProperties
18471874
}
18481875

1849-
/* spotless:off */
1850-
private val hashCode: Int by lazy { Objects.hash(token, created, spendLimit, state, accountHolder, authRuleTokens, cardholderCurrency, comment, substatus, verificationAddress, additionalProperties) }
1851-
/* spotless:on */
1876+
private val hashCode: Int by lazy {
1877+
Objects.hash(
1878+
token,
1879+
created,
1880+
spendLimit,
1881+
state,
1882+
accountHolder,
1883+
authRuleTokens,
1884+
cardholderCurrency,
1885+
comment,
1886+
substatus,
1887+
verificationAddress,
1888+
additionalProperties,
1889+
)
1890+
}
18521891

18531892
override fun hashCode(): Int = hashCode
18541893

lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountActivityListPage.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,13 @@ private constructor(
200200
return true
201201
}
202202

203-
return /* spotless:off */ other is AccountActivityListPage && service == other.service && params == other.params && response == other.response /* spotless:on */
203+
return other is AccountActivityListPage &&
204+
service == other.service &&
205+
params == other.params &&
206+
response == other.response
204207
}
205208

206-
override fun hashCode(): Int = /* spotless:off */ Objects.hash(service, params, response) /* spotless:on */
209+
override fun hashCode(): Int = Objects.hash(service, params, response)
207210

208211
override fun toString() =
209212
"AccountActivityListPage{service=$service, params=$params, response=$response}"

lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountActivityListPageAsync.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,14 @@ private constructor(
214214
return true
215215
}
216216

217-
return /* spotless:off */ other is AccountActivityListPageAsync && service == other.service && streamHandlerExecutor == other.streamHandlerExecutor && params == other.params && response == other.response /* spotless:on */
217+
return other is AccountActivityListPageAsync &&
218+
service == other.service &&
219+
streamHandlerExecutor == other.streamHandlerExecutor &&
220+
params == other.params &&
221+
response == other.response
218222
}
219223

220-
override fun hashCode(): Int = /* spotless:off */ Objects.hash(service, streamHandlerExecutor, params, response) /* spotless:on */
224+
override fun hashCode(): Int = Objects.hash(service, streamHandlerExecutor, params, response)
221225

222226
override fun toString() =
223227
"AccountActivityListPageAsync{service=$service, streamHandlerExecutor=$streamHandlerExecutor, params=$params, response=$response}"

lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountActivityListPageResponse.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,12 +250,13 @@ private constructor(
250250
return true
251251
}
252252

253-
return /* spotless:off */ other is AccountActivityListPageResponse && data == other.data && hasMore == other.hasMore && additionalProperties == other.additionalProperties /* spotless:on */
253+
return other is AccountActivityListPageResponse &&
254+
data == other.data &&
255+
hasMore == other.hasMore &&
256+
additionalProperties == other.additionalProperties
254257
}
255258

256-
/* spotless:off */
257259
private val hashCode: Int by lazy { Objects.hash(data, hasMore, additionalProperties) }
258-
/* spotless:on */
259260

260261
override fun hashCode(): Int = hashCode
261262

lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountActivityListParams.kt

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ private constructor(
563563
return true
564564
}
565565

566-
return /* spotless:off */ other is TransactionCategory && value == other.value /* spotless:on */
566+
return other is TransactionCategory && value == other.value
567567
}
568568

569569
override fun hashCode() = value.hashCode()
@@ -688,7 +688,7 @@ private constructor(
688688
return true
689689
}
690690

691-
return /* spotless:off */ other is Result && value == other.value /* spotless:on */
691+
return other is Result && value == other.value
692692
}
693693

694694
override fun hashCode() = value.hashCode()
@@ -843,7 +843,7 @@ private constructor(
843843
return true
844844
}
845845

846-
return /* spotless:off */ other is Status && value == other.value /* spotless:on */
846+
return other is Status && value == other.value
847847
}
848848

849849
override fun hashCode() = value.hashCode()
@@ -856,10 +856,36 @@ private constructor(
856856
return true
857857
}
858858

859-
return /* spotless:off */ other is AccountActivityListParams && begin == other.begin && businessAccountToken == other.businessAccountToken && category == other.category && end == other.end && endingBefore == other.endingBefore && financialAccountToken == other.financialAccountToken && pageSize == other.pageSize && result == other.result && startingAfter == other.startingAfter && status == other.status && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
859+
return other is AccountActivityListParams &&
860+
begin == other.begin &&
861+
businessAccountToken == other.businessAccountToken &&
862+
category == other.category &&
863+
end == other.end &&
864+
endingBefore == other.endingBefore &&
865+
financialAccountToken == other.financialAccountToken &&
866+
pageSize == other.pageSize &&
867+
result == other.result &&
868+
startingAfter == other.startingAfter &&
869+
status == other.status &&
870+
additionalHeaders == other.additionalHeaders &&
871+
additionalQueryParams == other.additionalQueryParams
860872
}
861873

862-
override fun hashCode(): Int = /* spotless:off */ Objects.hash(begin, businessAccountToken, category, end, endingBefore, financialAccountToken, pageSize, result, startingAfter, status, additionalHeaders, additionalQueryParams) /* spotless:on */
874+
override fun hashCode(): Int =
875+
Objects.hash(
876+
begin,
877+
businessAccountToken,
878+
category,
879+
end,
880+
endingBefore,
881+
financialAccountToken,
882+
pageSize,
883+
result,
884+
startingAfter,
885+
status,
886+
additionalHeaders,
887+
additionalQueryParams,
888+
)
863889

864890
override fun toString() =
865891
"AccountActivityListParams{begin=$begin, businessAccountToken=$businessAccountToken, category=$category, end=$end, endingBefore=$endingBefore, financialAccountToken=$financialAccountToken, pageSize=$pageSize, result=$result, startingAfter=$startingAfter, status=$status, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"

0 commit comments

Comments
 (0)