From 90f7c993a426713f980b561f8ea0410f6e4079e5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 29 Nov 2024 18:57:54 +0000 Subject: [PATCH 01/23] chore(internal): codegen related update (#346) --- .../api/models/HrisDirectoryListIndividualsPage.kt | 7 +------ .../api/models/HrisDirectoryListIndividualsPageAsync.kt | 7 +------ .../com/tryfinch/api/models/HrisDirectoryListPage.kt | 7 +------ .../com/tryfinch/api/models/HrisDirectoryListPageAsync.kt | 7 +------ .../kotlin/com/tryfinch/api/models/JobAutomatedListPage.kt | 7 +------ .../com/tryfinch/api/models/JobAutomatedListPageAsync.kt | 7 +------ 6 files changed, 6 insertions(+), 36 deletions(-) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListIndividualsPage.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListIndividualsPage.kt index 06a17fa0..9ab6f318 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListIndividualsPage.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListIndividualsPage.kt @@ -45,12 +45,7 @@ private constructor( "HrisDirectoryListIndividualsPage{directoryService=$directoryService, params=$params, response=$response}" fun hasNextPage(): Boolean { - if (individuals().isEmpty()) { - return false - } - - return paging().offset().orElse(0) + individuals().count() < - paging().count().orElse(Long.MAX_VALUE) + return !individuals().isEmpty() } fun getNextPageParams(): Optional { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListIndividualsPageAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListIndividualsPageAsync.kt index b5ea48eb..347dc98e 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListIndividualsPageAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListIndividualsPageAsync.kt @@ -46,12 +46,7 @@ private constructor( "HrisDirectoryListIndividualsPageAsync{directoryService=$directoryService, params=$params, response=$response}" fun hasNextPage(): Boolean { - if (individuals().isEmpty()) { - return false - } - - return paging().offset().orElse(0) + individuals().count() < - paging().count().orElse(Long.MAX_VALUE) + return !individuals().isEmpty() } fun getNextPageParams(): Optional { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListPage.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListPage.kt index cb1901ea..a72ee4ff 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListPage.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListPage.kt @@ -45,12 +45,7 @@ private constructor( "HrisDirectoryListPage{directoryService=$directoryService, params=$params, response=$response}" fun hasNextPage(): Boolean { - if (individuals().isEmpty()) { - return false - } - - return paging().offset().orElse(0) + individuals().count() < - paging().count().orElse(Long.MAX_VALUE) + return !individuals().isEmpty() } fun getNextPageParams(): Optional { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListPageAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListPageAsync.kt index 4177505f..3ab7e847 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListPageAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListPageAsync.kt @@ -46,12 +46,7 @@ private constructor( "HrisDirectoryListPageAsync{directoryService=$directoryService, params=$params, response=$response}" fun hasNextPage(): Boolean { - if (individuals().isEmpty()) { - return false - } - - return paging().offset().orElse(0) + individuals().count() < - paging().count().orElse(Long.MAX_VALUE) + return !individuals().isEmpty() } fun getNextPageParams(): Optional { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedListPage.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedListPage.kt index ccc8bf1c..a83fe3eb 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedListPage.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedListPage.kt @@ -45,12 +45,7 @@ private constructor( "JobAutomatedListPage{automatedService=$automatedService, params=$params, response=$response}" fun hasNextPage(): Boolean { - if (data().isEmpty()) { - return false - } - - return paging().offset().orElse(0) + data().count() < - paging().count().orElse(Long.MAX_VALUE) + return !data().isEmpty() } fun getNextPageParams(): Optional { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedListPageAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedListPageAsync.kt index f7e942bb..aca6d42c 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedListPageAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedListPageAsync.kt @@ -46,12 +46,7 @@ private constructor( "JobAutomatedListPageAsync{automatedService=$automatedService, params=$params, response=$response}" fun hasNextPage(): Boolean { - if (data().isEmpty()) { - return false - } - - return paging().offset().orElse(0) + data().count() < - paging().count().orElse(Long.MAX_VALUE) + return !data().isEmpty() } fun getNextPageParams(): Optional { From 24a83c8bd325655cff1b13bdb33691a79c4de8ef Mon Sep 17 00:00:00 2001 From: stainless-bot Date: Tue, 3 Dec 2024 20:41:47 +0000 Subject: [PATCH 02/23] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index eacfbb3f..68800dd7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 38 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-2526a31a361274411e6cfc64858b1b084a22ffb491a9490374b717534827b3e1.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-f07b743d2ab438d7cdb6b7cfa8c0b3859ec148f84027baebbb50c6ff56cb6aef.yml From 1f7f08fdb0fac4043baa61ea2153529fad1fe8a1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 4 Dec 2024 21:29:15 +0000 Subject: [PATCH 03/23] feat(api): api update (#348) --- .stats.yml | 2 +- .../tryfinch/api/models/AccountUpdateEvent.kt | 27 +++- .../com/tryfinch/api/models/EmploymentData.kt | 128 +++++++++++++++++- .../api/models/EmploymentUpdateResponse.kt | 116 +++++++++++++++- .../com/tryfinch/api/models/Provider.kt | 27 +++- .../models/SandboxDirectoryCreateParams.kt | 107 ++++++++++++++- .../models/SandboxEmploymentUpdateParams.kt | 125 ++++++++++++++++- .../api/models/EmploymentDataResponseTest.kt | 2 + .../tryfinch/api/models/EmploymentDataTest.kt | 3 + .../models/EmploymentUpdateResponseTest.kt | 3 + .../com/tryfinch/api/models/ProviderTest.kt | 2 + .../SandboxDirectoryCreateParamsTest.kt | 12 ++ .../SandboxEmploymentUpdateParamsTest.kt | 4 + .../blocking/sandbox/DirectoryServiceTest.kt | 5 + .../blocking/sandbox/EmploymentServiceTest.kt | 1 + 15 files changed, 542 insertions(+), 22 deletions(-) diff --git a/.stats.yml b/.stats.yml index 68800dd7..b450e80e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 38 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-f07b743d2ab438d7cdb6b7cfa8c0b3859ec148f84027baebbb50c6ff56cb6aef.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-1d705472a04ca3f84ed5fe8878b537e6359cab6c48cdfd3cd08656473e373f80.yml diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountUpdateEvent.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountUpdateEvent.kt index 0602e000..db6762ec 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountUpdateEvent.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountUpdateEvent.kt @@ -2029,6 +2029,7 @@ private constructor( private val startDate: JsonField, private val endDate: JsonField, private val isActive: JsonField, + private val employmentStatus: JsonField, private val incomeHistory: JsonField, private val classCode: JsonField, private val customFields: JsonField, @@ -2064,6 +2065,9 @@ private constructor( fun isActive(): Optional = Optional.ofNullable(isActive.getNullable("is_active")) + fun employmentStatus(): Optional = + Optional.ofNullable(employmentStatus.getNullable("employment_status")) + fun incomeHistory(): Optional = Optional.ofNullable(incomeHistory.getNullable("income_history")) @@ -2104,6 +2108,10 @@ private constructor( @JsonProperty("is_active") @ExcludeMissing fun _isActive() = isActive + @JsonProperty("employment_status") + @ExcludeMissing + fun _employmentStatus() = employmentStatus + @JsonProperty("income_history") @ExcludeMissing fun _incomeHistory() = incomeHistory @@ -2138,6 +2146,7 @@ private constructor( startDate() endDate() isActive() + employmentStatus() incomeHistory() classCode() customFields() @@ -2167,6 +2176,7 @@ private constructor( private var startDate: JsonField = JsonMissing.of() private var endDate: JsonField = JsonMissing.of() private var isActive: JsonField = JsonMissing.of() + private var employmentStatus: JsonField = JsonMissing.of() private var incomeHistory: JsonField = JsonMissing.of() private var classCode: JsonField = JsonMissing.of() private var customFields: JsonField = JsonMissing.of() @@ -2189,6 +2199,7 @@ private constructor( this.startDate = supportedEmploymentFields.startDate this.endDate = supportedEmploymentFields.endDate this.isActive = supportedEmploymentFields.isActive + this.employmentStatus = supportedEmploymentFields.employmentStatus this.incomeHistory = supportedEmploymentFields.incomeHistory this.classCode = supportedEmploymentFields.classCode this.customFields = supportedEmploymentFields.customFields @@ -2258,6 +2269,15 @@ private constructor( this.isActive = isActive } + fun employmentStatus(employmentStatus: Boolean) = + employmentStatus(JsonField.of(employmentStatus)) + + @JsonProperty("employment_status") + @ExcludeMissing + fun employmentStatus(employmentStatus: JsonField) = apply { + this.employmentStatus = employmentStatus + } + fun incomeHistory(incomeHistory: Boolean) = incomeHistory(JsonField.of(incomeHistory)) @@ -2347,6 +2367,7 @@ private constructor( startDate, endDate, isActive, + employmentStatus, incomeHistory, classCode, customFields, @@ -2948,17 +2969,17 @@ private constructor( return true } - return /* spotless:off */ other is SupportedEmploymentFields && id == other.id && firstName == other.firstName && middleName == other.middleName && lastName == other.lastName && title == other.title && startDate == other.startDate && endDate == other.endDate && isActive == other.isActive && incomeHistory == other.incomeHistory && classCode == other.classCode && customFields == other.customFields && department == other.department && employment == other.employment && income == other.income && location == other.location && manager == other.manager && additionalProperties == other.additionalProperties /* spotless:on */ + return /* spotless:off */ other is SupportedEmploymentFields && id == other.id && firstName == other.firstName && middleName == other.middleName && lastName == other.lastName && title == other.title && startDate == other.startDate && endDate == other.endDate && isActive == other.isActive && employmentStatus == other.employmentStatus && incomeHistory == other.incomeHistory && classCode == other.classCode && customFields == other.customFields && department == other.department && employment == other.employment && income == other.income && location == other.location && manager == other.manager && additionalProperties == other.additionalProperties /* spotless:on */ } /* spotless:off */ - private val hashCode: Int by lazy { Objects.hash(id, firstName, middleName, lastName, title, startDate, endDate, isActive, incomeHistory, classCode, customFields, department, employment, income, location, manager, additionalProperties) } + private val hashCode: Int by lazy { Objects.hash(id, firstName, middleName, lastName, title, startDate, endDate, isActive, employmentStatus, incomeHistory, classCode, customFields, department, employment, income, location, manager, additionalProperties) } /* spotless:on */ override fun hashCode(): Int = hashCode override fun toString() = - "SupportedEmploymentFields{id=$id, firstName=$firstName, middleName=$middleName, lastName=$lastName, title=$title, startDate=$startDate, endDate=$endDate, isActive=$isActive, incomeHistory=$incomeHistory, classCode=$classCode, customFields=$customFields, department=$department, employment=$employment, income=$income, location=$location, manager=$manager, additionalProperties=$additionalProperties}" + "SupportedEmploymentFields{id=$id, firstName=$firstName, middleName=$middleName, lastName=$lastName, title=$title, startDate=$startDate, endDate=$endDate, isActive=$isActive, employmentStatus=$employmentStatus, incomeHistory=$incomeHistory, classCode=$classCode, customFields=$customFields, department=$department, employment=$employment, income=$income, location=$location, manager=$manager, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = SupportedIndividualFields.Builder::class) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentData.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentData.kt index dda7c866..25520db1 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentData.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentData.kt @@ -34,6 +34,7 @@ private constructor( private val endDate: JsonField, private val latestRehireDate: JsonField, private val isActive: JsonField, + private val employmentStatus: JsonField, private val classCode: JsonField, private val location: JsonField, private val income: JsonField, @@ -82,6 +83,13 @@ private constructor( /** `true` if the individual an an active employee or contractor at the company. */ fun isActive(): Optional = Optional.ofNullable(isActive.getNullable("is_active")) + /** + * The detailed employment status of the individual. Available options: `active`, `deceased`, + * `leave`, `onboarding`, `prehire`, `retired`, `terminated`. + */ + fun employmentStatus(): Optional = + Optional.ofNullable(employmentStatus.getNullable("employment_status")) + /** Worker's compensation classification code for this employee */ fun classCode(): Optional = Optional.ofNullable(classCode.getNullable("class_code")) @@ -144,6 +152,12 @@ private constructor( /** `true` if the individual an an active employee or contractor at the company. */ @JsonProperty("is_active") @ExcludeMissing fun _isActive() = isActive + /** + * The detailed employment status of the individual. Available options: `active`, `deceased`, + * `leave`, `onboarding`, `prehire`, `retired`, `terminated`. + */ + @JsonProperty("employment_status") @ExcludeMissing fun _employmentStatus() = employmentStatus + /** Worker's compensation classification code for this employee */ @JsonProperty("class_code") @ExcludeMissing fun _classCode() = classCode @@ -189,6 +203,7 @@ private constructor( endDate() latestRehireDate() isActive() + employmentStatus() classCode() location().map { it.validate() } income().map { it.validate() } @@ -221,6 +236,7 @@ private constructor( private var endDate: JsonField = JsonMissing.of() private var latestRehireDate: JsonField = JsonMissing.of() private var isActive: JsonField = JsonMissing.of() + private var employmentStatus: JsonField = JsonMissing.of() private var classCode: JsonField = JsonMissing.of() private var location: JsonField = JsonMissing.of() private var income: JsonField = JsonMissing.of() @@ -244,6 +260,7 @@ private constructor( this.endDate = employmentData.endDate this.latestRehireDate = employmentData.latestRehireDate this.isActive = employmentData.isActive + this.employmentStatus = employmentData.employmentStatus this.classCode = employmentData.classCode this.location = employmentData.location this.income = employmentData.income @@ -345,6 +362,23 @@ private constructor( @ExcludeMissing fun isActive(isActive: JsonField) = apply { this.isActive = isActive } + /** + * The detailed employment status of the individual. Available options: `active`, + * `deceased`, `leave`, `onboarding`, `prehire`, `retired`, `terminated`. + */ + fun employmentStatus(employmentStatus: EmploymentStatus) = + employmentStatus(JsonField.of(employmentStatus)) + + /** + * The detailed employment status of the individual. Available options: `active`, + * `deceased`, `leave`, `onboarding`, `prehire`, `retired`, `terminated`. + */ + @JsonProperty("employment_status") + @ExcludeMissing + fun employmentStatus(employmentStatus: JsonField) = apply { + this.employmentStatus = employmentStatus + } + /** Worker's compensation classification code for this employee */ fun classCode(classCode: String) = classCode(JsonField.of(classCode)) @@ -445,6 +479,7 @@ private constructor( endDate, latestRehireDate, isActive, + employmentStatus, classCode, location, income, @@ -905,6 +940,93 @@ private constructor( "Employment{type=$type, subtype=$subtype, additionalProperties=$additionalProperties}" } + class EmploymentStatus + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EmploymentStatus && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() + + companion object { + + @JvmField val ACTIVE = EmploymentStatus(JsonField.of("active")) + + @JvmField val DECEASED = EmploymentStatus(JsonField.of("deceased")) + + @JvmField val LEAVE = EmploymentStatus(JsonField.of("leave")) + + @JvmField val ONBOARDING = EmploymentStatus(JsonField.of("onboarding")) + + @JvmField val PREHIRE = EmploymentStatus(JsonField.of("prehire")) + + @JvmField val RETIRED = EmploymentStatus(JsonField.of("retired")) + + @JvmField val TERMINATED = EmploymentStatus(JsonField.of("terminated")) + + @JvmStatic fun of(value: String) = EmploymentStatus(JsonField.of(value)) + } + + enum class Known { + ACTIVE, + DECEASED, + LEAVE, + ONBOARDING, + PREHIRE, + RETIRED, + TERMINATED, + } + + enum class Value { + ACTIVE, + DECEASED, + LEAVE, + ONBOARDING, + PREHIRE, + RETIRED, + TERMINATED, + _UNKNOWN, + } + + fun value(): Value = + when (this) { + ACTIVE -> Value.ACTIVE + DECEASED -> Value.DECEASED + LEAVE -> Value.LEAVE + ONBOARDING -> Value.ONBOARDING + PREHIRE -> Value.PREHIRE + RETIRED -> Value.RETIRED + TERMINATED -> Value.TERMINATED + else -> Value._UNKNOWN + } + + fun known(): Known = + when (this) { + ACTIVE -> Known.ACTIVE + DECEASED -> Known.DECEASED + LEAVE -> Known.LEAVE + ONBOARDING -> Known.ONBOARDING + PREHIRE -> Known.PREHIRE + RETIRED -> Known.RETIRED + TERMINATED -> Known.TERMINATED + else -> throw FinchInvalidDataException("Unknown EmploymentStatus: $value") + } + + fun asString(): String = _value().asStringOrThrow() + } + /** The manager object representing the manager of the individual within the org. */ @JsonDeserialize(builder = Manager.Builder::class) @NoAutoDetect @@ -998,15 +1120,15 @@ private constructor( return true } - return /* spotless:off */ other is EmploymentData && id == other.id && firstName == other.firstName && middleName == other.middleName && lastName == other.lastName && title == other.title && manager == other.manager && department == other.department && employment == other.employment && startDate == other.startDate && endDate == other.endDate && latestRehireDate == other.latestRehireDate && isActive == other.isActive && classCode == other.classCode && location == other.location && income == other.income && incomeHistory == other.incomeHistory && customFields == other.customFields && sourceId == other.sourceId && workId == other.workId && additionalProperties == other.additionalProperties /* spotless:on */ + return /* spotless:off */ other is EmploymentData && id == other.id && firstName == other.firstName && middleName == other.middleName && lastName == other.lastName && title == other.title && manager == other.manager && department == other.department && employment == other.employment && startDate == other.startDate && endDate == other.endDate && latestRehireDate == other.latestRehireDate && isActive == other.isActive && employmentStatus == other.employmentStatus && classCode == other.classCode && location == other.location && income == other.income && incomeHistory == other.incomeHistory && customFields == other.customFields && sourceId == other.sourceId && workId == other.workId && additionalProperties == other.additionalProperties /* spotless:on */ } /* spotless:off */ - private val hashCode: Int by lazy { Objects.hash(id, firstName, middleName, lastName, title, manager, department, employment, startDate, endDate, latestRehireDate, isActive, classCode, location, income, incomeHistory, customFields, sourceId, workId, additionalProperties) } + private val hashCode: Int by lazy { Objects.hash(id, firstName, middleName, lastName, title, manager, department, employment, startDate, endDate, latestRehireDate, isActive, employmentStatus, classCode, location, income, incomeHistory, customFields, sourceId, workId, additionalProperties) } /* spotless:on */ override fun hashCode(): Int = hashCode override fun toString() = - "EmploymentData{id=$id, firstName=$firstName, middleName=$middleName, lastName=$lastName, title=$title, manager=$manager, department=$department, employment=$employment, startDate=$startDate, endDate=$endDate, latestRehireDate=$latestRehireDate, isActive=$isActive, classCode=$classCode, location=$location, income=$income, incomeHistory=$incomeHistory, customFields=$customFields, sourceId=$sourceId, workId=$workId, additionalProperties=$additionalProperties}" + "EmploymentData{id=$id, firstName=$firstName, middleName=$middleName, lastName=$lastName, title=$title, manager=$manager, department=$department, employment=$employment, startDate=$startDate, endDate=$endDate, latestRehireDate=$latestRehireDate, isActive=$isActive, employmentStatus=$employmentStatus, classCode=$classCode, location=$location, income=$income, incomeHistory=$incomeHistory, customFields=$customFields, sourceId=$sourceId, workId=$workId, additionalProperties=$additionalProperties}" } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentUpdateResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentUpdateResponse.kt index 9a68fa76..4b883c44 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentUpdateResponse.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentUpdateResponse.kt @@ -33,6 +33,7 @@ private constructor( private val endDate: JsonField, private val latestRehireDate: JsonField, private val isActive: JsonField, + private val employmentStatus: JsonField, private val classCode: JsonField, private val location: JsonField, private val income: JsonField, @@ -78,6 +79,10 @@ private constructor( /** `true` if the individual an an active employee or contractor at the company. */ fun isActive(): Optional = Optional.ofNullable(isActive.getNullable("is_active")) + /** The detailed employment status of the individual. */ + fun employmentStatus(): Optional = + Optional.ofNullable(employmentStatus.getNullable("employment_status")) + /** Worker's compensation classification code for this employee */ fun classCode(): Optional = Optional.ofNullable(classCode.getNullable("class_code")) @@ -137,6 +142,9 @@ private constructor( /** `true` if the individual an an active employee or contractor at the company. */ @JsonProperty("is_active") @ExcludeMissing fun _isActive() = isActive + /** The detailed employment status of the individual. */ + @JsonProperty("employment_status") @ExcludeMissing fun _employmentStatus() = employmentStatus + /** Worker's compensation classification code for this employee */ @JsonProperty("class_code") @ExcludeMissing fun _classCode() = classCode @@ -181,6 +189,7 @@ private constructor( endDate() latestRehireDate() isActive() + employmentStatus() classCode() location().map { it.validate() } income().map { it.validate() } @@ -212,6 +221,7 @@ private constructor( private var endDate: JsonField = JsonMissing.of() private var latestRehireDate: JsonField = JsonMissing.of() private var isActive: JsonField = JsonMissing.of() + private var employmentStatus: JsonField = JsonMissing.of() private var classCode: JsonField = JsonMissing.of() private var location: JsonField = JsonMissing.of() private var income: JsonField = JsonMissing.of() @@ -234,6 +244,7 @@ private constructor( this.endDate = employmentUpdateResponse.endDate this.latestRehireDate = employmentUpdateResponse.latestRehireDate this.isActive = employmentUpdateResponse.isActive + this.employmentStatus = employmentUpdateResponse.employmentStatus this.classCode = employmentUpdateResponse.classCode this.location = employmentUpdateResponse.location this.income = employmentUpdateResponse.income @@ -329,6 +340,17 @@ private constructor( @ExcludeMissing fun isActive(isActive: JsonField) = apply { this.isActive = isActive } + /** The detailed employment status of the individual. */ + fun employmentStatus(employmentStatus: EmploymentStatus) = + employmentStatus(JsonField.of(employmentStatus)) + + /** The detailed employment status of the individual. */ + @JsonProperty("employment_status") + @ExcludeMissing + fun employmentStatus(employmentStatus: JsonField) = apply { + this.employmentStatus = employmentStatus + } + /** Worker's compensation classification code for this employee */ fun classCode(classCode: String) = classCode(JsonField.of(classCode)) @@ -426,6 +448,7 @@ private constructor( endDate, latestRehireDate, isActive, + employmentStatus, classCode, location, income, @@ -886,6 +909,93 @@ private constructor( "Employment{type=$type, subtype=$subtype, additionalProperties=$additionalProperties}" } + class EmploymentStatus + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EmploymentStatus && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() + + companion object { + + @JvmField val ACTIVE = EmploymentStatus(JsonField.of("active")) + + @JvmField val DECEASED = EmploymentStatus(JsonField.of("deceased")) + + @JvmField val LEAVE = EmploymentStatus(JsonField.of("leave")) + + @JvmField val ONBOARDING = EmploymentStatus(JsonField.of("onboarding")) + + @JvmField val PREHIRE = EmploymentStatus(JsonField.of("prehire")) + + @JvmField val RETIRED = EmploymentStatus(JsonField.of("retired")) + + @JvmField val TERMINATED = EmploymentStatus(JsonField.of("terminated")) + + @JvmStatic fun of(value: String) = EmploymentStatus(JsonField.of(value)) + } + + enum class Known { + ACTIVE, + DECEASED, + LEAVE, + ONBOARDING, + PREHIRE, + RETIRED, + TERMINATED, + } + + enum class Value { + ACTIVE, + DECEASED, + LEAVE, + ONBOARDING, + PREHIRE, + RETIRED, + TERMINATED, + _UNKNOWN, + } + + fun value(): Value = + when (this) { + ACTIVE -> Value.ACTIVE + DECEASED -> Value.DECEASED + LEAVE -> Value.LEAVE + ONBOARDING -> Value.ONBOARDING + PREHIRE -> Value.PREHIRE + RETIRED -> Value.RETIRED + TERMINATED -> Value.TERMINATED + else -> Value._UNKNOWN + } + + fun known(): Known = + when (this) { + ACTIVE -> Known.ACTIVE + DECEASED -> Known.DECEASED + LEAVE -> Known.LEAVE + ONBOARDING -> Known.ONBOARDING + PREHIRE -> Known.PREHIRE + RETIRED -> Known.RETIRED + TERMINATED -> Known.TERMINATED + else -> throw FinchInvalidDataException("Unknown EmploymentStatus: $value") + } + + fun asString(): String = _value().asStringOrThrow() + } + /** The manager object representing the manager of the individual within the org. */ @JsonDeserialize(builder = Manager.Builder::class) @NoAutoDetect @@ -979,15 +1089,15 @@ private constructor( return true } - return /* spotless:off */ other is EmploymentUpdateResponse && firstName == other.firstName && middleName == other.middleName && lastName == other.lastName && title == other.title && manager == other.manager && department == other.department && employment == other.employment && startDate == other.startDate && endDate == other.endDate && latestRehireDate == other.latestRehireDate && isActive == other.isActive && classCode == other.classCode && location == other.location && income == other.income && incomeHistory == other.incomeHistory && customFields == other.customFields && sourceId == other.sourceId && id == other.id && additionalProperties == other.additionalProperties /* spotless:on */ + return /* spotless:off */ other is EmploymentUpdateResponse && firstName == other.firstName && middleName == other.middleName && lastName == other.lastName && title == other.title && manager == other.manager && department == other.department && employment == other.employment && startDate == other.startDate && endDate == other.endDate && latestRehireDate == other.latestRehireDate && isActive == other.isActive && employmentStatus == other.employmentStatus && classCode == other.classCode && location == other.location && income == other.income && incomeHistory == other.incomeHistory && customFields == other.customFields && sourceId == other.sourceId && id == other.id && additionalProperties == other.additionalProperties /* spotless:on */ } /* spotless:off */ - private val hashCode: Int by lazy { Objects.hash(firstName, middleName, lastName, title, manager, department, employment, startDate, endDate, latestRehireDate, isActive, classCode, location, income, incomeHistory, customFields, sourceId, id, additionalProperties) } + private val hashCode: Int by lazy { Objects.hash(firstName, middleName, lastName, title, manager, department, employment, startDate, endDate, latestRehireDate, isActive, employmentStatus, classCode, location, income, incomeHistory, customFields, sourceId, id, additionalProperties) } /* spotless:on */ override fun hashCode(): Int = hashCode override fun toString() = - "EmploymentUpdateResponse{firstName=$firstName, middleName=$middleName, lastName=$lastName, title=$title, manager=$manager, department=$department, employment=$employment, startDate=$startDate, endDate=$endDate, latestRehireDate=$latestRehireDate, isActive=$isActive, classCode=$classCode, location=$location, income=$income, incomeHistory=$incomeHistory, customFields=$customFields, sourceId=$sourceId, id=$id, additionalProperties=$additionalProperties}" + "EmploymentUpdateResponse{firstName=$firstName, middleName=$middleName, lastName=$lastName, title=$title, manager=$manager, department=$department, employment=$employment, startDate=$startDate, endDate=$endDate, latestRehireDate=$latestRehireDate, isActive=$isActive, employmentStatus=$employmentStatus, classCode=$classCode, location=$location, income=$income, incomeHistory=$incomeHistory, customFields=$customFields, sourceId=$sourceId, id=$id, additionalProperties=$additionalProperties}" } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Provider.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Provider.kt index 5528ce08..86b48fed 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Provider.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Provider.kt @@ -1990,6 +1990,7 @@ private constructor( private val startDate: JsonField, private val endDate: JsonField, private val isActive: JsonField, + private val employmentStatus: JsonField, private val incomeHistory: JsonField, private val classCode: JsonField, private val customFields: JsonField, @@ -2025,6 +2026,9 @@ private constructor( fun isActive(): Optional = Optional.ofNullable(isActive.getNullable("is_active")) + fun employmentStatus(): Optional = + Optional.ofNullable(employmentStatus.getNullable("employment_status")) + fun incomeHistory(): Optional = Optional.ofNullable(incomeHistory.getNullable("income_history")) @@ -2064,6 +2068,10 @@ private constructor( @JsonProperty("is_active") @ExcludeMissing fun _isActive() = isActive + @JsonProperty("employment_status") + @ExcludeMissing + fun _employmentStatus() = employmentStatus + @JsonProperty("income_history") @ExcludeMissing fun _incomeHistory() = incomeHistory @JsonProperty("class_code") @ExcludeMissing fun _classCode() = classCode @@ -2094,6 +2102,7 @@ private constructor( startDate() endDate() isActive() + employmentStatus() incomeHistory() classCode() customFields() @@ -2123,6 +2132,7 @@ private constructor( private var startDate: JsonField = JsonMissing.of() private var endDate: JsonField = JsonMissing.of() private var isActive: JsonField = JsonMissing.of() + private var employmentStatus: JsonField = JsonMissing.of() private var incomeHistory: JsonField = JsonMissing.of() private var classCode: JsonField = JsonMissing.of() private var customFields: JsonField = JsonMissing.of() @@ -2144,6 +2154,7 @@ private constructor( this.startDate = supportedEmploymentFields.startDate this.endDate = supportedEmploymentFields.endDate this.isActive = supportedEmploymentFields.isActive + this.employmentStatus = supportedEmploymentFields.employmentStatus this.incomeHistory = supportedEmploymentFields.incomeHistory this.classCode = supportedEmploymentFields.classCode this.customFields = supportedEmploymentFields.customFields @@ -2209,6 +2220,15 @@ private constructor( @ExcludeMissing fun isActive(isActive: JsonField) = apply { this.isActive = isActive } + fun employmentStatus(employmentStatus: Boolean) = + employmentStatus(JsonField.of(employmentStatus)) + + @JsonProperty("employment_status") + @ExcludeMissing + fun employmentStatus(employmentStatus: JsonField) = apply { + this.employmentStatus = employmentStatus + } + fun incomeHistory(incomeHistory: Boolean) = incomeHistory(JsonField.of(incomeHistory)) @@ -2294,6 +2314,7 @@ private constructor( startDate, endDate, isActive, + employmentStatus, incomeHistory, classCode, customFields, @@ -2883,17 +2904,17 @@ private constructor( return true } - return /* spotless:off */ other is SupportedEmploymentFields && id == other.id && firstName == other.firstName && middleName == other.middleName && lastName == other.lastName && title == other.title && startDate == other.startDate && endDate == other.endDate && isActive == other.isActive && incomeHistory == other.incomeHistory && classCode == other.classCode && customFields == other.customFields && department == other.department && employment == other.employment && income == other.income && location == other.location && manager == other.manager && additionalProperties == other.additionalProperties /* spotless:on */ + return /* spotless:off */ other is SupportedEmploymentFields && id == other.id && firstName == other.firstName && middleName == other.middleName && lastName == other.lastName && title == other.title && startDate == other.startDate && endDate == other.endDate && isActive == other.isActive && employmentStatus == other.employmentStatus && incomeHistory == other.incomeHistory && classCode == other.classCode && customFields == other.customFields && department == other.department && employment == other.employment && income == other.income && location == other.location && manager == other.manager && additionalProperties == other.additionalProperties /* spotless:on */ } /* spotless:off */ - private val hashCode: Int by lazy { Objects.hash(id, firstName, middleName, lastName, title, startDate, endDate, isActive, incomeHistory, classCode, customFields, department, employment, income, location, manager, additionalProperties) } + private val hashCode: Int by lazy { Objects.hash(id, firstName, middleName, lastName, title, startDate, endDate, isActive, employmentStatus, incomeHistory, classCode, customFields, department, employment, income, location, manager, additionalProperties) } /* spotless:on */ override fun hashCode(): Int = hashCode override fun toString() = - "SupportedEmploymentFields{id=$id, firstName=$firstName, middleName=$middleName, lastName=$lastName, title=$title, startDate=$startDate, endDate=$endDate, isActive=$isActive, incomeHistory=$incomeHistory, classCode=$classCode, customFields=$customFields, department=$department, employment=$employment, income=$income, location=$location, manager=$manager, additionalProperties=$additionalProperties}" + "SupportedEmploymentFields{id=$id, firstName=$firstName, middleName=$middleName, lastName=$lastName, title=$title, startDate=$startDate, endDate=$endDate, isActive=$isActive, employmentStatus=$employmentStatus, incomeHistory=$incomeHistory, classCode=$classCode, customFields=$customFields, department=$department, employment=$employment, income=$income, location=$location, manager=$manager, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = SupportedIndividualFields.Builder::class) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxDirectoryCreateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxDirectoryCreateParams.kt index 148b2f54..bb966530 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxDirectoryCreateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxDirectoryCreateParams.kt @@ -265,6 +265,7 @@ constructor( private val endDate: String?, private val latestRehireDate: String?, private val isActive: Boolean?, + private val employmentStatus: EmploymentStatus?, private val classCode: String?, private val location: Location?, private val income: Income?, @@ -335,6 +336,10 @@ constructor( /** `true` if the individual an an active employee or contractor at the company. */ @JsonProperty("is_active") fun isActive(): Boolean? = isActive + /** The detailed employment status of the individual. */ + @JsonProperty("employment_status") + fun employmentStatus(): EmploymentStatus? = employmentStatus + /** Worker's compensation classification code for this employee */ @JsonProperty("class_code") fun classCode(): String? = classCode @@ -392,6 +397,7 @@ constructor( private var endDate: String? = null private var latestRehireDate: String? = null private var isActive: Boolean? = null + private var employmentStatus: EmploymentStatus? = null private var classCode: String? = null private var location: Location? = null private var income: Income? = null @@ -422,6 +428,7 @@ constructor( this.endDate = individualOrEmployment.endDate this.latestRehireDate = individualOrEmployment.latestRehireDate this.isActive = individualOrEmployment.isActive + this.employmentStatus = individualOrEmployment.employmentStatus this.classCode = individualOrEmployment.classCode this.location = individualOrEmployment.location this.income = individualOrEmployment.income @@ -511,6 +518,12 @@ constructor( @JsonProperty("is_active") fun isActive(isActive: Boolean) = apply { this.isActive = isActive } + /** The detailed employment status of the individual. */ + @JsonProperty("employment_status") + fun employmentStatus(employmentStatus: EmploymentStatus) = apply { + this.employmentStatus = employmentStatus + } + /** Worker's compensation classification code for this employee */ @JsonProperty("class_code") fun classCode(classCode: String) = apply { this.classCode = classCode } @@ -580,6 +593,7 @@ constructor( endDate, latestRehireDate, isActive, + employmentStatus, classCode, location, income, @@ -1117,6 +1131,93 @@ constructor( "Employment{type=$type, subtype=$subtype, additionalProperties=$additionalProperties}" } + class EmploymentStatus + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EmploymentStatus && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() + + companion object { + + @JvmField val ACTIVE = EmploymentStatus(JsonField.of("active")) + + @JvmField val DECEASED = EmploymentStatus(JsonField.of("deceased")) + + @JvmField val LEAVE = EmploymentStatus(JsonField.of("leave")) + + @JvmField val ONBOARDING = EmploymentStatus(JsonField.of("onboarding")) + + @JvmField val PREHIRE = EmploymentStatus(JsonField.of("prehire")) + + @JvmField val RETIRED = EmploymentStatus(JsonField.of("retired")) + + @JvmField val TERMINATED = EmploymentStatus(JsonField.of("terminated")) + + @JvmStatic fun of(value: String) = EmploymentStatus(JsonField.of(value)) + } + + enum class Known { + ACTIVE, + DECEASED, + LEAVE, + ONBOARDING, + PREHIRE, + RETIRED, + TERMINATED, + } + + enum class Value { + ACTIVE, + DECEASED, + LEAVE, + ONBOARDING, + PREHIRE, + RETIRED, + TERMINATED, + _UNKNOWN, + } + + fun value(): Value = + when (this) { + ACTIVE -> Value.ACTIVE + DECEASED -> Value.DECEASED + LEAVE -> Value.LEAVE + ONBOARDING -> Value.ONBOARDING + PREHIRE -> Value.PREHIRE + RETIRED -> Value.RETIRED + TERMINATED -> Value.TERMINATED + else -> Value._UNKNOWN + } + + fun known(): Known = + when (this) { + ACTIVE -> Known.ACTIVE + DECEASED -> Known.DECEASED + LEAVE -> Known.LEAVE + ONBOARDING -> Known.ONBOARDING + PREHIRE -> Known.PREHIRE + RETIRED -> Known.RETIRED + TERMINATED -> Known.TERMINATED + else -> throw FinchInvalidDataException("Unknown EmploymentStatus: $value") + } + + fun asString(): String = _value().asStringOrThrow() + } + class Ethnicity @JsonCreator private constructor( @@ -1500,17 +1601,17 @@ constructor( return true } - return /* spotless:off */ other is IndividualOrEmployment && firstName == other.firstName && middleName == other.middleName && lastName == other.lastName && preferredName == other.preferredName && emails == other.emails && phoneNumbers == other.phoneNumbers && gender == other.gender && ethnicity == other.ethnicity && dob == other.dob && ssn == other.ssn && encryptedSsn == other.encryptedSsn && residence == other.residence && title == other.title && manager == other.manager && department == other.department && employment == other.employment && startDate == other.startDate && endDate == other.endDate && latestRehireDate == other.latestRehireDate && isActive == other.isActive && classCode == other.classCode && location == other.location && income == other.income && incomeHistory == other.incomeHistory && customFields == other.customFields && sourceId == other.sourceId && additionalProperties == other.additionalProperties /* spotless:on */ + return /* spotless:off */ other is IndividualOrEmployment && firstName == other.firstName && middleName == other.middleName && lastName == other.lastName && preferredName == other.preferredName && emails == other.emails && phoneNumbers == other.phoneNumbers && gender == other.gender && ethnicity == other.ethnicity && dob == other.dob && ssn == other.ssn && encryptedSsn == other.encryptedSsn && residence == other.residence && title == other.title && manager == other.manager && department == other.department && employment == other.employment && startDate == other.startDate && endDate == other.endDate && latestRehireDate == other.latestRehireDate && isActive == other.isActive && employmentStatus == other.employmentStatus && classCode == other.classCode && location == other.location && income == other.income && incomeHistory == other.incomeHistory && customFields == other.customFields && sourceId == other.sourceId && additionalProperties == other.additionalProperties /* spotless:on */ } /* spotless:off */ - private val hashCode: Int by lazy { Objects.hash(firstName, middleName, lastName, preferredName, emails, phoneNumbers, gender, ethnicity, dob, ssn, encryptedSsn, residence, title, manager, department, employment, startDate, endDate, latestRehireDate, isActive, classCode, location, income, incomeHistory, customFields, sourceId, additionalProperties) } + private val hashCode: Int by lazy { Objects.hash(firstName, middleName, lastName, preferredName, emails, phoneNumbers, gender, ethnicity, dob, ssn, encryptedSsn, residence, title, manager, department, employment, startDate, endDate, latestRehireDate, isActive, employmentStatus, classCode, location, income, incomeHistory, customFields, sourceId, additionalProperties) } /* spotless:on */ override fun hashCode(): Int = hashCode override fun toString() = - "IndividualOrEmployment{firstName=$firstName, middleName=$middleName, lastName=$lastName, preferredName=$preferredName, emails=$emails, phoneNumbers=$phoneNumbers, gender=$gender, ethnicity=$ethnicity, dob=$dob, ssn=$ssn, encryptedSsn=$encryptedSsn, residence=$residence, title=$title, manager=$manager, department=$department, employment=$employment, startDate=$startDate, endDate=$endDate, latestRehireDate=$latestRehireDate, isActive=$isActive, classCode=$classCode, location=$location, income=$income, incomeHistory=$incomeHistory, customFields=$customFields, sourceId=$sourceId, additionalProperties=$additionalProperties}" + "IndividualOrEmployment{firstName=$firstName, middleName=$middleName, lastName=$lastName, preferredName=$preferredName, emails=$emails, phoneNumbers=$phoneNumbers, gender=$gender, ethnicity=$ethnicity, dob=$dob, ssn=$ssn, encryptedSsn=$encryptedSsn, residence=$residence, title=$title, manager=$manager, department=$department, employment=$employment, startDate=$startDate, endDate=$endDate, latestRehireDate=$latestRehireDate, isActive=$isActive, employmentStatus=$employmentStatus, classCode=$classCode, location=$location, income=$income, incomeHistory=$incomeHistory, customFields=$customFields, sourceId=$sourceId, additionalProperties=$additionalProperties}" } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxEmploymentUpdateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxEmploymentUpdateParams.kt index c7e1f146..1224df8f 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxEmploymentUpdateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxEmploymentUpdateParams.kt @@ -27,6 +27,7 @@ constructor( private val customFields: List?, private val department: Department?, private val employment: Employment?, + private val employmentStatus: EmploymentStatus?, private val endDate: String?, private val firstName: String?, private val income: Income?, @@ -55,6 +56,8 @@ constructor( fun employment(): Optional = Optional.ofNullable(employment) + fun employmentStatus(): Optional = Optional.ofNullable(employmentStatus) + fun endDate(): Optional = Optional.ofNullable(endDate) fun firstName(): Optional = Optional.ofNullable(firstName) @@ -94,6 +97,7 @@ constructor( customFields, department, employment, + employmentStatus, endDate, firstName, income, @@ -130,6 +134,7 @@ constructor( private val customFields: List?, private val department: Department?, private val employment: Employment?, + private val employmentStatus: EmploymentStatus?, private val endDate: String?, private val firstName: String?, private val income: Income?, @@ -161,6 +166,10 @@ constructor( /** The employment object. */ @JsonProperty("employment") fun employment(): Employment? = employment + /** The detailed employment status of the individual. */ + @JsonProperty("employment_status") + fun employmentStatus(): EmploymentStatus? = employmentStatus + @JsonProperty("end_date") fun endDate(): String? = endDate /** The legal first name of the individual. */ @@ -217,6 +226,7 @@ constructor( private var customFields: List? = null private var department: Department? = null private var employment: Employment? = null + private var employmentStatus: EmploymentStatus? = null private var endDate: String? = null private var firstName: String? = null private var income: Income? = null @@ -238,6 +248,7 @@ constructor( this.customFields = sandboxEmploymentUpdateBody.customFields this.department = sandboxEmploymentUpdateBody.department this.employment = sandboxEmploymentUpdateBody.employment + this.employmentStatus = sandboxEmploymentUpdateBody.employmentStatus this.endDate = sandboxEmploymentUpdateBody.endDate this.firstName = sandboxEmploymentUpdateBody.firstName this.income = sandboxEmploymentUpdateBody.income @@ -275,6 +286,12 @@ constructor( @JsonProperty("employment") fun employment(employment: Employment) = apply { this.employment = employment } + /** The detailed employment status of the individual. */ + @JsonProperty("employment_status") + fun employmentStatus(employmentStatus: EmploymentStatus) = apply { + this.employmentStatus = employmentStatus + } + @JsonProperty("end_date") fun endDate(endDate: String) = apply { this.endDate = endDate } @@ -349,6 +366,7 @@ constructor( customFields?.toImmutable(), department, employment, + employmentStatus, endDate, firstName, income, @@ -371,17 +389,17 @@ constructor( return true } - return /* spotless:off */ other is SandboxEmploymentUpdateBody && classCode == other.classCode && customFields == other.customFields && department == other.department && employment == other.employment && endDate == other.endDate && firstName == other.firstName && income == other.income && incomeHistory == other.incomeHistory && isActive == other.isActive && lastName == other.lastName && latestRehireDate == other.latestRehireDate && location == other.location && manager == other.manager && middleName == other.middleName && sourceId == other.sourceId && startDate == other.startDate && title == other.title && additionalProperties == other.additionalProperties /* spotless:on */ + return /* spotless:off */ other is SandboxEmploymentUpdateBody && classCode == other.classCode && customFields == other.customFields && department == other.department && employment == other.employment && employmentStatus == other.employmentStatus && endDate == other.endDate && firstName == other.firstName && income == other.income && incomeHistory == other.incomeHistory && isActive == other.isActive && lastName == other.lastName && latestRehireDate == other.latestRehireDate && location == other.location && manager == other.manager && middleName == other.middleName && sourceId == other.sourceId && startDate == other.startDate && title == other.title && additionalProperties == other.additionalProperties /* spotless:on */ } /* spotless:off */ - private val hashCode: Int by lazy { Objects.hash(classCode, customFields, department, employment, endDate, firstName, income, incomeHistory, isActive, lastName, latestRehireDate, location, manager, middleName, sourceId, startDate, title, additionalProperties) } + private val hashCode: Int by lazy { Objects.hash(classCode, customFields, department, employment, employmentStatus, endDate, firstName, income, incomeHistory, isActive, lastName, latestRehireDate, location, manager, middleName, sourceId, startDate, title, additionalProperties) } /* spotless:on */ override fun hashCode(): Int = hashCode override fun toString() = - "SandboxEmploymentUpdateBody{classCode=$classCode, customFields=$customFields, department=$department, employment=$employment, endDate=$endDate, firstName=$firstName, income=$income, incomeHistory=$incomeHistory, isActive=$isActive, lastName=$lastName, latestRehireDate=$latestRehireDate, location=$location, manager=$manager, middleName=$middleName, sourceId=$sourceId, startDate=$startDate, title=$title, additionalProperties=$additionalProperties}" + "SandboxEmploymentUpdateBody{classCode=$classCode, customFields=$customFields, department=$department, employment=$employment, employmentStatus=$employmentStatus, endDate=$endDate, firstName=$firstName, income=$income, incomeHistory=$incomeHistory, isActive=$isActive, lastName=$lastName, latestRehireDate=$latestRehireDate, location=$location, manager=$manager, middleName=$middleName, sourceId=$sourceId, startDate=$startDate, title=$title, additionalProperties=$additionalProperties}" } fun toBuilder() = Builder().from(this) @@ -399,6 +417,7 @@ constructor( private var customFields: MutableList = mutableListOf() private var department: Department? = null private var employment: Employment? = null + private var employmentStatus: EmploymentStatus? = null private var endDate: String? = null private var firstName: String? = null private var income: Income? = null @@ -424,6 +443,7 @@ constructor( sandboxEmploymentUpdateParams.customFields?.toMutableList() ?: mutableListOf() department = sandboxEmploymentUpdateParams.department employment = sandboxEmploymentUpdateParams.employment + employmentStatus = sandboxEmploymentUpdateParams.employmentStatus endDate = sandboxEmploymentUpdateParams.endDate firstName = sandboxEmploymentUpdateParams.firstName income = sandboxEmploymentUpdateParams.income @@ -470,6 +490,11 @@ constructor( /** The employment object. */ fun employment(employment: Employment) = apply { this.employment = employment } + /** The detailed employment status of the individual. */ + fun employmentStatus(employmentStatus: EmploymentStatus) = apply { + this.employmentStatus = employmentStatus + } + fun endDate(endDate: String) = apply { this.endDate = endDate } /** The legal first name of the individual. */ @@ -646,6 +671,7 @@ constructor( customFields.toImmutable().ifEmpty { null }, department, employment, + employmentStatus, endDate, firstName, income, @@ -1049,6 +1075,93 @@ constructor( "Employment{type=$type, subtype=$subtype, additionalProperties=$additionalProperties}" } + class EmploymentStatus + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EmploymentStatus && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() + + companion object { + + @JvmField val ACTIVE = EmploymentStatus(JsonField.of("active")) + + @JvmField val DECEASED = EmploymentStatus(JsonField.of("deceased")) + + @JvmField val LEAVE = EmploymentStatus(JsonField.of("leave")) + + @JvmField val ONBOARDING = EmploymentStatus(JsonField.of("onboarding")) + + @JvmField val PREHIRE = EmploymentStatus(JsonField.of("prehire")) + + @JvmField val RETIRED = EmploymentStatus(JsonField.of("retired")) + + @JvmField val TERMINATED = EmploymentStatus(JsonField.of("terminated")) + + @JvmStatic fun of(value: String) = EmploymentStatus(JsonField.of(value)) + } + + enum class Known { + ACTIVE, + DECEASED, + LEAVE, + ONBOARDING, + PREHIRE, + RETIRED, + TERMINATED, + } + + enum class Value { + ACTIVE, + DECEASED, + LEAVE, + ONBOARDING, + PREHIRE, + RETIRED, + TERMINATED, + _UNKNOWN, + } + + fun value(): Value = + when (this) { + ACTIVE -> Value.ACTIVE + DECEASED -> Value.DECEASED + LEAVE -> Value.LEAVE + ONBOARDING -> Value.ONBOARDING + PREHIRE -> Value.PREHIRE + RETIRED -> Value.RETIRED + TERMINATED -> Value.TERMINATED + else -> Value._UNKNOWN + } + + fun known(): Known = + when (this) { + ACTIVE -> Known.ACTIVE + DECEASED -> Known.DECEASED + LEAVE -> Known.LEAVE + ONBOARDING -> Known.ONBOARDING + PREHIRE -> Known.PREHIRE + RETIRED -> Known.RETIRED + TERMINATED -> Known.TERMINATED + else -> throw FinchInvalidDataException("Unknown EmploymentStatus: $value") + } + + fun asString(): String = _value().asStringOrThrow() + } + /** The manager object representing the manager of the individual within the org. */ @JsonDeserialize(builder = Manager.Builder::class) @NoAutoDetect @@ -1125,11 +1238,11 @@ constructor( return true } - return /* spotless:off */ other is SandboxEmploymentUpdateParams && individualId == other.individualId && classCode == other.classCode && customFields == other.customFields && department == other.department && employment == other.employment && endDate == other.endDate && firstName == other.firstName && income == other.income && incomeHistory == other.incomeHistory && isActive == other.isActive && lastName == other.lastName && latestRehireDate == other.latestRehireDate && location == other.location && manager == other.manager && middleName == other.middleName && sourceId == other.sourceId && startDate == other.startDate && title == other.title && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams && additionalBodyProperties == other.additionalBodyProperties /* spotless:on */ + return /* spotless:off */ other is SandboxEmploymentUpdateParams && individualId == other.individualId && classCode == other.classCode && customFields == other.customFields && department == other.department && employment == other.employment && employmentStatus == other.employmentStatus && endDate == other.endDate && firstName == other.firstName && income == other.income && incomeHistory == other.incomeHistory && isActive == other.isActive && lastName == other.lastName && latestRehireDate == other.latestRehireDate && location == other.location && manager == other.manager && middleName == other.middleName && sourceId == other.sourceId && startDate == other.startDate && title == other.title && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams && additionalBodyProperties == other.additionalBodyProperties /* spotless:on */ } - override fun hashCode(): Int = /* spotless:off */ Objects.hash(individualId, classCode, customFields, department, employment, endDate, firstName, income, incomeHistory, isActive, lastName, latestRehireDate, location, manager, middleName, sourceId, startDate, title, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */ + override fun hashCode(): Int = /* spotless:off */ Objects.hash(individualId, classCode, customFields, department, employment, employmentStatus, endDate, firstName, income, incomeHistory, isActive, lastName, latestRehireDate, location, manager, middleName, sourceId, startDate, title, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */ override fun toString() = - "SandboxEmploymentUpdateParams{individualId=$individualId, classCode=$classCode, customFields=$customFields, department=$department, employment=$employment, endDate=$endDate, firstName=$firstName, income=$income, incomeHistory=$incomeHistory, isActive=$isActive, lastName=$lastName, latestRehireDate=$latestRehireDate, location=$location, manager=$manager, middleName=$middleName, sourceId=$sourceId, startDate=$startDate, title=$title, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams, additionalBodyProperties=$additionalBodyProperties}" + "SandboxEmploymentUpdateParams{individualId=$individualId, classCode=$classCode, customFields=$customFields, department=$department, employment=$employment, employmentStatus=$employmentStatus, endDate=$endDate, firstName=$firstName, income=$income, incomeHistory=$incomeHistory, isActive=$isActive, lastName=$lastName, latestRehireDate=$latestRehireDate, location=$location, manager=$manager, middleName=$middleName, sourceId=$sourceId, startDate=$startDate, title=$title, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams, additionalBodyProperties=$additionalBodyProperties}" } diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/EmploymentDataResponseTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/EmploymentDataResponseTest.kt index b6970cb2..b09c2cae 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/EmploymentDataResponseTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/EmploymentDataResponseTest.kt @@ -31,6 +31,7 @@ class EmploymentDataResponseTest { .type(EmploymentData.Employment.Type.EMPLOYEE) .build() ) + .employmentStatus(EmploymentData.EmploymentStatus.ACTIVE) .endDate("end_date") .firstName("first_name") .income( @@ -98,6 +99,7 @@ class EmploymentDataResponseTest { .type(EmploymentData.Employment.Type.EMPLOYEE) .build() ) + .employmentStatus(EmploymentData.EmploymentStatus.ACTIVE) .endDate("end_date") .firstName("first_name") .income( diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/EmploymentDataTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/EmploymentDataTest.kt index 7df0aa35..e941eb13 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/EmploymentDataTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/EmploymentDataTest.kt @@ -29,6 +29,7 @@ class EmploymentDataTest { .type(EmploymentData.Employment.Type.EMPLOYEE) .build() ) + .employmentStatus(EmploymentData.EmploymentStatus.ACTIVE) .endDate("end_date") .firstName("first_name") .income( @@ -90,6 +91,8 @@ class EmploymentDataTest { .type(EmploymentData.Employment.Type.EMPLOYEE) .build() ) + assertThat(employmentData.employmentStatus()) + .contains(EmploymentData.EmploymentStatus.ACTIVE) assertThat(employmentData.endDate()).contains("end_date") assertThat(employmentData.firstName()).contains("first_name") assertThat(employmentData.income()) diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/EmploymentUpdateResponseTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/EmploymentUpdateResponseTest.kt index dc8e1154..0c0a48d3 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/EmploymentUpdateResponseTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/EmploymentUpdateResponseTest.kt @@ -29,6 +29,7 @@ class EmploymentUpdateResponseTest { .type(EmploymentUpdateResponse.Employment.Type.EMPLOYEE) .build() ) + .employmentStatus(EmploymentUpdateResponse.EmploymentStatus.ACTIVE) .endDate("end_date") .firstName("first_name") .income( @@ -89,6 +90,8 @@ class EmploymentUpdateResponseTest { .type(EmploymentUpdateResponse.Employment.Type.EMPLOYEE) .build() ) + assertThat(employmentUpdateResponse.employmentStatus()) + .contains(EmploymentUpdateResponse.EmploymentStatus.ACTIVE) assertThat(employmentUpdateResponse.endDate()).contains("end_date") assertThat(employmentUpdateResponse.firstName()).contains("first_name") assertThat(employmentUpdateResponse.income()) diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/ProviderTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/ProviderTest.kt index 54086d9b..56d8dcc5 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/ProviderTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/ProviderTest.kt @@ -830,6 +830,7 @@ class ProviderTest { .type(true) .build() ) + .employmentStatus(true) .endDate(true) .firstName(true) .income( @@ -1819,6 +1820,7 @@ class ProviderTest { .type(true) .build() ) + .employmentStatus(true) .endDate(true) .firstName(true) .income( diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxDirectoryCreateParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxDirectoryCreateParamsTest.kt index 295706c9..42726812 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxDirectoryCreateParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxDirectoryCreateParamsTest.kt @@ -57,6 +57,10 @@ class SandboxDirectoryCreateParamsTest { ) .build() ) + .employmentStatus( + SandboxDirectoryCreateParams.IndividualOrEmployment.EmploymentStatus + .ACTIVE + ) .encryptedSsn("encrypted_ssn") .endDate("end_date") .ethnicity( @@ -195,6 +199,10 @@ class SandboxDirectoryCreateParamsTest { ) .build() ) + .employmentStatus( + SandboxDirectoryCreateParams.IndividualOrEmployment.EmploymentStatus + .ACTIVE + ) .encryptedSsn("encrypted_ssn") .endDate("end_date") .ethnicity( @@ -327,6 +335,10 @@ class SandboxDirectoryCreateParamsTest { ) .build() ) + .employmentStatus( + SandboxDirectoryCreateParams.IndividualOrEmployment.EmploymentStatus + .ACTIVE + ) .encryptedSsn("encrypted_ssn") .endDate("end_date") .ethnicity( diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxEmploymentUpdateParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxEmploymentUpdateParamsTest.kt index a8f9263b..750d82a8 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxEmploymentUpdateParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxEmploymentUpdateParamsTest.kt @@ -29,6 +29,7 @@ class SandboxEmploymentUpdateParamsTest { .type(SandboxEmploymentUpdateParams.Employment.Type.EMPLOYEE) .build() ) + .employmentStatus(SandboxEmploymentUpdateParams.EmploymentStatus.ACTIVE) .endDate("end_date") .firstName("first_name") .income( @@ -93,6 +94,7 @@ class SandboxEmploymentUpdateParamsTest { .type(SandboxEmploymentUpdateParams.Employment.Type.EMPLOYEE) .build() ) + .employmentStatus(SandboxEmploymentUpdateParams.EmploymentStatus.ACTIVE) .endDate("end_date") .firstName("first_name") .income( @@ -155,6 +157,8 @@ class SandboxEmploymentUpdateParamsTest { .type(SandboxEmploymentUpdateParams.Employment.Type.EMPLOYEE) .build() ) + assertThat(body.employmentStatus()) + .isEqualTo(SandboxEmploymentUpdateParams.EmploymentStatus.ACTIVE) assertThat(body.endDate()).isEqualTo("end_date") assertThat(body.firstName()).isEqualTo("first_name") assertThat(body.income()) diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryServiceTest.kt index a5af1399..0929c918 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryServiceTest.kt @@ -75,6 +75,11 @@ class DirectoryServiceTest { ) .build() ) + .employmentStatus( + SandboxDirectoryCreateParams.IndividualOrEmployment + .EmploymentStatus + .ACTIVE + ) .encryptedSsn("encrypted_ssn") .endDate("end_date") .ethnicity( diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/EmploymentServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/EmploymentServiceTest.kt index 9b1bea7f..e33f1cf3 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/EmploymentServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/EmploymentServiceTest.kt @@ -42,6 +42,7 @@ class EmploymentServiceTest { .type(SandboxEmploymentUpdateParams.Employment.Type.EMPLOYEE) .build() ) + .employmentStatus(SandboxEmploymentUpdateParams.EmploymentStatus.ACTIVE) .endDate("end_date") .firstName("first_name") .income( From 5fb40ab1bb3b4fd92d5317b4d117e64283a3f5fd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Dec 2024 15:47:41 +0000 Subject: [PATCH 04/23] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index b450e80e..c280bce8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 38 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-1d705472a04ca3f84ed5fe8878b537e6359cab6c48cdfd3cd08656473e373f80.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-134e5b4a91099c403b3937d93a32369acc1858c784f4f5842d63d6c426b33642.yml From 7705d87e122e0d06a8b88ac45ccca67a96521562 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 23:31:14 +0000 Subject: [PATCH 05/23] fix(client)!: numeric enum member type (#349) --- .../kotlin/com/tryfinch/api/models/EnrolledIndividual.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EnrolledIndividual.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EnrolledIndividual.kt index c2b0cf42..faf8251b 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EnrolledIndividual.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EnrolledIndividual.kt @@ -258,10 +258,10 @@ private constructor( class Code @JsonCreator private constructor( - private val value: JsonField, + private val value: JsonField, ) : Enum { - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { @@ -285,7 +285,7 @@ private constructor( @JvmField val FORBIDDEN = Code(JsonField.of(403)) - @JvmStatic fun of(value: Int) = Code(JsonField.of(value)) + @JvmStatic fun of(value: Long) = Code(JsonField.of(value)) } enum class Known { From 76486fd74b4c69f1c1e758226877c50876e4e1dd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 10 Dec 2024 21:27:40 +0000 Subject: [PATCH 06/23] feat(api): api update (#350) --- .stats.yml | 2 +- .../api/models/ConnectionCreateResponse.kt | 22 +++++++++++++--- .../api/models/CreateAccessTokenResponse.kt | 25 ++++++++++++++++--- .../models/ConnectionCreateResponseTest.kt | 2 ++ .../models/CreateAccessTokenResponseTest.kt | 2 ++ 5 files changed, 46 insertions(+), 7 deletions(-) diff --git a/.stats.yml b/.stats.yml index c280bce8..addc01fa 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 38 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-134e5b4a91099c403b3937d93a32369acc1858c784f4f5842d63d6c426b33642.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-8782658ecd57622a964238df7b5dd997ac63789f8220852660ecf32fa115296b.yml diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectionCreateResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectionCreateResponse.kt index 22109b19..bfabce70 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectionCreateResponse.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectionCreateResponse.kt @@ -16,6 +16,7 @@ import com.tryfinch.api.core.NoAutoDetect import com.tryfinch.api.core.toImmutable import com.tryfinch.api.errors.FinchInvalidDataException import java.util.Objects +import java.util.Optional @JsonDeserialize(builder = ConnectionCreateResponse.Builder::class) @NoAutoDetect @@ -28,6 +29,7 @@ private constructor( private val authenticationType: JsonField, private val products: JsonField>, private val accessToken: JsonField, + private val tokenType: JsonField, private val additionalProperties: Map, ) { @@ -52,6 +54,8 @@ private constructor( fun accessToken(): String = accessToken.getRequired("access_token") + fun tokenType(): Optional = Optional.ofNullable(tokenType.getNullable("token_type")) + /** The ID of the new connection */ @JsonProperty("connection_id") @ExcludeMissing fun _connectionId() = connectionId @@ -72,6 +76,8 @@ private constructor( @JsonProperty("access_token") @ExcludeMissing fun _accessToken() = accessToken + @JsonProperty("token_type") @ExcludeMissing fun _tokenType() = tokenType + @JsonAnyGetter @ExcludeMissing fun _additionalProperties(): Map = additionalProperties @@ -85,6 +91,7 @@ private constructor( authenticationType() products() accessToken() + tokenType() validated = true } } @@ -105,6 +112,7 @@ private constructor( private var authenticationType: JsonField = JsonMissing.of() private var products: JsonField> = JsonMissing.of() private var accessToken: JsonField = JsonMissing.of() + private var tokenType: JsonField = JsonMissing.of() private var additionalProperties: MutableMap = mutableMapOf() @JvmSynthetic @@ -116,6 +124,7 @@ private constructor( this.authenticationType = connectionCreateResponse.authenticationType this.products = connectionCreateResponse.products this.accessToken = connectionCreateResponse.accessToken + this.tokenType = connectionCreateResponse.tokenType additionalProperties(connectionCreateResponse.additionalProperties) } @@ -174,6 +183,12 @@ private constructor( @ExcludeMissing fun accessToken(accessToken: JsonField) = apply { this.accessToken = accessToken } + fun tokenType(tokenType: String) = tokenType(JsonField.of(tokenType)) + + @JsonProperty("token_type") + @ExcludeMissing + fun tokenType(tokenType: JsonField) = apply { this.tokenType = tokenType } + fun additionalProperties(additionalProperties: Map) = apply { this.additionalProperties.clear() this.additionalProperties.putAll(additionalProperties) @@ -197,6 +212,7 @@ private constructor( authenticationType, products.map { it.toImmutable() }, accessToken, + tokenType, additionalProperties.toImmutable(), ) } @@ -275,15 +291,15 @@ private constructor( return true } - return /* spotless:off */ other is ConnectionCreateResponse && connectionId == other.connectionId && companyId == other.companyId && providerId == other.providerId && accountId == other.accountId && authenticationType == other.authenticationType && products == other.products && accessToken == other.accessToken && additionalProperties == other.additionalProperties /* spotless:on */ + return /* spotless:off */ other is ConnectionCreateResponse && connectionId == other.connectionId && companyId == other.companyId && providerId == other.providerId && accountId == other.accountId && authenticationType == other.authenticationType && products == other.products && accessToken == other.accessToken && tokenType == other.tokenType && additionalProperties == other.additionalProperties /* spotless:on */ } /* spotless:off */ - private val hashCode: Int by lazy { Objects.hash(connectionId, companyId, providerId, accountId, authenticationType, products, accessToken, additionalProperties) } + private val hashCode: Int by lazy { Objects.hash(connectionId, companyId, providerId, accountId, authenticationType, products, accessToken, tokenType, additionalProperties) } /* spotless:on */ override fun hashCode(): Int = hashCode override fun toString() = - "ConnectionCreateResponse{connectionId=$connectionId, companyId=$companyId, providerId=$providerId, accountId=$accountId, authenticationType=$authenticationType, products=$products, accessToken=$accessToken, additionalProperties=$additionalProperties}" + "ConnectionCreateResponse{connectionId=$connectionId, companyId=$companyId, providerId=$providerId, accountId=$accountId, authenticationType=$authenticationType, products=$products, accessToken=$accessToken, tokenType=$tokenType, additionalProperties=$additionalProperties}" } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CreateAccessTokenResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CreateAccessTokenResponse.kt index afefcfed..54b90d37 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CreateAccessTokenResponse.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CreateAccessTokenResponse.kt @@ -23,6 +23,7 @@ import java.util.Optional class CreateAccessTokenResponse private constructor( private val accessToken: JsonField, + private val tokenType: JsonField, private val connectionId: JsonField, private val customerId: JsonField, private val accountId: JsonField, @@ -39,6 +40,9 @@ private constructor( /** The access token for the connection. */ fun accessToken(): String = accessToken.getRequired("access_token") + /** The RFC 8693 token type (Finch uses `bearer` tokens) */ + fun tokenType(): Optional = Optional.ofNullable(tokenType.getNullable("token_type")) + /** The Finch UUID of the connection associated with the `access_token`. */ fun connectionId(): String = connectionId.getRequired("connection_id") @@ -73,6 +77,9 @@ private constructor( /** The access token for the connection. */ @JsonProperty("access_token") @ExcludeMissing fun _accessToken() = accessToken + /** The RFC 8693 token type (Finch uses `bearer` tokens) */ + @JsonProperty("token_type") @ExcludeMissing fun _tokenType() = tokenType + /** The Finch UUID of the connection associated with the `access_token`. */ @JsonProperty("connection_id") @ExcludeMissing fun _connectionId() = connectionId @@ -111,6 +118,7 @@ private constructor( fun validate(): CreateAccessTokenResponse = apply { if (!validated) { accessToken() + tokenType() connectionId() customerId() accountId() @@ -133,6 +141,7 @@ private constructor( class Builder { private var accessToken: JsonField = JsonMissing.of() + private var tokenType: JsonField = JsonMissing.of() private var connectionId: JsonField = JsonMissing.of() private var customerId: JsonField = JsonMissing.of() private var accountId: JsonField = JsonMissing.of() @@ -146,6 +155,7 @@ private constructor( @JvmSynthetic internal fun from(createAccessTokenResponse: CreateAccessTokenResponse) = apply { this.accessToken = createAccessTokenResponse.accessToken + this.tokenType = createAccessTokenResponse.tokenType this.connectionId = createAccessTokenResponse.connectionId this.customerId = createAccessTokenResponse.customerId this.accountId = createAccessTokenResponse.accountId @@ -165,6 +175,14 @@ private constructor( @ExcludeMissing fun accessToken(accessToken: JsonField) = apply { this.accessToken = accessToken } + /** The RFC 8693 token type (Finch uses `bearer` tokens) */ + fun tokenType(tokenType: String) = tokenType(JsonField.of(tokenType)) + + /** The RFC 8693 token type (Finch uses `bearer` tokens) */ + @JsonProperty("token_type") + @ExcludeMissing + fun tokenType(tokenType: JsonField) = apply { this.tokenType = tokenType } + /** The Finch UUID of the connection associated with the `access_token`. */ fun connectionId(connectionId: String) = connectionId(JsonField.of(connectionId)) @@ -273,6 +291,7 @@ private constructor( fun build(): CreateAccessTokenResponse = CreateAccessTokenResponse( accessToken, + tokenType, connectionId, customerId, accountId, @@ -410,15 +429,15 @@ private constructor( return true } - return /* spotless:off */ other is CreateAccessTokenResponse && accessToken == other.accessToken && connectionId == other.connectionId && customerId == other.customerId && accountId == other.accountId && clientType == other.clientType && companyId == other.companyId && connectionType == other.connectionType && products == other.products && providerId == other.providerId && additionalProperties == other.additionalProperties /* spotless:on */ + return /* spotless:off */ other is CreateAccessTokenResponse && accessToken == other.accessToken && tokenType == other.tokenType && connectionId == other.connectionId && customerId == other.customerId && accountId == other.accountId && clientType == other.clientType && companyId == other.companyId && connectionType == other.connectionType && products == other.products && providerId == other.providerId && additionalProperties == other.additionalProperties /* spotless:on */ } /* spotless:off */ - private val hashCode: Int by lazy { Objects.hash(accessToken, connectionId, customerId, accountId, clientType, companyId, connectionType, products, providerId, additionalProperties) } + private val hashCode: Int by lazy { Objects.hash(accessToken, tokenType, connectionId, customerId, accountId, clientType, companyId, connectionType, products, providerId, additionalProperties) } /* spotless:on */ override fun hashCode(): Int = hashCode override fun toString() = - "CreateAccessTokenResponse{accessToken=$accessToken, connectionId=$connectionId, customerId=$customerId, accountId=$accountId, clientType=$clientType, companyId=$companyId, connectionType=$connectionType, products=$products, providerId=$providerId, additionalProperties=$additionalProperties}" + "CreateAccessTokenResponse{accessToken=$accessToken, tokenType=$tokenType, connectionId=$connectionId, customerId=$customerId, accountId=$accountId, clientType=$clientType, companyId=$companyId, connectionType=$connectionType, products=$products, providerId=$providerId, additionalProperties=$additionalProperties}" } diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/ConnectionCreateResponseTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/ConnectionCreateResponseTest.kt index eef19a23..887d1fc3 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/ConnectionCreateResponseTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/ConnectionCreateResponseTest.kt @@ -18,6 +18,7 @@ class ConnectionCreateResponseTest { .connectionId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") .products(listOf("string")) .providerId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") + .tokenType("token_type") .build() assertThat(connectionCreateResponse).isNotNull assertThat(connectionCreateResponse.accessToken()) @@ -33,5 +34,6 @@ class ConnectionCreateResponseTest { assertThat(connectionCreateResponse.products()).containsExactly("string") assertThat(connectionCreateResponse.providerId()) .isEqualTo("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") + assertThat(connectionCreateResponse.tokenType()).contains("token_type") } } diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/CreateAccessTokenResponseTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/CreateAccessTokenResponseTest.kt index d4f3dd5c..6ad1c497 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/CreateAccessTokenResponseTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/CreateAccessTokenResponseTest.kt @@ -20,6 +20,7 @@ class CreateAccessTokenResponseTest { .products(listOf("string")) .providerId("provider_id") .customerId("customer_id") + .tokenType("token_type") .build() assertThat(createAccessTokenResponse).isNotNull assertThat(createAccessTokenResponse.accessToken()).isEqualTo("access_token") @@ -33,5 +34,6 @@ class CreateAccessTokenResponseTest { assertThat(createAccessTokenResponse.products()).containsExactly("string") assertThat(createAccessTokenResponse.providerId()).isEqualTo("provider_id") assertThat(createAccessTokenResponse.customerId()).contains("customer_id") + assertThat(createAccessTokenResponse.tokenType()).contains("token_type") } } From 792f3f76ae6584f9f83924b4cbee31a6067a0b18 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Dec 2024 18:45:40 +0000 Subject: [PATCH 07/23] chore: update example values in tests and docs (#351) --- .../RequestForwardingForwardParamsTest.kt | 14 +++++++------- .../RequestForwardingForwardResponseTest.kt | 15 ++++++++------- .../models/SandboxDirectoryCreateParamsTest.kt | 18 +++++++++--------- .../blocking/RequestForwardingServiceTest.kt | 6 +++--- .../blocking/sandbox/DirectoryServiceTest.kt | 6 +++--- 5 files changed, 30 insertions(+), 29 deletions(-) diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/RequestForwardingForwardParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/RequestForwardingForwardParamsTest.kt index b95c04dd..d9b27e24 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/RequestForwardingForwardParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/RequestForwardingForwardParamsTest.kt @@ -2,7 +2,7 @@ package com.tryfinch.api.models -import com.tryfinch.api.core.JsonNull +import com.tryfinch.api.core.JsonValue import com.tryfinch.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -15,8 +15,8 @@ class RequestForwardingForwardParamsTest { .method("method") .route("route") .data("data") - .headers(JsonNull.of()) - .params(JsonNull.of()) + .headers(JsonValue.from(mapOf())) + .params(JsonValue.from(mapOf())) .build() } @@ -27,16 +27,16 @@ class RequestForwardingForwardParamsTest { .method("method") .route("route") .data("data") - .headers(JsonNull.of()) - .params(JsonNull.of()) + .headers(JsonValue.from(mapOf())) + .params(JsonValue.from(mapOf())) .build() val body = params.getBody() assertThat(body).isNotNull assertThat(body.method()).isEqualTo("method") assertThat(body.route()).isEqualTo("route") assertThat(body.data()).isEqualTo("data") - assertThat(body.headers()).isEqualTo(JsonNull.of()) - assertThat(body.params()).isEqualTo(JsonNull.of()) + assertThat(body.headers()).isEqualTo(JsonValue.from(mapOf())) + assertThat(body.params()).isEqualTo(JsonValue.from(mapOf())) } @Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/RequestForwardingForwardResponseTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/RequestForwardingForwardResponseTest.kt index 27866e1e..c08f7e8f 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/RequestForwardingForwardResponseTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/RequestForwardingForwardResponseTest.kt @@ -2,7 +2,7 @@ package com.tryfinch.api.models -import com.tryfinch.api.core.JsonNull +import com.tryfinch.api.core.JsonValue import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -13,13 +13,13 @@ class RequestForwardingForwardResponseTest { val requestForwardingForwardResponse = RequestForwardingForwardResponse.builder() .data("data") - .headers(JsonNull.of()) + .headers(JsonValue.from(mapOf())) .request( RequestForwardingForwardResponse.Request.builder() .data("data") - .headers(JsonNull.of()) + .headers(JsonValue.from(mapOf())) .method("method") - .params(JsonNull.of()) + .params(JsonValue.from(mapOf())) .route("route") .build() ) @@ -27,14 +27,15 @@ class RequestForwardingForwardResponseTest { .build() assertThat(requestForwardingForwardResponse).isNotNull assertThat(requestForwardingForwardResponse.data()).contains("data") - assertThat(requestForwardingForwardResponse._headers()).isEqualTo(JsonNull.of()) + assertThat(requestForwardingForwardResponse._headers()) + .isEqualTo(JsonValue.from(mapOf())) assertThat(requestForwardingForwardResponse.request()) .isEqualTo( RequestForwardingForwardResponse.Request.builder() .data("data") - .headers(JsonNull.of()) + .headers(JsonValue.from(mapOf())) .method("method") - .params(JsonNull.of()) + .params(JsonValue.from(mapOf())) .route("route") .build() ) diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxDirectoryCreateParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxDirectoryCreateParamsTest.kt index 42726812..77969c14 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxDirectoryCreateParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxDirectoryCreateParamsTest.kt @@ -30,7 +30,7 @@ class SandboxDirectoryCreateParamsTest { .name("name") .build() ) - .dob("dob") + .dob("01/01/2000") .emails( listOf( SandboxDirectoryCreateParams.IndividualOrEmployment.Email.builder() @@ -66,7 +66,7 @@ class SandboxDirectoryCreateParamsTest { .ethnicity( SandboxDirectoryCreateParams.IndividualOrEmployment.Ethnicity.ASIAN ) - .firstName("first_name") + .firstName("John") .gender(SandboxDirectoryCreateParams.IndividualOrEmployment.Gender.FEMALE) .income( Income.builder() @@ -87,7 +87,7 @@ class SandboxDirectoryCreateParamsTest { ) ) .isActive(true) - .lastName("last_name") + .lastName("Smith") .latestRehireDate("latest_rehire_date") .location( Location.builder() @@ -167,7 +167,7 @@ class SandboxDirectoryCreateParamsTest { .name("name") .build() ) - .dob("dob") + .dob("01/01/2000") .emails( listOf( SandboxDirectoryCreateParams.IndividualOrEmployment.Email @@ -208,7 +208,7 @@ class SandboxDirectoryCreateParamsTest { .ethnicity( SandboxDirectoryCreateParams.IndividualOrEmployment.Ethnicity.ASIAN ) - .firstName("first_name") + .firstName("John") .gender( SandboxDirectoryCreateParams.IndividualOrEmployment.Gender.FEMALE ) @@ -231,7 +231,7 @@ class SandboxDirectoryCreateParamsTest { ) ) .isActive(true) - .lastName("last_name") + .lastName("Smith") .latestRehireDate("latest_rehire_date") .location( Location.builder() @@ -308,7 +308,7 @@ class SandboxDirectoryCreateParamsTest { .name("name") .build() ) - .dob("dob") + .dob("01/01/2000") .emails( listOf( SandboxDirectoryCreateParams.IndividualOrEmployment.Email.builder() @@ -344,7 +344,7 @@ class SandboxDirectoryCreateParamsTest { .ethnicity( SandboxDirectoryCreateParams.IndividualOrEmployment.Ethnicity.ASIAN ) - .firstName("first_name") + .firstName("John") .gender(SandboxDirectoryCreateParams.IndividualOrEmployment.Gender.FEMALE) .income( Income.builder() @@ -365,7 +365,7 @@ class SandboxDirectoryCreateParamsTest { ) ) .isActive(true) - .lastName("last_name") + .lastName("Smith") .latestRehireDate("latest_rehire_date") .location( Location.builder() diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/RequestForwardingServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/RequestForwardingServiceTest.kt index ae7e1426..e91f3073 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/RequestForwardingServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/RequestForwardingServiceTest.kt @@ -4,7 +4,7 @@ package com.tryfinch.api.services.blocking import com.tryfinch.api.TestServerExtension import com.tryfinch.api.client.okhttp.FinchOkHttpClient -import com.tryfinch.api.core.JsonNull +import com.tryfinch.api.core.JsonValue import com.tryfinch.api.models.* import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith @@ -26,8 +26,8 @@ class RequestForwardingServiceTest { .method("method") .route("route") .data("data") - .headers(JsonNull.of()) - .params(JsonNull.of()) + .headers(JsonValue.from(mapOf())) + .params(JsonValue.from(mapOf())) .build() ) println(requestForwardingForwardResponse) diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryServiceTest.kt index 0929c918..41647c29 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryServiceTest.kt @@ -43,7 +43,7 @@ class DirectoryServiceTest { .name("name") .build() ) - .dob("dob") + .dob("01/01/2000") .emails( listOf( SandboxDirectoryCreateParams.IndividualOrEmployment.Email @@ -86,7 +86,7 @@ class DirectoryServiceTest { SandboxDirectoryCreateParams.IndividualOrEmployment.Ethnicity .ASIAN ) - .firstName("first_name") + .firstName("John") .gender( SandboxDirectoryCreateParams.IndividualOrEmployment.Gender .FEMALE @@ -110,7 +110,7 @@ class DirectoryServiceTest { ) ) .isActive(true) - .lastName("last_name") + .lastName("Smith") .latestRehireDate("latest_rehire_date") .location( Location.builder() From 08a5c64440d627e115c0cd360675292cab9b53b5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Dec 2024 19:46:01 +0000 Subject: [PATCH 08/23] style(internal): make enum value definitions less verbose (#352) --- .../api/models/AccountCreateResponse.kt | 8 +-- .../tryfinch/api/models/AccountUpdateEvent.kt | 12 ++-- .../api/models/AccountUpdateResponse.kt | 8 +-- .../tryfinch/api/models/AutomatedAsyncJob.kt | 14 ++-- .../api/models/BenefitContribution.kt | 4 +- .../models/BenefitFeaturesAndOperations.kt | 12 ++-- .../tryfinch/api/models/BenefitFrequency.kt | 6 +- .../com/tryfinch/api/models/BenefitType.kt | 38 +++++------ .../kotlin/com/tryfinch/api/models/Company.kt | 24 +++---- .../com/tryfinch/api/models/CompanyEvent.kt | 2 +- .../api/models/CompanyUpdateResponse.kt | 24 +++---- .../api/models/ConnectSessionNewParams.kt | 28 ++++---- .../ConnectSessionReauthenticateParams.kt | 16 ++--- .../api/models/ConnectionCreateResponse.kt | 8 +-- .../api/models/ConnectionStatusType.kt | 13 ++-- .../api/models/CreateAccessTokenResponse.kt | 10 +-- .../com/tryfinch/api/models/DirectoryEvent.kt | 6 +- .../com/tryfinch/api/models/EmploymentData.kt | 30 ++++----- .../tryfinch/api/models/EmploymentEvent.kt | 6 +- .../api/models/EmploymentUpdateResponse.kt | 30 ++++----- .../tryfinch/api/models/EnrolledIndividual.kt | 8 +-- .../kotlin/com/tryfinch/api/models/Income.kt | 18 ++--- .../com/tryfinch/api/models/Individual.kt | 36 +++++----- .../tryfinch/api/models/IndividualBenefit.kt | 4 +- .../tryfinch/api/models/IndividualEvent.kt | 6 +- .../api/models/IndividualUpdateResponse.kt | 36 +++++----- .../com/tryfinch/api/models/Introspection.kt | 20 +++--- .../api/models/JobAutomatedCreateParams.kt | 4 +- .../tryfinch/api/models/JobCompletionEvent.kt | 23 ++----- .../com/tryfinch/api/models/ManualAsyncJob.kt | 8 +-- .../tryfinch/api/models/OperationSupport.kt | 10 ++- .../api/models/PayGroupListResponse.kt | 18 ++--- .../api/models/PayGroupRetrieveResponse.kt | 18 ++--- .../com/tryfinch/api/models/PayStatement.kt | 44 ++++++------- .../tryfinch/api/models/PayStatementEvent.kt | 6 +- .../kotlin/com/tryfinch/api/models/Payment.kt | 18 ++--- .../com/tryfinch/api/models/PaymentEvent.kt | 6 +- .../com/tryfinch/api/models/Provider.kt | 10 +-- .../api/models/SandboxCompanyUpdateParams.kt | 24 +++---- .../SandboxConnectionAccountCreateParams.kt | 8 +-- .../models/SandboxConnectionCreateParams.kt | 8 +-- .../models/SandboxDirectoryCreateParams.kt | 66 +++++++++---------- .../models/SandboxEmploymentUpdateParams.kt | 30 ++++----- .../models/SandboxIndividualUpdateParams.kt | 36 +++++----- .../api/models/SandboxJobConfiguration.kt | 10 +-- .../SandboxJobConfigurationUpdateParams.kt | 10 +-- .../api/models/SandboxJobCreateParams.kt | 2 +- .../api/models/SandboxPaymentCreateParams.kt | 44 ++++++------- .../tryfinch/api/models/SupportedBenefit.kt | 12 ++-- 49 files changed, 406 insertions(+), 436 deletions(-) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountCreateResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountCreateResponse.kt index 533e3693..ec34182f 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountCreateResponse.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountCreateResponse.kt @@ -223,13 +223,13 @@ private constructor( companion object { - @JvmField val CREDENTIAL = AuthenticationType(JsonField.of("credential")) + @JvmField val CREDENTIAL = of("credential") - @JvmField val API_TOKEN = AuthenticationType(JsonField.of("api_token")) + @JvmField val API_TOKEN = of("api_token") - @JvmField val OAUTH = AuthenticationType(JsonField.of("oauth")) + @JvmField val OAUTH = of("oauth") - @JvmField val ASSISTED = AuthenticationType(JsonField.of("assisted")) + @JvmField val ASSISTED = of("assisted") @JvmStatic fun of(value: String) = AuthenticationType(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountUpdateEvent.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountUpdateEvent.kt index db6762ec..38bd815d 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountUpdateEvent.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountUpdateEvent.kt @@ -5368,15 +5368,15 @@ private constructor( companion object { - @JvmField val ASSISTED = Type(JsonField.of("assisted")) + @JvmField val ASSISTED = of("assisted") - @JvmField val CREDENTIAL = Type(JsonField.of("credential")) + @JvmField val CREDENTIAL = of("credential") - @JvmField val API_TOKEN = Type(JsonField.of("api_token")) + @JvmField val API_TOKEN = of("api_token") - @JvmField val API_CREDENTIAL = Type(JsonField.of("api_credential")) + @JvmField val API_CREDENTIAL = of("api_credential") - @JvmField val OAUTH = Type(JsonField.of("oauth")) + @JvmField val OAUTH = of("oauth") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -5479,7 +5479,7 @@ private constructor( companion object { - @JvmField val ACCOUNT_UPDATED = EventType(JsonField.of("account.updated")) + @JvmField val ACCOUNT_UPDATED = of("account.updated") @JvmStatic fun of(value: String) = EventType(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountUpdateResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountUpdateResponse.kt index ab6ad06f..c940043b 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountUpdateResponse.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountUpdateResponse.kt @@ -210,13 +210,13 @@ private constructor( companion object { - @JvmField val CREDENTIAL = AuthenticationType(JsonField.of("credential")) + @JvmField val CREDENTIAL = of("credential") - @JvmField val API_TOKEN = AuthenticationType(JsonField.of("api_token")) + @JvmField val API_TOKEN = of("api_token") - @JvmField val OAUTH = AuthenticationType(JsonField.of("oauth")) + @JvmField val OAUTH = of("oauth") - @JvmField val ASSISTED = AuthenticationType(JsonField.of("assisted")) + @JvmField val ASSISTED = of("assisted") @JvmStatic fun of(value: String) = AuthenticationType(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AutomatedAsyncJob.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AutomatedAsyncJob.kt index 248ef3dc..9bf151c1 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AutomatedAsyncJob.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AutomatedAsyncJob.kt @@ -279,17 +279,17 @@ private constructor( companion object { - @JvmField val PENDING = Status(JsonField.of("pending")) + @JvmField val PENDING = of("pending") - @JvmField val IN_PROGRESS = Status(JsonField.of("in_progress")) + @JvmField val IN_PROGRESS = of("in_progress") - @JvmField val COMPLETE = Status(JsonField.of("complete")) + @JvmField val COMPLETE = of("complete") - @JvmField val ERROR = Status(JsonField.of("error")) + @JvmField val ERROR = of("error") - @JvmField val REAUTH_ERROR = Status(JsonField.of("reauth_error")) + @JvmField val REAUTH_ERROR = of("reauth_error") - @JvmField val PERMISSIONS_ERROR = Status(JsonField.of("permissions_error")) + @JvmField val PERMISSIONS_ERROR = of("permissions_error") @JvmStatic fun of(value: String) = Status(JsonField.of(value)) } @@ -360,7 +360,7 @@ private constructor( companion object { - @JvmField val DATA_SYNC_ALL = Type(JsonField.of("data_sync_all")) + @JvmField val DATA_SYNC_ALL = of("data_sync_all") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitContribution.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitContribution.kt index 659c4cf1..535c18ff 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitContribution.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitContribution.kt @@ -133,9 +133,9 @@ private constructor( companion object { - @JvmField val FIXED = Type(JsonField.of("fixed")) + @JvmField val FIXED = of("fixed") - @JvmField val PERCENT = Type(JsonField.of("percent")) + @JvmField val PERCENT = of("percent") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitFeaturesAndOperations.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitFeaturesAndOperations.kt index 28dc51f1..09768bc1 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitFeaturesAndOperations.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitFeaturesAndOperations.kt @@ -385,9 +385,9 @@ private constructor( companion object { - @JvmField val FIXED = CompanyContribution(JsonField.of("fixed")) + @JvmField val FIXED = of("fixed") - @JvmField val PERCENT = CompanyContribution(JsonField.of("percent")) + @JvmField val PERCENT = of("percent") @JvmStatic fun of(value: String) = CompanyContribution(JsonField.of(value)) } @@ -442,9 +442,9 @@ private constructor( companion object { - @JvmField val FIXED = EmployeeDeduction(JsonField.of("fixed")) + @JvmField val FIXED = of("fixed") - @JvmField val PERCENT = EmployeeDeduction(JsonField.of("percent")) + @JvmField val PERCENT = of("percent") @JvmStatic fun of(value: String) = EmployeeDeduction(JsonField.of(value)) } @@ -499,9 +499,9 @@ private constructor( companion object { - @JvmField val INDIVIDUAL = HsaContributionLimit(JsonField.of("individual")) + @JvmField val INDIVIDUAL = of("individual") - @JvmField val FAMILY = HsaContributionLimit(JsonField.of("family")) + @JvmField val FAMILY = of("family") @JvmStatic fun of(value: String) = HsaContributionLimit(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitFrequency.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitFrequency.kt index fb17c9c1..9b63ce00 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitFrequency.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitFrequency.kt @@ -30,11 +30,11 @@ private constructor( companion object { - @JvmField val ONE_TIME = BenefitFrequency(JsonField.of("one_time")) + @JvmField val ONE_TIME = of("one_time") - @JvmField val EVERY_PAYCHECK = BenefitFrequency(JsonField.of("every_paycheck")) + @JvmField val EVERY_PAYCHECK = of("every_paycheck") - @JvmField val MONTHLY = BenefitFrequency(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") @JvmStatic fun of(value: String) = BenefitFrequency(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitType.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitType.kt index 138757ab..ba0f1f7b 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitType.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitType.kt @@ -30,43 +30,43 @@ private constructor( companion object { - @JvmField val _401K = BenefitType(JsonField.of("401k")) + @JvmField val _401K = of("401k") - @JvmField val _401K_ROTH = BenefitType(JsonField.of("401k_roth")) + @JvmField val _401K_ROTH = of("401k_roth") - @JvmField val _401K_LOAN = BenefitType(JsonField.of("401k_loan")) + @JvmField val _401K_LOAN = of("401k_loan") - @JvmField val _403B = BenefitType(JsonField.of("403b")) + @JvmField val _403B = of("403b") - @JvmField val _403B_ROTH = BenefitType(JsonField.of("403b_roth")) + @JvmField val _403B_ROTH = of("403b_roth") - @JvmField val _457 = BenefitType(JsonField.of("457")) + @JvmField val _457 = of("457") - @JvmField val _457_ROTH = BenefitType(JsonField.of("457_roth")) + @JvmField val _457_ROTH = of("457_roth") - @JvmField val S125_MEDICAL = BenefitType(JsonField.of("s125_medical")) + @JvmField val S125_MEDICAL = of("s125_medical") - @JvmField val S125_DENTAL = BenefitType(JsonField.of("s125_dental")) + @JvmField val S125_DENTAL = of("s125_dental") - @JvmField val S125_VISION = BenefitType(JsonField.of("s125_vision")) + @JvmField val S125_VISION = of("s125_vision") - @JvmField val HSA_PRE = BenefitType(JsonField.of("hsa_pre")) + @JvmField val HSA_PRE = of("hsa_pre") - @JvmField val HSA_POST = BenefitType(JsonField.of("hsa_post")) + @JvmField val HSA_POST = of("hsa_post") - @JvmField val FSA_MEDICAL = BenefitType(JsonField.of("fsa_medical")) + @JvmField val FSA_MEDICAL = of("fsa_medical") - @JvmField val FSA_DEPENDENT_CARE = BenefitType(JsonField.of("fsa_dependent_care")) + @JvmField val FSA_DEPENDENT_CARE = of("fsa_dependent_care") - @JvmField val SIMPLE_IRA = BenefitType(JsonField.of("simple_ira")) + @JvmField val SIMPLE_IRA = of("simple_ira") - @JvmField val SIMPLE = BenefitType(JsonField.of("simple")) + @JvmField val SIMPLE = of("simple") - @JvmField val COMMUTER = BenefitType(JsonField.of("commuter")) + @JvmField val COMMUTER = of("commuter") - @JvmField val CUSTOM_POST_TAX = BenefitType(JsonField.of("custom_post_tax")) + @JvmField val CUSTOM_POST_TAX = of("custom_post_tax") - @JvmField val CUSTOM_PRE_TAX = BenefitType(JsonField.of("custom_pre_tax")) + @JvmField val CUSTOM_PRE_TAX = of("custom_pre_tax") @JvmStatic fun of(value: String) = BenefitType(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Company.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Company.kt index 6399dc55..00f01df7 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Company.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Company.kt @@ -449,9 +449,9 @@ private constructor( companion object { - @JvmField val CHECKING = AccountType(JsonField.of("checking")) + @JvmField val CHECKING = of("checking") - @JvmField val SAVINGS = AccountType(JsonField.of("savings")) + @JvmField val SAVINGS = of("savings") @JvmStatic fun of(value: String) = AccountType(JsonField.of(value)) } @@ -819,11 +819,11 @@ private constructor( companion object { - @JvmField val S_CORPORATION = Subtype(JsonField.of("s_corporation")) + @JvmField val S_CORPORATION = of("s_corporation") - @JvmField val C_CORPORATION = Subtype(JsonField.of("c_corporation")) + @JvmField val C_CORPORATION = of("c_corporation") - @JvmField val B_CORPORATION = Subtype(JsonField.of("b_corporation")) + @JvmField val B_CORPORATION = of("b_corporation") @JvmStatic fun of(value: String) = Subtype(JsonField.of(value)) } @@ -882,19 +882,19 @@ private constructor( companion object { - @JvmField val LLC = Type(JsonField.of("llc")) + @JvmField val LLC = of("llc") - @JvmField val LP = Type(JsonField.of("lp")) + @JvmField val LP = of("lp") - @JvmField val CORPORATION = Type(JsonField.of("corporation")) + @JvmField val CORPORATION = of("corporation") - @JvmField val SOLE_PROPRIETOR = Type(JsonField.of("sole_proprietor")) + @JvmField val SOLE_PROPRIETOR = of("sole_proprietor") - @JvmField val NON_PROFIT = Type(JsonField.of("non_profit")) + @JvmField val NON_PROFIT = of("non_profit") - @JvmField val PARTNERSHIP = Type(JsonField.of("partnership")) + @JvmField val PARTNERSHIP = of("partnership") - @JvmField val COOPERATIVE = Type(JsonField.of("cooperative")) + @JvmField val COOPERATIVE = of("cooperative") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CompanyEvent.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CompanyEvent.kt index 9cf78267..eb636e52 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CompanyEvent.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CompanyEvent.kt @@ -285,7 +285,7 @@ private constructor( companion object { - @JvmField val COMPANY_UPDATED = EventType(JsonField.of("company.updated")) + @JvmField val COMPANY_UPDATED = of("company.updated") @JvmStatic fun of(value: String) = EventType(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CompanyUpdateResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CompanyUpdateResponse.kt index 7cc46c5e..593ad5c9 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CompanyUpdateResponse.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CompanyUpdateResponse.kt @@ -432,9 +432,9 @@ private constructor( companion object { - @JvmField val CHECKING = AccountType(JsonField.of("checking")) + @JvmField val CHECKING = of("checking") - @JvmField val SAVINGS = AccountType(JsonField.of("savings")) + @JvmField val SAVINGS = of("savings") @JvmStatic fun of(value: String) = AccountType(JsonField.of(value)) } @@ -802,11 +802,11 @@ private constructor( companion object { - @JvmField val S_CORPORATION = Subtype(JsonField.of("s_corporation")) + @JvmField val S_CORPORATION = of("s_corporation") - @JvmField val C_CORPORATION = Subtype(JsonField.of("c_corporation")) + @JvmField val C_CORPORATION = of("c_corporation") - @JvmField val B_CORPORATION = Subtype(JsonField.of("b_corporation")) + @JvmField val B_CORPORATION = of("b_corporation") @JvmStatic fun of(value: String) = Subtype(JsonField.of(value)) } @@ -865,19 +865,19 @@ private constructor( companion object { - @JvmField val LLC = Type(JsonField.of("llc")) + @JvmField val LLC = of("llc") - @JvmField val LP = Type(JsonField.of("lp")) + @JvmField val LP = of("lp") - @JvmField val CORPORATION = Type(JsonField.of("corporation")) + @JvmField val CORPORATION = of("corporation") - @JvmField val SOLE_PROPRIETOR = Type(JsonField.of("sole_proprietor")) + @JvmField val SOLE_PROPRIETOR = of("sole_proprietor") - @JvmField val NON_PROFIT = Type(JsonField.of("non_profit")) + @JvmField val NON_PROFIT = of("non_profit") - @JvmField val PARTNERSHIP = Type(JsonField.of("partnership")) + @JvmField val PARTNERSHIP = of("partnership") - @JvmField val COOPERATIVE = Type(JsonField.of("cooperative")) + @JvmField val COOPERATIVE = of("cooperative") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectSessionNewParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectSessionNewParams.kt index f11e6122..f8c70d87 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectSessionNewParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectSessionNewParams.kt @@ -462,21 +462,21 @@ constructor( companion object { - @JvmField val COMPANY = ConnectProducts(JsonField.of("company")) + @JvmField val COMPANY = of("company") - @JvmField val DIRECTORY = ConnectProducts(JsonField.of("directory")) + @JvmField val DIRECTORY = of("directory") - @JvmField val INDIVIDUAL = ConnectProducts(JsonField.of("individual")) + @JvmField val INDIVIDUAL = of("individual") - @JvmField val EMPLOYMENT = ConnectProducts(JsonField.of("employment")) + @JvmField val EMPLOYMENT = of("employment") - @JvmField val PAYMENT = ConnectProducts(JsonField.of("payment")) + @JvmField val PAYMENT = of("payment") - @JvmField val PAY_STATEMENT = ConnectProducts(JsonField.of("pay_statement")) + @JvmField val PAY_STATEMENT = of("pay_statement") - @JvmField val BENEFITS = ConnectProducts(JsonField.of("benefits")) + @JvmField val BENEFITS = of("benefits") - @JvmField val SSN = ConnectProducts(JsonField.of("ssn")) + @JvmField val SSN = of("ssn") @JvmStatic fun of(value: String) = ConnectProducts(JsonField.of(value)) } @@ -620,13 +620,13 @@ constructor( companion object { - @JvmField val ASSISTED = AuthMethod(JsonField.of("assisted")) + @JvmField val ASSISTED = of("assisted") - @JvmField val CREDENTIAL = AuthMethod(JsonField.of("credential")) + @JvmField val CREDENTIAL = of("credential") - @JvmField val OAUTH = AuthMethod(JsonField.of("oauth")) + @JvmField val OAUTH = of("oauth") - @JvmField val API_TOKEN = AuthMethod(JsonField.of("api_token")) + @JvmField val API_TOKEN = of("api_token") @JvmStatic fun of(value: String) = AuthMethod(JsonField.of(value)) } @@ -707,9 +707,9 @@ constructor( companion object { - @JvmField val FINCH = Sandbox(JsonField.of("finch")) + @JvmField val FINCH = of("finch") - @JvmField val PROVIDER = Sandbox(JsonField.of("provider")) + @JvmField val PROVIDER = of("provider") @JvmStatic fun of(value: String) = Sandbox(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectSessionReauthenticateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectSessionReauthenticateParams.kt index cc61aad6..0e766137 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectSessionReauthenticateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectSessionReauthenticateParams.kt @@ -386,21 +386,21 @@ constructor( companion object { - @JvmField val COMPANY = ConnectProducts(JsonField.of("company")) + @JvmField val COMPANY = of("company") - @JvmField val DIRECTORY = ConnectProducts(JsonField.of("directory")) + @JvmField val DIRECTORY = of("directory") - @JvmField val INDIVIDUAL = ConnectProducts(JsonField.of("individual")) + @JvmField val INDIVIDUAL = of("individual") - @JvmField val EMPLOYMENT = ConnectProducts(JsonField.of("employment")) + @JvmField val EMPLOYMENT = of("employment") - @JvmField val PAYMENT = ConnectProducts(JsonField.of("payment")) + @JvmField val PAYMENT = of("payment") - @JvmField val PAY_STATEMENT = ConnectProducts(JsonField.of("pay_statement")) + @JvmField val PAY_STATEMENT = of("pay_statement") - @JvmField val BENEFITS = ConnectProducts(JsonField.of("benefits")) + @JvmField val BENEFITS = of("benefits") - @JvmField val SSN = ConnectProducts(JsonField.of("ssn")) + @JvmField val SSN = of("ssn") @JvmStatic fun of(value: String) = ConnectProducts(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectionCreateResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectionCreateResponse.kt index bfabce70..e24eb05b 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectionCreateResponse.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectionCreateResponse.kt @@ -239,13 +239,13 @@ private constructor( companion object { - @JvmField val CREDENTIAL = AuthenticationType(JsonField.of("credential")) + @JvmField val CREDENTIAL = of("credential") - @JvmField val API_TOKEN = AuthenticationType(JsonField.of("api_token")) + @JvmField val API_TOKEN = of("api_token") - @JvmField val OAUTH = AuthenticationType(JsonField.of("oauth")) + @JvmField val OAUTH = of("oauth") - @JvmField val ASSISTED = AuthenticationType(JsonField.of("assisted")) + @JvmField val ASSISTED = of("assisted") @JvmStatic fun of(value: String) = AuthenticationType(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectionStatusType.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectionStatusType.kt index 253106a4..0285f1e8 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectionStatusType.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectionStatusType.kt @@ -30,18 +30,17 @@ private constructor( companion object { - @JvmField val PENDING = ConnectionStatusType(JsonField.of("pending")) + @JvmField val PENDING = of("pending") - @JvmField val PROCESSING = ConnectionStatusType(JsonField.of("processing")) + @JvmField val PROCESSING = of("processing") - @JvmField val CONNECTED = ConnectionStatusType(JsonField.of("connected")) + @JvmField val CONNECTED = of("connected") - @JvmField - val ERROR_NO_ACCOUNT_SETUP = ConnectionStatusType(JsonField.of("error_no_account_setup")) + @JvmField val ERROR_NO_ACCOUNT_SETUP = of("error_no_account_setup") - @JvmField val ERROR_PERMISSIONS = ConnectionStatusType(JsonField.of("error_permissions")) + @JvmField val ERROR_PERMISSIONS = of("error_permissions") - @JvmField val REAUTH = ConnectionStatusType(JsonField.of("reauth")) + @JvmField val REAUTH = of("reauth") @JvmStatic fun of(value: String) = ConnectionStatusType(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CreateAccessTokenResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CreateAccessTokenResponse.kt index 54b90d37..ad184de5 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CreateAccessTokenResponse.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CreateAccessTokenResponse.kt @@ -326,11 +326,11 @@ private constructor( companion object { - @JvmField val PRODUCTION = ClientType(JsonField.of("production")) + @JvmField val PRODUCTION = of("production") - @JvmField val DEVELOPMENT = ClientType(JsonField.of("development")) + @JvmField val DEVELOPMENT = of("development") - @JvmField val SANDBOX = ClientType(JsonField.of("sandbox")) + @JvmField val SANDBOX = of("sandbox") @JvmStatic fun of(value: String) = ClientType(JsonField.of(value)) } @@ -389,9 +389,9 @@ private constructor( companion object { - @JvmField val PROVIDER = ConnectionType(JsonField.of("provider")) + @JvmField val PROVIDER = of("provider") - @JvmField val FINCH = ConnectionType(JsonField.of("finch")) + @JvmField val FINCH = of("finch") @JvmStatic fun of(value: String) = ConnectionType(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/DirectoryEvent.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/DirectoryEvent.kt index ec17e3fc..f57490ef 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/DirectoryEvent.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/DirectoryEvent.kt @@ -307,11 +307,11 @@ private constructor( companion object { - @JvmField val DIRECTORY_CREATED = EventType(JsonField.of("directory.created")) + @JvmField val DIRECTORY_CREATED = of("directory.created") - @JvmField val DIRECTORY_UPDATED = EventType(JsonField.of("directory.updated")) + @JvmField val DIRECTORY_UPDATED = of("directory.updated") - @JvmField val DIRECTORY_DELETED = EventType(JsonField.of("directory.deleted")) + @JvmField val DIRECTORY_DELETED = of("directory.deleted") @JvmStatic fun of(value: String) = EventType(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentData.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentData.kt index 25520db1..3b658d71 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentData.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentData.kt @@ -806,17 +806,17 @@ private constructor( companion object { - @JvmField val FULL_TIME = Subtype(JsonField.of("full_time")) + @JvmField val FULL_TIME = of("full_time") - @JvmField val INTERN = Subtype(JsonField.of("intern")) + @JvmField val INTERN = of("intern") - @JvmField val PART_TIME = Subtype(JsonField.of("part_time")) + @JvmField val PART_TIME = of("part_time") - @JvmField val TEMP = Subtype(JsonField.of("temp")) + @JvmField val TEMP = of("temp") - @JvmField val SEASONAL = Subtype(JsonField.of("seasonal")) + @JvmField val SEASONAL = of("seasonal") - @JvmField val INDIVIDUAL_CONTRACTOR = Subtype(JsonField.of("individual_contractor")) + @JvmField val INDIVIDUAL_CONTRACTOR = of("individual_contractor") @JvmStatic fun of(value: String) = Subtype(JsonField.of(value)) } @@ -887,9 +887,9 @@ private constructor( companion object { - @JvmField val EMPLOYEE = Type(JsonField.of("employee")) + @JvmField val EMPLOYEE = of("employee") - @JvmField val CONTRACTOR = Type(JsonField.of("contractor")) + @JvmField val CONTRACTOR = of("contractor") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -962,19 +962,19 @@ private constructor( companion object { - @JvmField val ACTIVE = EmploymentStatus(JsonField.of("active")) + @JvmField val ACTIVE = of("active") - @JvmField val DECEASED = EmploymentStatus(JsonField.of("deceased")) + @JvmField val DECEASED = of("deceased") - @JvmField val LEAVE = EmploymentStatus(JsonField.of("leave")) + @JvmField val LEAVE = of("leave") - @JvmField val ONBOARDING = EmploymentStatus(JsonField.of("onboarding")) + @JvmField val ONBOARDING = of("onboarding") - @JvmField val PREHIRE = EmploymentStatus(JsonField.of("prehire")) + @JvmField val PREHIRE = of("prehire") - @JvmField val RETIRED = EmploymentStatus(JsonField.of("retired")) + @JvmField val RETIRED = of("retired") - @JvmField val TERMINATED = EmploymentStatus(JsonField.of("terminated")) + @JvmField val TERMINATED = of("terminated") @JvmStatic fun of(value: String) = EmploymentStatus(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentEvent.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentEvent.kt index 2bab196a..7b10ba83 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentEvent.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentEvent.kt @@ -307,11 +307,11 @@ private constructor( companion object { - @JvmField val EMPLOYMENT_CREATED = EventType(JsonField.of("employment.created")) + @JvmField val EMPLOYMENT_CREATED = of("employment.created") - @JvmField val EMPLOYMENT_UPDATED = EventType(JsonField.of("employment.updated")) + @JvmField val EMPLOYMENT_UPDATED = of("employment.updated") - @JvmField val EMPLOYMENT_DELETED = EventType(JsonField.of("employment.deleted")) + @JvmField val EMPLOYMENT_DELETED = of("employment.deleted") @JvmStatic fun of(value: String) = EventType(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentUpdateResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentUpdateResponse.kt index 4b883c44..984e15f7 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentUpdateResponse.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentUpdateResponse.kt @@ -775,17 +775,17 @@ private constructor( companion object { - @JvmField val FULL_TIME = Subtype(JsonField.of("full_time")) + @JvmField val FULL_TIME = of("full_time") - @JvmField val INTERN = Subtype(JsonField.of("intern")) + @JvmField val INTERN = of("intern") - @JvmField val PART_TIME = Subtype(JsonField.of("part_time")) + @JvmField val PART_TIME = of("part_time") - @JvmField val TEMP = Subtype(JsonField.of("temp")) + @JvmField val TEMP = of("temp") - @JvmField val SEASONAL = Subtype(JsonField.of("seasonal")) + @JvmField val SEASONAL = of("seasonal") - @JvmField val INDIVIDUAL_CONTRACTOR = Subtype(JsonField.of("individual_contractor")) + @JvmField val INDIVIDUAL_CONTRACTOR = of("individual_contractor") @JvmStatic fun of(value: String) = Subtype(JsonField.of(value)) } @@ -856,9 +856,9 @@ private constructor( companion object { - @JvmField val EMPLOYEE = Type(JsonField.of("employee")) + @JvmField val EMPLOYEE = of("employee") - @JvmField val CONTRACTOR = Type(JsonField.of("contractor")) + @JvmField val CONTRACTOR = of("contractor") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -931,19 +931,19 @@ private constructor( companion object { - @JvmField val ACTIVE = EmploymentStatus(JsonField.of("active")) + @JvmField val ACTIVE = of("active") - @JvmField val DECEASED = EmploymentStatus(JsonField.of("deceased")) + @JvmField val DECEASED = of("deceased") - @JvmField val LEAVE = EmploymentStatus(JsonField.of("leave")) + @JvmField val LEAVE = of("leave") - @JvmField val ONBOARDING = EmploymentStatus(JsonField.of("onboarding")) + @JvmField val ONBOARDING = of("onboarding") - @JvmField val PREHIRE = EmploymentStatus(JsonField.of("prehire")) + @JvmField val PREHIRE = of("prehire") - @JvmField val RETIRED = EmploymentStatus(JsonField.of("retired")) + @JvmField val RETIRED = of("retired") - @JvmField val TERMINATED = EmploymentStatus(JsonField.of("terminated")) + @JvmField val TERMINATED = of("terminated") @JvmStatic fun of(value: String) = EmploymentStatus(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EnrolledIndividual.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EnrolledIndividual.kt index faf8251b..81c93e60 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EnrolledIndividual.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EnrolledIndividual.kt @@ -277,13 +277,13 @@ private constructor( companion object { - @JvmField val OK = Code(JsonField.of(200)) + @JvmField val OK = of(200) - @JvmField val CREATED = Code(JsonField.of(201)) + @JvmField val CREATED = of(201) - @JvmField val NOT_FOUND = Code(JsonField.of(404)) + @JvmField val NOT_FOUND = of(404) - @JvmField val FORBIDDEN = Code(JsonField.of(403)) + @JvmField val FORBIDDEN = of(403) @JvmStatic fun of(value: Long) = Code(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Income.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Income.kt index 46d55876..57d3e5fd 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Income.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Income.kt @@ -191,23 +191,23 @@ private constructor( companion object { - @JvmField val YEARLY = Unit(JsonField.of("yearly")) + @JvmField val YEARLY = of("yearly") - @JvmField val QUARTERLY = Unit(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val MONTHLY = Unit(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val SEMI_MONTHLY = Unit(JsonField.of("semi_monthly")) + @JvmField val SEMI_MONTHLY = of("semi_monthly") - @JvmField val BI_WEEKLY = Unit(JsonField.of("bi_weekly")) + @JvmField val BI_WEEKLY = of("bi_weekly") - @JvmField val WEEKLY = Unit(JsonField.of("weekly")) + @JvmField val WEEKLY = of("weekly") - @JvmField val DAILY = Unit(JsonField.of("daily")) + @JvmField val DAILY = of("daily") - @JvmField val HOURLY = Unit(JsonField.of("hourly")) + @JvmField val HOURLY = of("hourly") - @JvmField val FIXED = Unit(JsonField.of("fixed")) + @JvmField val FIXED = of("fixed") @JvmStatic fun of(value: String) = Unit(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Individual.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Individual.kt index 07f9fa9c..2cf4b80e 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Individual.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Individual.kt @@ -451,9 +451,9 @@ private constructor( companion object { - @JvmField val WORK = Type(JsonField.of("work")) + @JvmField val WORK = of("work") - @JvmField val PERSONAL = Type(JsonField.of("personal")) + @JvmField val PERSONAL = of("personal") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -526,26 +526,22 @@ private constructor( companion object { - @JvmField val ASIAN = Ethnicity(JsonField.of("asian")) + @JvmField val ASIAN = of("asian") - @JvmField val WHITE = Ethnicity(JsonField.of("white")) + @JvmField val WHITE = of("white") - @JvmField - val BLACK_OR_AFRICAN_AMERICAN = Ethnicity(JsonField.of("black_or_african_american")) + @JvmField val BLACK_OR_AFRICAN_AMERICAN = of("black_or_african_american") @JvmField - val NATIVE_HAWAIIAN_OR_PACIFIC_ISLANDER = - Ethnicity(JsonField.of("native_hawaiian_or_pacific_islander")) + val NATIVE_HAWAIIAN_OR_PACIFIC_ISLANDER = of("native_hawaiian_or_pacific_islander") - @JvmField - val AMERICAN_INDIAN_OR_ALASKA_NATIVE = - Ethnicity(JsonField.of("american_indian_or_alaska_native")) + @JvmField val AMERICAN_INDIAN_OR_ALASKA_NATIVE = of("american_indian_or_alaska_native") - @JvmField val HISPANIC_OR_LATINO = Ethnicity(JsonField.of("hispanic_or_latino")) + @JvmField val HISPANIC_OR_LATINO = of("hispanic_or_latino") - @JvmField val TWO_OR_MORE_RACES = Ethnicity(JsonField.of("two_or_more_races")) + @JvmField val TWO_OR_MORE_RACES = of("two_or_more_races") - @JvmField val DECLINE_TO_SPECIFY = Ethnicity(JsonField.of("decline_to_specify")) + @JvmField val DECLINE_TO_SPECIFY = of("decline_to_specify") @JvmStatic fun of(value: String) = Ethnicity(JsonField.of(value)) } @@ -624,13 +620,13 @@ private constructor( companion object { - @JvmField val FEMALE = Gender(JsonField.of("female")) + @JvmField val FEMALE = of("female") - @JvmField val MALE = Gender(JsonField.of("male")) + @JvmField val MALE = of("male") - @JvmField val OTHER = Gender(JsonField.of("other")) + @JvmField val OTHER = of("other") - @JvmField val DECLINE_TO_SPECIFY = Gender(JsonField.of("decline_to_specify")) + @JvmField val DECLINE_TO_SPECIFY = of("decline_to_specify") @JvmStatic fun of(value: String) = Gender(JsonField.of(value)) } @@ -778,9 +774,9 @@ private constructor( companion object { - @JvmField val WORK = Type(JsonField.of("work")) + @JvmField val WORK = of("work") - @JvmField val PERSONAL = Type(JsonField.of("personal")) + @JvmField val PERSONAL = of("personal") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualBenefit.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualBenefit.kt index 31baddd4..53362466 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualBenefit.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualBenefit.kt @@ -319,9 +319,9 @@ private constructor( companion object { - @JvmField val INDIVIDUAL = HsaContributionLimit(JsonField.of("individual")) + @JvmField val INDIVIDUAL = of("individual") - @JvmField val FAMILY = HsaContributionLimit(JsonField.of("family")) + @JvmField val FAMILY = of("family") @JvmStatic fun of(value: String) = HsaContributionLimit(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualEvent.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualEvent.kt index c4015f99..d50cec81 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualEvent.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualEvent.kt @@ -307,11 +307,11 @@ private constructor( companion object { - @JvmField val INDIVIDUAL_CREATED = EventType(JsonField.of("individual.created")) + @JvmField val INDIVIDUAL_CREATED = of("individual.created") - @JvmField val INDIVIDUAL_UPDATED = EventType(JsonField.of("individual.updated")) + @JvmField val INDIVIDUAL_UPDATED = of("individual.updated") - @JvmField val INDIVIDUAL_DELETED = EventType(JsonField.of("individual.deleted")) + @JvmField val INDIVIDUAL_DELETED = of("individual.deleted") @JvmStatic fun of(value: String) = EventType(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualUpdateResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualUpdateResponse.kt index cbcea3dc..9aad35f7 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualUpdateResponse.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualUpdateResponse.kt @@ -451,9 +451,9 @@ private constructor( companion object { - @JvmField val WORK = Type(JsonField.of("work")) + @JvmField val WORK = of("work") - @JvmField val PERSONAL = Type(JsonField.of("personal")) + @JvmField val PERSONAL = of("personal") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -526,26 +526,22 @@ private constructor( companion object { - @JvmField val ASIAN = Ethnicity(JsonField.of("asian")) + @JvmField val ASIAN = of("asian") - @JvmField val WHITE = Ethnicity(JsonField.of("white")) + @JvmField val WHITE = of("white") - @JvmField - val BLACK_OR_AFRICAN_AMERICAN = Ethnicity(JsonField.of("black_or_african_american")) + @JvmField val BLACK_OR_AFRICAN_AMERICAN = of("black_or_african_american") @JvmField - val NATIVE_HAWAIIAN_OR_PACIFIC_ISLANDER = - Ethnicity(JsonField.of("native_hawaiian_or_pacific_islander")) + val NATIVE_HAWAIIAN_OR_PACIFIC_ISLANDER = of("native_hawaiian_or_pacific_islander") - @JvmField - val AMERICAN_INDIAN_OR_ALASKA_NATIVE = - Ethnicity(JsonField.of("american_indian_or_alaska_native")) + @JvmField val AMERICAN_INDIAN_OR_ALASKA_NATIVE = of("american_indian_or_alaska_native") - @JvmField val HISPANIC_OR_LATINO = Ethnicity(JsonField.of("hispanic_or_latino")) + @JvmField val HISPANIC_OR_LATINO = of("hispanic_or_latino") - @JvmField val TWO_OR_MORE_RACES = Ethnicity(JsonField.of("two_or_more_races")) + @JvmField val TWO_OR_MORE_RACES = of("two_or_more_races") - @JvmField val DECLINE_TO_SPECIFY = Ethnicity(JsonField.of("decline_to_specify")) + @JvmField val DECLINE_TO_SPECIFY = of("decline_to_specify") @JvmStatic fun of(value: String) = Ethnicity(JsonField.of(value)) } @@ -624,13 +620,13 @@ private constructor( companion object { - @JvmField val FEMALE = Gender(JsonField.of("female")) + @JvmField val FEMALE = of("female") - @JvmField val MALE = Gender(JsonField.of("male")) + @JvmField val MALE = of("male") - @JvmField val OTHER = Gender(JsonField.of("other")) + @JvmField val OTHER = of("other") - @JvmField val DECLINE_TO_SPECIFY = Gender(JsonField.of("decline_to_specify")) + @JvmField val DECLINE_TO_SPECIFY = of("decline_to_specify") @JvmStatic fun of(value: String) = Gender(JsonField.of(value)) } @@ -778,9 +774,9 @@ private constructor( companion object { - @JvmField val WORK = Type(JsonField.of("work")) + @JvmField val WORK = of("work") - @JvmField val PERSONAL = Type(JsonField.of("personal")) + @JvmField val PERSONAL = of("personal") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Introspection.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Introspection.kt index 6f9167b7..2fb6486d 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Introspection.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Introspection.kt @@ -735,15 +735,15 @@ private constructor( companion object { - @JvmField val ASSISTED = Type(JsonField.of("assisted")) + @JvmField val ASSISTED = of("assisted") - @JvmField val CREDENTIAL = Type(JsonField.of("credential")) + @JvmField val CREDENTIAL = of("credential") - @JvmField val API_TOKEN = Type(JsonField.of("api_token")) + @JvmField val API_TOKEN = of("api_token") - @JvmField val API_CREDENTIAL = Type(JsonField.of("api_credential")) + @JvmField val API_CREDENTIAL = of("api_credential") - @JvmField val OAUTH = Type(JsonField.of("oauth")) + @JvmField val OAUTH = of("oauth") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -828,11 +828,11 @@ private constructor( companion object { - @JvmField val PRODUCTION = ClientType(JsonField.of("production")) + @JvmField val PRODUCTION = of("production") - @JvmField val DEVELOPMENT = ClientType(JsonField.of("development")) + @JvmField val DEVELOPMENT = of("development") - @JvmField val SANDBOX = ClientType(JsonField.of("sandbox")) + @JvmField val SANDBOX = of("sandbox") @JvmStatic fun of(value: String) = ClientType(JsonField.of(value)) } @@ -995,9 +995,9 @@ private constructor( companion object { - @JvmField val PROVIDER = ConnectionType(JsonField.of("provider")) + @JvmField val PROVIDER = of("provider") - @JvmField val FINCH = ConnectionType(JsonField.of("finch")) + @JvmField val FINCH = of("finch") @JvmStatic fun of(value: String) = ConnectionType(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedCreateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedCreateParams.kt index fb33c269..78f4b54c 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedCreateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedCreateParams.kt @@ -390,7 +390,7 @@ constructor( companion object { - @JvmField val DATA_SYNC_ALL = Type(JsonField.of("data_sync_all")) + @JvmField val DATA_SYNC_ALL = of("data_sync_all") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -527,7 +527,7 @@ constructor( companion object { - @JvmField val W4_FORM_EMPLOYEE_SYNC = Type(JsonField.of("w4_form_employee_sync")) + @JvmField val W4_FORM_EMPLOYEE_SYNC = of("w4_form_employee_sync") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobCompletionEvent.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobCompletionEvent.kt index 1bc6c5df..44f8faa6 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobCompletionEvent.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobCompletionEvent.kt @@ -327,28 +327,17 @@ private constructor( companion object { - @JvmField - val JOB_BENEFIT_CREATE_COMPLETED = - EventType(JsonField.of("job.benefit_create.completed")) + @JvmField val JOB_BENEFIT_CREATE_COMPLETED = of("job.benefit_create.completed") - @JvmField - val JOB_BENEFIT_ENROLL_COMPLETED = - EventType(JsonField.of("job.benefit_enroll.completed")) + @JvmField val JOB_BENEFIT_ENROLL_COMPLETED = of("job.benefit_enroll.completed") - @JvmField - val JOB_BENEFIT_REGISTER_COMPLETED = - EventType(JsonField.of("job.benefit_register.completed")) + @JvmField val JOB_BENEFIT_REGISTER_COMPLETED = of("job.benefit_register.completed") - @JvmField - val JOB_BENEFIT_UNENROLL_COMPLETED = - EventType(JsonField.of("job.benefit_unenroll.completed")) + @JvmField val JOB_BENEFIT_UNENROLL_COMPLETED = of("job.benefit_unenroll.completed") - @JvmField - val JOB_BENEFIT_UPDATE_COMPLETED = - EventType(JsonField.of("job.benefit_update.completed")) + @JvmField val JOB_BENEFIT_UPDATE_COMPLETED = of("job.benefit_update.completed") - @JvmField - val JOB_DATA_SYNC_ALL_COMPLETED = EventType(JsonField.of("job.data_sync_all.completed")) + @JvmField val JOB_DATA_SYNC_ALL_COMPLETED = of("job.data_sync_all.completed") @JvmStatic fun of(value: String) = EventType(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ManualAsyncJob.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ManualAsyncJob.kt index 0798bd9a..4f94108b 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ManualAsyncJob.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ManualAsyncJob.kt @@ -144,13 +144,13 @@ private constructor( companion object { - @JvmField val PENDING = Status(JsonField.of("pending")) + @JvmField val PENDING = of("pending") - @JvmField val IN_PROGRESS = Status(JsonField.of("in_progress")) + @JvmField val IN_PROGRESS = of("in_progress") - @JvmField val ERROR = Status(JsonField.of("error")) + @JvmField val ERROR = of("error") - @JvmField val COMPLETE = Status(JsonField.of("complete")) + @JvmField val COMPLETE = of("complete") @JvmStatic fun of(value: String) = Status(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/OperationSupport.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/OperationSupport.kt index cd3bf015..132cbb7f 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/OperationSupport.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/OperationSupport.kt @@ -30,15 +30,13 @@ private constructor( companion object { - @JvmField val SUPPORTED = OperationSupport(JsonField.of("supported")) + @JvmField val SUPPORTED = of("supported") - @JvmField - val NOT_SUPPORTED_BY_FINCH = OperationSupport(JsonField.of("not_supported_by_finch")) + @JvmField val NOT_SUPPORTED_BY_FINCH = of("not_supported_by_finch") - @JvmField - val NOT_SUPPORTED_BY_PROVIDER = OperationSupport(JsonField.of("not_supported_by_provider")) + @JvmField val NOT_SUPPORTED_BY_PROVIDER = of("not_supported_by_provider") - @JvmField val CLIENT_ACCESS_ONLY = OperationSupport(JsonField.of("client_access_only")) + @JvmField val CLIENT_ACCESS_ONLY = of("client_access_only") @JvmStatic fun of(value: String) = OperationSupport(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayGroupListResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayGroupListResponse.kt index 72227b93..48bc4e5d 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayGroupListResponse.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayGroupListResponse.kt @@ -154,23 +154,23 @@ private constructor( companion object { - @JvmField val ANNUALLY = PayFrequency(JsonField.of("annually")) + @JvmField val ANNUALLY = of("annually") - @JvmField val SEMI_ANNUALLY = PayFrequency(JsonField.of("semi_annually")) + @JvmField val SEMI_ANNUALLY = of("semi_annually") - @JvmField val QUARTERLY = PayFrequency(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val MONTHLY = PayFrequency(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val SEMI_MONTHLY = PayFrequency(JsonField.of("semi_monthly")) + @JvmField val SEMI_MONTHLY = of("semi_monthly") - @JvmField val BI_WEEKLY = PayFrequency(JsonField.of("bi_weekly")) + @JvmField val BI_WEEKLY = of("bi_weekly") - @JvmField val WEEKLY = PayFrequency(JsonField.of("weekly")) + @JvmField val WEEKLY = of("weekly") - @JvmField val DAILY = PayFrequency(JsonField.of("daily")) + @JvmField val DAILY = of("daily") - @JvmField val OTHER = PayFrequency(JsonField.of("other")) + @JvmField val OTHER = of("other") @JvmStatic fun of(value: String) = PayFrequency(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayGroupRetrieveResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayGroupRetrieveResponse.kt index e119b5be..f52af293 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayGroupRetrieveResponse.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayGroupRetrieveResponse.kt @@ -169,23 +169,23 @@ private constructor( companion object { - @JvmField val ANNUALLY = PayFrequency(JsonField.of("annually")) + @JvmField val ANNUALLY = of("annually") - @JvmField val SEMI_ANNUALLY = PayFrequency(JsonField.of("semi_annually")) + @JvmField val SEMI_ANNUALLY = of("semi_annually") - @JvmField val QUARTERLY = PayFrequency(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val MONTHLY = PayFrequency(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val SEMI_MONTHLY = PayFrequency(JsonField.of("semi_monthly")) + @JvmField val SEMI_MONTHLY = of("semi_monthly") - @JvmField val BI_WEEKLY = PayFrequency(JsonField.of("bi_weekly")) + @JvmField val BI_WEEKLY = of("bi_weekly") - @JvmField val WEEKLY = PayFrequency(JsonField.of("weekly")) + @JvmField val WEEKLY = of("weekly") - @JvmField val DAILY = PayFrequency(JsonField.of("daily")) + @JvmField val DAILY = of("daily") - @JvmField val OTHER = PayFrequency(JsonField.of("other")) + @JvmField val OTHER = of("other") @JvmStatic fun of(value: String) = PayFrequency(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatement.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatement.kt index ecd56450..12479b95 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatement.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatement.kt @@ -454,31 +454,31 @@ private constructor( companion object { - @JvmField val SALARY = Type(JsonField.of("salary")) + @JvmField val SALARY = of("salary") - @JvmField val WAGE = Type(JsonField.of("wage")) + @JvmField val WAGE = of("wage") - @JvmField val REIMBURSEMENT = Type(JsonField.of("reimbursement")) + @JvmField val REIMBURSEMENT = of("reimbursement") - @JvmField val OVERTIME = Type(JsonField.of("overtime")) + @JvmField val OVERTIME = of("overtime") - @JvmField val SEVERANCE = Type(JsonField.of("severance")) + @JvmField val SEVERANCE = of("severance") - @JvmField val DOUBLE_OVERTIME = Type(JsonField.of("double_overtime")) + @JvmField val DOUBLE_OVERTIME = of("double_overtime") - @JvmField val PTO = Type(JsonField.of("pto")) + @JvmField val PTO = of("pto") - @JvmField val SICK = Type(JsonField.of("sick")) + @JvmField val SICK = of("sick") - @JvmField val BONUS = Type(JsonField.of("bonus")) + @JvmField val BONUS = of("bonus") - @JvmField val COMMISSION = Type(JsonField.of("commission")) + @JvmField val COMMISSION = of("commission") - @JvmField val TIPS = Type(JsonField.of("tips")) + @JvmField val TIPS = of("tips") - @JvmField val _1099 = Type(JsonField.of("1099")) + @JvmField val _1099 = of("1099") - @JvmField val OTHER = Type(JsonField.of("other")) + @JvmField val OTHER = of("other") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -912,9 +912,9 @@ private constructor( companion object { - @JvmField val CHECK = PaymentMethod(JsonField.of("check")) + @JvmField val CHECK = of("check") - @JvmField val DIRECT_DEPOSIT = PaymentMethod(JsonField.of("direct_deposit")) + @JvmField val DIRECT_DEPOSIT = of("direct_deposit") @JvmStatic fun of(value: String) = PaymentMethod(JsonField.of(value)) } @@ -1119,13 +1119,13 @@ private constructor( companion object { - @JvmField val STATE = Type(JsonField.of("state")) + @JvmField val STATE = of("state") - @JvmField val FEDERAL = Type(JsonField.of("federal")) + @JvmField val FEDERAL = of("federal") - @JvmField val LOCAL = Type(JsonField.of("local")) + @JvmField val LOCAL = of("local") - @JvmField val FICA = Type(JsonField.of("fica")) + @JvmField val FICA = of("fica") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -1206,11 +1206,11 @@ private constructor( companion object { - @JvmField val REGULAR_PAYROLL = Type(JsonField.of("regular_payroll")) + @JvmField val REGULAR_PAYROLL = of("regular_payroll") - @JvmField val OFF_CYCLE_PAYROLL = Type(JsonField.of("off_cycle_payroll")) + @JvmField val OFF_CYCLE_PAYROLL = of("off_cycle_payroll") - @JvmField val ONE_TIME_PAYMENT = Type(JsonField.of("one_time_payment")) + @JvmField val ONE_TIME_PAYMENT = of("one_time_payment") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatementEvent.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatementEvent.kt index b8ee9567..0ba26ddb 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatementEvent.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatementEvent.kt @@ -330,11 +330,11 @@ private constructor( companion object { - @JvmField val PAY_STATEMENT_CREATED = EventType(JsonField.of("pay_statement.created")) + @JvmField val PAY_STATEMENT_CREATED = of("pay_statement.created") - @JvmField val PAY_STATEMENT_UPDATED = EventType(JsonField.of("pay_statement.updated")) + @JvmField val PAY_STATEMENT_UPDATED = of("pay_statement.updated") - @JvmField val PAY_STATEMENT_DELETED = EventType(JsonField.of("pay_statement.deleted")) + @JvmField val PAY_STATEMENT_DELETED = of("pay_statement.deleted") @JvmStatic fun of(value: String) = EventType(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Payment.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Payment.kt index 701bd06d..9d620c8d 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Payment.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Payment.kt @@ -312,23 +312,23 @@ private constructor( companion object { - @JvmField val ANNUALLY = PayFrequency(JsonField.of("annually")) + @JvmField val ANNUALLY = of("annually") - @JvmField val SEMI_ANNUALLY = PayFrequency(JsonField.of("semi_annually")) + @JvmField val SEMI_ANNUALLY = of("semi_annually") - @JvmField val QUARTERLY = PayFrequency(JsonField.of("quarterly")) + @JvmField val QUARTERLY = of("quarterly") - @JvmField val MONTHLY = PayFrequency(JsonField.of("monthly")) + @JvmField val MONTHLY = of("monthly") - @JvmField val SEMI_MONTHLY = PayFrequency(JsonField.of("semi_monthly")) + @JvmField val SEMI_MONTHLY = of("semi_monthly") - @JvmField val BI_WEEKLY = PayFrequency(JsonField.of("bi_weekly")) + @JvmField val BI_WEEKLY = of("bi_weekly") - @JvmField val WEEKLY = PayFrequency(JsonField.of("weekly")) + @JvmField val WEEKLY = of("weekly") - @JvmField val DAILY = PayFrequency(JsonField.of("daily")) + @JvmField val DAILY = of("daily") - @JvmField val OTHER = PayFrequency(JsonField.of("other")) + @JvmField val OTHER = of("other") @JvmStatic fun of(value: String) = PayFrequency(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PaymentEvent.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PaymentEvent.kt index 02d64e4d..c89f5702 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PaymentEvent.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PaymentEvent.kt @@ -327,11 +327,11 @@ private constructor( companion object { - @JvmField val PAYMENT_CREATED = EventType(JsonField.of("payment.created")) + @JvmField val PAYMENT_CREATED = of("payment.created") - @JvmField val PAYMENT_UPDATED = EventType(JsonField.of("payment.updated")) + @JvmField val PAYMENT_UPDATED = of("payment.updated") - @JvmField val PAYMENT_DELETED = EventType(JsonField.of("payment.deleted")) + @JvmField val PAYMENT_DELETED = of("payment.deleted") @JvmStatic fun of(value: String) = EventType(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Provider.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Provider.kt index 86b48fed..9a892352 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Provider.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Provider.kt @@ -5232,15 +5232,15 @@ private constructor( companion object { - @JvmField val ASSISTED = Type(JsonField.of("assisted")) + @JvmField val ASSISTED = of("assisted") - @JvmField val CREDENTIAL = Type(JsonField.of("credential")) + @JvmField val CREDENTIAL = of("credential") - @JvmField val API_TOKEN = Type(JsonField.of("api_token")) + @JvmField val API_TOKEN = of("api_token") - @JvmField val API_CREDENTIAL = Type(JsonField.of("api_credential")) + @JvmField val API_CREDENTIAL = of("api_credential") - @JvmField val OAUTH = Type(JsonField.of("oauth")) + @JvmField val OAUTH = of("oauth") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxCompanyUpdateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxCompanyUpdateParams.kt index 587b47f6..1438e80f 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxCompanyUpdateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxCompanyUpdateParams.kt @@ -576,9 +576,9 @@ constructor( companion object { - @JvmField val CHECKING = AccountType(JsonField.of("checking")) + @JvmField val CHECKING = of("checking") - @JvmField val SAVINGS = AccountType(JsonField.of("savings")) + @JvmField val SAVINGS = of("savings") @JvmStatic fun of(value: String) = AccountType(JsonField.of(value)) } @@ -878,11 +878,11 @@ constructor( companion object { - @JvmField val S_CORPORATION = Subtype(JsonField.of("s_corporation")) + @JvmField val S_CORPORATION = of("s_corporation") - @JvmField val C_CORPORATION = Subtype(JsonField.of("c_corporation")) + @JvmField val C_CORPORATION = of("c_corporation") - @JvmField val B_CORPORATION = Subtype(JsonField.of("b_corporation")) + @JvmField val B_CORPORATION = of("b_corporation") @JvmStatic fun of(value: String) = Subtype(JsonField.of(value)) } @@ -941,19 +941,19 @@ constructor( companion object { - @JvmField val LLC = Type(JsonField.of("llc")) + @JvmField val LLC = of("llc") - @JvmField val LP = Type(JsonField.of("lp")) + @JvmField val LP = of("lp") - @JvmField val CORPORATION = Type(JsonField.of("corporation")) + @JvmField val CORPORATION = of("corporation") - @JvmField val SOLE_PROPRIETOR = Type(JsonField.of("sole_proprietor")) + @JvmField val SOLE_PROPRIETOR = of("sole_proprietor") - @JvmField val NON_PROFIT = Type(JsonField.of("non_profit")) + @JvmField val NON_PROFIT = of("non_profit") - @JvmField val PARTNERSHIP = Type(JsonField.of("partnership")) + @JvmField val PARTNERSHIP = of("partnership") - @JvmField val COOPERATIVE = Type(JsonField.of("cooperative")) + @JvmField val COOPERATIVE = of("cooperative") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionAccountCreateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionAccountCreateParams.kt index fcd9f008..36d37b4b 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionAccountCreateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionAccountCreateParams.kt @@ -388,13 +388,13 @@ constructor( companion object { - @JvmField val CREDENTIAL = AuthenticationType(JsonField.of("credential")) + @JvmField val CREDENTIAL = of("credential") - @JvmField val API_TOKEN = AuthenticationType(JsonField.of("api_token")) + @JvmField val API_TOKEN = of("api_token") - @JvmField val OAUTH = AuthenticationType(JsonField.of("oauth")) + @JvmField val OAUTH = of("oauth") - @JvmField val ASSISTED = AuthenticationType(JsonField.of("assisted")) + @JvmField val ASSISTED = of("assisted") @JvmStatic fun of(value: String) = AuthenticationType(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionCreateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionCreateParams.kt index 23a29139..ea4ecb1b 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionCreateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionCreateParams.kt @@ -381,13 +381,13 @@ constructor( companion object { - @JvmField val CREDENTIAL = AuthenticationType(JsonField.of("credential")) + @JvmField val CREDENTIAL = of("credential") - @JvmField val API_TOKEN = AuthenticationType(JsonField.of("api_token")) + @JvmField val API_TOKEN = of("api_token") - @JvmField val OAUTH = AuthenticationType(JsonField.of("oauth")) + @JvmField val OAUTH = of("oauth") - @JvmField val ASSISTED = AuthenticationType(JsonField.of("assisted")) + @JvmField val ASSISTED = of("assisted") @JvmStatic fun of(value: String) = AuthenticationType(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxDirectoryCreateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxDirectoryCreateParams.kt index bb966530..7657f18b 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxDirectoryCreateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxDirectoryCreateParams.kt @@ -845,9 +845,9 @@ constructor( companion object { - @JvmField val WORK = Type(JsonField.of("work")) + @JvmField val WORK = of("work") - @JvmField val PERSONAL = Type(JsonField.of("personal")) + @JvmField val PERSONAL = of("personal") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -996,18 +996,17 @@ constructor( companion object { - @JvmField val FULL_TIME = Subtype(JsonField.of("full_time")) + @JvmField val FULL_TIME = of("full_time") - @JvmField val INTERN = Subtype(JsonField.of("intern")) + @JvmField val INTERN = of("intern") - @JvmField val PART_TIME = Subtype(JsonField.of("part_time")) + @JvmField val PART_TIME = of("part_time") - @JvmField val TEMP = Subtype(JsonField.of("temp")) + @JvmField val TEMP = of("temp") - @JvmField val SEASONAL = Subtype(JsonField.of("seasonal")) + @JvmField val SEASONAL = of("seasonal") - @JvmField - val INDIVIDUAL_CONTRACTOR = Subtype(JsonField.of("individual_contractor")) + @JvmField val INDIVIDUAL_CONTRACTOR = of("individual_contractor") @JvmStatic fun of(value: String) = Subtype(JsonField.of(value)) } @@ -1078,9 +1077,9 @@ constructor( companion object { - @JvmField val EMPLOYEE = Type(JsonField.of("employee")) + @JvmField val EMPLOYEE = of("employee") - @JvmField val CONTRACTOR = Type(JsonField.of("contractor")) + @JvmField val CONTRACTOR = of("contractor") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -1153,19 +1152,19 @@ constructor( companion object { - @JvmField val ACTIVE = EmploymentStatus(JsonField.of("active")) + @JvmField val ACTIVE = of("active") - @JvmField val DECEASED = EmploymentStatus(JsonField.of("deceased")) + @JvmField val DECEASED = of("deceased") - @JvmField val LEAVE = EmploymentStatus(JsonField.of("leave")) + @JvmField val LEAVE = of("leave") - @JvmField val ONBOARDING = EmploymentStatus(JsonField.of("onboarding")) + @JvmField val ONBOARDING = of("onboarding") - @JvmField val PREHIRE = EmploymentStatus(JsonField.of("prehire")) + @JvmField val PREHIRE = of("prehire") - @JvmField val RETIRED = EmploymentStatus(JsonField.of("retired")) + @JvmField val RETIRED = of("retired") - @JvmField val TERMINATED = EmploymentStatus(JsonField.of("terminated")) + @JvmField val TERMINATED = of("terminated") @JvmStatic fun of(value: String) = EmploymentStatus(JsonField.of(value)) } @@ -1240,26 +1239,23 @@ constructor( companion object { - @JvmField val ASIAN = Ethnicity(JsonField.of("asian")) + @JvmField val ASIAN = of("asian") - @JvmField val WHITE = Ethnicity(JsonField.of("white")) + @JvmField val WHITE = of("white") - @JvmField - val BLACK_OR_AFRICAN_AMERICAN = Ethnicity(JsonField.of("black_or_african_american")) + @JvmField val BLACK_OR_AFRICAN_AMERICAN = of("black_or_african_american") @JvmField - val NATIVE_HAWAIIAN_OR_PACIFIC_ISLANDER = - Ethnicity(JsonField.of("native_hawaiian_or_pacific_islander")) + val NATIVE_HAWAIIAN_OR_PACIFIC_ISLANDER = of("native_hawaiian_or_pacific_islander") @JvmField - val AMERICAN_INDIAN_OR_ALASKA_NATIVE = - Ethnicity(JsonField.of("american_indian_or_alaska_native")) + val AMERICAN_INDIAN_OR_ALASKA_NATIVE = of("american_indian_or_alaska_native") - @JvmField val HISPANIC_OR_LATINO = Ethnicity(JsonField.of("hispanic_or_latino")) + @JvmField val HISPANIC_OR_LATINO = of("hispanic_or_latino") - @JvmField val TWO_OR_MORE_RACES = Ethnicity(JsonField.of("two_or_more_races")) + @JvmField val TWO_OR_MORE_RACES = of("two_or_more_races") - @JvmField val DECLINE_TO_SPECIFY = Ethnicity(JsonField.of("decline_to_specify")) + @JvmField val DECLINE_TO_SPECIFY = of("decline_to_specify") @JvmStatic fun of(value: String) = Ethnicity(JsonField.of(value)) } @@ -1338,13 +1334,13 @@ constructor( companion object { - @JvmField val FEMALE = Gender(JsonField.of("female")) + @JvmField val FEMALE = of("female") - @JvmField val MALE = Gender(JsonField.of("male")) + @JvmField val MALE = of("male") - @JvmField val OTHER = Gender(JsonField.of("other")) + @JvmField val OTHER = of("other") - @JvmField val DECLINE_TO_SPECIFY = Gender(JsonField.of("decline_to_specify")) + @JvmField val DECLINE_TO_SPECIFY = of("decline_to_specify") @JvmStatic fun of(value: String) = Gender(JsonField.of(value)) } @@ -1543,9 +1539,9 @@ constructor( companion object { - @JvmField val WORK = Type(JsonField.of("work")) + @JvmField val WORK = of("work") - @JvmField val PERSONAL = Type(JsonField.of("personal")) + @JvmField val PERSONAL = of("personal") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxEmploymentUpdateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxEmploymentUpdateParams.kt index 1224df8f..533d702f 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxEmploymentUpdateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxEmploymentUpdateParams.kt @@ -941,17 +941,17 @@ constructor( companion object { - @JvmField val FULL_TIME = Subtype(JsonField.of("full_time")) + @JvmField val FULL_TIME = of("full_time") - @JvmField val INTERN = Subtype(JsonField.of("intern")) + @JvmField val INTERN = of("intern") - @JvmField val PART_TIME = Subtype(JsonField.of("part_time")) + @JvmField val PART_TIME = of("part_time") - @JvmField val TEMP = Subtype(JsonField.of("temp")) + @JvmField val TEMP = of("temp") - @JvmField val SEASONAL = Subtype(JsonField.of("seasonal")) + @JvmField val SEASONAL = of("seasonal") - @JvmField val INDIVIDUAL_CONTRACTOR = Subtype(JsonField.of("individual_contractor")) + @JvmField val INDIVIDUAL_CONTRACTOR = of("individual_contractor") @JvmStatic fun of(value: String) = Subtype(JsonField.of(value)) } @@ -1022,9 +1022,9 @@ constructor( companion object { - @JvmField val EMPLOYEE = Type(JsonField.of("employee")) + @JvmField val EMPLOYEE = of("employee") - @JvmField val CONTRACTOR = Type(JsonField.of("contractor")) + @JvmField val CONTRACTOR = of("contractor") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -1097,19 +1097,19 @@ constructor( companion object { - @JvmField val ACTIVE = EmploymentStatus(JsonField.of("active")) + @JvmField val ACTIVE = of("active") - @JvmField val DECEASED = EmploymentStatus(JsonField.of("deceased")) + @JvmField val DECEASED = of("deceased") - @JvmField val LEAVE = EmploymentStatus(JsonField.of("leave")) + @JvmField val LEAVE = of("leave") - @JvmField val ONBOARDING = EmploymentStatus(JsonField.of("onboarding")) + @JvmField val ONBOARDING = of("onboarding") - @JvmField val PREHIRE = EmploymentStatus(JsonField.of("prehire")) + @JvmField val PREHIRE = of("prehire") - @JvmField val RETIRED = EmploymentStatus(JsonField.of("retired")) + @JvmField val RETIRED = of("retired") - @JvmField val TERMINATED = EmploymentStatus(JsonField.of("terminated")) + @JvmField val TERMINATED = of("terminated") @JvmStatic fun of(value: String) = EmploymentStatus(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxIndividualUpdateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxIndividualUpdateParams.kt index b4c5774b..5e3dac3b 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxIndividualUpdateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxIndividualUpdateParams.kt @@ -632,9 +632,9 @@ constructor( companion object { - @JvmField val WORK = Type(JsonField.of("work")) + @JvmField val WORK = of("work") - @JvmField val PERSONAL = Type(JsonField.of("personal")) + @JvmField val PERSONAL = of("personal") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -707,26 +707,22 @@ constructor( companion object { - @JvmField val ASIAN = Ethnicity(JsonField.of("asian")) + @JvmField val ASIAN = of("asian") - @JvmField val WHITE = Ethnicity(JsonField.of("white")) + @JvmField val WHITE = of("white") - @JvmField - val BLACK_OR_AFRICAN_AMERICAN = Ethnicity(JsonField.of("black_or_african_american")) + @JvmField val BLACK_OR_AFRICAN_AMERICAN = of("black_or_african_american") @JvmField - val NATIVE_HAWAIIAN_OR_PACIFIC_ISLANDER = - Ethnicity(JsonField.of("native_hawaiian_or_pacific_islander")) + val NATIVE_HAWAIIAN_OR_PACIFIC_ISLANDER = of("native_hawaiian_or_pacific_islander") - @JvmField - val AMERICAN_INDIAN_OR_ALASKA_NATIVE = - Ethnicity(JsonField.of("american_indian_or_alaska_native")) + @JvmField val AMERICAN_INDIAN_OR_ALASKA_NATIVE = of("american_indian_or_alaska_native") - @JvmField val HISPANIC_OR_LATINO = Ethnicity(JsonField.of("hispanic_or_latino")) + @JvmField val HISPANIC_OR_LATINO = of("hispanic_or_latino") - @JvmField val TWO_OR_MORE_RACES = Ethnicity(JsonField.of("two_or_more_races")) + @JvmField val TWO_OR_MORE_RACES = of("two_or_more_races") - @JvmField val DECLINE_TO_SPECIFY = Ethnicity(JsonField.of("decline_to_specify")) + @JvmField val DECLINE_TO_SPECIFY = of("decline_to_specify") @JvmStatic fun of(value: String) = Ethnicity(JsonField.of(value)) } @@ -805,13 +801,13 @@ constructor( companion object { - @JvmField val FEMALE = Gender(JsonField.of("female")) + @JvmField val FEMALE = of("female") - @JvmField val MALE = Gender(JsonField.of("male")) + @JvmField val MALE = of("male") - @JvmField val OTHER = Gender(JsonField.of("other")) + @JvmField val OTHER = of("other") - @JvmField val DECLINE_TO_SPECIFY = Gender(JsonField.of("decline_to_specify")) + @JvmField val DECLINE_TO_SPECIFY = of("decline_to_specify") @JvmStatic fun of(value: String) = Gender(JsonField.of(value)) } @@ -937,9 +933,9 @@ constructor( companion object { - @JvmField val WORK = Type(JsonField.of("work")) + @JvmField val WORK = of("work") - @JvmField val PERSONAL = Type(JsonField.of("personal")) + @JvmField val PERSONAL = of("personal") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfiguration.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfiguration.kt index 40cfdba5..028fd976 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfiguration.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfiguration.kt @@ -127,13 +127,13 @@ private constructor( companion object { - @JvmField val COMPLETE = CompletionStatus(JsonField.of("complete")) + @JvmField val COMPLETE = of("complete") - @JvmField val REAUTH_ERROR = CompletionStatus(JsonField.of("reauth_error")) + @JvmField val REAUTH_ERROR = of("reauth_error") - @JvmField val PERMISSIONS_ERROR = CompletionStatus(JsonField.of("permissions_error")) + @JvmField val PERMISSIONS_ERROR = of("permissions_error") - @JvmField val ERROR = CompletionStatus(JsonField.of("error")) + @JvmField val ERROR = of("error") @JvmStatic fun of(value: String) = CompletionStatus(JsonField.of(value)) } @@ -196,7 +196,7 @@ private constructor( companion object { - @JvmField val DATA_SYNC_ALL = Type(JsonField.of("data_sync_all")) + @JvmField val DATA_SYNC_ALL = of("data_sync_all") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfigurationUpdateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfigurationUpdateParams.kt index 17b433ed..040684c1 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfigurationUpdateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfigurationUpdateParams.kt @@ -327,13 +327,13 @@ constructor( companion object { - @JvmField val COMPLETE = CompletionStatus(JsonField.of("complete")) + @JvmField val COMPLETE = of("complete") - @JvmField val REAUTH_ERROR = CompletionStatus(JsonField.of("reauth_error")) + @JvmField val REAUTH_ERROR = of("reauth_error") - @JvmField val PERMISSIONS_ERROR = CompletionStatus(JsonField.of("permissions_error")) + @JvmField val PERMISSIONS_ERROR = of("permissions_error") - @JvmField val ERROR = CompletionStatus(JsonField.of("error")) + @JvmField val ERROR = of("error") @JvmStatic fun of(value: String) = CompletionStatus(JsonField.of(value)) } @@ -396,7 +396,7 @@ constructor( companion object { - @JvmField val DATA_SYNC_ALL = Type(JsonField.of("data_sync_all")) + @JvmField val DATA_SYNC_ALL = of("data_sync_all") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobCreateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobCreateParams.kt index f3842a65..9f946d59 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobCreateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobCreateParams.kt @@ -297,7 +297,7 @@ constructor( companion object { - @JvmField val DATA_SYNC_ALL = Type(JsonField.of("data_sync_all")) + @JvmField val DATA_SYNC_ALL = of("data_sync_all") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParams.kt index a105dc4c..3562e571 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParams.kt @@ -610,31 +610,31 @@ constructor( companion object { - @JvmField val SALARY = Type(JsonField.of("salary")) + @JvmField val SALARY = of("salary") - @JvmField val WAGE = Type(JsonField.of("wage")) + @JvmField val WAGE = of("wage") - @JvmField val REIMBURSEMENT = Type(JsonField.of("reimbursement")) + @JvmField val REIMBURSEMENT = of("reimbursement") - @JvmField val OVERTIME = Type(JsonField.of("overtime")) + @JvmField val OVERTIME = of("overtime") - @JvmField val SEVERANCE = Type(JsonField.of("severance")) + @JvmField val SEVERANCE = of("severance") - @JvmField val DOUBLE_OVERTIME = Type(JsonField.of("double_overtime")) + @JvmField val DOUBLE_OVERTIME = of("double_overtime") - @JvmField val PTO = Type(JsonField.of("pto")) + @JvmField val PTO = of("pto") - @JvmField val SICK = Type(JsonField.of("sick")) + @JvmField val SICK = of("sick") - @JvmField val BONUS = Type(JsonField.of("bonus")) + @JvmField val BONUS = of("bonus") - @JvmField val COMMISSION = Type(JsonField.of("commission")) + @JvmField val COMMISSION = of("commission") - @JvmField val TIPS = Type(JsonField.of("tips")) + @JvmField val TIPS = of("tips") - @JvmField val _1099 = Type(JsonField.of("1099")) + @JvmField val _1099 = of("1099") - @JvmField val OTHER = Type(JsonField.of("other")) + @JvmField val OTHER = of("other") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -976,9 +976,9 @@ constructor( companion object { - @JvmField val CHECK = PaymentMethod(JsonField.of("check")) + @JvmField val CHECK = of("check") - @JvmField val DIRECT_DEPOSIT = PaymentMethod(JsonField.of("direct_deposit")) + @JvmField val DIRECT_DEPOSIT = of("direct_deposit") @JvmStatic fun of(value: String) = PaymentMethod(JsonField.of(value)) } @@ -1133,13 +1133,13 @@ constructor( companion object { - @JvmField val STATE = Type(JsonField.of("state")) + @JvmField val STATE = of("state") - @JvmField val FEDERAL = Type(JsonField.of("federal")) + @JvmField val FEDERAL = of("federal") - @JvmField val LOCAL = Type(JsonField.of("local")) + @JvmField val LOCAL = of("local") - @JvmField val FICA = Type(JsonField.of("fica")) + @JvmField val FICA = of("fica") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } @@ -1220,11 +1220,11 @@ constructor( companion object { - @JvmField val REGULAR_PAYROLL = Type(JsonField.of("regular_payroll")) + @JvmField val REGULAR_PAYROLL = of("regular_payroll") - @JvmField val OFF_CYCLE_PAYROLL = Type(JsonField.of("off_cycle_payroll")) + @JvmField val OFF_CYCLE_PAYROLL = of("off_cycle_payroll") - @JvmField val ONE_TIME_PAYMENT = Type(JsonField.of("one_time_payment")) + @JvmField val ONE_TIME_PAYMENT = of("one_time_payment") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SupportedBenefit.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SupportedBenefit.kt index e1878699..821509a1 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SupportedBenefit.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SupportedBenefit.kt @@ -297,9 +297,9 @@ private constructor( companion object { - @JvmField val FIXED = CompanyContribution(JsonField.of("fixed")) + @JvmField val FIXED = of("fixed") - @JvmField val PERCENT = CompanyContribution(JsonField.of("percent")) + @JvmField val PERCENT = of("percent") @JvmStatic fun of(value: String) = CompanyContribution(JsonField.of(value)) } @@ -354,9 +354,9 @@ private constructor( companion object { - @JvmField val FIXED = EmployeeDeduction(JsonField.of("fixed")) + @JvmField val FIXED = of("fixed") - @JvmField val PERCENT = EmployeeDeduction(JsonField.of("percent")) + @JvmField val PERCENT = of("percent") @JvmStatic fun of(value: String) = EmployeeDeduction(JsonField.of(value)) } @@ -411,9 +411,9 @@ private constructor( companion object { - @JvmField val INDIVIDUAL = HsaContributionLimit(JsonField.of("individual")) + @JvmField val INDIVIDUAL = of("individual") - @JvmField val FAMILY = HsaContributionLimit(JsonField.of("family")) + @JvmField val FAMILY = of("family") @JvmStatic fun of(value: String) = HsaContributionLimit(JsonField.of(value)) } From bd29c58c914b831560d94ad7cd60a3ae6cb79742 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Dec 2024 20:08:10 +0000 Subject: [PATCH 09/23] style(internal): move enum identity methods to bottom of class (#353) --- .../api/models/AccountCreateResponse.kt | 24 +-- .../tryfinch/api/models/AccountUpdateEvent.kt | 48 +++--- .../api/models/AccountUpdateResponse.kt | 24 +-- .../tryfinch/api/models/AutomatedAsyncJob.kt | 44 ++--- .../api/models/BenefitContribution.kt | 24 +-- .../models/BenefitFeaturesAndOperations.kt | 64 +++---- .../tryfinch/api/models/BenefitFrequency.kt | 24 +-- .../com/tryfinch/api/models/BenefitType.kt | 24 +-- .../kotlin/com/tryfinch/api/models/Company.kt | 68 ++++---- .../com/tryfinch/api/models/CompanyEvent.kt | 24 +-- .../api/models/CompanyUpdateResponse.kt | 68 ++++---- .../api/models/ConnectSessionNewParams.kt | 72 ++++---- .../ConnectSessionReauthenticateParams.kt | 24 +-- .../api/models/ConnectionCreateResponse.kt | 24 +-- .../api/models/ConnectionStatusType.kt | 24 +-- .../api/models/CreateAccessTokenResponse.kt | 44 ++--- .../com/tryfinch/api/models/DirectoryEvent.kt | 24 +-- .../com/tryfinch/api/models/EmploymentData.kt | 68 ++++---- .../tryfinch/api/models/EmploymentEvent.kt | 24 +-- .../api/models/EmploymentUpdateResponse.kt | 68 ++++---- .../tryfinch/api/models/EnrolledIndividual.kt | 24 +-- .../kotlin/com/tryfinch/api/models/Income.kt | 24 +-- .../com/tryfinch/api/models/Individual.kt | 92 +++++------ .../tryfinch/api/models/IndividualBenefit.kt | 24 +-- .../tryfinch/api/models/IndividualEvent.kt | 24 +-- .../api/models/IndividualUpdateResponse.kt | 92 +++++------ .../com/tryfinch/api/models/Introspection.kt | 72 ++++---- .../api/models/JobAutomatedCreateParams.kt | 48 +++--- .../tryfinch/api/models/JobCompletionEvent.kt | 24 +-- .../com/tryfinch/api/models/ManualAsyncJob.kt | 24 +-- .../tryfinch/api/models/OperationSupport.kt | 24 +-- .../api/models/PayGroupListResponse.kt | 24 +-- .../api/models/PayGroupRetrieveResponse.kt | 24 +-- .../com/tryfinch/api/models/PayStatement.kt | 96 +++++------ .../tryfinch/api/models/PayStatementEvent.kt | 24 +-- .../kotlin/com/tryfinch/api/models/Payment.kt | 24 +-- .../com/tryfinch/api/models/PaymentEvent.kt | 24 +-- .../com/tryfinch/api/models/Provider.kt | 24 +-- .../api/models/SandboxCompanyUpdateParams.kt | 68 ++++---- .../SandboxConnectionAccountCreateParams.kt | 24 +-- .../models/SandboxConnectionCreateParams.kt | 24 +-- .../models/SandboxDirectoryCreateParams.kt | 156 +++++++++--------- .../models/SandboxEmploymentUpdateParams.kt | 68 ++++---- .../models/SandboxIndividualUpdateParams.kt | 92 +++++------ .../api/models/SandboxJobConfiguration.kt | 44 ++--- .../SandboxJobConfigurationUpdateParams.kt | 44 ++--- .../api/models/SandboxJobCreateParams.kt | 24 +-- .../api/models/SandboxPaymentCreateParams.kt | 96 +++++------ .../tryfinch/api/models/SupportedBenefit.kt | 64 +++---- 49 files changed, 1112 insertions(+), 1112 deletions(-) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountCreateResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountCreateResponse.kt index ec34182f..0b5b001e 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountCreateResponse.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountCreateResponse.kt @@ -209,18 +209,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AuthenticationType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val CREDENTIAL = of("credential") @@ -268,6 +256,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AuthenticationType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountUpdateEvent.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountUpdateEvent.kt index 38bd815d..7ae91c5d 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountUpdateEvent.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountUpdateEvent.kt @@ -5354,18 +5354,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val ASSISTED = of("assisted") @@ -5419,6 +5407,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -5465,18 +5465,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EventType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val ACCOUNT_UPDATED = of("account.updated") @@ -5506,6 +5494,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EventType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountUpdateResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountUpdateResponse.kt index c940043b..f3003216 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountUpdateResponse.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountUpdateResponse.kt @@ -196,18 +196,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AuthenticationType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val CREDENTIAL = of("credential") @@ -255,6 +243,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AuthenticationType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AutomatedAsyncJob.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AutomatedAsyncJob.kt index 9bf151c1..384f7e45 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AutomatedAsyncJob.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AutomatedAsyncJob.kt @@ -265,18 +265,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Status && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val PENDING = of("pending") @@ -336,27 +324,27 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + return /* spotless:off */ other is Status && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class Type + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { @@ -387,6 +375,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitContribution.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitContribution.kt index 535c18ff..7bdc455e 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitContribution.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitContribution.kt @@ -119,18 +119,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val FIXED = of("fixed") @@ -166,6 +154,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitFeaturesAndOperations.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitFeaturesAndOperations.kt index 09768bc1..7a05587b 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitFeaturesAndOperations.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitFeaturesAndOperations.kt @@ -371,18 +371,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is CompanyContribution && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val FIXED = of("fixed") @@ -418,27 +406,27 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class EmployeeDeduction - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is EmployeeDeduction && value == other.value /* spotless:on */ + return /* spotless:off */ other is CompanyContribution && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class EmployeeDeduction + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { @@ -475,27 +463,27 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class HsaContributionLimit - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is HsaContributionLimit && value == other.value /* spotless:on */ + return /* spotless:off */ other is EmployeeDeduction && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class HsaContributionLimit + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { @@ -532,6 +520,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is HsaContributionLimit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitFrequency.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitFrequency.kt index 9b63ce00..a402eb67 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitFrequency.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitFrequency.kt @@ -16,18 +16,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is BenefitFrequency && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val ONE_TIME = of("one_time") @@ -69,4 +57,16 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is BenefitFrequency && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitType.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitType.kt index ba0f1f7b..14e40c34 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitType.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitType.kt @@ -16,18 +16,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is BenefitType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val _401K = of("401k") @@ -165,4 +153,16 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is BenefitType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Company.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Company.kt index 00f01df7..03b210ac 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Company.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Company.kt @@ -435,18 +435,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AccountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val CHECKING = of("checking") @@ -482,6 +470,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AccountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -805,18 +805,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Subtype && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val S_CORPORATION = of("s_corporation") @@ -858,27 +846,27 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + return /* spotless:off */ other is Subtype && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class Type + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { @@ -945,6 +933,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CompanyEvent.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CompanyEvent.kt index eb636e52..513dfd54 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CompanyEvent.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CompanyEvent.kt @@ -271,18 +271,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EventType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val COMPANY_UPDATED = of("company.updated") @@ -312,6 +300,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EventType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CompanyUpdateResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CompanyUpdateResponse.kt index 593ad5c9..0883a88f 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CompanyUpdateResponse.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CompanyUpdateResponse.kt @@ -418,18 +418,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AccountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val CHECKING = of("checking") @@ -465,6 +453,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AccountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -788,18 +788,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Subtype && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val S_CORPORATION = of("s_corporation") @@ -841,27 +829,27 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + return /* spotless:off */ other is Subtype && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class Type + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { @@ -928,6 +916,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectSessionNewParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectSessionNewParams.kt index f8c70d87..d23d59a2 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectSessionNewParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectSessionNewParams.kt @@ -448,18 +448,6 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ConnectProducts && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val COMPANY = of("company") @@ -531,6 +519,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ConnectProducts && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = Integration.Builder::class) @@ -606,18 +606,6 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AuthMethod && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val ASSISTED = of("assisted") @@ -665,6 +653,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AuthMethod && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -693,18 +693,6 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Sandbox && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val FINCH = of("finch") @@ -740,6 +728,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Sandbox && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectSessionReauthenticateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectSessionReauthenticateParams.kt index 0e766137..bec561b1 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectSessionReauthenticateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectSessionReauthenticateParams.kt @@ -372,18 +372,6 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ConnectProducts && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val COMPANY = of("company") @@ -455,6 +443,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ConnectProducts && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectionCreateResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectionCreateResponse.kt index e24eb05b..0cf71949 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectionCreateResponse.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectionCreateResponse.kt @@ -225,18 +225,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AuthenticationType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val CREDENTIAL = of("credential") @@ -284,6 +272,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AuthenticationType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectionStatusType.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectionStatusType.kt index 0285f1e8..415344a4 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectionStatusType.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectionStatusType.kt @@ -16,18 +16,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ConnectionStatusType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val PENDING = of("pending") @@ -87,4 +75,16 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ConnectionStatusType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CreateAccessTokenResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CreateAccessTokenResponse.kt index ad184de5..e9d348c3 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CreateAccessTokenResponse.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CreateAccessTokenResponse.kt @@ -312,18 +312,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ClientType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val PRODUCTION = of("production") @@ -365,27 +353,27 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class ConnectionType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is ConnectionType && value == other.value /* spotless:on */ + return /* spotless:off */ other is ClientType && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class ConnectionType + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { @@ -422,6 +410,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ConnectionType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/DirectoryEvent.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/DirectoryEvent.kt index f57490ef..910a494f 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/DirectoryEvent.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/DirectoryEvent.kt @@ -293,18 +293,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EventType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val DIRECTORY_CREATED = of("directory.created") @@ -346,6 +334,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EventType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentData.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentData.kt index 3b658d71..13b45119 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentData.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentData.kt @@ -792,18 +792,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Subtype && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val FULL_TIME = of("full_time") @@ -863,27 +851,27 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + return /* spotless:off */ other is Subtype && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class Type + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { @@ -920,6 +908,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -948,18 +948,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EmploymentStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val ACTIVE = of("active") @@ -1025,6 +1013,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EmploymentStatus && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** The manager object representing the manager of the individual within the org. */ diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentEvent.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentEvent.kt index 7b10ba83..b81081b9 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentEvent.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentEvent.kt @@ -293,18 +293,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EventType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val EMPLOYMENT_CREATED = of("employment.created") @@ -346,6 +334,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EventType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentUpdateResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentUpdateResponse.kt index 984e15f7..35be88e0 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentUpdateResponse.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentUpdateResponse.kt @@ -761,18 +761,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Subtype && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val FULL_TIME = of("full_time") @@ -832,27 +820,27 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + return /* spotless:off */ other is Subtype && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class Type + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { @@ -889,6 +877,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -917,18 +917,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EmploymentStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val ACTIVE = of("active") @@ -994,6 +982,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EmploymentStatus && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** The manager object representing the manager of the individual within the org. */ diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EnrolledIndividual.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EnrolledIndividual.kt index 81c93e60..9b8a7819 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EnrolledIndividual.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EnrolledIndividual.kt @@ -263,18 +263,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Code && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val OK = of(200) @@ -322,6 +310,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Code && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Income.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Income.kt index 57d3e5fd..bff3cbf8 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Income.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Income.kt @@ -177,18 +177,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Unit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val YEARLY = of("yearly") @@ -266,6 +254,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Unit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Individual.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Individual.kt index 2cf4b80e..13788acc 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Individual.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Individual.kt @@ -437,18 +437,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val WORK = of("work") @@ -484,6 +472,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -512,18 +512,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Ethnicity && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val ASIAN = of("asian") @@ -596,27 +584,27 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class Gender - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is Gender && value == other.value /* spotless:on */ + return /* spotless:off */ other is Ethnicity && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class Gender + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { @@ -665,6 +653,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Gender && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = PhoneNumber.Builder::class) @@ -760,18 +760,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val WORK = of("work") @@ -807,6 +795,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualBenefit.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualBenefit.kt index 53362466..00e6373e 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualBenefit.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualBenefit.kt @@ -305,18 +305,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is HsaContributionLimit && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val INDIVIDUAL = of("individual") @@ -352,6 +340,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is HsaContributionLimit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualEvent.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualEvent.kt index d50cec81..f2bb419c 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualEvent.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualEvent.kt @@ -293,18 +293,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EventType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val INDIVIDUAL_CREATED = of("individual.created") @@ -346,6 +334,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EventType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualUpdateResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualUpdateResponse.kt index 9aad35f7..84d086e5 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualUpdateResponse.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualUpdateResponse.kt @@ -437,18 +437,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val WORK = of("work") @@ -484,6 +472,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -512,18 +512,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Ethnicity && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val ASIAN = of("asian") @@ -596,27 +584,27 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class Gender - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is Gender && value == other.value /* spotless:on */ + return /* spotless:off */ other is Ethnicity && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class Gender + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { @@ -665,6 +653,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Gender && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = PhoneNumber.Builder::class) @@ -760,18 +760,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val WORK = of("work") @@ -807,6 +795,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Introspection.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Introspection.kt index 2fb6486d..e4203f0b 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Introspection.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Introspection.kt @@ -721,18 +721,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val ASSISTED = of("assisted") @@ -786,6 +774,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -814,18 +814,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ClientType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val PRODUCTION = of("production") @@ -867,6 +855,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ClientType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = ConnectionStatus.Builder::class) @@ -981,18 +981,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is ConnectionType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val PROVIDER = of("provider") @@ -1028,6 +1016,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is ConnectionType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedCreateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedCreateParams.kt index 78f4b54c..13f31eee 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedCreateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedCreateParams.kt @@ -376,18 +376,6 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val DATA_SYNC_ALL = of("data_sync_all") @@ -417,6 +405,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -513,18 +513,6 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val W4_FORM_EMPLOYEE_SYNC = of("w4_form_employee_sync") @@ -554,6 +542,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobCompletionEvent.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobCompletionEvent.kt index 44f8faa6..ffc7fa45 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobCompletionEvent.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobCompletionEvent.kt @@ -313,18 +313,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EventType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val JOB_BENEFIT_CREATE_COMPLETED = of("job.benefit_create.completed") @@ -384,6 +372,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EventType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ManualAsyncJob.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ManualAsyncJob.kt index 4f94108b..9ff5e5f5 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ManualAsyncJob.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ManualAsyncJob.kt @@ -130,18 +130,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Status && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val PENDING = of("pending") @@ -189,6 +177,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Status && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/OperationSupport.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/OperationSupport.kt index 132cbb7f..db387ef7 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/OperationSupport.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/OperationSupport.kt @@ -16,18 +16,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is OperationSupport && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val SUPPORTED = of("supported") @@ -75,4 +63,16 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is OperationSupport && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayGroupListResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayGroupListResponse.kt index 48bc4e5d..f58c2517 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayGroupListResponse.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayGroupListResponse.kt @@ -140,18 +140,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is PayFrequency && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val ANNUALLY = of("annually") @@ -229,6 +217,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PayFrequency && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayGroupRetrieveResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayGroupRetrieveResponse.kt index f52af293..c96f9aee 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayGroupRetrieveResponse.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayGroupRetrieveResponse.kt @@ -155,18 +155,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is PayFrequency && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val ANNUALLY = of("annually") @@ -244,6 +232,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PayFrequency && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatement.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatement.kt index 12479b95..38a7fe1a 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatement.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatement.kt @@ -440,18 +440,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val SALARY = of("salary") @@ -553,6 +541,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -898,18 +898,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is PaymentMethod && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val CHECK = of("check") @@ -945,6 +933,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PaymentMethod && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = Tax.Builder::class) @@ -1105,18 +1105,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val STATE = of("state") @@ -1164,6 +1152,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -1192,18 +1192,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val REGULAR_PAYROLL = of("regular_payroll") @@ -1245,6 +1233,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatementEvent.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatementEvent.kt index 0ba26ddb..031b2f99 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatementEvent.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatementEvent.kt @@ -316,18 +316,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EventType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val PAY_STATEMENT_CREATED = of("pay_statement.created") @@ -369,6 +357,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EventType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Payment.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Payment.kt index 9d620c8d..3d3fab02 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Payment.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Payment.kt @@ -298,18 +298,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is PayFrequency && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val ANNUALLY = of("annually") @@ -387,6 +375,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PayFrequency && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** The pay period object. */ diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PaymentEvent.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PaymentEvent.kt index c89f5702..1be91fee 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PaymentEvent.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PaymentEvent.kt @@ -313,18 +313,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EventType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val PAYMENT_CREATED = of("payment.created") @@ -366,6 +354,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EventType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Provider.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Provider.kt index 9a892352..d42d4889 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Provider.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Provider.kt @@ -5218,18 +5218,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val ASSISTED = of("assisted") @@ -5283,6 +5271,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxCompanyUpdateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxCompanyUpdateParams.kt index 1438e80f..3944982a 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxCompanyUpdateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxCompanyUpdateParams.kt @@ -562,18 +562,6 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AccountType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val CHECKING = of("checking") @@ -609,6 +597,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AccountType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -864,18 +864,6 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Subtype && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val S_CORPORATION = of("s_corporation") @@ -917,27 +905,27 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + return /* spotless:off */ other is Subtype && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class Type + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { @@ -1004,6 +992,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionAccountCreateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionAccountCreateParams.kt index 36d37b4b..a9feb6f9 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionAccountCreateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionAccountCreateParams.kt @@ -374,18 +374,6 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AuthenticationType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val CREDENTIAL = of("credential") @@ -433,6 +421,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AuthenticationType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionCreateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionCreateParams.kt index ea4ecb1b..f5e561db 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionCreateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionCreateParams.kt @@ -367,18 +367,6 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is AuthenticationType && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val CREDENTIAL = of("credential") @@ -426,6 +414,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is AuthenticationType && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxDirectoryCreateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxDirectoryCreateParams.kt index 7657f18b..9f8e1a4d 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxDirectoryCreateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxDirectoryCreateParams.kt @@ -831,18 +831,6 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val WORK = of("work") @@ -878,6 +866,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -982,18 +982,6 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Subtype && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val FULL_TIME = of("full_time") @@ -1053,27 +1041,27 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + return /* spotless:off */ other is Subtype && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class Type + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { @@ -1110,6 +1098,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -1138,18 +1138,6 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EmploymentStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val ACTIVE = of("active") @@ -1215,27 +1203,27 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class Ethnicity - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is Ethnicity && value == other.value /* spotless:on */ + return /* spotless:off */ other is EmploymentStatus && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class Ethnicity + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { @@ -1310,27 +1298,27 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class Gender - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is Gender && value == other.value /* spotless:on */ + return /* spotless:off */ other is Ethnicity && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class Gender + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { @@ -1379,6 +1367,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Gender && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** The manager object representing the manager of the individual within the org. */ @@ -1525,18 +1525,6 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val WORK = of("work") @@ -1572,6 +1560,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxEmploymentUpdateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxEmploymentUpdateParams.kt index 533d702f..8dee6f89 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxEmploymentUpdateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxEmploymentUpdateParams.kt @@ -927,18 +927,6 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Subtype && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val FULL_TIME = of("full_time") @@ -998,27 +986,27 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + return /* spotless:off */ other is Subtype && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class Type + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { @@ -1055,6 +1043,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -1083,18 +1083,6 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is EmploymentStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val ACTIVE = of("active") @@ -1160,6 +1148,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is EmploymentStatus && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } /** The manager object representing the manager of the individual within the org. */ diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxIndividualUpdateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxIndividualUpdateParams.kt index 5e3dac3b..9767d4fa 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxIndividualUpdateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxIndividualUpdateParams.kt @@ -618,18 +618,6 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val WORK = of("work") @@ -665,6 +653,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -693,18 +693,6 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Ethnicity && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val ASIAN = of("asian") @@ -777,27 +765,27 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class Gender - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is Gender && value == other.value /* spotless:on */ + return /* spotless:off */ other is Ethnicity && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class Gender + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { @@ -846,6 +834,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Gender && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = PhoneNumber.Builder::class) @@ -919,18 +919,6 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val WORK = of("work") @@ -966,6 +954,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfiguration.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfiguration.kt index 028fd976..1412fc7a 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfiguration.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfiguration.kt @@ -113,18 +113,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is CompletionStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val COMPLETE = of("complete") @@ -172,27 +160,27 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + return /* spotless:off */ other is CompletionStatus && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class Type + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { @@ -223,6 +211,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfigurationUpdateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfigurationUpdateParams.kt index 040684c1..89f38625 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfigurationUpdateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfigurationUpdateParams.kt @@ -313,18 +313,6 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is CompletionStatus && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val COMPLETE = of("complete") @@ -372,27 +360,27 @@ constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + return /* spotless:off */ other is CompletionStatus && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class Type + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { @@ -423,6 +411,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobCreateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobCreateParams.kt index 9f946d59..17527832 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobCreateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobCreateParams.kt @@ -283,18 +283,6 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val DATA_SYNC_ALL = of("data_sync_all") @@ -324,6 +312,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParams.kt index 3562e571..b4bdd2e8 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParams.kt @@ -596,18 +596,6 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val SALARY = of("salary") @@ -709,6 +697,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -962,18 +962,6 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is PaymentMethod && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val CHECK = of("check") @@ -1009,6 +997,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is PaymentMethod && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } @JsonDeserialize(builder = Tax.Builder::class) @@ -1119,18 +1119,6 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val STATE = of("state") @@ -1178,6 +1166,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { @@ -1206,18 +1206,6 @@ constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is Type && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val REGULAR_PAYROLL = of("regular_payroll") @@ -1259,6 +1247,18 @@ constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is Type && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SupportedBenefit.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SupportedBenefit.kt index 821509a1..670fdc1e 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SupportedBenefit.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SupportedBenefit.kt @@ -283,18 +283,6 @@ private constructor( @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return /* spotless:off */ other is CompanyContribution && value == other.value /* spotless:on */ - } - - override fun hashCode() = value.hashCode() - - override fun toString() = value.toString() - companion object { @JvmField val FIXED = of("fixed") @@ -330,27 +318,27 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class EmployeeDeduction - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is EmployeeDeduction && value == other.value /* spotless:on */ + return /* spotless:off */ other is CompanyContribution && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class EmployeeDeduction + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { @@ -387,27 +375,27 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() - } - - class HsaContributionLimit - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { - - @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value override fun equals(other: Any?): Boolean { if (this === other) { return true } - return /* spotless:off */ other is HsaContributionLimit && value == other.value /* spotless:on */ + return /* spotless:off */ other is EmployeeDeduction && value == other.value /* spotless:on */ } override fun hashCode() = value.hashCode() override fun toString() = value.toString() + } + + class HsaContributionLimit + @JsonCreator + private constructor( + private val value: JsonField, + ) : Enum { + + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value companion object { @@ -444,6 +432,18 @@ private constructor( } fun asString(): String = _value().asStringOrThrow() + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return /* spotless:off */ other is HsaContributionLimit && value == other.value /* spotless:on */ + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() } override fun equals(other: Any?): Boolean { From cddb901f2e7ec7c266ee535511325ff753402384 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Dec 2024 20:58:15 +0000 Subject: [PATCH 10/23] chore(internal): remove unused imports (#354) --- .../src/main/kotlin/com/tryfinch/api/models/BenefitFrequency.kt | 1 - .../src/main/kotlin/com/tryfinch/api/models/BenefitType.kt | 1 - .../main/kotlin/com/tryfinch/api/models/ConnectionStatusType.kt | 1 - .../src/main/kotlin/com/tryfinch/api/models/OperationSupport.kt | 1 - .../tryfinch/api/services/blocking/sandbox/DirectoryService.kt | 1 - .../api/services/blocking/sandbox/DirectoryServiceImpl.kt | 1 - 6 files changed, 6 deletions(-) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitFrequency.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitFrequency.kt index a402eb67..9a552373 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitFrequency.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitFrequency.kt @@ -5,7 +5,6 @@ package com.tryfinch.api.models import com.fasterxml.jackson.annotation.JsonCreator import com.tryfinch.api.core.Enum import com.tryfinch.api.core.JsonField -import com.tryfinch.api.core.JsonValue import com.tryfinch.api.errors.FinchInvalidDataException class BenefitFrequency diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitType.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitType.kt index 14e40c34..baaacc1b 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitType.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitType.kt @@ -5,7 +5,6 @@ package com.tryfinch.api.models import com.fasterxml.jackson.annotation.JsonCreator import com.tryfinch.api.core.Enum import com.tryfinch.api.core.JsonField -import com.tryfinch.api.core.JsonValue import com.tryfinch.api.errors.FinchInvalidDataException class BenefitType diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectionStatusType.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectionStatusType.kt index 415344a4..e926f102 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectionStatusType.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectionStatusType.kt @@ -5,7 +5,6 @@ package com.tryfinch.api.models import com.fasterxml.jackson.annotation.JsonCreator import com.tryfinch.api.core.Enum import com.tryfinch.api.core.JsonField -import com.tryfinch.api.core.JsonValue import com.tryfinch.api.errors.FinchInvalidDataException class ConnectionStatusType diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/OperationSupport.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/OperationSupport.kt index db387ef7..784345dc 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/OperationSupport.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/OperationSupport.kt @@ -5,7 +5,6 @@ package com.tryfinch.api.models import com.fasterxml.jackson.annotation.JsonCreator import com.tryfinch.api.core.Enum import com.tryfinch.api.core.JsonField -import com.tryfinch.api.core.JsonValue import com.tryfinch.api.errors.FinchInvalidDataException class OperationSupport diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryService.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryService.kt index cdeb0c1a..ea2ebd16 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryService.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryService.kt @@ -4,7 +4,6 @@ package com.tryfinch.api.services.blocking.sandbox -import com.tryfinch.api.core.JsonValue import com.tryfinch.api.core.RequestOptions import com.tryfinch.api.models.SandboxDirectoryCreateParams diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryServiceImpl.kt index 233f06c0..847388f6 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryServiceImpl.kt @@ -3,7 +3,6 @@ package com.tryfinch.api.services.blocking.sandbox import com.tryfinch.api.core.ClientOptions -import com.tryfinch.api.core.JsonValue import com.tryfinch.api.core.RequestOptions import com.tryfinch.api.core.handlers.errorHandler import com.tryfinch.api.core.handlers.jsonHandler From 1a5d59579770cb25845c8047e43681aebf457480 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Dec 2024 22:21:32 +0000 Subject: [PATCH 11/23] chore(internal): codegen related update (#355) --- .../tryfinch/api/services/blocking/sandbox/DirectoryService.kt | 1 + .../api/services/blocking/sandbox/DirectoryServiceImpl.kt | 1 + 2 files changed, 2 insertions(+) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryService.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryService.kt index ea2ebd16..cdeb0c1a 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryService.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryService.kt @@ -4,6 +4,7 @@ package com.tryfinch.api.services.blocking.sandbox +import com.tryfinch.api.core.JsonValue import com.tryfinch.api.core.RequestOptions import com.tryfinch.api.models.SandboxDirectoryCreateParams diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryServiceImpl.kt index 847388f6..233f06c0 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryServiceImpl.kt @@ -3,6 +3,7 @@ package com.tryfinch.api.services.blocking.sandbox import com.tryfinch.api.core.ClientOptions +import com.tryfinch.api.core.JsonValue import com.tryfinch.api.core.RequestOptions import com.tryfinch.api.core.handlers.errorHandler import com.tryfinch.api.core.handlers.jsonHandler From a313b580708ec7885eb574610b84a1b139202bcf Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 12 Dec 2024 16:44:45 +0000 Subject: [PATCH 12/23] chore(test): remove unused imports (#356) --- .../test/kotlin/com/tryfinch/api/services/ErrorHandlingTest.kt | 1 - .../test/kotlin/com/tryfinch/api/services/ServiceParamsTest.kt | 1 - 2 files changed, 2 deletions(-) diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/ErrorHandlingTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/ErrorHandlingTest.kt index 8b5503c4..7c02b49b 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/ErrorHandlingTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/ErrorHandlingTest.kt @@ -6,7 +6,6 @@ import com.fasterxml.jackson.databind.json.JsonMapper import com.github.tomakehurst.wiremock.client.WireMock.anyUrl import com.github.tomakehurst.wiremock.client.WireMock.get import com.github.tomakehurst.wiremock.client.WireMock.ok -import com.github.tomakehurst.wiremock.client.WireMock.put import com.github.tomakehurst.wiremock.client.WireMock.status import com.github.tomakehurst.wiremock.client.WireMock.stubFor import com.github.tomakehurst.wiremock.junit5.WireMockRuntimeInfo diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/ServiceParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/ServiceParamsTest.kt index 5c4e5abb..d938c3cf 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/ServiceParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/ServiceParamsTest.kt @@ -8,7 +8,6 @@ import com.github.tomakehurst.wiremock.client.WireMock.equalTo import com.github.tomakehurst.wiremock.client.WireMock.get import com.github.tomakehurst.wiremock.client.WireMock.getRequestedFor import com.github.tomakehurst.wiremock.client.WireMock.ok -import com.github.tomakehurst.wiremock.client.WireMock.put import com.github.tomakehurst.wiremock.client.WireMock.stubFor import com.github.tomakehurst.wiremock.client.WireMock.verify import com.github.tomakehurst.wiremock.junit5.WireMockRuntimeInfo From d336f7d962bea0a56d89a553faf8cc2b1339556a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 12 Dec 2024 17:39:23 +0000 Subject: [PATCH 13/23] chore(test): use `JsonValue` instead of `JsonString` (#357) --- .../kotlin/com/tryfinch/api/services/ErrorHandlingTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/ErrorHandlingTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/ErrorHandlingTest.kt index 7c02b49b..191b2cea 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/ErrorHandlingTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/ErrorHandlingTest.kt @@ -12,7 +12,7 @@ import com.github.tomakehurst.wiremock.junit5.WireMockRuntimeInfo import com.github.tomakehurst.wiremock.junit5.WireMockTest import com.tryfinch.api.client.FinchClient import com.tryfinch.api.client.okhttp.FinchOkHttpClient -import com.tryfinch.api.core.JsonString +import com.tryfinch.api.core.JsonValue import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.jsonMapper import com.tryfinch.api.errors.BadRequestException @@ -38,7 +38,7 @@ class ErrorHandlingTest { private val JSON_MAPPER: JsonMapper = jsonMapper() private val FINCH_ERROR: FinchError = - FinchError.builder().putAdditionalProperty("key", JsonString.of("value")).build() + FinchError.builder().putAdditionalProperty("key", JsonValue.from("value")).build() private lateinit var client: FinchClient From aef03b5cab006660274c63214e6900a3659ab54d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 12 Dec 2024 19:05:20 +0000 Subject: [PATCH 14/23] feat(api): api update (#358) --- .stats.yml | 2 +- .../com/tryfinch/api/models/PayStatement.kt | 32 ++++++++++++------- .../api/models/SandboxPaymentCreateParams.kt | 20 +++++++----- .../models/PayStatementResponseBodyTest.kt | 8 ++--- .../api/models/PayStatementResponseTest.kt | 10 +++--- .../tryfinch/api/models/PayStatementTest.kt | 10 +++--- .../models/SandboxPaymentCreateParamsTest.kt | 12 +++---- .../blocking/sandbox/PaymentServiceTest.kt | 4 +-- 8 files changed, 53 insertions(+), 45 deletions(-) diff --git a/.stats.yml b/.stats.yml index addc01fa..92b10d80 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 38 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-8782658ecd57622a964238df7b5dd997ac63789f8220852660ecf32fa115296b.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-86c1f66eea438d53292663f221e778d0864d63a7e635e8714b2b31800a7344ac.yml diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatement.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatement.kt index 38a7fe1a..cc71562a 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatement.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatement.kt @@ -26,8 +26,8 @@ private constructor( private val type: JsonField, private val paymentMethod: JsonField, private val totalHours: JsonField, - private val grossPay: JsonField, - private val netPay: JsonField, + private val grossPay: JsonField, + private val netPay: JsonField, private val earnings: JsonField>, private val taxes: JsonField>, private val employeeDeductions: JsonField>, @@ -51,9 +51,11 @@ private constructor( /** The number of hours worked for this pay period */ fun totalHours(): Optional = Optional.ofNullable(totalHours.getNullable("total_hours")) - fun grossPay(): Optional = Optional.ofNullable(grossPay.getNullable("gross_pay")) + /** The gross pay for the pay period */ + fun grossPay(): Optional = Optional.ofNullable(grossPay.getNullable("gross_pay")) - fun netPay(): Optional = Optional.ofNullable(netPay.getNullable("net_pay")) + /** The net pay for the pay period */ + fun netPay(): Optional = Optional.ofNullable(netPay.getNullable("net_pay")) /** The array of earnings objects associated with this pay statement */ fun earnings(): Optional> = Optional.ofNullable(earnings.getNullable("earnings")) @@ -80,8 +82,10 @@ private constructor( /** The number of hours worked for this pay period */ @JsonProperty("total_hours") @ExcludeMissing fun _totalHours() = totalHours + /** The gross pay for the pay period */ @JsonProperty("gross_pay") @ExcludeMissing fun _grossPay() = grossPay + /** The net pay for the pay period */ @JsonProperty("net_pay") @ExcludeMissing fun _netPay() = netPay /** The array of earnings objects associated with this pay statement */ @@ -109,8 +113,8 @@ private constructor( type() paymentMethod() totalHours() - grossPay().map { it.validate() } - netPay().map { it.validate() } + grossPay() + netPay() earnings().map { it.forEach { it?.validate() } } taxes().map { it.forEach { it?.validate() } } employeeDeductions().map { it.forEach { it?.validate() } } @@ -132,8 +136,8 @@ private constructor( private var type: JsonField = JsonMissing.of() private var paymentMethod: JsonField = JsonMissing.of() private var totalHours: JsonField = JsonMissing.of() - private var grossPay: JsonField = JsonMissing.of() - private var netPay: JsonField = JsonMissing.of() + private var grossPay: JsonField = JsonMissing.of() + private var netPay: JsonField = JsonMissing.of() private var earnings: JsonField> = JsonMissing.of() private var taxes: JsonField> = JsonMissing.of() private var employeeDeductions: JsonField> = JsonMissing.of() @@ -191,17 +195,21 @@ private constructor( @ExcludeMissing fun totalHours(totalHours: JsonField) = apply { this.totalHours = totalHours } - fun grossPay(grossPay: Money) = grossPay(JsonField.of(grossPay)) + /** The gross pay for the pay period */ + fun grossPay(grossPay: Double) = grossPay(JsonField.of(grossPay)) + /** The gross pay for the pay period */ @JsonProperty("gross_pay") @ExcludeMissing - fun grossPay(grossPay: JsonField) = apply { this.grossPay = grossPay } + fun grossPay(grossPay: JsonField) = apply { this.grossPay = grossPay } - fun netPay(netPay: Money) = netPay(JsonField.of(netPay)) + /** The net pay for the pay period */ + fun netPay(netPay: Double) = netPay(JsonField.of(netPay)) + /** The net pay for the pay period */ @JsonProperty("net_pay") @ExcludeMissing - fun netPay(netPay: JsonField) = apply { this.netPay = netPay } + fun netPay(netPay: JsonField) = apply { this.netPay = netPay } /** The array of earnings objects associated with this pay statement */ fun earnings(earnings: List) = earnings(JsonField.of(earnings)) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParams.kt index b4bdd2e8..7192c0d9 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParams.kt @@ -335,8 +335,8 @@ constructor( private val type: Type?, private val paymentMethod: PaymentMethod?, private val totalHours: Double?, - private val grossPay: Money?, - private val netPay: Money?, + private val grossPay: Double?, + private val netPay: Double?, private val earnings: List?, private val taxes: List?, private val employeeDeductions: List?, @@ -356,9 +356,11 @@ constructor( /** The number of hours worked for this pay period */ @JsonProperty("total_hours") fun totalHours(): Double? = totalHours - @JsonProperty("gross_pay") fun grossPay(): Money? = grossPay + /** The gross pay for the pay period */ + @JsonProperty("gross_pay") fun grossPay(): Double? = grossPay - @JsonProperty("net_pay") fun netPay(): Money? = netPay + /** The net pay for the pay period */ + @JsonProperty("net_pay") fun netPay(): Double? = netPay /** The array of earnings objects associated with this pay statement */ @JsonProperty("earnings") fun earnings(): List? = earnings @@ -390,8 +392,8 @@ constructor( private var type: Type? = null private var paymentMethod: PaymentMethod? = null private var totalHours: Double? = null - private var grossPay: Money? = null - private var netPay: Money? = null + private var grossPay: Double? = null + private var netPay: Double? = null private var earnings: List? = null private var taxes: List? = null private var employeeDeductions: List? = null @@ -430,10 +432,12 @@ constructor( @JsonProperty("total_hours") fun totalHours(totalHours: Double) = apply { this.totalHours = totalHours } + /** The gross pay for the pay period */ @JsonProperty("gross_pay") - fun grossPay(grossPay: Money) = apply { this.grossPay = grossPay } + fun grossPay(grossPay: Double) = apply { this.grossPay = grossPay } - @JsonProperty("net_pay") fun netPay(netPay: Money) = apply { this.netPay = netPay } + /** The net pay for the pay period */ + @JsonProperty("net_pay") fun netPay(netPay: Double) = apply { this.netPay = netPay } /** The array of earnings objects associated with this pay statement */ @JsonProperty("earnings") diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/PayStatementResponseBodyTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/PayStatementResponseBodyTest.kt index e4f2f3f5..43095cf4 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/PayStatementResponseBodyTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/PayStatementResponseBodyTest.kt @@ -47,9 +47,9 @@ class PayStatementResponseBodyTest { .build() ) ) - .grossPay(Money.builder().amount(0L).currency("currency").build()) + .grossPay(0.0) .individualId("individual_id") - .netPay(Money.builder().amount(0L).currency("currency").build()) + .netPay(0.0) .paymentMethod(PayStatement.PaymentMethod.CHECK) .taxes( listOf( @@ -106,9 +106,9 @@ class PayStatementResponseBodyTest { .build() ) ) - .grossPay(Money.builder().amount(0L).currency("currency").build()) + .grossPay(0.0) .individualId("individual_id") - .netPay(Money.builder().amount(0L).currency("currency").build()) + .netPay(0.0) .paymentMethod(PayStatement.PaymentMethod.CHECK) .taxes( listOf( diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/PayStatementResponseTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/PayStatementResponseTest.kt index d86ad139..7744cfe3 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/PayStatementResponseTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/PayStatementResponseTest.kt @@ -49,11 +49,9 @@ class PayStatementResponseTest { .build() ) ) - .grossPay( - Money.builder().amount(0L).currency("currency").build() - ) + .grossPay(0.0) .individualId("individual_id") - .netPay(Money.builder().amount(0L).currency("currency").build()) + .netPay(0.0) .paymentMethod(PayStatement.PaymentMethod.CHECK) .taxes( listOf( @@ -116,9 +114,9 @@ class PayStatementResponseTest { .build() ) ) - .grossPay(Money.builder().amount(0L).currency("currency").build()) + .grossPay(0.0) .individualId("individual_id") - .netPay(Money.builder().amount(0L).currency("currency").build()) + .netPay(0.0) .paymentMethod(PayStatement.PaymentMethod.CHECK) .taxes( listOf( diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/PayStatementTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/PayStatementTest.kt index 3432b7c7..17257561 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/PayStatementTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/PayStatementTest.kt @@ -43,9 +43,9 @@ class PayStatementTest { .build() ) ) - .grossPay(Money.builder().amount(0L).currency("currency").build()) + .grossPay(0.0) .individualId("individual_id") - .netPay(Money.builder().amount(0L).currency("currency").build()) + .netPay(0.0) .paymentMethod(PayStatement.PaymentMethod.CHECK) .taxes( listOf( @@ -91,11 +91,9 @@ class PayStatementTest { .type(BenefitType._401K) .build() ) - assertThat(payStatement.grossPay()) - .contains(Money.builder().amount(0L).currency("currency").build()) + assertThat(payStatement.grossPay()).contains(0.0) assertThat(payStatement.individualId()).contains("individual_id") - assertThat(payStatement.netPay()) - .contains(Money.builder().amount(0L).currency("currency").build()) + assertThat(payStatement.netPay()).contains(0.0) assertThat(payStatement.paymentMethod()).contains(PayStatement.PaymentMethod.CHECK) assertThat(payStatement.taxes().get()) .containsExactly( diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParamsTest.kt index feb52a81..f2f66dce 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParamsTest.kt @@ -50,9 +50,9 @@ class SandboxPaymentCreateParamsTest { .build() ) ) - .grossPay(Money.builder().amount(0L).currency("currency").build()) + .grossPay(0.0) .individualId("individual_id") - .netPay(Money.builder().amount(0L).currency("currency").build()) + .netPay(0.0) .paymentMethod(SandboxPaymentCreateParams.PayStatement.PaymentMethod.CHECK) .taxes( listOf( @@ -119,9 +119,9 @@ class SandboxPaymentCreateParamsTest { .build() ) ) - .grossPay(Money.builder().amount(0L).currency("currency").build()) + .grossPay(0.0) .individualId("individual_id") - .netPay(Money.builder().amount(0L).currency("currency").build()) + .netPay(0.0) .paymentMethod( SandboxPaymentCreateParams.PayStatement.PaymentMethod.CHECK ) @@ -187,9 +187,9 @@ class SandboxPaymentCreateParamsTest { .build() ) ) - .grossPay(Money.builder().amount(0L).currency("currency").build()) + .grossPay(0.0) .individualId("individual_id") - .netPay(Money.builder().amount(0L).currency("currency").build()) + .netPay(0.0) .paymentMethod(SandboxPaymentCreateParams.PayStatement.PaymentMethod.CHECK) .taxes( listOf( diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/PaymentServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/PaymentServiceTest.kt index 01442f8a..891c0f1d 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/PaymentServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/PaymentServiceTest.kt @@ -63,9 +63,9 @@ class PaymentServiceTest { .build() ) ) - .grossPay(Money.builder().amount(0L).currency("currency").build()) + .grossPay(0.0) .individualId("individual_id") - .netPay(Money.builder().amount(0L).currency("currency").build()) + .netPay(0.0) .paymentMethod( SandboxPaymentCreateParams.PayStatement.PaymentMethod.CHECK ) From c825267ecf91ac10db7738b6df7f350d4f36d390 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 12 Dec 2024 19:30:59 +0000 Subject: [PATCH 15/23] chore(internal): remove unused and expand used wildcard imports (#359) --- .../src/main/kotlin/com/tryfinch/api/client/FinchClient.kt | 1 - .../main/kotlin/com/tryfinch/api/client/FinchClientAsync.kt | 1 - .../com/tryfinch/api/models/AccessTokenCreateParams.kt | 1 - .../com/tryfinch/api/models/AccountDisconnectParams.kt | 1 - .../com/tryfinch/api/models/AccountIntrospectParams.kt | 1 - .../com/tryfinch/api/models/ConnectSessionNewParams.kt | 1 - .../api/models/ConnectSessionReauthenticateParams.kt | 1 - .../com/tryfinch/api/models/HrisBenefitCreateParams.kt | 1 - .../api/models/HrisBenefitIndividualEnrolledIdsParams.kt | 1 - .../HrisBenefitIndividualRetrieveManyBenefitsParams.kt | 1 - .../api/models/HrisBenefitIndividualUnenrollManyParams.kt | 1 - .../kotlin/com/tryfinch/api/models/HrisBenefitListParams.kt | 1 - .../api/models/HrisBenefitListSupportedBenefitsParams.kt | 1 - .../com/tryfinch/api/models/HrisBenefitRetrieveParams.kt | 1 - .../com/tryfinch/api/models/HrisBenefitUpdateParams.kt | 1 - .../com/tryfinch/api/models/HrisCompanyRetrieveParams.kt | 1 - .../api/models/HrisDirectoryListIndividualsParams.kt | 1 - .../com/tryfinch/api/models/HrisDirectoryListParams.kt | 1 - .../tryfinch/api/models/HrisEmploymentRetrieveManyParams.kt | 1 - .../tryfinch/api/models/HrisIndividualRetrieveManyParams.kt | 1 - .../api/models/HrisPayStatementRetrieveManyParams.kt | 1 - .../kotlin/com/tryfinch/api/models/HrisPaymentListParams.kt | 1 - .../com/tryfinch/api/models/JobAutomatedCreateParams.kt | 1 - .../com/tryfinch/api/models/JobAutomatedListParams.kt | 1 - .../com/tryfinch/api/models/JobAutomatedRetrieveParams.kt | 1 - .../com/tryfinch/api/models/JobManualRetrieveParams.kt | 1 - .../com/tryfinch/api/models/PayrollPayGroupListParams.kt | 1 - .../tryfinch/api/models/PayrollPayGroupRetrieveParams.kt | 1 - .../kotlin/com/tryfinch/api/models/ProviderListParams.kt | 1 - .../tryfinch/api/models/RequestForwardingForwardParams.kt | 1 - .../com/tryfinch/api/models/SandboxCompanyUpdateParams.kt | 1 - .../api/models/SandboxConnectionAccountCreateParams.kt | 1 - .../api/models/SandboxConnectionAccountUpdateParams.kt | 1 - .../tryfinch/api/models/SandboxConnectionCreateParams.kt | 1 - .../com/tryfinch/api/models/SandboxDirectoryCreateParams.kt | 1 - .../tryfinch/api/models/SandboxEmploymentUpdateParams.kt | 1 - .../tryfinch/api/models/SandboxIndividualUpdateParams.kt | 1 - .../api/models/SandboxJobConfigurationRetrieveParams.kt | 1 - .../api/models/SandboxJobConfigurationUpdateParams.kt | 1 - .../com/tryfinch/api/models/SandboxJobCreateParams.kt | 1 - .../com/tryfinch/api/models/SandboxPaymentCreateParams.kt | 1 - .../com/tryfinch/api/models/AccessTokenCreateParamsTest.kt | 1 - .../com/tryfinch/api/models/AccountDisconnectParamsTest.kt | 1 - .../com/tryfinch/api/models/AccountIntrospectParamsTest.kt | 1 - .../com/tryfinch/api/models/ConnectSessionNewParamsTest.kt | 1 - .../api/models/ConnectSessionReauthenticateParamsTest.kt | 1 - .../com/tryfinch/api/models/HrisBenefitCreateParamsTest.kt | 1 - .../models/HrisBenefitIndividualEnrolledIdsParamsTest.kt | 1 - .../HrisBenefitIndividualRetrieveManyBenefitsParamsTest.kt | 1 - .../models/HrisBenefitIndividualUnenrollManyParamsTest.kt | 1 - .../com/tryfinch/api/models/HrisBenefitListParamsTest.kt | 1 - .../models/HrisBenefitListSupportedBenefitsParamsTest.kt | 1 - .../tryfinch/api/models/HrisBenefitRetrieveParamsTest.kt | 1 - .../com/tryfinch/api/models/HrisBenefitUpdateParamsTest.kt | 1 - .../tryfinch/api/models/HrisCompanyRetrieveParamsTest.kt | 1 - .../api/models/HrisDirectoryListIndividualsParamsTest.kt | 1 - .../com/tryfinch/api/models/HrisDirectoryListParamsTest.kt | 1 - .../api/models/HrisEmploymentRetrieveManyParamsTest.kt | 1 - .../api/models/HrisIndividualRetrieveManyParamsTest.kt | 1 - .../api/models/HrisPayStatementRetrieveManyParamsTest.kt | 1 - .../com/tryfinch/api/models/HrisPaymentListParamsTest.kt | 1 - .../com/tryfinch/api/models/JobAutomatedCreateParamsTest.kt | 1 - .../com/tryfinch/api/models/JobAutomatedListParamsTest.kt | 1 - .../tryfinch/api/models/JobAutomatedRetrieveParamsTest.kt | 1 - .../com/tryfinch/api/models/JobManualRetrieveParamsTest.kt | 1 - .../tryfinch/api/models/PayrollPayGroupListParamsTest.kt | 1 - .../api/models/PayrollPayGroupRetrieveParamsTest.kt | 1 - .../com/tryfinch/api/models/ProviderListParamsTest.kt | 1 - .../api/models/RequestForwardingForwardParamsTest.kt | 1 - .../tryfinch/api/models/SandboxCompanyUpdateParamsTest.kt | 1 - .../api/models/SandboxConnectionAccountCreateParamsTest.kt | 1 - .../api/models/SandboxConnectionAccountUpdateParamsTest.kt | 1 - .../api/models/SandboxConnectionCreateParamsTest.kt | 1 - .../tryfinch/api/models/SandboxDirectoryCreateParamsTest.kt | 1 - .../api/models/SandboxEmploymentUpdateParamsTest.kt | 1 - .../api/models/SandboxIndividualUpdateParamsTest.kt | 1 - .../api/models/SandboxJobConfigurationRetrieveParamsTest.kt | 1 - .../api/models/SandboxJobConfigurationUpdateParamsTest.kt | 1 - .../com/tryfinch/api/models/SandboxJobCreateParamsTest.kt | 1 - .../tryfinch/api/models/SandboxPaymentCreateParamsTest.kt | 1 - .../kotlin/com/tryfinch/api/services/ErrorHandlingTest.kt | 4 +++- .../kotlin/com/tryfinch/api/services/ServiceParamsTest.kt | 3 ++- .../api/services/blocking/AccessTokenServiceTest.kt | 2 +- .../tryfinch/api/services/blocking/AccountServiceTest.kt | 3 ++- .../tryfinch/api/services/blocking/ProviderServiceTest.kt | 1 - .../api/services/blocking/RequestForwardingServiceTest.kt | 2 +- .../api/services/blocking/connect/SessionServiceTest.kt | 3 ++- .../api/services/blocking/hris/BenefitServiceTest.kt | 6 +++++- .../api/services/blocking/hris/CompanyServiceTest.kt | 2 +- .../api/services/blocking/hris/DirectoryServiceTest.kt | 1 - .../api/services/blocking/hris/EmploymentServiceTest.kt | 1 - .../api/services/blocking/hris/IndividualServiceTest.kt | 1 - .../api/services/blocking/hris/PayStatementServiceTest.kt | 1 - .../api/services/blocking/hris/PaymentServiceTest.kt | 1 - .../blocking/hris/benefits/IndividualServiceTest.kt | 2 +- .../api/services/blocking/jobs/AutomatedServiceTest.kt | 3 ++- .../api/services/blocking/jobs/ManualServiceTest.kt | 2 +- .../api/services/blocking/payroll/PayGroupServiceTest.kt | 2 +- .../api/services/blocking/sandbox/CompanyServiceTest.kt | 3 ++- .../api/services/blocking/sandbox/ConnectionServiceTest.kt | 2 +- .../api/services/blocking/sandbox/DirectoryServiceTest.kt | 4 +++- .../api/services/blocking/sandbox/EmploymentServiceTest.kt | 4 +++- .../api/services/blocking/sandbox/IndividualServiceTest.kt | 3 ++- .../api/services/blocking/sandbox/JobServiceTest.kt | 2 +- .../api/services/blocking/sandbox/PaymentServiceTest.kt | 3 ++- .../blocking/sandbox/connections/AccountServiceTest.kt | 4 +++- .../blocking/sandbox/jobs/ConfigurationServiceTest.kt | 4 +++- 107 files changed, 42 insertions(+), 107 deletions(-) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClient.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClient.kt index a67ca859..0832f242 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClient.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClient.kt @@ -3,7 +3,6 @@ package com.tryfinch.api.client import com.fasterxml.jackson.annotation.JsonProperty -import com.tryfinch.api.models.* import com.tryfinch.api.services.blocking.* interface FinchClient { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClientAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClientAsync.kt index 3df9bbd9..d9479935 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClientAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClientAsync.kt @@ -3,7 +3,6 @@ package com.tryfinch.api.client import com.fasterxml.jackson.annotation.JsonProperty -import com.tryfinch.api.models.* import com.tryfinch.api.services.async.* import java.util.concurrent.CompletableFuture diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccessTokenCreateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccessTokenCreateParams.kt index 5ee50b30..876f7a57 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccessTokenCreateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccessTokenCreateParams.kt @@ -12,7 +12,6 @@ import com.tryfinch.api.core.NoAutoDetect import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams import com.tryfinch.api.core.toImmutable -import com.tryfinch.api.models.* import java.util.Objects import java.util.Optional diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountDisconnectParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountDisconnectParams.kt index fc26161d..e88964ff 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountDisconnectParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountDisconnectParams.kt @@ -7,7 +7,6 @@ import com.tryfinch.api.core.NoAutoDetect import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams import com.tryfinch.api.core.toImmutable -import com.tryfinch.api.models.* import java.util.Objects import java.util.Optional diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountIntrospectParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountIntrospectParams.kt index 50b8cf1f..1f07bed2 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountIntrospectParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountIntrospectParams.kt @@ -5,7 +5,6 @@ package com.tryfinch.api.models import com.tryfinch.api.core.NoAutoDetect import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams -import com.tryfinch.api.models.* import java.util.Objects class AccountIntrospectParams diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectSessionNewParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectSessionNewParams.kt index d23d59a2..7b723f01 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectSessionNewParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectSessionNewParams.kt @@ -16,7 +16,6 @@ import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams import com.tryfinch.api.core.toImmutable import com.tryfinch.api.errors.FinchInvalidDataException -import com.tryfinch.api.models.* import java.util.Objects import java.util.Optional diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectSessionReauthenticateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectSessionReauthenticateParams.kt index bec561b1..60a3ba1a 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectSessionReauthenticateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectSessionReauthenticateParams.kt @@ -16,7 +16,6 @@ import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams import com.tryfinch.api.core.toImmutable import com.tryfinch.api.errors.FinchInvalidDataException -import com.tryfinch.api.models.* import java.util.Objects import java.util.Optional diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitCreateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitCreateParams.kt index 1790e378..d8c1576e 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitCreateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitCreateParams.kt @@ -12,7 +12,6 @@ import com.tryfinch.api.core.NoAutoDetect import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams import com.tryfinch.api.core.toImmutable -import com.tryfinch.api.models.* import java.util.Objects import java.util.Optional diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitIndividualEnrolledIdsParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitIndividualEnrolledIdsParams.kt index 69e5e18b..f9ce3ac5 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitIndividualEnrolledIdsParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitIndividualEnrolledIdsParams.kt @@ -5,7 +5,6 @@ package com.tryfinch.api.models import com.tryfinch.api.core.NoAutoDetect import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams -import com.tryfinch.api.models.* import java.util.Objects class HrisBenefitIndividualEnrolledIdsParams diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitIndividualRetrieveManyBenefitsParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitIndividualRetrieveManyBenefitsParams.kt index 9e129990..b9d639fb 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitIndividualRetrieveManyBenefitsParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitIndividualRetrieveManyBenefitsParams.kt @@ -5,7 +5,6 @@ package com.tryfinch.api.models import com.tryfinch.api.core.NoAutoDetect import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams -import com.tryfinch.api.models.* import java.util.Objects import java.util.Optional diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitIndividualUnenrollManyParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitIndividualUnenrollManyParams.kt index 1b3b20b8..b88ad19a 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitIndividualUnenrollManyParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitIndividualUnenrollManyParams.kt @@ -12,7 +12,6 @@ import com.tryfinch.api.core.NoAutoDetect import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams import com.tryfinch.api.core.toImmutable -import com.tryfinch.api.models.* import java.util.Objects import java.util.Optional diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitListParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitListParams.kt index a253da32..3f3f8c2d 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitListParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitListParams.kt @@ -5,7 +5,6 @@ package com.tryfinch.api.models import com.tryfinch.api.core.NoAutoDetect import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams -import com.tryfinch.api.models.* import java.util.Objects class HrisBenefitListParams diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitListSupportedBenefitsParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitListSupportedBenefitsParams.kt index 8b0db972..69e36505 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitListSupportedBenefitsParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitListSupportedBenefitsParams.kt @@ -5,7 +5,6 @@ package com.tryfinch.api.models import com.tryfinch.api.core.NoAutoDetect import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams -import com.tryfinch.api.models.* import java.util.Objects class HrisBenefitListSupportedBenefitsParams diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitRetrieveParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitRetrieveParams.kt index 52e390f2..d97a7bce 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitRetrieveParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitRetrieveParams.kt @@ -5,7 +5,6 @@ package com.tryfinch.api.models import com.tryfinch.api.core.NoAutoDetect import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams -import com.tryfinch.api.models.* import java.util.Objects class HrisBenefitRetrieveParams diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitUpdateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitUpdateParams.kt index 36fb1cf9..34ef135d 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitUpdateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitUpdateParams.kt @@ -12,7 +12,6 @@ import com.tryfinch.api.core.NoAutoDetect import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams import com.tryfinch.api.core.toImmutable -import com.tryfinch.api.models.* import java.util.Objects import java.util.Optional diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyRetrieveParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyRetrieveParams.kt index b04ee9a6..0ce8199f 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyRetrieveParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyRetrieveParams.kt @@ -5,7 +5,6 @@ package com.tryfinch.api.models import com.tryfinch.api.core.NoAutoDetect import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams -import com.tryfinch.api.models.* import java.util.Objects class HrisCompanyRetrieveParams diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListIndividualsParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListIndividualsParams.kt index 7ee0d705..2c09b00e 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListIndividualsParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListIndividualsParams.kt @@ -5,7 +5,6 @@ package com.tryfinch.api.models import com.tryfinch.api.core.NoAutoDetect import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams -import com.tryfinch.api.models.* import java.util.Objects import java.util.Optional diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListParams.kt index 0912e775..ffc4b4bd 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListParams.kt @@ -5,7 +5,6 @@ package com.tryfinch.api.models import com.tryfinch.api.core.NoAutoDetect import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams -import com.tryfinch.api.models.* import java.util.Objects import java.util.Optional diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisEmploymentRetrieveManyParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisEmploymentRetrieveManyParams.kt index 0d40d3c8..191b1fd6 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisEmploymentRetrieveManyParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisEmploymentRetrieveManyParams.kt @@ -12,7 +12,6 @@ import com.tryfinch.api.core.NoAutoDetect import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams import com.tryfinch.api.core.toImmutable -import com.tryfinch.api.models.* import java.util.Objects class HrisEmploymentRetrieveManyParams diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisIndividualRetrieveManyParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisIndividualRetrieveManyParams.kt index ab7c89bb..1d9659f6 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisIndividualRetrieveManyParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisIndividualRetrieveManyParams.kt @@ -12,7 +12,6 @@ import com.tryfinch.api.core.NoAutoDetect import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams import com.tryfinch.api.core.toImmutable -import com.tryfinch.api.models.* import java.util.Objects import java.util.Optional diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementRetrieveManyParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementRetrieveManyParams.kt index f8512da0..bb509264 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementRetrieveManyParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementRetrieveManyParams.kt @@ -12,7 +12,6 @@ import com.tryfinch.api.core.NoAutoDetect import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams import com.tryfinch.api.core.toImmutable -import com.tryfinch.api.models.* import java.util.Objects class HrisPayStatementRetrieveManyParams diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPaymentListParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPaymentListParams.kt index df559364..19dd3c8c 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPaymentListParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPaymentListParams.kt @@ -5,7 +5,6 @@ package com.tryfinch.api.models import com.tryfinch.api.core.NoAutoDetect import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams -import com.tryfinch.api.models.* import java.time.LocalDate import java.util.Objects diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedCreateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedCreateParams.kt index 13f31eee..fc7ae8b8 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedCreateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedCreateParams.kt @@ -25,7 +25,6 @@ import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams import com.tryfinch.api.core.toImmutable import com.tryfinch.api.errors.FinchInvalidDataException -import com.tryfinch.api.models.* import java.util.Objects import java.util.Optional import kotlin.jvm.optionals.getOrNull diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedListParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedListParams.kt index 87f58414..3eb94cf4 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedListParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedListParams.kt @@ -5,7 +5,6 @@ package com.tryfinch.api.models import com.tryfinch.api.core.NoAutoDetect import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams -import com.tryfinch.api.models.* import java.util.Objects import java.util.Optional diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedRetrieveParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedRetrieveParams.kt index 6b746f4d..f8454fe4 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedRetrieveParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedRetrieveParams.kt @@ -5,7 +5,6 @@ package com.tryfinch.api.models import com.tryfinch.api.core.NoAutoDetect import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams -import com.tryfinch.api.models.* import java.util.Objects class JobAutomatedRetrieveParams diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobManualRetrieveParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobManualRetrieveParams.kt index 0dc90dbb..ae0b8f0b 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobManualRetrieveParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobManualRetrieveParams.kt @@ -5,7 +5,6 @@ package com.tryfinch.api.models import com.tryfinch.api.core.NoAutoDetect import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams -import com.tryfinch.api.models.* import java.util.Objects class JobManualRetrieveParams diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayrollPayGroupListParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayrollPayGroupListParams.kt index fbafe465..96fa9258 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayrollPayGroupListParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayrollPayGroupListParams.kt @@ -6,7 +6,6 @@ import com.tryfinch.api.core.NoAutoDetect import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams import com.tryfinch.api.core.toImmutable -import com.tryfinch.api.models.* import java.util.Objects import java.util.Optional diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayrollPayGroupRetrieveParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayrollPayGroupRetrieveParams.kt index 0397d454..a82ebf0b 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayrollPayGroupRetrieveParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayrollPayGroupRetrieveParams.kt @@ -5,7 +5,6 @@ package com.tryfinch.api.models import com.tryfinch.api.core.NoAutoDetect import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams -import com.tryfinch.api.models.* import java.util.Objects class PayrollPayGroupRetrieveParams diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ProviderListParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ProviderListParams.kt index adeb608e..5b6d393d 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ProviderListParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ProviderListParams.kt @@ -5,7 +5,6 @@ package com.tryfinch.api.models import com.tryfinch.api.core.NoAutoDetect import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams -import com.tryfinch.api.models.* import java.util.Objects class ProviderListParams diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/RequestForwardingForwardParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/RequestForwardingForwardParams.kt index 31fb11cd..674264ae 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/RequestForwardingForwardParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/RequestForwardingForwardParams.kt @@ -12,7 +12,6 @@ import com.tryfinch.api.core.NoAutoDetect import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams import com.tryfinch.api.core.toImmutable -import com.tryfinch.api.models.* import java.util.Objects import java.util.Optional diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxCompanyUpdateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxCompanyUpdateParams.kt index 3944982a..6b1ffd95 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxCompanyUpdateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxCompanyUpdateParams.kt @@ -16,7 +16,6 @@ import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams import com.tryfinch.api.core.toImmutable import com.tryfinch.api.errors.FinchInvalidDataException -import com.tryfinch.api.models.* import java.util.Objects import java.util.Optional diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionAccountCreateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionAccountCreateParams.kt index a9feb6f9..67ef1401 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionAccountCreateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionAccountCreateParams.kt @@ -16,7 +16,6 @@ import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams import com.tryfinch.api.core.toImmutable import com.tryfinch.api.errors.FinchInvalidDataException -import com.tryfinch.api.models.* import java.util.Objects import java.util.Optional diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionAccountUpdateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionAccountUpdateParams.kt index 37a2baab..0d332a03 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionAccountUpdateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionAccountUpdateParams.kt @@ -12,7 +12,6 @@ import com.tryfinch.api.core.NoAutoDetect import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams import com.tryfinch.api.core.toImmutable -import com.tryfinch.api.models.* import java.util.Objects import java.util.Optional diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionCreateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionCreateParams.kt index f5e561db..21767bea 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionCreateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionCreateParams.kt @@ -16,7 +16,6 @@ import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams import com.tryfinch.api.core.toImmutable import com.tryfinch.api.errors.FinchInvalidDataException -import com.tryfinch.api.models.* import java.util.Objects import java.util.Optional diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxDirectoryCreateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxDirectoryCreateParams.kt index 9f8e1a4d..ad31e5b4 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxDirectoryCreateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxDirectoryCreateParams.kt @@ -16,7 +16,6 @@ import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams import com.tryfinch.api.core.toImmutable import com.tryfinch.api.errors.FinchInvalidDataException -import com.tryfinch.api.models.* import java.util.Objects class SandboxDirectoryCreateParams diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxEmploymentUpdateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxEmploymentUpdateParams.kt index 8dee6f89..475f1af2 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxEmploymentUpdateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxEmploymentUpdateParams.kt @@ -16,7 +16,6 @@ import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams import com.tryfinch.api.core.toImmutable import com.tryfinch.api.errors.FinchInvalidDataException -import com.tryfinch.api.models.* import java.util.Objects import java.util.Optional diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxIndividualUpdateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxIndividualUpdateParams.kt index 9767d4fa..983accde 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxIndividualUpdateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxIndividualUpdateParams.kt @@ -16,7 +16,6 @@ import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams import com.tryfinch.api.core.toImmutable import com.tryfinch.api.errors.FinchInvalidDataException -import com.tryfinch.api.models.* import java.util.Objects import java.util.Optional diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfigurationRetrieveParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfigurationRetrieveParams.kt index 9b1dd705..37c5fc5c 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfigurationRetrieveParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfigurationRetrieveParams.kt @@ -5,7 +5,6 @@ package com.tryfinch.api.models import com.tryfinch.api.core.NoAutoDetect import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams -import com.tryfinch.api.models.* import java.util.Objects class SandboxJobConfigurationRetrieveParams diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfigurationUpdateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfigurationUpdateParams.kt index 89f38625..cca375a1 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfigurationUpdateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfigurationUpdateParams.kt @@ -16,7 +16,6 @@ import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams import com.tryfinch.api.core.toImmutable import com.tryfinch.api.errors.FinchInvalidDataException -import com.tryfinch.api.models.* import java.util.Objects class SandboxJobConfigurationUpdateParams diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobCreateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobCreateParams.kt index 17527832..5cbc45ea 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobCreateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobCreateParams.kt @@ -16,7 +16,6 @@ import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams import com.tryfinch.api.core.toImmutable import com.tryfinch.api.errors.FinchInvalidDataException -import com.tryfinch.api.models.* import java.util.Objects class SandboxJobCreateParams diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParams.kt index 7192c0d9..00d68462 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParams.kt @@ -16,7 +16,6 @@ import com.tryfinch.api.core.http.Headers import com.tryfinch.api.core.http.QueryParams import com.tryfinch.api.core.toImmutable import com.tryfinch.api.errors.FinchInvalidDataException -import com.tryfinch.api.models.* import java.util.Objects import java.util.Optional diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/AccessTokenCreateParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/AccessTokenCreateParamsTest.kt index bed3ad2f..a853a057 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/AccessTokenCreateParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/AccessTokenCreateParamsTest.kt @@ -2,7 +2,6 @@ package com.tryfinch.api.models -import com.tryfinch.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/AccountDisconnectParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/AccountDisconnectParamsTest.kt index cbd37eeb..03b7bffb 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/AccountDisconnectParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/AccountDisconnectParamsTest.kt @@ -2,7 +2,6 @@ package com.tryfinch.api.models -import com.tryfinch.api.models.* import org.junit.jupiter.api.Test class AccountDisconnectParamsTest { diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/AccountIntrospectParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/AccountIntrospectParamsTest.kt index 334b6c9f..c886e760 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/AccountIntrospectParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/AccountIntrospectParamsTest.kt @@ -2,7 +2,6 @@ package com.tryfinch.api.models -import com.tryfinch.api.models.* import org.junit.jupiter.api.Test class AccountIntrospectParamsTest { diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/ConnectSessionNewParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/ConnectSessionNewParamsTest.kt index 551c64df..5ab13be5 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/ConnectSessionNewParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/ConnectSessionNewParamsTest.kt @@ -2,7 +2,6 @@ package com.tryfinch.api.models -import com.tryfinch.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/ConnectSessionReauthenticateParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/ConnectSessionReauthenticateParamsTest.kt index 1f04736a..6e091f6c 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/ConnectSessionReauthenticateParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/ConnectSessionReauthenticateParamsTest.kt @@ -2,7 +2,6 @@ package com.tryfinch.api.models -import com.tryfinch.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitCreateParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitCreateParamsTest.kt index 10d1ae93..0e43ccd7 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitCreateParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitCreateParamsTest.kt @@ -2,7 +2,6 @@ package com.tryfinch.api.models -import com.tryfinch.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitIndividualEnrolledIdsParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitIndividualEnrolledIdsParamsTest.kt index 351aef35..a1e82c83 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitIndividualEnrolledIdsParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitIndividualEnrolledIdsParamsTest.kt @@ -2,7 +2,6 @@ package com.tryfinch.api.models -import com.tryfinch.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitIndividualRetrieveManyBenefitsParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitIndividualRetrieveManyBenefitsParamsTest.kt index a5f013ec..a49f8c39 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitIndividualRetrieveManyBenefitsParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitIndividualRetrieveManyBenefitsParamsTest.kt @@ -3,7 +3,6 @@ package com.tryfinch.api.models import com.tryfinch.api.core.http.QueryParams -import com.tryfinch.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitIndividualUnenrollManyParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitIndividualUnenrollManyParamsTest.kt index 31af1067..31c8d60c 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitIndividualUnenrollManyParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitIndividualUnenrollManyParamsTest.kt @@ -2,7 +2,6 @@ package com.tryfinch.api.models -import com.tryfinch.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitListParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitListParamsTest.kt index e2934653..ed540958 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitListParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitListParamsTest.kt @@ -2,7 +2,6 @@ package com.tryfinch.api.models -import com.tryfinch.api.models.* import org.junit.jupiter.api.Test class HrisBenefitListParamsTest { diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitListSupportedBenefitsParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitListSupportedBenefitsParamsTest.kt index e3606cca..4f8d686e 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitListSupportedBenefitsParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitListSupportedBenefitsParamsTest.kt @@ -2,7 +2,6 @@ package com.tryfinch.api.models -import com.tryfinch.api.models.* import org.junit.jupiter.api.Test class HrisBenefitListSupportedBenefitsParamsTest { diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitRetrieveParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitRetrieveParamsTest.kt index 2a29a115..44a855b3 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitRetrieveParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitRetrieveParamsTest.kt @@ -2,7 +2,6 @@ package com.tryfinch.api.models -import com.tryfinch.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitUpdateParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitUpdateParamsTest.kt index 5038bd02..7d964aac 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitUpdateParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitUpdateParamsTest.kt @@ -2,7 +2,6 @@ package com.tryfinch.api.models -import com.tryfinch.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyRetrieveParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyRetrieveParamsTest.kt index 3eab3a0c..5ee3d609 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyRetrieveParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyRetrieveParamsTest.kt @@ -2,7 +2,6 @@ package com.tryfinch.api.models -import com.tryfinch.api.models.* import org.junit.jupiter.api.Test class HrisCompanyRetrieveParamsTest { diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisDirectoryListIndividualsParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisDirectoryListIndividualsParamsTest.kt index 61b10594..1b52e5af 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisDirectoryListIndividualsParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisDirectoryListIndividualsParamsTest.kt @@ -3,7 +3,6 @@ package com.tryfinch.api.models import com.tryfinch.api.core.http.QueryParams -import com.tryfinch.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisDirectoryListParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisDirectoryListParamsTest.kt index bbc93aad..bf7133bb 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisDirectoryListParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisDirectoryListParamsTest.kt @@ -3,7 +3,6 @@ package com.tryfinch.api.models import com.tryfinch.api.core.http.QueryParams -import com.tryfinch.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisEmploymentRetrieveManyParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisEmploymentRetrieveManyParamsTest.kt index 9bf66a4d..f601384d 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisEmploymentRetrieveManyParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisEmploymentRetrieveManyParamsTest.kt @@ -2,7 +2,6 @@ package com.tryfinch.api.models -import com.tryfinch.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisIndividualRetrieveManyParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisIndividualRetrieveManyParamsTest.kt index c8c629ec..b6c3d852 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisIndividualRetrieveManyParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisIndividualRetrieveManyParamsTest.kt @@ -2,7 +2,6 @@ package com.tryfinch.api.models -import com.tryfinch.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementRetrieveManyParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementRetrieveManyParamsTest.kt index 5377d2a2..fe421282 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementRetrieveManyParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementRetrieveManyParamsTest.kt @@ -2,7 +2,6 @@ package com.tryfinch.api.models -import com.tryfinch.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisPaymentListParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisPaymentListParamsTest.kt index 696bc8c4..ba8f5d39 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisPaymentListParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisPaymentListParamsTest.kt @@ -3,7 +3,6 @@ package com.tryfinch.api.models import com.tryfinch.api.core.http.QueryParams -import com.tryfinch.api.models.* import java.time.LocalDate import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/JobAutomatedCreateParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/JobAutomatedCreateParamsTest.kt index d57c9f1c..d481de8a 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/JobAutomatedCreateParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/JobAutomatedCreateParamsTest.kt @@ -2,7 +2,6 @@ package com.tryfinch.api.models -import com.tryfinch.api.models.* import org.junit.jupiter.api.Test class JobAutomatedCreateParamsTest { diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/JobAutomatedListParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/JobAutomatedListParamsTest.kt index 5d49c993..9716e659 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/JobAutomatedListParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/JobAutomatedListParamsTest.kt @@ -3,7 +3,6 @@ package com.tryfinch.api.models import com.tryfinch.api.core.http.QueryParams -import com.tryfinch.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/JobAutomatedRetrieveParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/JobAutomatedRetrieveParamsTest.kt index b629959c..68d537ec 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/JobAutomatedRetrieveParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/JobAutomatedRetrieveParamsTest.kt @@ -2,7 +2,6 @@ package com.tryfinch.api.models -import com.tryfinch.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/JobManualRetrieveParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/JobManualRetrieveParamsTest.kt index bf27a411..e917ef1f 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/JobManualRetrieveParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/JobManualRetrieveParamsTest.kt @@ -2,7 +2,6 @@ package com.tryfinch.api.models -import com.tryfinch.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/PayrollPayGroupListParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/PayrollPayGroupListParamsTest.kt index 7bee1f76..041f8109 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/PayrollPayGroupListParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/PayrollPayGroupListParamsTest.kt @@ -3,7 +3,6 @@ package com.tryfinch.api.models import com.tryfinch.api.core.http.QueryParams -import com.tryfinch.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/PayrollPayGroupRetrieveParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/PayrollPayGroupRetrieveParamsTest.kt index 760c2868..306dc8fc 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/PayrollPayGroupRetrieveParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/PayrollPayGroupRetrieveParamsTest.kt @@ -2,7 +2,6 @@ package com.tryfinch.api.models -import com.tryfinch.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/ProviderListParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/ProviderListParamsTest.kt index a0bd62c4..01b1f155 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/ProviderListParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/ProviderListParamsTest.kt @@ -2,7 +2,6 @@ package com.tryfinch.api.models -import com.tryfinch.api.models.* import org.junit.jupiter.api.Test class ProviderListParamsTest { diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/RequestForwardingForwardParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/RequestForwardingForwardParamsTest.kt index d9b27e24..26bd5e36 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/RequestForwardingForwardParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/RequestForwardingForwardParamsTest.kt @@ -3,7 +3,6 @@ package com.tryfinch.api.models import com.tryfinch.api.core.JsonValue -import com.tryfinch.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxCompanyUpdateParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxCompanyUpdateParamsTest.kt index da387e9d..31a66c38 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxCompanyUpdateParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxCompanyUpdateParamsTest.kt @@ -2,7 +2,6 @@ package com.tryfinch.api.models -import com.tryfinch.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxConnectionAccountCreateParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxConnectionAccountCreateParamsTest.kt index 8298a992..baae8277 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxConnectionAccountCreateParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxConnectionAccountCreateParamsTest.kt @@ -2,7 +2,6 @@ package com.tryfinch.api.models -import com.tryfinch.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxConnectionAccountUpdateParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxConnectionAccountUpdateParamsTest.kt index 1f9cca22..a152cf9e 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxConnectionAccountUpdateParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxConnectionAccountUpdateParamsTest.kt @@ -2,7 +2,6 @@ package com.tryfinch.api.models -import com.tryfinch.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxConnectionCreateParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxConnectionCreateParamsTest.kt index ccd07bab..074f1205 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxConnectionCreateParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxConnectionCreateParamsTest.kt @@ -2,7 +2,6 @@ package com.tryfinch.api.models -import com.tryfinch.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxDirectoryCreateParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxDirectoryCreateParamsTest.kt index 77969c14..7097786b 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxDirectoryCreateParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxDirectoryCreateParamsTest.kt @@ -3,7 +3,6 @@ package com.tryfinch.api.models import com.tryfinch.api.core.JsonValue -import com.tryfinch.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxEmploymentUpdateParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxEmploymentUpdateParamsTest.kt index 750d82a8..a08783dc 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxEmploymentUpdateParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxEmploymentUpdateParamsTest.kt @@ -3,7 +3,6 @@ package com.tryfinch.api.models import com.tryfinch.api.core.JsonValue -import com.tryfinch.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxIndividualUpdateParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxIndividualUpdateParamsTest.kt index bb222149..13feefba 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxIndividualUpdateParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxIndividualUpdateParamsTest.kt @@ -2,7 +2,6 @@ package com.tryfinch.api.models -import com.tryfinch.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxJobConfigurationRetrieveParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxJobConfigurationRetrieveParamsTest.kt index 76a31055..fcb649d8 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxJobConfigurationRetrieveParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxJobConfigurationRetrieveParamsTest.kt @@ -2,7 +2,6 @@ package com.tryfinch.api.models -import com.tryfinch.api.models.* import org.junit.jupiter.api.Test class SandboxJobConfigurationRetrieveParamsTest { diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxJobConfigurationUpdateParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxJobConfigurationUpdateParamsTest.kt index 1ec12528..0396c389 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxJobConfigurationUpdateParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxJobConfigurationUpdateParamsTest.kt @@ -2,7 +2,6 @@ package com.tryfinch.api.models -import com.tryfinch.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxJobCreateParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxJobCreateParamsTest.kt index 927a89f5..dadcf231 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxJobCreateParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxJobCreateParamsTest.kt @@ -2,7 +2,6 @@ package com.tryfinch.api.models -import com.tryfinch.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParamsTest.kt index f2f66dce..dd775a1e 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParamsTest.kt @@ -2,7 +2,6 @@ package com.tryfinch.api.models -import com.tryfinch.api.models.* import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/ErrorHandlingTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/ErrorHandlingTest.kt index 191b2cea..7e131b2d 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/ErrorHandlingTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/ErrorHandlingTest.kt @@ -25,7 +25,9 @@ import com.tryfinch.api.errors.RateLimitException import com.tryfinch.api.errors.UnauthorizedException import com.tryfinch.api.errors.UnexpectedStatusCodeException import com.tryfinch.api.errors.UnprocessableEntityException -import com.tryfinch.api.models.* +import com.tryfinch.api.models.Company +import com.tryfinch.api.models.HrisCompanyRetrieveParams +import com.tryfinch.api.models.Location import org.assertj.core.api.Assertions.assertThat import org.assertj.core.api.Assertions.assertThatThrownBy import org.assertj.core.api.InstanceOfAssertFactories diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/ServiceParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/ServiceParamsTest.kt index d938c3cf..555e8b13 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/ServiceParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/ServiceParamsTest.kt @@ -15,9 +15,10 @@ import com.github.tomakehurst.wiremock.junit5.WireMockTest import com.tryfinch.api.client.FinchClient import com.tryfinch.api.client.okhttp.FinchOkHttpClient import com.tryfinch.api.core.jsonMapper -import com.tryfinch.api.models.* import com.tryfinch.api.models.HrisDirectoryListPage import com.tryfinch.api.models.HrisDirectoryListParams +import com.tryfinch.api.models.IndividualInDirectory +import com.tryfinch.api.models.Paging import org.junit.jupiter.api.BeforeEach import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/AccessTokenServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/AccessTokenServiceTest.kt index 38137dd8..258b40b3 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/AccessTokenServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/AccessTokenServiceTest.kt @@ -4,7 +4,7 @@ package com.tryfinch.api.services.blocking import com.tryfinch.api.TestServerExtension import com.tryfinch.api.client.okhttp.FinchOkHttpClient -import com.tryfinch.api.models.* +import com.tryfinch.api.models.AccessTokenCreateParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/AccountServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/AccountServiceTest.kt index 4a26a609..722ea7d8 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/AccountServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/AccountServiceTest.kt @@ -4,7 +4,8 @@ package com.tryfinch.api.services.blocking import com.tryfinch.api.TestServerExtension import com.tryfinch.api.client.okhttp.FinchOkHttpClient -import com.tryfinch.api.models.* +import com.tryfinch.api.models.AccountDisconnectParams +import com.tryfinch.api.models.AccountIntrospectParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/ProviderServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/ProviderServiceTest.kt index a2db24db..55efec7e 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/ProviderServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/ProviderServiceTest.kt @@ -4,7 +4,6 @@ package com.tryfinch.api.services.blocking import com.tryfinch.api.TestServerExtension import com.tryfinch.api.client.okhttp.FinchOkHttpClient -import com.tryfinch.api.models.* import com.tryfinch.api.models.ProviderListParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/RequestForwardingServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/RequestForwardingServiceTest.kt index e91f3073..2a16cb42 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/RequestForwardingServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/RequestForwardingServiceTest.kt @@ -5,7 +5,7 @@ package com.tryfinch.api.services.blocking import com.tryfinch.api.TestServerExtension import com.tryfinch.api.client.okhttp.FinchOkHttpClient import com.tryfinch.api.core.JsonValue -import com.tryfinch.api.models.* +import com.tryfinch.api.models.RequestForwardingForwardParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/connect/SessionServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/connect/SessionServiceTest.kt index d4831db2..1e47f3b5 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/connect/SessionServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/connect/SessionServiceTest.kt @@ -4,7 +4,8 @@ package com.tryfinch.api.services.blocking.connect import com.tryfinch.api.TestServerExtension import com.tryfinch.api.client.okhttp.FinchOkHttpClient -import com.tryfinch.api.models.* +import com.tryfinch.api.models.ConnectSessionNewParams +import com.tryfinch.api.models.ConnectSessionReauthenticateParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/BenefitServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/BenefitServiceTest.kt index 9b3db79d..aa9964e9 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/BenefitServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/BenefitServiceTest.kt @@ -4,9 +4,13 @@ package com.tryfinch.api.services.blocking.hris import com.tryfinch.api.TestServerExtension import com.tryfinch.api.client.okhttp.FinchOkHttpClient -import com.tryfinch.api.models.* +import com.tryfinch.api.models.BenefitFrequency +import com.tryfinch.api.models.BenefitType +import com.tryfinch.api.models.HrisBenefitCreateParams import com.tryfinch.api.models.HrisBenefitListParams import com.tryfinch.api.models.HrisBenefitListSupportedBenefitsParams +import com.tryfinch.api.models.HrisBenefitRetrieveParams +import com.tryfinch.api.models.HrisBenefitUpdateParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/CompanyServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/CompanyServiceTest.kt index f9c5e1b4..8d94efc7 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/CompanyServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/CompanyServiceTest.kt @@ -4,7 +4,7 @@ package com.tryfinch.api.services.blocking.hris import com.tryfinch.api.TestServerExtension import com.tryfinch.api.client.okhttp.FinchOkHttpClient -import com.tryfinch.api.models.* +import com.tryfinch.api.models.HrisCompanyRetrieveParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/DirectoryServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/DirectoryServiceTest.kt index b9873802..8ab41102 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/DirectoryServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/DirectoryServiceTest.kt @@ -4,7 +4,6 @@ package com.tryfinch.api.services.blocking.hris import com.tryfinch.api.TestServerExtension import com.tryfinch.api.client.okhttp.FinchOkHttpClient -import com.tryfinch.api.models.* import com.tryfinch.api.models.HrisDirectoryListIndividualsParams import com.tryfinch.api.models.HrisDirectoryListParams import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/EmploymentServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/EmploymentServiceTest.kt index 52d72f98..72c101cf 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/EmploymentServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/EmploymentServiceTest.kt @@ -4,7 +4,6 @@ package com.tryfinch.api.services.blocking.hris import com.tryfinch.api.TestServerExtension import com.tryfinch.api.client.okhttp.FinchOkHttpClient -import com.tryfinch.api.models.* import com.tryfinch.api.models.HrisEmploymentRetrieveManyParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/IndividualServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/IndividualServiceTest.kt index 41620c4f..3aef212f 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/IndividualServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/IndividualServiceTest.kt @@ -4,7 +4,6 @@ package com.tryfinch.api.services.blocking.hris import com.tryfinch.api.TestServerExtension import com.tryfinch.api.client.okhttp.FinchOkHttpClient -import com.tryfinch.api.models.* import com.tryfinch.api.models.HrisIndividualRetrieveManyParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/PayStatementServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/PayStatementServiceTest.kt index 57a63c98..3bdda20d 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/PayStatementServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/PayStatementServiceTest.kt @@ -4,7 +4,6 @@ package com.tryfinch.api.services.blocking.hris import com.tryfinch.api.TestServerExtension import com.tryfinch.api.client.okhttp.FinchOkHttpClient -import com.tryfinch.api.models.* import com.tryfinch.api.models.HrisPayStatementRetrieveManyParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/PaymentServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/PaymentServiceTest.kt index 72d063b7..35cc4d01 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/PaymentServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/PaymentServiceTest.kt @@ -4,7 +4,6 @@ package com.tryfinch.api.services.blocking.hris import com.tryfinch.api.TestServerExtension import com.tryfinch.api.client.okhttp.FinchOkHttpClient -import com.tryfinch.api.models.* import com.tryfinch.api.models.HrisPaymentListParams import java.time.LocalDate import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/benefits/IndividualServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/benefits/IndividualServiceTest.kt index 61dc541a..61091aa9 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/benefits/IndividualServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/benefits/IndividualServiceTest.kt @@ -4,7 +4,7 @@ package com.tryfinch.api.services.blocking.hris.benefits import com.tryfinch.api.TestServerExtension import com.tryfinch.api.client.okhttp.FinchOkHttpClient -import com.tryfinch.api.models.* +import com.tryfinch.api.models.HrisBenefitIndividualEnrolledIdsParams import com.tryfinch.api.models.HrisBenefitIndividualRetrieveManyBenefitsParams import com.tryfinch.api.models.HrisBenefitIndividualUnenrollManyParams import org.junit.jupiter.api.Test diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/jobs/AutomatedServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/jobs/AutomatedServiceTest.kt index bb9fa5a9..79cba36e 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/jobs/AutomatedServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/jobs/AutomatedServiceTest.kt @@ -4,8 +4,9 @@ package com.tryfinch.api.services.blocking.jobs import com.tryfinch.api.TestServerExtension import com.tryfinch.api.client.okhttp.FinchOkHttpClient -import com.tryfinch.api.models.* +import com.tryfinch.api.models.JobAutomatedCreateParams import com.tryfinch.api.models.JobAutomatedListParams +import com.tryfinch.api.models.JobAutomatedRetrieveParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/jobs/ManualServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/jobs/ManualServiceTest.kt index ff0e3d04..ef763502 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/jobs/ManualServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/jobs/ManualServiceTest.kt @@ -4,7 +4,7 @@ package com.tryfinch.api.services.blocking.jobs import com.tryfinch.api.TestServerExtension import com.tryfinch.api.client.okhttp.FinchOkHttpClient -import com.tryfinch.api.models.* +import com.tryfinch.api.models.JobManualRetrieveParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/payroll/PayGroupServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/payroll/PayGroupServiceTest.kt index 21179249..c9fe1035 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/payroll/PayGroupServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/payroll/PayGroupServiceTest.kt @@ -4,8 +4,8 @@ package com.tryfinch.api.services.blocking.payroll import com.tryfinch.api.TestServerExtension import com.tryfinch.api.client.okhttp.FinchOkHttpClient -import com.tryfinch.api.models.* import com.tryfinch.api.models.PayrollPayGroupListParams +import com.tryfinch.api.models.PayrollPayGroupRetrieveParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/CompanyServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/CompanyServiceTest.kt index 6b956776..1ecbae71 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/CompanyServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/CompanyServiceTest.kt @@ -4,7 +4,8 @@ package com.tryfinch.api.services.blocking.sandbox import com.tryfinch.api.TestServerExtension import com.tryfinch.api.client.okhttp.FinchOkHttpClient -import com.tryfinch.api.models.* +import com.tryfinch.api.models.Location +import com.tryfinch.api.models.SandboxCompanyUpdateParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/ConnectionServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/ConnectionServiceTest.kt index 59da45e0..b8834168 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/ConnectionServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/ConnectionServiceTest.kt @@ -4,7 +4,7 @@ package com.tryfinch.api.services.blocking.sandbox import com.tryfinch.api.TestServerExtension import com.tryfinch.api.client.okhttp.FinchOkHttpClient -import com.tryfinch.api.models.* +import com.tryfinch.api.models.SandboxConnectionCreateParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryServiceTest.kt index 41647c29..dad8dab1 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryServiceTest.kt @@ -5,7 +5,9 @@ package com.tryfinch.api.services.blocking.sandbox import com.tryfinch.api.TestServerExtension import com.tryfinch.api.client.okhttp.FinchOkHttpClient import com.tryfinch.api.core.JsonValue -import com.tryfinch.api.models.* +import com.tryfinch.api.models.Income +import com.tryfinch.api.models.Location +import com.tryfinch.api.models.SandboxDirectoryCreateParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/EmploymentServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/EmploymentServiceTest.kt index e33f1cf3..8ca64f50 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/EmploymentServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/EmploymentServiceTest.kt @@ -5,7 +5,9 @@ package com.tryfinch.api.services.blocking.sandbox import com.tryfinch.api.TestServerExtension import com.tryfinch.api.client.okhttp.FinchOkHttpClient import com.tryfinch.api.core.JsonValue -import com.tryfinch.api.models.* +import com.tryfinch.api.models.Income +import com.tryfinch.api.models.Location +import com.tryfinch.api.models.SandboxEmploymentUpdateParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/IndividualServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/IndividualServiceTest.kt index 5bfe218b..d0cc4b09 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/IndividualServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/IndividualServiceTest.kt @@ -4,7 +4,8 @@ package com.tryfinch.api.services.blocking.sandbox import com.tryfinch.api.TestServerExtension import com.tryfinch.api.client.okhttp.FinchOkHttpClient -import com.tryfinch.api.models.* +import com.tryfinch.api.models.Location +import com.tryfinch.api.models.SandboxIndividualUpdateParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/JobServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/JobServiceTest.kt index a7d5aaf5..c462ab1e 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/JobServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/JobServiceTest.kt @@ -4,7 +4,7 @@ package com.tryfinch.api.services.blocking.sandbox import com.tryfinch.api.TestServerExtension import com.tryfinch.api.client.okhttp.FinchOkHttpClient -import com.tryfinch.api.models.* +import com.tryfinch.api.models.SandboxJobCreateParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/PaymentServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/PaymentServiceTest.kt index 891c0f1d..58515591 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/PaymentServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/PaymentServiceTest.kt @@ -4,7 +4,8 @@ package com.tryfinch.api.services.blocking.sandbox import com.tryfinch.api.TestServerExtension import com.tryfinch.api.client.okhttp.FinchOkHttpClient -import com.tryfinch.api.models.* +import com.tryfinch.api.models.BenefitType +import com.tryfinch.api.models.SandboxPaymentCreateParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/connections/AccountServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/connections/AccountServiceTest.kt index 3537f190..ba50d5ed 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/connections/AccountServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/connections/AccountServiceTest.kt @@ -4,7 +4,9 @@ package com.tryfinch.api.services.blocking.sandbox.connections import com.tryfinch.api.TestServerExtension import com.tryfinch.api.client.okhttp.FinchOkHttpClient -import com.tryfinch.api.models.* +import com.tryfinch.api.models.ConnectionStatusType +import com.tryfinch.api.models.SandboxConnectionAccountCreateParams +import com.tryfinch.api.models.SandboxConnectionAccountUpdateParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/jobs/ConfigurationServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/jobs/ConfigurationServiceTest.kt index ceccf5a6..75f0e90c 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/jobs/ConfigurationServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/jobs/ConfigurationServiceTest.kt @@ -4,7 +4,9 @@ package com.tryfinch.api.services.blocking.sandbox.jobs import com.tryfinch.api.TestServerExtension import com.tryfinch.api.client.okhttp.FinchOkHttpClient -import com.tryfinch.api.models.* +import com.tryfinch.api.models.SandboxJobConfiguration +import com.tryfinch.api.models.SandboxJobConfigurationRetrieveParams +import com.tryfinch.api.models.SandboxJobConfigurationUpdateParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith From 3c80b52b83abfcce2f99cb3203b0008c02a35d0f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 13 Dec 2024 17:00:57 +0000 Subject: [PATCH 16/23] chore(internal): remove unused and expand used wildcard imports (#361) --- .../com/tryfinch/api/client/FinchClient.kt | 11 +++++++++- .../tryfinch/api/client/FinchClientAsync.kt | 11 +++++++++- .../api/client/FinchClientAsyncImpl.kt | 21 ++++++++++++++++++- .../tryfinch/api/client/FinchClientImpl.kt | 21 ++++++++++++++++++- 4 files changed, 60 insertions(+), 4 deletions(-) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClient.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClient.kt index 0832f242..a1518f6a 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClient.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClient.kt @@ -3,7 +3,16 @@ package com.tryfinch.api.client import com.fasterxml.jackson.annotation.JsonProperty -import com.tryfinch.api.services.blocking.* +import com.tryfinch.api.services.blocking.AccessTokenService +import com.tryfinch.api.services.blocking.AccountService +import com.tryfinch.api.services.blocking.ConnectService +import com.tryfinch.api.services.blocking.HrisService +import com.tryfinch.api.services.blocking.JobService +import com.tryfinch.api.services.blocking.PayrollService +import com.tryfinch.api.services.blocking.ProviderService +import com.tryfinch.api.services.blocking.RequestForwardingService +import com.tryfinch.api.services.blocking.SandboxService +import com.tryfinch.api.services.blocking.WebhookService interface FinchClient { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClientAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClientAsync.kt index d9479935..6f57c432 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClientAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClientAsync.kt @@ -3,7 +3,16 @@ package com.tryfinch.api.client import com.fasterxml.jackson.annotation.JsonProperty -import com.tryfinch.api.services.async.* +import com.tryfinch.api.services.async.AccessTokenServiceAsync +import com.tryfinch.api.services.async.AccountServiceAsync +import com.tryfinch.api.services.async.ConnectServiceAsync +import com.tryfinch.api.services.async.HrisServiceAsync +import com.tryfinch.api.services.async.JobServiceAsync +import com.tryfinch.api.services.async.PayrollServiceAsync +import com.tryfinch.api.services.async.ProviderServiceAsync +import com.tryfinch.api.services.async.RequestForwardingServiceAsync +import com.tryfinch.api.services.async.SandboxServiceAsync +import com.tryfinch.api.services.async.WebhookServiceAsync import java.util.concurrent.CompletableFuture interface FinchClientAsync { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClientAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClientAsyncImpl.kt index a7a6672a..ecf0193b 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClientAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClientAsyncImpl.kt @@ -15,7 +15,26 @@ import com.tryfinch.api.core.json import com.tryfinch.api.errors.FinchError import com.tryfinch.api.errors.FinchException import com.tryfinch.api.models.* -import com.tryfinch.api.services.async.* +import com.tryfinch.api.services.async.AccessTokenServiceAsync +import com.tryfinch.api.services.async.AccessTokenServiceAsyncImpl +import com.tryfinch.api.services.async.AccountServiceAsync +import com.tryfinch.api.services.async.AccountServiceAsyncImpl +import com.tryfinch.api.services.async.ConnectServiceAsync +import com.tryfinch.api.services.async.ConnectServiceAsyncImpl +import com.tryfinch.api.services.async.HrisServiceAsync +import com.tryfinch.api.services.async.HrisServiceAsyncImpl +import com.tryfinch.api.services.async.JobServiceAsync +import com.tryfinch.api.services.async.JobServiceAsyncImpl +import com.tryfinch.api.services.async.PayrollServiceAsync +import com.tryfinch.api.services.async.PayrollServiceAsyncImpl +import com.tryfinch.api.services.async.ProviderServiceAsync +import com.tryfinch.api.services.async.ProviderServiceAsyncImpl +import com.tryfinch.api.services.async.RequestForwardingServiceAsync +import com.tryfinch.api.services.async.RequestForwardingServiceAsyncImpl +import com.tryfinch.api.services.async.SandboxServiceAsync +import com.tryfinch.api.services.async.SandboxServiceAsyncImpl +import com.tryfinch.api.services.async.WebhookServiceAsync +import com.tryfinch.api.services.async.WebhookServiceAsyncImpl import java.net.URLEncoder import java.util.concurrent.CompletableFuture diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClientImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClientImpl.kt index 117694a7..bb24b79b 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClientImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClientImpl.kt @@ -15,7 +15,26 @@ import com.tryfinch.api.core.json import com.tryfinch.api.errors.FinchError import com.tryfinch.api.errors.FinchException import com.tryfinch.api.models.* -import com.tryfinch.api.services.blocking.* +import com.tryfinch.api.services.blocking.AccessTokenService +import com.tryfinch.api.services.blocking.AccessTokenServiceImpl +import com.tryfinch.api.services.blocking.AccountService +import com.tryfinch.api.services.blocking.AccountServiceImpl +import com.tryfinch.api.services.blocking.ConnectService +import com.tryfinch.api.services.blocking.ConnectServiceImpl +import com.tryfinch.api.services.blocking.HrisService +import com.tryfinch.api.services.blocking.HrisServiceImpl +import com.tryfinch.api.services.blocking.JobService +import com.tryfinch.api.services.blocking.JobServiceImpl +import com.tryfinch.api.services.blocking.PayrollService +import com.tryfinch.api.services.blocking.PayrollServiceImpl +import com.tryfinch.api.services.blocking.ProviderService +import com.tryfinch.api.services.blocking.ProviderServiceImpl +import com.tryfinch.api.services.blocking.RequestForwardingService +import com.tryfinch.api.services.blocking.RequestForwardingServiceImpl +import com.tryfinch.api.services.blocking.SandboxService +import com.tryfinch.api.services.blocking.SandboxServiceImpl +import com.tryfinch.api.services.blocking.WebhookService +import com.tryfinch.api.services.blocking.WebhookServiceImpl import java.net.URLEncoder class FinchClientImpl From 1f2e37bd6728a70c0c3a5eb5ddf4485183ea30b7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 13 Dec 2024 05:56:16 +0000 Subject: [PATCH 17/23] feat(api): api update (#363) --- .stats.yml | 2 +- .../com/tryfinch/api/models/PayStatement.kt | 32 +++++++------------ .../api/models/SandboxPaymentCreateParams.kt | 20 +++++------- .../models/PayStatementResponseBodyTest.kt | 8 ++--- .../api/models/PayStatementResponseTest.kt | 10 +++--- .../tryfinch/api/models/PayStatementTest.kt | 10 +++--- .../models/SandboxPaymentCreateParamsTest.kt | 12 +++---- .../blocking/sandbox/PaymentServiceTest.kt | 5 +-- 8 files changed, 46 insertions(+), 53 deletions(-) diff --git a/.stats.yml b/.stats.yml index 92b10d80..addc01fa 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 38 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-86c1f66eea438d53292663f221e778d0864d63a7e635e8714b2b31800a7344ac.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-8782658ecd57622a964238df7b5dd997ac63789f8220852660ecf32fa115296b.yml diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatement.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatement.kt index cc71562a..38a7fe1a 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatement.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatement.kt @@ -26,8 +26,8 @@ private constructor( private val type: JsonField, private val paymentMethod: JsonField, private val totalHours: JsonField, - private val grossPay: JsonField, - private val netPay: JsonField, + private val grossPay: JsonField, + private val netPay: JsonField, private val earnings: JsonField>, private val taxes: JsonField>, private val employeeDeductions: JsonField>, @@ -51,11 +51,9 @@ private constructor( /** The number of hours worked for this pay period */ fun totalHours(): Optional = Optional.ofNullable(totalHours.getNullable("total_hours")) - /** The gross pay for the pay period */ - fun grossPay(): Optional = Optional.ofNullable(grossPay.getNullable("gross_pay")) + fun grossPay(): Optional = Optional.ofNullable(grossPay.getNullable("gross_pay")) - /** The net pay for the pay period */ - fun netPay(): Optional = Optional.ofNullable(netPay.getNullable("net_pay")) + fun netPay(): Optional = Optional.ofNullable(netPay.getNullable("net_pay")) /** The array of earnings objects associated with this pay statement */ fun earnings(): Optional> = Optional.ofNullable(earnings.getNullable("earnings")) @@ -82,10 +80,8 @@ private constructor( /** The number of hours worked for this pay period */ @JsonProperty("total_hours") @ExcludeMissing fun _totalHours() = totalHours - /** The gross pay for the pay period */ @JsonProperty("gross_pay") @ExcludeMissing fun _grossPay() = grossPay - /** The net pay for the pay period */ @JsonProperty("net_pay") @ExcludeMissing fun _netPay() = netPay /** The array of earnings objects associated with this pay statement */ @@ -113,8 +109,8 @@ private constructor( type() paymentMethod() totalHours() - grossPay() - netPay() + grossPay().map { it.validate() } + netPay().map { it.validate() } earnings().map { it.forEach { it?.validate() } } taxes().map { it.forEach { it?.validate() } } employeeDeductions().map { it.forEach { it?.validate() } } @@ -136,8 +132,8 @@ private constructor( private var type: JsonField = JsonMissing.of() private var paymentMethod: JsonField = JsonMissing.of() private var totalHours: JsonField = JsonMissing.of() - private var grossPay: JsonField = JsonMissing.of() - private var netPay: JsonField = JsonMissing.of() + private var grossPay: JsonField = JsonMissing.of() + private var netPay: JsonField = JsonMissing.of() private var earnings: JsonField> = JsonMissing.of() private var taxes: JsonField> = JsonMissing.of() private var employeeDeductions: JsonField> = JsonMissing.of() @@ -195,21 +191,17 @@ private constructor( @ExcludeMissing fun totalHours(totalHours: JsonField) = apply { this.totalHours = totalHours } - /** The gross pay for the pay period */ - fun grossPay(grossPay: Double) = grossPay(JsonField.of(grossPay)) + fun grossPay(grossPay: Money) = grossPay(JsonField.of(grossPay)) - /** The gross pay for the pay period */ @JsonProperty("gross_pay") @ExcludeMissing - fun grossPay(grossPay: JsonField) = apply { this.grossPay = grossPay } + fun grossPay(grossPay: JsonField) = apply { this.grossPay = grossPay } - /** The net pay for the pay period */ - fun netPay(netPay: Double) = netPay(JsonField.of(netPay)) + fun netPay(netPay: Money) = netPay(JsonField.of(netPay)) - /** The net pay for the pay period */ @JsonProperty("net_pay") @ExcludeMissing - fun netPay(netPay: JsonField) = apply { this.netPay = netPay } + fun netPay(netPay: JsonField) = apply { this.netPay = netPay } /** The array of earnings objects associated with this pay statement */ fun earnings(earnings: List) = earnings(JsonField.of(earnings)) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParams.kt index 00d68462..fedfbba1 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParams.kt @@ -334,8 +334,8 @@ constructor( private val type: Type?, private val paymentMethod: PaymentMethod?, private val totalHours: Double?, - private val grossPay: Double?, - private val netPay: Double?, + private val grossPay: Money?, + private val netPay: Money?, private val earnings: List?, private val taxes: List?, private val employeeDeductions: List?, @@ -355,11 +355,9 @@ constructor( /** The number of hours worked for this pay period */ @JsonProperty("total_hours") fun totalHours(): Double? = totalHours - /** The gross pay for the pay period */ - @JsonProperty("gross_pay") fun grossPay(): Double? = grossPay + @JsonProperty("gross_pay") fun grossPay(): Money? = grossPay - /** The net pay for the pay period */ - @JsonProperty("net_pay") fun netPay(): Double? = netPay + @JsonProperty("net_pay") fun netPay(): Money? = netPay /** The array of earnings objects associated with this pay statement */ @JsonProperty("earnings") fun earnings(): List? = earnings @@ -391,8 +389,8 @@ constructor( private var type: Type? = null private var paymentMethod: PaymentMethod? = null private var totalHours: Double? = null - private var grossPay: Double? = null - private var netPay: Double? = null + private var grossPay: Money? = null + private var netPay: Money? = null private var earnings: List? = null private var taxes: List? = null private var employeeDeductions: List? = null @@ -431,12 +429,10 @@ constructor( @JsonProperty("total_hours") fun totalHours(totalHours: Double) = apply { this.totalHours = totalHours } - /** The gross pay for the pay period */ @JsonProperty("gross_pay") - fun grossPay(grossPay: Double) = apply { this.grossPay = grossPay } + fun grossPay(grossPay: Money) = apply { this.grossPay = grossPay } - /** The net pay for the pay period */ - @JsonProperty("net_pay") fun netPay(netPay: Double) = apply { this.netPay = netPay } + @JsonProperty("net_pay") fun netPay(netPay: Money) = apply { this.netPay = netPay } /** The array of earnings objects associated with this pay statement */ @JsonProperty("earnings") diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/PayStatementResponseBodyTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/PayStatementResponseBodyTest.kt index 43095cf4..e4f2f3f5 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/PayStatementResponseBodyTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/PayStatementResponseBodyTest.kt @@ -47,9 +47,9 @@ class PayStatementResponseBodyTest { .build() ) ) - .grossPay(0.0) + .grossPay(Money.builder().amount(0L).currency("currency").build()) .individualId("individual_id") - .netPay(0.0) + .netPay(Money.builder().amount(0L).currency("currency").build()) .paymentMethod(PayStatement.PaymentMethod.CHECK) .taxes( listOf( @@ -106,9 +106,9 @@ class PayStatementResponseBodyTest { .build() ) ) - .grossPay(0.0) + .grossPay(Money.builder().amount(0L).currency("currency").build()) .individualId("individual_id") - .netPay(0.0) + .netPay(Money.builder().amount(0L).currency("currency").build()) .paymentMethod(PayStatement.PaymentMethod.CHECK) .taxes( listOf( diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/PayStatementResponseTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/PayStatementResponseTest.kt index 7744cfe3..d86ad139 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/PayStatementResponseTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/PayStatementResponseTest.kt @@ -49,9 +49,11 @@ class PayStatementResponseTest { .build() ) ) - .grossPay(0.0) + .grossPay( + Money.builder().amount(0L).currency("currency").build() + ) .individualId("individual_id") - .netPay(0.0) + .netPay(Money.builder().amount(0L).currency("currency").build()) .paymentMethod(PayStatement.PaymentMethod.CHECK) .taxes( listOf( @@ -114,9 +116,9 @@ class PayStatementResponseTest { .build() ) ) - .grossPay(0.0) + .grossPay(Money.builder().amount(0L).currency("currency").build()) .individualId("individual_id") - .netPay(0.0) + .netPay(Money.builder().amount(0L).currency("currency").build()) .paymentMethod(PayStatement.PaymentMethod.CHECK) .taxes( listOf( diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/PayStatementTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/PayStatementTest.kt index 17257561..3432b7c7 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/PayStatementTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/PayStatementTest.kt @@ -43,9 +43,9 @@ class PayStatementTest { .build() ) ) - .grossPay(0.0) + .grossPay(Money.builder().amount(0L).currency("currency").build()) .individualId("individual_id") - .netPay(0.0) + .netPay(Money.builder().amount(0L).currency("currency").build()) .paymentMethod(PayStatement.PaymentMethod.CHECK) .taxes( listOf( @@ -91,9 +91,11 @@ class PayStatementTest { .type(BenefitType._401K) .build() ) - assertThat(payStatement.grossPay()).contains(0.0) + assertThat(payStatement.grossPay()) + .contains(Money.builder().amount(0L).currency("currency").build()) assertThat(payStatement.individualId()).contains("individual_id") - assertThat(payStatement.netPay()).contains(0.0) + assertThat(payStatement.netPay()) + .contains(Money.builder().amount(0L).currency("currency").build()) assertThat(payStatement.paymentMethod()).contains(PayStatement.PaymentMethod.CHECK) assertThat(payStatement.taxes().get()) .containsExactly( diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParamsTest.kt index dd775a1e..800edef8 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParamsTest.kt @@ -49,9 +49,9 @@ class SandboxPaymentCreateParamsTest { .build() ) ) - .grossPay(0.0) + .grossPay(Money.builder().amount(0L).currency("currency").build()) .individualId("individual_id") - .netPay(0.0) + .netPay(Money.builder().amount(0L).currency("currency").build()) .paymentMethod(SandboxPaymentCreateParams.PayStatement.PaymentMethod.CHECK) .taxes( listOf( @@ -118,9 +118,9 @@ class SandboxPaymentCreateParamsTest { .build() ) ) - .grossPay(0.0) + .grossPay(Money.builder().amount(0L).currency("currency").build()) .individualId("individual_id") - .netPay(0.0) + .netPay(Money.builder().amount(0L).currency("currency").build()) .paymentMethod( SandboxPaymentCreateParams.PayStatement.PaymentMethod.CHECK ) @@ -186,9 +186,9 @@ class SandboxPaymentCreateParamsTest { .build() ) ) - .grossPay(0.0) + .grossPay(Money.builder().amount(0L).currency("currency").build()) .individualId("individual_id") - .netPay(0.0) + .netPay(Money.builder().amount(0L).currency("currency").build()) .paymentMethod(SandboxPaymentCreateParams.PayStatement.PaymentMethod.CHECK) .taxes( listOf( diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/PaymentServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/PaymentServiceTest.kt index 58515591..3d029864 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/PaymentServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/PaymentServiceTest.kt @@ -5,6 +5,7 @@ package com.tryfinch.api.services.blocking.sandbox import com.tryfinch.api.TestServerExtension import com.tryfinch.api.client.okhttp.FinchOkHttpClient import com.tryfinch.api.models.BenefitType +import com.tryfinch.api.models.Money import com.tryfinch.api.models.SandboxPaymentCreateParams import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith @@ -64,9 +65,9 @@ class PaymentServiceTest { .build() ) ) - .grossPay(0.0) + .grossPay(Money.builder().amount(0L).currency("currency").build()) .individualId("individual_id") - .netPay(0.0) + .netPay(Money.builder().amount(0L).currency("currency").build()) .paymentMethod( SandboxPaymentCreateParams.PayStatement.PaymentMethod.CHECK ) From c7a036a476587da659dd3197109680aa6d224dea Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 16 Dec 2024 16:58:50 +0000 Subject: [PATCH 18/23] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index addc01fa..05eb3d27 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 38 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-8782658ecd57622a964238df7b5dd997ac63789f8220852660ecf32fa115296b.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-cf610d4dbb7e3d84161b5783a0861b2e551422eb5cf727dde86a839325d7ef76.yml From 5fb0cac8da7fd4957fbaaacdbc8b46255740b6ce Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 19 Dec 2024 02:20:52 +0000 Subject: [PATCH 19/23] chore: update parameter examples in tests and docs (#364) --- README.md | 18 ++++++++++ .../HrisPayStatementRetrieveManyParamsTest.kt | 12 +++---- .../RequestForwardingForwardParamsTest.kt | 35 +++++++++---------- .../SandboxEmploymentUpdateParamsTest.kt | 6 ++-- .../SandboxIndividualUpdateParamsTest.kt | 6 ++-- .../models/SandboxPaymentCreateParamsTest.kt | 24 ++++++------- .../blocking/RequestForwardingServiceTest.kt | 9 +++-- .../blocking/hris/PayStatementServiceTest.kt | 2 +- .../blocking/sandbox/EmploymentServiceTest.kt | 2 +- .../blocking/sandbox/IndividualServiceTest.kt | 2 +- .../blocking/sandbox/PaymentServiceTest.kt | 8 ++--- 11 files changed, 69 insertions(+), 55 deletions(-) diff --git a/README.md b/README.md index fb49b052..07d8bac8 100644 --- a/README.md +++ b/README.md @@ -99,6 +99,24 @@ for (IndividualInDirectory directory : page.individuals()) { } ``` +Use the `HrisDirectoryListParams` builder to set parameters: + +```java +HrisDirectoryListParams params = HrisDirectoryListParams.builder() + .limit(0L) + .offset(0L) + .build(); +HrisDirectoryListPage page1 = client.hris().directory().list(params); + +// Using the `from` method of the builder you can reuse previous params values: +HrisDirectoryListPage page2 = client.hris().directory().list(HrisDirectoryListParams.builder() + .from(params) + .build()); + +// Or easily get params for the next page by using the helper `getNextPageParams`: +HrisDirectoryListPage page3 = client.hris().directory().list(params.getNextPageParams(page2)); +``` + See [Pagination](#pagination) below for more information on transparently working with lists of objects without worrying about fetching each page. --- diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementRetrieveManyParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementRetrieveManyParamsTest.kt index fe421282..178ecd14 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementRetrieveManyParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementRetrieveManyParamsTest.kt @@ -13,7 +13,7 @@ class HrisPayStatementRetrieveManyParamsTest { .requests( listOf( HrisPayStatementRetrieveManyParams.Request.builder() - .paymentId("payment_id") + .paymentId("string") .limit(0L) .offset(0L) .build() @@ -29,7 +29,7 @@ class HrisPayStatementRetrieveManyParamsTest { .requests( listOf( HrisPayStatementRetrieveManyParams.Request.builder() - .paymentId("payment_id") + .paymentId("string") .limit(0L) .offset(0L) .build() @@ -42,7 +42,7 @@ class HrisPayStatementRetrieveManyParamsTest { .isEqualTo( listOf( HrisPayStatementRetrieveManyParams.Request.builder() - .paymentId("payment_id") + .paymentId("string") .limit(0L) .offset(0L) .build() @@ -57,7 +57,7 @@ class HrisPayStatementRetrieveManyParamsTest { .requests( listOf( HrisPayStatementRetrieveManyParams.Request.builder() - .paymentId("payment_id") + .paymentId("string") .build() ) ) @@ -67,9 +67,7 @@ class HrisPayStatementRetrieveManyParamsTest { assertThat(body.requests()) .isEqualTo( listOf( - HrisPayStatementRetrieveManyParams.Request.builder() - .paymentId("payment_id") - .build() + HrisPayStatementRetrieveManyParams.Request.builder().paymentId("string").build() ) ) } diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/RequestForwardingForwardParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/RequestForwardingForwardParamsTest.kt index 26bd5e36..ca20418f 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/RequestForwardingForwardParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/RequestForwardingForwardParamsTest.kt @@ -11,11 +11,10 @@ class RequestForwardingForwardParamsTest { @Test fun createRequestForwardingForwardParams() { RequestForwardingForwardParams.builder() - .method("method") - .route("route") - .data("data") - .headers(JsonValue.from(mapOf())) - .params(JsonValue.from(mapOf())) + .method("POST") + .route("/people/search") + .headers(JsonValue.from(mapOf("content-type" to "application/json"))) + .params(JsonValue.from(mapOf("showInactive" to true, "humanReadable" to true))) .build() } @@ -23,28 +22,28 @@ class RequestForwardingForwardParamsTest { fun getBody() { val params = RequestForwardingForwardParams.builder() - .method("method") - .route("route") - .data("data") - .headers(JsonValue.from(mapOf())) - .params(JsonValue.from(mapOf())) + .method("POST") + .route("/people/search") + .headers(JsonValue.from(mapOf("content-type" to "application/json"))) + .params(JsonValue.from(mapOf("showInactive" to true, "humanReadable" to true))) .build() val body = params.getBody() assertThat(body).isNotNull - assertThat(body.method()).isEqualTo("method") - assertThat(body.route()).isEqualTo("route") - assertThat(body.data()).isEqualTo("data") - assertThat(body.headers()).isEqualTo(JsonValue.from(mapOf())) - assertThat(body.params()).isEqualTo(JsonValue.from(mapOf())) + assertThat(body.method()).isEqualTo("POST") + assertThat(body.route()).isEqualTo("/people/search") + assertThat(body.headers()) + .isEqualTo(JsonValue.from(mapOf("content-type" to "application/json"))) + assertThat(body.params()) + .isEqualTo(JsonValue.from(mapOf("showInactive" to true, "humanReadable" to true))) } @Test fun getBodyWithoutOptionalFields() { val params = - RequestForwardingForwardParams.builder().method("method").route("route").build() + RequestForwardingForwardParams.builder().method("POST").route("/people/search").build() val body = params.getBody() assertThat(body).isNotNull - assertThat(body.method()).isEqualTo("method") - assertThat(body.route()).isEqualTo("route") + assertThat(body.method()).isEqualTo("POST") + assertThat(body.route()).isEqualTo("/people/search") } } diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxEmploymentUpdateParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxEmploymentUpdateParamsTest.kt index a08783dc..ba6698c7 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxEmploymentUpdateParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxEmploymentUpdateParamsTest.kt @@ -67,7 +67,7 @@ class SandboxEmploymentUpdateParamsTest { .manager(SandboxEmploymentUpdateParams.Manager.builder().id("id").build()) .middleName("middle_name") .sourceId("source_id") - .startDate("start_date") + .startDate("3/4/2020") .title("title") .build() } @@ -132,7 +132,7 @@ class SandboxEmploymentUpdateParamsTest { .manager(SandboxEmploymentUpdateParams.Manager.builder().id("id").build()) .middleName("middle_name") .sourceId("source_id") - .startDate("start_date") + .startDate("3/4/2020") .title("title") .build() val body = params.getBody() @@ -200,7 +200,7 @@ class SandboxEmploymentUpdateParamsTest { .isEqualTo(SandboxEmploymentUpdateParams.Manager.builder().id("id").build()) assertThat(body.middleName()).isEqualTo("middle_name") assertThat(body.sourceId()).isEqualTo("source_id") - assertThat(body.startDate()).isEqualTo("start_date") + assertThat(body.startDate()).isEqualTo("3/4/2020") assertThat(body.title()).isEqualTo("title") } diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxIndividualUpdateParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxIndividualUpdateParamsTest.kt index 13feefba..35fa8848 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxIndividualUpdateParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxIndividualUpdateParamsTest.kt @@ -11,7 +11,7 @@ class SandboxIndividualUpdateParamsTest { fun createSandboxIndividualUpdateParams() { SandboxIndividualUpdateParams.builder() .individualId("individual_id") - .dob("dob") + .dob("12/20/1989") .emails( listOf( SandboxIndividualUpdateParams.Email.builder() @@ -56,7 +56,7 @@ class SandboxIndividualUpdateParamsTest { val params = SandboxIndividualUpdateParams.builder() .individualId("individual_id") - .dob("dob") + .dob("12/20/1989") .emails( listOf( SandboxIndividualUpdateParams.Email.builder() @@ -96,7 +96,7 @@ class SandboxIndividualUpdateParamsTest { .build() val body = params.getBody() assertThat(body).isNotNull - assertThat(body.dob()).isEqualTo("dob") + assertThat(body.dob()).isEqualTo("12/20/1989") assertThat(body.emails()) .isEqualTo( listOf( diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParamsTest.kt index 800edef8..c5af6b03 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParamsTest.kt @@ -30,9 +30,9 @@ class SandboxPaymentCreateParamsTest { .employeeDeductions( listOf( SandboxPaymentCreateParams.PayStatement.EmployeeDeduction.builder() - .amount(0L) - .currency("currency") - .name("name") + .amount(2000L) + .currency("usd") + .name("401k test") .preTax(true) .type(BenefitType._401K) .build() @@ -50,7 +50,7 @@ class SandboxPaymentCreateParamsTest { ) ) .grossPay(Money.builder().amount(0L).currency("currency").build()) - .individualId("individual_id") + .individualId("b2338cfb-472f-4f72-9faa-e028c083144a") .netPay(Money.builder().amount(0L).currency("currency").build()) .paymentMethod(SandboxPaymentCreateParams.PayStatement.PaymentMethod.CHECK) .taxes( @@ -99,9 +99,9 @@ class SandboxPaymentCreateParamsTest { listOf( SandboxPaymentCreateParams.PayStatement.EmployeeDeduction .builder() - .amount(0L) - .currency("currency") - .name("name") + .amount(2000L) + .currency("usd") + .name("401k test") .preTax(true) .type(BenefitType._401K) .build() @@ -119,7 +119,7 @@ class SandboxPaymentCreateParamsTest { ) ) .grossPay(Money.builder().amount(0L).currency("currency").build()) - .individualId("individual_id") + .individualId("b2338cfb-472f-4f72-9faa-e028c083144a") .netPay(Money.builder().amount(0L).currency("currency").build()) .paymentMethod( SandboxPaymentCreateParams.PayStatement.PaymentMethod.CHECK @@ -167,9 +167,9 @@ class SandboxPaymentCreateParamsTest { .employeeDeductions( listOf( SandboxPaymentCreateParams.PayStatement.EmployeeDeduction.builder() - .amount(0L) - .currency("currency") - .name("name") + .amount(2000L) + .currency("usd") + .name("401k test") .preTax(true) .type(BenefitType._401K) .build() @@ -187,7 +187,7 @@ class SandboxPaymentCreateParamsTest { ) ) .grossPay(Money.builder().amount(0L).currency("currency").build()) - .individualId("individual_id") + .individualId("b2338cfb-472f-4f72-9faa-e028c083144a") .netPay(Money.builder().amount(0L).currency("currency").build()) .paymentMethod(SandboxPaymentCreateParams.PayStatement.PaymentMethod.CHECK) .taxes( diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/RequestForwardingServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/RequestForwardingServiceTest.kt index 2a16cb42..2e70f732 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/RequestForwardingServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/RequestForwardingServiceTest.kt @@ -23,11 +23,10 @@ class RequestForwardingServiceTest { val requestForwardingForwardResponse = requestForwardingService.forward( RequestForwardingForwardParams.builder() - .method("method") - .route("route") - .data("data") - .headers(JsonValue.from(mapOf())) - .params(JsonValue.from(mapOf())) + .method("POST") + .route("/people/search") + .headers(JsonValue.from(mapOf("content-type" to "application/json"))) + .params(JsonValue.from(mapOf("showInactive" to true, "humanReadable" to true))) .build() ) println(requestForwardingForwardResponse) diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/PayStatementServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/PayStatementServiceTest.kt index 3bdda20d..b46fe04e 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/PayStatementServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/PayStatementServiceTest.kt @@ -25,7 +25,7 @@ class PayStatementServiceTest { .requests( listOf( HrisPayStatementRetrieveManyParams.Request.builder() - .paymentId("payment_id") + .paymentId("string") .build() ) ) diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/EmploymentServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/EmploymentServiceTest.kt index 8ca64f50..c6842b48 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/EmploymentServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/EmploymentServiceTest.kt @@ -83,7 +83,7 @@ class EmploymentServiceTest { .manager(SandboxEmploymentUpdateParams.Manager.builder().id("id").build()) .middleName("middle_name") .sourceId("source_id") - .startDate("start_date") + .startDate("3/4/2020") .title("title") .build() ) diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/IndividualServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/IndividualServiceTest.kt index d0cc4b09..46747df2 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/IndividualServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/IndividualServiceTest.kt @@ -24,7 +24,7 @@ class IndividualServiceTest { individualService.update( SandboxIndividualUpdateParams.builder() .individualId("individual_id") - .dob("dob") + .dob("12/20/1989") .emails( listOf( SandboxIndividualUpdateParams.Email.builder() diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/PaymentServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/PaymentServiceTest.kt index 3d029864..45615a60 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/PaymentServiceTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/PaymentServiceTest.kt @@ -46,9 +46,9 @@ class PaymentServiceTest { listOf( SandboxPaymentCreateParams.PayStatement.EmployeeDeduction .builder() - .amount(0L) - .currency("currency") - .name("name") + .amount(2000L) + .currency("usd") + .name("401k test") .preTax(true) .type(BenefitType._401K) .build() @@ -66,7 +66,7 @@ class PaymentServiceTest { ) ) .grossPay(Money.builder().amount(0L).currency("currency").build()) - .individualId("individual_id") + .individualId("b2338cfb-472f-4f72-9faa-e028c083144a") .netPay(Money.builder().amount(0L).currency("currency").build()) .paymentMethod( SandboxPaymentCreateParams.PayStatement.PaymentMethod.CHECK From fc4a2aceea8968037cc11a2300bdb2f3296d93d4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 19 Dec 2024 17:35:28 +0000 Subject: [PATCH 20/23] chore(docs): update readme (#365) --- README.md | 119 +++++++++++++++++++++++++++++++++++------------------- 1 file changed, 78 insertions(+), 41 deletions(-) diff --git a/README.md b/README.md index 07d8bac8..df09c61b 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,9 @@ Use `FinchOkHttpClient.builder()` to configure the client. Alternately, set the environment with `FINCH_CLIENT_ID`, `FINCH_CLIENT_SECRET` or `FINCH_WEBHOOK_SECRET`, and use `FinchOkHttpClient.fromEnv()` to read from the environment. ```java +import com.tryfinch.api.client.FinchClient; +import com.tryfinch.api.client.okhttp.FinchOkHttpClient; + FinchClient client = FinchOkHttpClient.fromEnv(); // Note: you can also call fromEnv() from the client builder, for example if you need to set additional properties @@ -70,13 +73,11 @@ Read the documentation for more configuration options. ### Example: creating a resource -To create a new hris directory, first use the `HrisDirectoryListParams` builder to specify attributes, -then pass that to the `list` method of the `directory` service. +To create a new hris directory, first use the `HrisDirectoryListParams` builder to specify attributes, then pass that to the `list` method of the `directory` service. ```java import com.tryfinch.api.models.HrisDirectoryListPage; import com.tryfinch.api.models.HrisDirectoryListParams; -import com.tryfinch.api.models.Page; HrisDirectoryListParams params = HrisDirectoryListParams.builder() .candidateId("") @@ -86,12 +87,11 @@ HrisDirectoryListPage page = client.hris().directory().list(params); ### Example: listing resources -The Finch API provides a `list` method to get a paginated list of directory. -You can retrieve the first page by: +The Finch API provides a `list` method to get a paginated list of directory. You can retrieve the first page by: ```java +import com.tryfinch.api.models.HrisDirectoryListPage; import com.tryfinch.api.models.IndividualInDirectory; -import com.tryfinch.api.models.Page; HrisDirectoryListPage page = client.hris().directory().list(); for (IndividualInDirectory directory : page.individuals()) { @@ -102,6 +102,9 @@ for (IndividualInDirectory directory : page.individuals()) { Use the `HrisDirectoryListParams` builder to set parameters: ```java +import com.tryfinch.api.models.HrisDirectoryListPage; +import com.tryfinch.api.models.HrisDirectoryListParams; + HrisDirectoryListParams params = HrisDirectoryListParams.builder() .limit(0L) .offset(0L) @@ -127,14 +130,14 @@ See [Pagination](#pagination) below for more information on transparently workin To make a request to the Finch API, you generally build an instance of the appropriate `Params` class. -In [Example: creating a resource](#example-creating-a-resource) above, we used the `HrisDirectoryListParams.builder()` to pass to -the `list` method of the `directory` service. +In [Example: creating a resource](#example-creating-a-resource) above, we used the `HrisDirectoryListParams.builder()` to pass to the `list` method of the `directory` service. -Sometimes, the API may support other properties that are not yet supported in the Java SDK types. In that case, -you can attach them using the `putAdditionalProperty` method. +Sometimes, the API may support other properties that are not yet supported in the Java SDK types. In that case, you can attach them using the `putAdditionalProperty` method. ```java -import com.tryfinch.api.models.core.JsonValue; +import com.tryfinch.api.core.JsonValue; +import com.tryfinch.api.models.HrisDirectoryListParams; + HrisDirectoryListParams params = HrisDirectoryListParams.builder() // ... normal properties .putAdditionalProperty("secret_param", JsonValue.from("4242")) @@ -148,15 +151,19 @@ HrisDirectoryListParams params = HrisDirectoryListParams.builder() When receiving a response, the Finch Java SDK will deserialize it into instances of the typed model classes. In rare cases, the API may return a response property that doesn't match the expected Java type. If you directly access the mistaken property, the SDK will throw an unchecked `FinchInvalidDataException` at runtime. If you would prefer to check in advance that that response is completely well-typed, call `.validate()` on the returned model. ```java +import com.tryfinch.api.models.HrisDirectoryListPage; + HrisDirectoryListPage page = client.hris().directory().list().validate(); ``` ### Response properties as JSON -In rare cases, you may want to access the underlying JSON value for a response property rather than using the typed version provided by -this SDK. Each model property has a corresponding JSON version, with an underscore before the method name, which returns a `JsonField` value. +In rare cases, you may want to access the underlying JSON value for a response property rather than using the typed version provided by this SDK. Each model property has a corresponding JSON version, with an underscore before the method name, which returns a `JsonField` value. ```java +import com.tryfinch.api.core.JsonField; +import java.util.Optional; + JsonField field = responseObj._field(); if (field.isMissing()) { @@ -178,6 +185,8 @@ if (field.isMissing()) { Sometimes, the server response may include additional properties that are not yet available in this library's types. You can access them using the model's `_additionalProperties` method: ```java +import com.tryfinch.api.core.JsonValue; + JsonValue secret = operationSupportMatrix._additionalProperties().get("secret_field"); ``` @@ -185,17 +194,18 @@ JsonValue secret = operationSupportMatrix._additionalProperties().get("secret_fi ## Pagination -For methods that return a paginated list of results, this library provides convenient ways access -the results either one page at a time, or item-by-item across all pages. +For methods that return a paginated list of results, this library provides convenient ways access the results either one page at a time, or item-by-item across all pages. ### Auto-pagination -To iterate through all results across all pages, you can use `autoPager`, -which automatically handles fetching more pages for you: +To iterate through all results across all pages, you can use `autoPager`, which automatically handles fetching more pages for you: ### Synchronous ```java +import com.tryfinch.api.models.HrisDirectoryListPage; +import com.tryfinch.api.models.IndividualInDirectory; + // As an Iterable: HrisDirectoryListPage page = client.hris().directory().list(params); for (IndividualInDirectory directory : page.autoPager()) { @@ -218,12 +228,12 @@ asyncClient.hris().directory().list(params).autoPager() ### Manual pagination -If none of the above helpers meet your needs, you can also manually request pages one-by-one. -A page of results has a `data()` method to fetch the list of objects, as well as top-level -`response` and other methods to fetch top-level data about the page. It also has methods -`hasNextPage`, `getNextPage`, and `getNextPageParams` methods to help with pagination. +If none of the above helpers meet your needs, you can also manually request pages one-by-one. A page of results has a `data()` method to fetch the list of objects, as well as top-level `response` and other methods to fetch top-level data about the page. It also has methods `hasNextPage`, `getNextPage`, and `getNextPageParams` methods to help with pagination. ```java +import com.tryfinch.api.models.HrisDirectoryListPage; +import com.tryfinch.api.models.IndividualInDirectory; + HrisDirectoryListPage page = client.hris().directory().list(params); while (page != null) { for (IndividualInDirectory directory : page.individuals()) { @@ -256,31 +266,33 @@ This library throws exceptions in a single hierarchy for easy handling: - **`FinchException`** - Base exception for all exceptions - - **`FinchServiceException`** - HTTP errors with a well-formed response body we were able to parse. The exception message and the `.debuggingRequestId()` will be set by the server. +- **`FinchServiceException`** - HTTP errors with a well-formed response body we were able to parse. The exception message and the `.debuggingRequestId()` will be set by the server. - | 400 | BadRequestException | - | ------ | ----------------------------- | - | 401 | AuthenticationException | - | 403 | PermissionDeniedException | - | 404 | NotFoundException | - | 422 | UnprocessableEntityException | - | 429 | RateLimitException | - | 5xx | InternalServerException | - | others | UnexpectedStatusCodeException | + | 400 | BadRequestException | + | ------ | ----------------------------- | + | 401 | AuthenticationException | + | 403 | PermissionDeniedException | + | 404 | NotFoundException | + | 422 | UnprocessableEntityException | + | 429 | RateLimitException | + | 5xx | InternalServerException | + | others | UnexpectedStatusCodeException | - - **`FinchIoException`** - I/O networking errors - - **`FinchInvalidDataException`** - any other exceptions on the client side, e.g.: - - We failed to serialize the request body - - We failed to parse the response body (has access to response code and body) +- **`FinchIoException`** - I/O networking errors +- **`FinchInvalidDataException`** - any other exceptions on the client side, e.g.: + - We failed to serialize the request body + - We failed to parse the response body (has access to response code and body) ## Network options ### Retries -Requests that experience certain errors are automatically retried 2 times by default, with a short exponential backoff. Connection errors (for example, due to a network connectivity problem), 408 Request Timeout, 409 Conflict, 429 Rate Limit, and >=500 Internal errors will all be retried by default. -You can provide a `maxRetries` on the client builder to configure this: +Requests that experience certain errors are automatically retried 2 times by default, with a short exponential backoff. Connection errors (for example, due to a network connectivity problem), 408 Request Timeout, 409 Conflict, 429 Rate Limit, and >=500 Internal errors will all be retried by default. You can provide a `maxRetries` on the client builder to configure this: ```java +import com.tryfinch.api.client.FinchClient; +import com.tryfinch.api.client.okhttp.FinchOkHttpClient; + FinchClient client = FinchOkHttpClient.builder() .fromEnv() .maxRetries(4) @@ -292,6 +304,10 @@ FinchClient client = FinchOkHttpClient.builder() Requests time out after 1 minute by default. You can configure this on the client builder: ```java +import com.tryfinch.api.client.FinchClient; +import com.tryfinch.api.client.okhttp.FinchOkHttpClient; +import java.time.Duration; + FinchClient client = FinchOkHttpClient.builder() .fromEnv() .timeout(Duration.ofSeconds(30)) @@ -303,15 +319,36 @@ FinchClient client = FinchOkHttpClient.builder() Requests can be routed through a proxy. You can configure this on the client builder: ```java +import com.tryfinch.api.client.FinchClient; +import com.tryfinch.api.client.okhttp.FinchOkHttpClient; +import java.net.InetSocketAddress; +import java.net.Proxy; + FinchClient client = FinchOkHttpClient.builder() .fromEnv() - .proxy(new Proxy( - Type.HTTP, - new InetSocketAddress("proxy.com", 8080) - )) + .proxy(new Proxy(Proxy.Type.HTTP, new InetSocketAddress("example.com", 8080))) .build(); ``` +## Making custom/undocumented requests + +This library is typed for convenient access to the documented API. If you need to access undocumented params or response properties, the library can still be used. + +### Undocumented request params + +To make requests using undocumented parameters, you can provide or override parameters on the params object while building it. + +```kotlin +FooCreateParams address = FooCreateParams.builder() + .id("my_id") + .putAdditionalProperty("secret_prop", JsonValue.from("hello")) + .build(); +``` + +### Undocumented response properties + +To access undocumented response properties, you can use `res._additionalProperties()` on a response object to get a map of untyped fields of type `Map`. You can then access fields like `._additionalProperties().get("secret_prop").asString()` or use other helpers defined on the `JsonValue` class to extract it to a desired type. + ## Logging We use the standard [OkHttp logging interceptor](https://github.com/square/okhttp/tree/master/okhttp-logging-interceptor). From 7801ba2d49fc9131e28ac3c6aeffa719efaa1289 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 19 Dec 2024 12:26:28 +0000 Subject: [PATCH 21/23] chore(docs): add example project (#367) --- finch-java-example/build.gradle.kts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/finch-java-example/build.gradle.kts b/finch-java-example/build.gradle.kts index 67603e35..29e65075 100644 --- a/finch-java-example/build.gradle.kts +++ b/finch-java-example/build.gradle.kts @@ -1,12 +1,18 @@ plugins { - id("application") - id("finch.java") + id("finch.kotlin") + id("java") + application } dependencies { implementation(project(":finch-java")) } +tasks.withType().configureEach { + // Allow using more modern APIs, like `List.of` and `Map.of`, in examples. + options.release.set(9) +} + application { - mainClass.set("com.tryfinch.api.example.Main") + mainClass = "com.tryfinch.api.example.Main" } From 723c35a6b2f504bb3a480e0154537190515d0f1a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 19 Dec 2024 19:35:20 +0000 Subject: [PATCH 22/23] chore(docs): fix code block language (#368) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index df09c61b..c0dce0eb 100644 --- a/README.md +++ b/README.md @@ -338,7 +338,7 @@ This library is typed for convenient access to the documented API. If you need t To make requests using undocumented parameters, you can provide or override parameters on the params object while building it. -```kotlin +```java FooCreateParams address = FooCreateParams.builder() .id("my_id") .putAdditionalProperty("secret_prop", JsonValue.from("hello")) From 105131f8248927e64ea63ee6670798b196f83355 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 19 Dec 2024 19:35:43 +0000 Subject: [PATCH 23/23] release: 2.0.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 42 +++++++++++++++++++++++++++++++++++ README.md | 6 ++--- build.gradle.kts | 2 +- 4 files changed, 47 insertions(+), 5 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index de0960ab..65f558e7 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.12.0" + ".": "2.0.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 37cc93e3..ff9c78f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,47 @@ # Changelog +## 2.0.0 (2024-12-19) + +Full Changelog: [v1.12.0...v2.0.0](https://github.com/Finch-API/finch-api-java/compare/v1.12.0...v2.0.0) + +### ⚠ BREAKING CHANGES + +* **client:** numeric enum member type ([#349](https://github.com/Finch-API/finch-api-java/issues/349)) + +### Features + +* **api:** api update ([#348](https://github.com/Finch-API/finch-api-java/issues/348)) ([1f7f08f](https://github.com/Finch-API/finch-api-java/commit/1f7f08fdb0fac4043baa61ea2153529fad1fe8a1)) +* **api:** api update ([#350](https://github.com/Finch-API/finch-api-java/issues/350)) ([76486fd](https://github.com/Finch-API/finch-api-java/commit/76486fd74b4c69f1c1e758226877c50876e4e1dd)) +* **api:** api update ([#358](https://github.com/Finch-API/finch-api-java/issues/358)) ([aef03b5](https://github.com/Finch-API/finch-api-java/commit/aef03b5cab006660274c63214e6900a3659ab54d)) +* **api:** api update ([#363](https://github.com/Finch-API/finch-api-java/issues/363)) ([1f2e37b](https://github.com/Finch-API/finch-api-java/commit/1f2e37bd6728a70c0c3a5eb5ddf4485183ea30b7)) + + +### Bug Fixes + +* **client:** numeric enum member type ([#349](https://github.com/Finch-API/finch-api-java/issues/349)) ([7705d87](https://github.com/Finch-API/finch-api-java/commit/7705d87e122e0d06a8b88ac45ccca67a96521562)) + + +### Chores + +* **docs:** add example project ([#367](https://github.com/Finch-API/finch-api-java/issues/367)) ([7801ba2](https://github.com/Finch-API/finch-api-java/commit/7801ba2d49fc9131e28ac3c6aeffa719efaa1289)) +* **docs:** fix code block language ([#368](https://github.com/Finch-API/finch-api-java/issues/368)) ([723c35a](https://github.com/Finch-API/finch-api-java/commit/723c35a6b2f504bb3a480e0154537190515d0f1a)) +* **docs:** update readme ([#365](https://github.com/Finch-API/finch-api-java/issues/365)) ([fc4a2ac](https://github.com/Finch-API/finch-api-java/commit/fc4a2aceea8968037cc11a2300bdb2f3296d93d4)) +* **internal:** codegen related update ([#346](https://github.com/Finch-API/finch-api-java/issues/346)) ([90f7c99](https://github.com/Finch-API/finch-api-java/commit/90f7c993a426713f980b561f8ea0410f6e4079e5)) +* **internal:** codegen related update ([#355](https://github.com/Finch-API/finch-api-java/issues/355)) ([1a5d595](https://github.com/Finch-API/finch-api-java/commit/1a5d59579770cb25845c8047e43681aebf457480)) +* **internal:** remove unused and expand used wildcard imports ([#359](https://github.com/Finch-API/finch-api-java/issues/359)) ([c825267](https://github.com/Finch-API/finch-api-java/commit/c825267ecf91ac10db7738b6df7f350d4f36d390)) +* **internal:** remove unused and expand used wildcard imports ([#361](https://github.com/Finch-API/finch-api-java/issues/361)) ([3c80b52](https://github.com/Finch-API/finch-api-java/commit/3c80b52b83abfcce2f99cb3203b0008c02a35d0f)) +* **internal:** remove unused imports ([#354](https://github.com/Finch-API/finch-api-java/issues/354)) ([cddb901](https://github.com/Finch-API/finch-api-java/commit/cddb901f2e7ec7c266ee535511325ff753402384)) +* **test:** remove unused imports ([#356](https://github.com/Finch-API/finch-api-java/issues/356)) ([a313b58](https://github.com/Finch-API/finch-api-java/commit/a313b580708ec7885eb574610b84a1b139202bcf)) +* **test:** use `JsonValue` instead of `JsonString` ([#357](https://github.com/Finch-API/finch-api-java/issues/357)) ([d336f7d](https://github.com/Finch-API/finch-api-java/commit/d336f7d962bea0a56d89a553faf8cc2b1339556a)) +* update example values in tests and docs ([#351](https://github.com/Finch-API/finch-api-java/issues/351)) ([792f3f7](https://github.com/Finch-API/finch-api-java/commit/792f3f76ae6584f9f83924b4cbee31a6067a0b18)) +* update parameter examples in tests and docs ([#364](https://github.com/Finch-API/finch-api-java/issues/364)) ([5fb0cac](https://github.com/Finch-API/finch-api-java/commit/5fb0cac8da7fd4957fbaaacdbc8b46255740b6ce)) + + +### Styles + +* **internal:** make enum value definitions less verbose ([#352](https://github.com/Finch-API/finch-api-java/issues/352)) ([08a5c64](https://github.com/Finch-API/finch-api-java/commit/08a5c64440d627e115c0cd360675292cab9b53b5)) +* **internal:** move enum identity methods to bottom of class ([#353](https://github.com/Finch-API/finch-api-java/issues/353)) ([bd29c58](https://github.com/Finch-API/finch-api-java/commit/bd29c58c914b831560d94ad7cd60a3ae6cb79742)) + ## 1.12.0 (2024-11-27) Full Changelog: [v1.11.1...v1.12.0](https://github.com/Finch-API/finch-api-java/compare/v1.11.1...v1.12.0) diff --git a/README.md b/README.md index c0dce0eb..cb2abde7 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ -[![Maven Central](https://img.shields.io/maven-central/v/com.tryfinch.api/finch-java)](https://central.sonatype.com/artifact/com.tryfinch.api/finch-java/1.12.0) +[![Maven Central](https://img.shields.io/maven-central/v/com.tryfinch.api/finch-java)](https://central.sonatype.com/artifact/com.tryfinch.api/finch-java/2.0.0) @@ -27,7 +27,7 @@ The REST API documentation can be found [in the Finch Documentation Center](htt ```kotlin -implementation("com.tryfinch.api:finch-java:1.12.0") +implementation("com.tryfinch.api:finch-java:2.0.0") ``` #### Maven @@ -36,7 +36,7 @@ implementation("com.tryfinch.api:finch-java:1.12.0") com.tryfinch.api finch-java - 1.12.0 + 2.0.0 ``` diff --git a/build.gradle.kts b/build.gradle.kts index 1c0d6a5c..b4f521ea 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -4,7 +4,7 @@ plugins { allprojects { group = "com.tryfinch.api" - version = "1.12.0" // x-release-please-version + version = "2.0.0" // x-release-please-version }