Skip to content

Commit ed66f30

Browse files
stainless-botstainless-app[bot]
authored andcommitted
fix(pagination): correct hasNextPage check (#152)
1 parent 985fd9d commit ed66f30

52 files changed

Lines changed: 52 additions & 52 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/models/AccountHolderListPage.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ private constructor(
5454
"AccountHolderListPage{accountHoldersService=$accountHoldersService, params=$params, response=$response}"
5555

5656
fun hasNextPage(): Boolean {
57-
return data().isEmpty()
57+
return !data().isEmpty()
5858
}
5959

6060
fun getNextPageParams(): Optional<AccountHolderListParams> {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ private constructor(
5555
"AccountHolderListPageAsync{accountHoldersService=$accountHoldersService, params=$params, response=$response}"
5656

5757
fun hasNextPage(): Boolean {
58-
return data().isEmpty()
58+
return !data().isEmpty()
5959
}
6060

6161
fun getNextPageParams(): Optional<AccountHolderListParams> {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ private constructor(
5454
"AccountListPage{accountsService=$accountsService, params=$params, response=$response}"
5555

5656
fun hasNextPage(): Boolean {
57-
return data().isEmpty()
57+
return !data().isEmpty()
5858
}
5959

6060
fun getNextPageParams(): Optional<AccountListParams> {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ private constructor(
5555
"AccountListPageAsync{accountsService=$accountsService, params=$params, response=$response}"
5656

5757
fun hasNextPage(): Boolean {
58-
return data().isEmpty()
58+
return !data().isEmpty()
5959
}
6060

6161
fun getNextPageParams(): Optional<AccountListParams> {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ private constructor(
5454
"AggregateBalanceListPage{aggregateBalancesService=$aggregateBalancesService, params=$params, response=$response}"
5555

5656
fun hasNextPage(): Boolean {
57-
return data().isEmpty()
57+
return !data().isEmpty()
5858
}
5959

6060
fun getNextPageParams(): Optional<AggregateBalanceListParams> {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ private constructor(
5555
"AggregateBalanceListPageAsync{aggregateBalancesService=$aggregateBalancesService, params=$params, response=$response}"
5656

5757
fun hasNextPage(): Boolean {
58-
return data().isEmpty()
58+
return !data().isEmpty()
5959
}
6060

6161
fun getNextPageParams(): Optional<AggregateBalanceListParams> {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ private constructor(
5454
"AuthRuleListPage{authRulesService=$authRulesService, params=$params, response=$response}"
5555

5656
fun hasNextPage(): Boolean {
57-
return data().isEmpty()
57+
return !data().isEmpty()
5858
}
5959

6060
fun getNextPageParams(): Optional<AuthRuleListParams> {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ private constructor(
5555
"AuthRuleListPageAsync{authRulesService=$authRulesService, params=$params, response=$response}"
5656

5757
fun hasNextPage(): Boolean {
58-
return data().isEmpty()
58+
return !data().isEmpty()
5959
}
6060

6161
fun getNextPageParams(): Optional<AuthRuleListParams> {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ private constructor(
5454
"BalanceListPage{balancesService=$balancesService, params=$params, response=$response}"
5555

5656
fun hasNextPage(): Boolean {
57-
return data().isEmpty()
57+
return !data().isEmpty()
5858
}
5959

6060
fun getNextPageParams(): Optional<BalanceListParams> {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ private constructor(
5555
"BalanceListPageAsync{balancesService=$balancesService, params=$params, response=$response}"
5656

5757
fun hasNextPage(): Boolean {
58-
return data().isEmpty()
58+
return !data().isEmpty()
5959
}
6060

6161
fun getNextPageParams(): Optional<BalanceListParams> {

0 commit comments

Comments
 (0)