Skip to content

Commit a2b03c7

Browse files
chore(docs): improve docstrings (#255)
1 parent b4f858c commit a2b03c7

6 files changed

Lines changed: 15 additions & 2 deletions

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 36
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch-aeb62bc4875f4eb1b2ae1f75ef9521e92022e863cba2ae67f907ed27ca93d527.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch-15385b754979d87bd7e583f618870246e79d1430a761e5bcd653db78cfab4789.yml

buildSrc/src/main/kotlin/finch.publish.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ configure<PublishingExtension> {
1616

1717
pom {
1818
name.set("API Reference")
19-
description.set("The Finch HRIS API provides a unified way to connect to a multitide of HRIS\nsystems. The API requires an access token issued by Finch.\n\nBy default, Organization and Payroll requests use Finch\'s\n[Data Syncs](/development-guides/Data-Syncs). If a request is made before the\ninitial sync has completed, Finch will request data live from the provider. The\nlatency on live requests may range from seconds to minutes depending on the\nprovider and batch size. For automated integrations, Deductions requests (both\nread and write) are always made live to the provider. Latencies may range from\nseconds to minutes depending on the provider and batch size.\n\nEmployer products are specified by the product parameter, a space-separated list\nof products that your application requests from an employer authenticating\nthrough Finch Connect. Valid product names are—\n\n- `company`: Read basic company data\n\n- `directory`: Read company directory and organization structure\n\n- `individual`: Read individual data, excluding income and employment data\n\n- `employment`: Read individual employment and income data\n\n- `payment`: Read payroll and contractor related payments by the company\n\n- `pay_statement`: Read detailed pay statements for each individual\n\n- `benefits`: Create and manage deductions and contributions and enrollment for\n an employer\n\n[![Open in Postman](https://run.pstmn.io/button.svg)](https://god.gw.postman.com/run-collection/21027137-08db0929-883d-4094-a9ce-dbf5a9bee4a4?action=collection%2Ffork&collection-url=entityId%3D21027137-08db0929-883d-4094-a9ce-dbf5a9bee4a4%26entityType%3Dcollection%26workspaceId%3D1edf19bc-e0a8-41e9-ac55-481a4b50790b)")
19+
description.set("The Finch HRIS API provides a unified way to connect to a multitide of HRIS\nsystems. The API requires an access token issued by Finch.\n\nBy default, Organization and Payroll requests use Finch\'s\n[Data Syncs](/developer-resources/Data-Syncs). If a request is made before the\ninitial sync has completed, Finch will request data live from the provider. The\nlatency on live requests may range from seconds to minutes depending on the\nprovider and batch size. For automated integrations, Deductions requests (both\nread and write) are always made live to the provider. Latencies may range from\nseconds to minutes depending on the provider and batch size.\n\nEmployer products are specified by the product parameter, a space-separated list\nof products that your application requests from an employer authenticating\nthrough Finch Connect. Valid product names are—\n\n- `company`: Read basic company data\n\n- `directory`: Read company directory and organization structure\n\n- `individual`: Read individual data, excluding income and employment data\n\n- `employment`: Read individual employment and income data\n\n- `payment`: Read payroll and contractor related payments by the company\n\n- `pay_statement`: Read detailed pay statements for each individual\n\n- `benefits`: Create and manage deductions and contributions and enrollment for\n an employer\n\n[![Open in Postman](https://run.pstmn.io/button.svg)](https://god.gw.postman.com/run-collection/21027137-08db0929-883d-4094-a9ce-dbf5a9bee4a4?action=collection%2Ffork&collection-url=entityId%3D21027137-08db0929-883d-4094-a9ce-dbf5a9bee4a4%26entityType%3Dcollection%26workspaceId%3D1edf19bc-e0a8-41e9-ac55-481a4b50790b)")
2020
url.set("https://developer.tryfinch.com/")
2121

2222
licenses {

finch-java-core/src/main/kotlin/com/tryfinch/api/models/Individual.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ private constructor(
7676
/**
7777
* Social Security Number of the individual. This field is only available with the `ssn` scope
7878
* enabled and the `options: { include: ['ssn'] }` param set in the body.
79+
* [Click here to learn more about enabling the SSN field](/developer-resources/Enable-SSN-Field).
7980
*/
8081
fun ssn(): Optional<String> = Optional.ofNullable(ssn.getNullable("ssn"))
8182

@@ -119,6 +120,7 @@ private constructor(
119120
/**
120121
* Social Security Number of the individual. This field is only available with the `ssn` scope
121122
* enabled and the `options: { include: ['ssn'] }` param set in the body.
123+
* [Click here to learn more about enabling the SSN field](/developer-resources/Enable-SSN-Field).
122124
*/
123125
@JsonProperty("ssn") @ExcludeMissing fun _ssn() = ssn
124126

@@ -328,12 +330,14 @@ private constructor(
328330
/**
329331
* Social Security Number of the individual. This field is only available with the `ssn`
330332
* scope enabled and the `options: { include: ['ssn'] }` param set in the body.
333+
* [Click here to learn more about enabling the SSN field](/developer-resources/Enable-SSN-Field).
331334
*/
332335
fun ssn(ssn: String) = ssn(JsonField.of(ssn))
333336

334337
/**
335338
* Social Security Number of the individual. This field is only available with the `ssn`
336339
* scope enabled and the `options: { include: ['ssn'] }` param set in the body.
340+
* [Click here to learn more about enabling the SSN field](/developer-resources/Enable-SSN-Field).
337341
*/
338342
@JsonProperty("ssn")
339343
@ExcludeMissing

finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualUpdateResponse.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ private constructor(
7171
/**
7272
* Social Security Number of the individual. This field is only available with the `ssn` scope
7373
* enabled and the `options: { include: ['ssn'] }` param set in the body.
74+
* [Click here to learn more about enabling the SSN field](/developer-resources/Enable-SSN-Field).
7475
*/
7576
fun ssn(): Optional<String> = Optional.ofNullable(ssn.getNullable("ssn"))
7677

@@ -114,6 +115,7 @@ private constructor(
114115
/**
115116
* Social Security Number of the individual. This field is only available with the `ssn` scope
116117
* enabled and the `options: { include: ['ssn'] }` param set in the body.
118+
* [Click here to learn more about enabling the SSN field](/developer-resources/Enable-SSN-Field).
117119
*/
118120
@JsonProperty("ssn") @ExcludeMissing fun _ssn() = ssn
119121

@@ -316,12 +318,14 @@ private constructor(
316318
/**
317319
* Social Security Number of the individual. This field is only available with the `ssn`
318320
* scope enabled and the `options: { include: ['ssn'] }` param set in the body.
321+
* [Click here to learn more about enabling the SSN field](/developer-resources/Enable-SSN-Field).
319322
*/
320323
fun ssn(ssn: String) = ssn(JsonField.of(ssn))
321324

322325
/**
323326
* Social Security Number of the individual. This field is only available with the `ssn`
324327
* scope enabled and the `options: { include: ['ssn'] }` param set in the body.
328+
* [Click here to learn more about enabling the SSN field](/developer-resources/Enable-SSN-Field).
325329
*/
326330
@JsonProperty("ssn")
327331
@ExcludeMissing

finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxDirectoryCreateParams.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ constructor(
267267
/**
268268
* Social Security Number of the individual. This field is only available with the `ssn`
269269
* scope enabled and the `options: { include: ['ssn'] }` param set in the body.
270+
* [Click here to learn more about enabling the SSN field](/developer-resources/Enable-SSN-Field).
270271
*/
271272
@JsonProperty("ssn") fun ssn(): String? = ssn
272273

@@ -499,6 +500,7 @@ constructor(
499500
/**
500501
* Social Security Number of the individual. This field is only available with the `ssn`
501502
* scope enabled and the `options: { include: ['ssn'] }` param set in the body.
503+
* [Click here to learn more about enabling the SSN field](/developer-resources/Enable-SSN-Field).
502504
*/
503505
@JsonProperty("ssn") fun ssn(ssn: String) = apply { this.ssn = ssn }
504506

finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxIndividualUpdateParams.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ constructor(
151151
/**
152152
* Social Security Number of the individual. This field is only available with the `ssn`
153153
* scope enabled and the `options: { include: ['ssn'] }` param set in the body.
154+
* [Click here to learn more about enabling the SSN field](/developer-resources/Enable-SSN-Field).
154155
*/
155156
@JsonProperty("ssn") fun ssn(): String? = ssn
156157

@@ -290,6 +291,7 @@ constructor(
290291
/**
291292
* Social Security Number of the individual. This field is only available with the `ssn`
292293
* scope enabled and the `options: { include: ['ssn'] }` param set in the body.
294+
* [Click here to learn more about enabling the SSN field](/developer-resources/Enable-SSN-Field).
293295
*/
294296
@JsonProperty("ssn") fun ssn(ssn: String) = apply { this.ssn = ssn }
295297

@@ -475,6 +477,7 @@ constructor(
475477
/**
476478
* Social Security Number of the individual. This field is only available with the `ssn`
477479
* scope enabled and the `options: { include: ['ssn'] }` param set in the body.
480+
* [Click here to learn more about enabling the SSN field](/developer-resources/Enable-SSN-Field).
478481
*/
479482
fun ssn(ssn: String) = apply { this.ssn = ssn }
480483

0 commit comments

Comments
 (0)