Skip to content

Commit

Permalink
docs: add params class javadocs (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Jan 7, 2025
1 parent e804c4c commit 2b4bc9e
Show file tree
Hide file tree
Showing 41 changed files with 79 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import com.tryfinch.api.core.immutableEmptyMap
import com.tryfinch.api.core.toImmutable
import java.util.Objects

/** Exchange the authorization code for an access token */
class AccessTokenCreateParams
constructor(
private val body: AccessTokenCreateBody,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import com.tryfinch.api.core.http.QueryParams
import com.tryfinch.api.core.toImmutable
import java.util.Objects

/** Disconnect one or more `access_token`s from your application. */
class AccountDisconnectParams
constructor(
private val additionalHeaders: Headers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import com.tryfinch.api.core.http.Headers
import com.tryfinch.api.core.http.QueryParams
import java.util.Objects

/** Read account information associated with an `access_token` */
class AccountIntrospectParams
constructor(
private val additionalHeaders: Headers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import com.tryfinch.api.core.toImmutable
import com.tryfinch.api.errors.FinchInvalidDataException
import java.util.Objects

/** Create a new connect session for an employer */
class ConnectSessionNewParams
constructor(
private val body: ConnectSessionNewBody,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import com.tryfinch.api.core.toImmutable
import com.tryfinch.api.errors.FinchInvalidDataException
import java.util.Objects

/** Create a new Connect session for reauthenticating an existing connection */
class ConnectSessionReauthenticateParams
constructor(
private val body: ConnectSessionReauthenticateBody,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ import com.tryfinch.api.core.immutableEmptyMap
import com.tryfinch.api.core.toImmutable
import java.util.Objects

/**
* Creates a new company-wide deduction or contribution. Please use the `/providers` endpoint to
* view available types for each provider.
*/
class HrisBenefitCreateParams
constructor(
private val body: HrisBenefitCreateBody,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import com.tryfinch.api.core.http.Headers
import com.tryfinch.api.core.http.QueryParams
import java.util.Objects

/** Lists individuals currently enrolled in a given deduction. */
class HrisBenefitIndividualEnrolledIdsParams
constructor(
private val benefitId: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import com.tryfinch.api.core.http.Headers
import com.tryfinch.api.core.http.QueryParams
import java.util.Objects

/** Get enrollment information for the given individuals. */
class HrisBenefitIndividualRetrieveManyBenefitsParams
constructor(
private val benefitId: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import com.tryfinch.api.core.immutableEmptyMap
import com.tryfinch.api.core.toImmutable
import java.util.Objects

/** Unenroll individuals from a deduction or contribution */
class HrisBenefitIndividualUnenrollManyParams
constructor(
private val benefitId: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import com.tryfinch.api.core.http.Headers
import com.tryfinch.api.core.http.QueryParams
import java.util.Objects

/** List all company-wide deductions and contributions. */
class HrisBenefitListParams
constructor(
private val additionalHeaders: Headers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import com.tryfinch.api.core.http.Headers
import com.tryfinch.api.core.http.QueryParams
import java.util.Objects

/** Get deductions metadata */
class HrisBenefitListSupportedBenefitsParams
constructor(
private val additionalHeaders: Headers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import com.tryfinch.api.core.http.Headers
import com.tryfinch.api.core.http.QueryParams
import java.util.Objects

/** Lists deductions and contributions information for a given item */
class HrisBenefitRetrieveParams
constructor(
private val benefitId: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import com.tryfinch.api.core.immutableEmptyMap
import com.tryfinch.api.core.toImmutable
import java.util.Objects

/** Updates an existing company-wide deduction or contribution */
class HrisBenefitUpdateParams
constructor(
private val benefitId: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import com.tryfinch.api.core.http.Headers
import com.tryfinch.api.core.http.QueryParams
import java.util.Objects

/** Read basic company data */
class HrisCompanyRetrieveParams
constructor(
private val additionalHeaders: Headers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import com.tryfinch.api.core.http.Headers
import com.tryfinch.api.core.http.QueryParams
import java.util.Objects

/** Read company directory and organization structure */
class HrisDirectoryListIndividualsParams
constructor(
private val limit: Long?,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import com.tryfinch.api.core.http.Headers
import com.tryfinch.api.core.http.QueryParams
import java.util.Objects

/** Read company directory and organization structure */
class HrisDirectoryListParams
constructor(
private val limit: Long?,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import com.tryfinch.api.core.toImmutable
import com.tryfinch.api.errors.FinchInvalidDataException
import java.util.Objects

/** **Beta:** This endpoint is in beta and may change. Retrieve a list of company-wide documents. */
class HrisDocumentListParams
constructor(
private val individualIds: List<String>?,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ import com.tryfinch.api.core.http.Headers
import com.tryfinch.api.core.http.QueryParams
import java.util.Objects

/**
* **Beta:** This endpoint is in beta and may change. Retrieve details of a specific document by its
* ID.
*/
class HrisDocumentRetreiveParams
constructor(
private val documentId: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import com.tryfinch.api.core.immutableEmptyMap
import com.tryfinch.api.core.toImmutable
import java.util.Objects

/** Read individual employment and income data */
class HrisEmploymentRetrieveManyParams
constructor(
private val body: HrisEmploymentRetrieveManyBody,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import com.tryfinch.api.core.immutableEmptyMap
import com.tryfinch.api.core.toImmutable
import java.util.Objects

/** Read individual data, excluding income and employment data */
class HrisIndividualRetrieveManyParams
constructor(
private val body: HrisIndividualRetrieveManyBody,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ import com.tryfinch.api.core.immutableEmptyMap
import com.tryfinch.api.core.toImmutable
import java.util.Objects

/**
* Read detailed pay statements for each individual.
*
* Deduction and contribution types are supported by the payroll systems that supports Benefits.
*/
class HrisPayStatementRetrieveManyParams
constructor(
private val body: HrisPayStatementRetrieveManyBody,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import com.tryfinch.api.core.http.QueryParams
import java.time.LocalDate
import java.util.Objects

/** Read payroll and contractor related payments by the company. */
class HrisPaymentListParams
constructor(
private val endDate: LocalDate,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,21 @@ import com.tryfinch.api.core.toImmutable
import com.tryfinch.api.errors.FinchInvalidDataException
import java.util.Objects

/**
* Enqueue an automated job.
*
* `data_sync_all`: Enqueue a job to re-sync all data for a connection. `data_sync_all` has a
* concurrency limit of 1 job at a time per connection. This means that if this endpoint is called
* while a job is already in progress for this connection, Finch will return the `job_id` of the job
* that is currently in progress. Finch allows a fixed window rate limit of 1 forced refresh per
* hour per connection.
*
* `w4_form_employee_sync`: Enqueues a job for sync W-4 data for a particular individual, identified
* by `individual_id`. This feature is currently in beta.
*
* This endpoint is available for _Scale_ tier customers as an add-on. To request access to this
* endpoint, please contact your Finch account manager.
*/
class JobAutomatedCreateParams
constructor(
private val body: JobAutomatedCreateBody,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import com.tryfinch.api.core.http.Headers
import com.tryfinch.api.core.http.QueryParams
import java.util.Objects

/**
* Get all automated jobs. Automated jobs are completed by a machine. By default, jobs are sorted in
* descending order by submission time. For scheduled jobs such as data syncs, only the next
* scheduled job is shown.
*/
class JobAutomatedListParams
constructor(
private val limit: Long?,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import com.tryfinch.api.core.http.Headers
import com.tryfinch.api.core.http.QueryParams
import java.util.Objects

/** Get an automated job by `job_id`. */
class JobAutomatedRetrieveParams
constructor(
private val jobId: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ import com.tryfinch.api.core.http.Headers
import com.tryfinch.api.core.http.QueryParams
import java.util.Objects

/**
* Get a manual job by `job_id`. Manual jobs are completed by a human and include Assisted Benefits
* jobs.
*/
class JobManualRetrieveParams
constructor(
private val jobId: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import com.tryfinch.api.core.http.QueryParams
import com.tryfinch.api.core.toImmutable
import java.util.Objects

/** Read company pay groups and frequencies */
class PayrollPayGroupListParams
constructor(
private val individualId: String?,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import com.tryfinch.api.core.http.Headers
import com.tryfinch.api.core.http.QueryParams
import java.util.Objects

/** Read information from a single pay group */
class PayrollPayGroupRetrieveParams
constructor(
private val payGroupId: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import com.tryfinch.api.core.http.Headers
import com.tryfinch.api.core.http.QueryParams
import java.util.Objects

/** Return details on all available payroll and HR systems. */
class ProviderListParams
constructor(
private val additionalHeaders: Headers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ import com.tryfinch.api.core.immutableEmptyMap
import com.tryfinch.api.core.toImmutable
import java.util.Objects

/**
* The Forward API allows you to make direct requests to an employment system. If Finch’s unified
* API doesn’t have a data model that cleanly fits your needs, then Forward allows you to push or
* pull data models directly against an integration’s API.
*/
class RequestForwardingForwardParams
constructor(
private val body: RequestForwardingForwardBody,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import com.tryfinch.api.core.toImmutable
import com.tryfinch.api.errors.FinchInvalidDataException
import java.util.Objects

/** Update a sandbox company's data */
class SandboxCompanyUpdateParams
constructor(
private val body: SandboxCompanyUpdateBody,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import com.tryfinch.api.core.toImmutable
import com.tryfinch.api.errors.FinchInvalidDataException
import java.util.Objects

/** Create a new account for an existing connection (company/provider pair) */
class SandboxConnectionAccountCreateParams
constructor(
private val body: SandboxConnectionAccountCreateBody,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ import com.tryfinch.api.core.immutableEmptyMap
import com.tryfinch.api.core.toImmutable
import java.util.Objects

/**
* Update an existing sandbox account. Change the connection status to understand how the Finch API
* responds.
*/
class SandboxConnectionAccountUpdateParams
constructor(
private val body: SandboxConnectionAccountUpdateBody,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import com.tryfinch.api.core.toImmutable
import com.tryfinch.api.errors.FinchInvalidDataException
import java.util.Objects

/** Create a new connection (new company/provider pair) with a new account */
class SandboxConnectionCreateParams
constructor(
private val body: SandboxConnectionCreateBody,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import com.tryfinch.api.core.toImmutable
import com.tryfinch.api.errors.FinchInvalidDataException
import java.util.Objects

/** Add new individuals to a sandbox company */
class SandboxDirectoryCreateParams
constructor(
private val body: List<IndividualOrEmployment>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import com.tryfinch.api.core.toImmutable
import com.tryfinch.api.errors.FinchInvalidDataException
import java.util.Objects

/** Update sandbox employment */
class SandboxEmploymentUpdateParams
constructor(
private val individualId: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import com.tryfinch.api.core.toImmutable
import com.tryfinch.api.errors.FinchInvalidDataException
import java.util.Objects

/** Update sandbox individual */
class SandboxIndividualUpdateParams
constructor(
private val individualId: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import com.tryfinch.api.core.http.Headers
import com.tryfinch.api.core.http.QueryParams
import java.util.Objects

/** Get configurations for sandbox jobs */
class SandboxJobConfigurationRetrieveParams
constructor(
private val additionalHeaders: Headers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import com.tryfinch.api.core.toImmutable
import com.tryfinch.api.errors.FinchInvalidDataException
import java.util.Objects

/** Update configurations for sandbox jobs */
class SandboxJobConfigurationUpdateParams
constructor(
private val body: SandboxJobConfigurationUpdateBody,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import com.tryfinch.api.core.toImmutable
import com.tryfinch.api.errors.FinchInvalidDataException
import java.util.Objects

/** Enqueue a new sandbox job */
class SandboxJobCreateParams
constructor(
private val body: SandboxJobCreateBody,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import com.tryfinch.api.core.toImmutable
import com.tryfinch.api.errors.FinchInvalidDataException
import java.util.Objects

/** Add a new sandbox payment */
class SandboxPaymentCreateParams
constructor(
private val body: SandboxPaymentCreateBody,
Expand Down

0 comments on commit 2b4bc9e

Please sign in to comment.