@tryfinch/finch-api 5.9.1 → 5.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/core.d.ts +0 -10
  3. package/core.d.ts.map +1 -1
  4. package/core.js +1 -13
  5. package/core.js.map +1 -1
  6. package/core.mjs +0 -11
  7. package/core.mjs.map +1 -1
  8. package/index.d.mts +2 -0
  9. package/index.d.ts +2 -0
  10. package/index.d.ts.map +1 -1
  11. package/index.js.map +1 -1
  12. package/index.mjs.map +1 -1
  13. package/package.json +21 -21
  14. package/resource.d.ts +1 -7
  15. package/resource.d.ts.map +1 -1
  16. package/resource.js +1 -7
  17. package/resource.js.map +1 -1
  18. package/resource.mjs +1 -7
  19. package/resource.mjs.map +1 -1
  20. package/resources/account.d.ts +4 -0
  21. package/resources/account.d.ts.map +1 -1
  22. package/resources/account.js +2 -2
  23. package/resources/account.js.map +1 -1
  24. package/resources/account.mjs +2 -2
  25. package/resources/account.mjs.map +1 -1
  26. package/resources/hris/benefits/benefits.d.ts +65 -1
  27. package/resources/hris/benefits/benefits.d.ts.map +1 -1
  28. package/resources/hris/benefits/benefits.js +6 -6
  29. package/resources/hris/benefits/benefits.js.map +1 -1
  30. package/resources/hris/benefits/benefits.mjs +6 -6
  31. package/resources/hris/benefits/benefits.mjs.map +1 -1
  32. package/resources/hris/benefits/index.d.ts +1 -1
  33. package/resources/hris/benefits/index.d.ts.map +1 -1
  34. package/resources/hris/benefits/index.js.map +1 -1
  35. package/resources/hris/benefits/index.mjs.map +1 -1
  36. package/resources/hris/benefits/individuals.d.ts.map +1 -1
  37. package/resources/hris/benefits/individuals.js +4 -15
  38. package/resources/hris/benefits/individuals.js.map +1 -1
  39. package/resources/hris/benefits/individuals.mjs +4 -15
  40. package/resources/hris/benefits/individuals.mjs.map +1 -1
  41. package/resources/hris/company.js +1 -1
  42. package/resources/hris/company.js.map +1 -1
  43. package/resources/hris/company.mjs +1 -1
  44. package/resources/hris/company.mjs.map +1 -1
  45. package/resources/hris/directory.js +1 -1
  46. package/resources/hris/directory.js.map +1 -1
  47. package/resources/hris/directory.mjs +1 -1
  48. package/resources/hris/directory.mjs.map +1 -1
  49. package/resources/hris/employments.d.ts +9 -0
  50. package/resources/hris/employments.d.ts.map +1 -1
  51. package/resources/hris/employments.js +1 -1
  52. package/resources/hris/employments.js.map +1 -1
  53. package/resources/hris/employments.mjs +1 -1
  54. package/resources/hris/employments.mjs.map +1 -1
  55. package/resources/hris/hris.d.ts +3 -0
  56. package/resources/hris/hris.d.ts.map +1 -1
  57. package/resources/hris/hris.js +7 -7
  58. package/resources/hris/hris.js.map +1 -1
  59. package/resources/hris/hris.mjs +7 -7
  60. package/resources/hris/hris.mjs.map +1 -1
  61. package/resources/hris/index.d.ts +1 -1
  62. package/resources/hris/index.d.ts.map +1 -1
  63. package/resources/hris/index.js.map +1 -1
  64. package/resources/hris/index.mjs.map +1 -1
  65. package/resources/hris/individuals.d.ts +9 -0
  66. package/resources/hris/individuals.d.ts.map +1 -1
  67. package/resources/hris/individuals.js +1 -1
  68. package/resources/hris/individuals.js.map +1 -1
  69. package/resources/hris/individuals.mjs +1 -1
  70. package/resources/hris/individuals.mjs.map +1 -1
  71. package/resources/hris/pay-statements.js +1 -1
  72. package/resources/hris/pay-statements.js.map +1 -1
  73. package/resources/hris/pay-statements.mjs +1 -1
  74. package/resources/hris/pay-statements.mjs.map +1 -1
  75. package/resources/hris/payments.js +1 -1
  76. package/resources/hris/payments.js.map +1 -1
  77. package/resources/hris/payments.mjs +1 -1
  78. package/resources/hris/payments.mjs.map +1 -1
  79. package/resources/index.d.ts +1 -0
  80. package/resources/index.d.ts.map +1 -1
  81. package/resources/index.js +15 -0
  82. package/resources/index.js.map +1 -1
  83. package/resources/index.mjs +1 -0
  84. package/resources/index.mjs.map +1 -1
  85. package/resources/providers.d.ts +248 -2
  86. package/resources/providers.d.ts.map +1 -1
  87. package/resources/providers.js +1 -1
  88. package/resources/providers.js.map +1 -1
  89. package/resources/providers.mjs +1 -1
  90. package/resources/providers.mjs.map +1 -1
  91. package/resources/request-forwarding.d.ts +7 -4
  92. package/resources/request-forwarding.d.ts.map +1 -1
  93. package/resources/request-forwarding.js +5 -2
  94. package/resources/request-forwarding.js.map +1 -1
  95. package/resources/request-forwarding.mjs +5 -2
  96. package/resources/request-forwarding.mjs.map +1 -1
  97. package/resources/shared.d.ts +53 -0
  98. package/resources/shared.d.ts.map +1 -0
  99. package/resources/shared.js +4 -0
  100. package/resources/shared.js.map +1 -0
  101. package/resources/shared.mjs +3 -0
  102. package/resources/shared.mjs.map +1 -0
  103. package/resources/webhooks.d.ts.map +1 -1
  104. package/resources/webhooks.js +2 -2
  105. package/resources/webhooks.js.map +1 -1
  106. package/resources/webhooks.mjs +2 -2
  107. package/resources/webhooks.mjs.map +1 -1
  108. package/src/core.ts +0 -21
  109. package/src/index.ts +3 -0
  110. package/src/resource.ts +3 -16
  111. package/src/resources/account.ts +7 -2
  112. package/src/resources/hris/benefits/benefits.ts +94 -7
  113. package/src/resources/hris/benefits/index.ts +3 -0
  114. package/src/resources/hris/benefits/individuals.ts +16 -15
  115. package/src/resources/hris/company.ts +1 -1
  116. package/src/resources/hris/directory.ts +1 -1
  117. package/src/resources/hris/employments.ts +13 -1
  118. package/src/resources/hris/hris.ts +10 -7
  119. package/src/resources/hris/index.ts +3 -0
  120. package/src/resources/hris/individuals.ts +21 -1
  121. package/src/resources/hris/pay-statements.ts +1 -1
  122. package/src/resources/hris/payments.ts +1 -1
  123. package/src/resources/index.ts +1 -0
  124. package/src/resources/providers.ts +391 -3
  125. package/src/resources/request-forwarding.ts +8 -5
  126. package/src/resources/shared.ts +62 -0
  127. package/src/resources/webhooks.ts +2 -2
  128. package/src/version.ts +1 -1
  129. package/version.d.ts +1 -1
  130. package/version.d.ts.map +1 -1
  131. package/version.js +1 -1
  132. package/version.js.map +1 -1
  133. package/version.mjs +1 -1
  134. package/version.mjs.map +1 -1
@@ -18,7 +18,7 @@ export class Employments extends APIResource {
18
18
  body: EmploymentRetrieveManyParams,
19
19
  options?: Core.RequestOptions,
20
20
  ): Core.PagePromise<EmploymentDataResponsesPage, EmploymentDataResponse> {
21
- return this.getAPIList('/employer/employment', EmploymentDataResponsesPage, {
21
+ return this._client.getAPIList('/employer/employment', EmploymentDataResponsesPage, {
22
22
  body,
23
23
  method: 'post',
24
24
  ...options,
@@ -39,6 +39,12 @@ export interface EmploymentData {
39
39
  */
40
40
  class_code?: string | null;
41
41
 
42
+ /**
43
+ * Custom fields for the individual. These are fields which are defined by the
44
+ * employer in the system.
45
+ */
46
+ custom_fields?: Array<EmploymentData.CustomField> | null;
47
+
42
48
  /**
43
49
  * The department object.
44
50
  */
@@ -122,6 +128,12 @@ export interface EmploymentData {
122
128
  }
123
129
 
124
130
  export namespace EmploymentData {
131
+ export interface CustomField {
132
+ name?: string;
133
+
134
+ value?: unknown;
135
+ }
136
+
125
137
  /**
126
138
  * The department object.
127
139
  */
@@ -11,13 +11,13 @@ import * as PaymentsAPI from "./payments";
11
11
  import * as BenefitsAPI from "./benefits/benefits";
12
12
 
13
13
  export class HRIS extends APIResource {
14
- company: CompanyAPI.CompanyResource = new CompanyAPI.CompanyResource(this.client);
15
- directory: DirectoryAPI.Directory = new DirectoryAPI.Directory(this.client);
16
- individuals: IndividualsAPI.Individuals = new IndividualsAPI.Individuals(this.client);
17
- employments: EmploymentsAPI.Employments = new EmploymentsAPI.Employments(this.client);
18
- payments: PaymentsAPI.Payments = new PaymentsAPI.Payments(this.client);
19
- payStatements: PayStatementsAPI.PayStatements = new PayStatementsAPI.PayStatements(this.client);
20
- benefits: BenefitsAPI.Benefits = new BenefitsAPI.Benefits(this.client);
14
+ company: CompanyAPI.CompanyResource = new CompanyAPI.CompanyResource(this._client);
15
+ directory: DirectoryAPI.Directory = new DirectoryAPI.Directory(this._client);
16
+ individuals: IndividualsAPI.Individuals = new IndividualsAPI.Individuals(this._client);
17
+ employments: EmploymentsAPI.Employments = new EmploymentsAPI.Employments(this._client);
18
+ payments: PaymentsAPI.Payments = new PaymentsAPI.Payments(this._client);
19
+ payStatements: PayStatementsAPI.PayStatements = new PayStatementsAPI.PayStatements(this._client);
20
+ benefits: BenefitsAPI.Benefits = new BenefitsAPI.Benefits(this._client);
21
21
  }
22
22
 
23
23
  /**
@@ -148,14 +148,17 @@ export namespace HRIS {
148
148
  export import PayStatementRetrieveManyParams = PayStatementsAPI.PayStatementRetrieveManyParams;
149
149
  export import Benefits = BenefitsAPI.Benefits;
150
150
  export import BenefitContribution = BenefitsAPI.BenefitContribution;
151
+ export import BenefitFeaturesAndOperations = BenefitsAPI.BenefitFeaturesAndOperations;
151
152
  export import BenefitFrequency = BenefitsAPI.BenefitFrequency;
152
153
  export import BenefitType = BenefitsAPI.BenefitType;
154
+ export import BenefitsSupport = BenefitsAPI.BenefitsSupport;
153
155
  /**
154
156
  * @deprecated use `BenefitContribution` instead
155
157
  */
156
158
  export import BenfitContribution = BenefitsAPI.BenfitContribution;
157
159
  export import CompanyBenefit = BenefitsAPI.CompanyBenefit;
158
160
  export import CreateCompanyBenefitsResponse = BenefitsAPI.CreateCompanyBenefitsResponse;
161
+ export import SupportPerBenefitType = BenefitsAPI.SupportPerBenefitType;
159
162
  export import SupportedBenefit = BenefitsAPI.SupportedBenefit;
160
163
  export import UpdateCompanyBenefitResponse = BenefitsAPI.UpdateCompanyBenefitResponse;
161
164
  export import CompanyBenefitsSinglePage = BenefitsAPI.CompanyBenefitsSinglePage;
@@ -2,11 +2,14 @@
2
2
 
3
3
  export {
4
4
  BenefitContribution,
5
+ BenefitFeaturesAndOperations,
5
6
  BenefitFrequency,
6
7
  BenefitType,
8
+ BenefitsSupport,
7
9
  BenfitContribution,
8
10
  CompanyBenefit,
9
11
  CreateCompanyBenefitsResponse,
12
+ SupportPerBenefitType,
10
13
  SupportedBenefit,
11
14
  UpdateCompanyBenefitResponse,
12
15
  BenefitCreateParams,
@@ -23,7 +23,7 @@ export class Individuals extends APIResource {
23
23
  if (isRequestOptions(body)) {
24
24
  return this.retrieveMany({}, body);
25
25
  }
26
- return this.getAPIList('/employer/individual', IndividualResponsesPage, {
26
+ return this._client.getAPIList('/employer/individual', IndividualResponsesPage, {
27
27
  body,
28
28
  method: 'post',
29
29
  ...options,
@@ -43,6 +43,26 @@ export interface Individual {
43
43
 
44
44
  emails?: Array<Individual.Email> | null;
45
45
 
46
+ /**
47
+ * Note: This property is only available if enabled for your account. Please reach
48
+ * out to your Finch representative if you would like access.
49
+ */
50
+ encrypted_ssn?: string | null;
51
+
52
+ /**
53
+ * The EEOC-defined ethnicity of the individual.
54
+ */
55
+ ethnicity?:
56
+ | 'asian'
57
+ | 'white'
58
+ | 'black_or_african_american'
59
+ | 'native_hawaiian_or_pacific_islander'
60
+ | 'american_indian_or_alaska_native'
61
+ | 'hispanic_or_latino'
62
+ | 'two_or_more_races'
63
+ | 'decline_to_specify'
64
+ | null;
65
+
46
66
  /**
47
67
  * The legal first name of the individual.
48
68
  */
@@ -18,7 +18,7 @@ export class PayStatements extends APIResource {
18
18
  body: PayStatementRetrieveManyParams,
19
19
  options?: Core.RequestOptions,
20
20
  ): Core.PagePromise<PayStatementResponsesPage, PayStatementResponse> {
21
- return this.getAPIList('/employer/pay-statement', PayStatementResponsesPage, {
21
+ return this._client.getAPIList('/employer/pay-statement', PayStatementResponsesPage, {
22
22
  body,
23
23
  method: 'post',
24
24
  ...options,
@@ -14,7 +14,7 @@ export class Payments extends APIResource {
14
14
  query: PaymentListParams,
15
15
  options?: Core.RequestOptions,
16
16
  ): Core.PagePromise<PaymentsSinglePage, Payment> {
17
- return this.getAPIList('/employer/payment', PaymentsSinglePage, { query, ...options });
17
+ return this._client.getAPIList('/employer/payment', PaymentsSinglePage, { query, ...options });
18
18
  }
19
19
  }
20
20
 
@@ -1,5 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
+ export * from './shared';
3
4
  export { DisconnectResponse, Introspection, Account } from './account';
4
5
  export { Income, Location, Money, Paging, HRIS } from './hris/hris';
5
6
  export { Provider, ProvidersSinglePage, Providers } from './providers';
@@ -3,6 +3,7 @@
3
3
  import * as Core from "../core";
4
4
  import { APIResource } from "../resource";
5
5
  import * as ProvidersAPI from "./providers";
6
+ import * as BenefitsAPI from "./hris/benefits/benefits";
6
7
  import { SinglePage } from "../pagination";
7
8
 
8
9
  export class Providers extends APIResource {
@@ -10,7 +11,7 @@ export class Providers extends APIResource {
10
11
  * Return details on all available payroll and HR systems.
11
12
  */
12
13
  list(options?: Core.RequestOptions): Core.PagePromise<ProvidersSinglePage, Provider> {
13
- return this.getAPIList('/providers', ProvidersSinglePage, options);
14
+ return this._client.getAPIList('/providers', ProvidersSinglePage, options);
14
15
  }
15
16
  }
16
17
 
@@ -22,6 +23,11 @@ export interface Provider {
22
23
  */
23
24
  id?: string;
24
25
 
26
+ /**
27
+ * The list of authentication methods supported by the provider.
28
+ */
29
+ authentication_methods?: Array<Provider.AuthenticationMethod>;
30
+
25
31
  /**
26
32
  * The display name of the payroll provider.
27
33
  */
@@ -38,8 +44,9 @@ export interface Provider {
38
44
  logo?: string;
39
45
 
40
46
  /**
41
- * Whether the Finch integration with this provider uses the Assisted Connect Flow
42
- * by default.
47
+ * [DEPRECATED] Whether the Finch integration with this provider uses the Assisted
48
+ * Connect Flow by default. This field is now deprecated. Please check for a `type`
49
+ * of `assisted` in the `authentication_methods` field instead.
43
50
  */
44
51
  manual?: boolean;
45
52
 
@@ -59,6 +66,387 @@ export interface Provider {
59
66
  products?: Array<string>;
60
67
  }
61
68
 
69
+ export namespace Provider {
70
+ export interface AuthenticationMethod {
71
+ /**
72
+ * Each benefit type and their supported features. If the benefit type is not
73
+ * supported, the property will be null
74
+ */
75
+ benefits_support?: BenefitsAPI.BenefitsSupport | null;
76
+
77
+ /**
78
+ * The supported data fields returned by our HR and payroll endpoints
79
+ */
80
+ supported_fields?: AuthenticationMethod.SupportedFields | null;
81
+
82
+ /**
83
+ * The type of authentication method.
84
+ */
85
+ type?: 'assisted' | 'credential' | 'api_token' | 'api_credential' | 'oauth';
86
+ }
87
+
88
+ export namespace AuthenticationMethod {
89
+ /**
90
+ * The supported data fields returned by our HR and payroll endpoints
91
+ */
92
+ export interface SupportedFields {
93
+ company?: SupportedFields.Company;
94
+
95
+ directory?: SupportedFields.Directory;
96
+
97
+ employment?: SupportedFields.Employment;
98
+
99
+ individual?: SupportedFields.Individual;
100
+
101
+ pay_statement?: SupportedFields.PayStatement;
102
+
103
+ payment?: SupportedFields.Payment;
104
+ }
105
+
106
+ export namespace SupportedFields {
107
+ export interface Company {
108
+ id?: boolean;
109
+
110
+ accounts?: Company.Accounts;
111
+
112
+ departments?: Company.Departments;
113
+
114
+ ein?: boolean;
115
+
116
+ entity?: Company.Entity;
117
+
118
+ legal_name?: boolean;
119
+
120
+ locations?: Company.Locations;
121
+
122
+ primary_email?: boolean;
123
+
124
+ primary_phone_number?: boolean;
125
+ }
126
+
127
+ export namespace Company {
128
+ export interface Accounts {
129
+ account_name?: boolean;
130
+
131
+ account_number?: boolean;
132
+
133
+ account_type?: boolean;
134
+
135
+ institution_name?: boolean;
136
+
137
+ routing_number?: boolean;
138
+ }
139
+
140
+ export interface Departments {
141
+ name?: boolean;
142
+
143
+ parent?: Departments.Parent;
144
+ }
145
+
146
+ export namespace Departments {
147
+ export interface Parent {
148
+ name?: boolean;
149
+ }
150
+ }
151
+
152
+ export interface Entity {
153
+ subtype?: boolean;
154
+
155
+ type?: boolean;
156
+ }
157
+
158
+ export interface Locations {
159
+ city?: boolean;
160
+
161
+ country?: boolean;
162
+
163
+ line1?: boolean;
164
+
165
+ line2?: boolean;
166
+
167
+ postal_code?: boolean;
168
+
169
+ state?: boolean;
170
+ }
171
+ }
172
+
173
+ export interface Directory {
174
+ individuals?: Directory.Individuals;
175
+
176
+ paging?: Directory.Paging;
177
+ }
178
+
179
+ export namespace Directory {
180
+ export interface Individuals {
181
+ id?: boolean;
182
+
183
+ department?: boolean;
184
+
185
+ first_name?: boolean;
186
+
187
+ is_active?: boolean;
188
+
189
+ last_name?: boolean;
190
+
191
+ manager?: Individuals.Manager;
192
+
193
+ middle_name?: boolean;
194
+ }
195
+
196
+ export namespace Individuals {
197
+ export interface Manager {
198
+ id?: boolean;
199
+ }
200
+ }
201
+
202
+ export interface Paging {
203
+ count?: boolean;
204
+
205
+ offset?: boolean;
206
+ }
207
+ }
208
+
209
+ export interface Employment {
210
+ id?: boolean;
211
+
212
+ class_code?: boolean;
213
+
214
+ custom_fields?: boolean;
215
+
216
+ department?: Employment.Department;
217
+
218
+ employment?: Employment.Employment;
219
+
220
+ end_date?: boolean;
221
+
222
+ first_name?: boolean;
223
+
224
+ income?: Employment.Income;
225
+
226
+ income_history?: boolean;
227
+
228
+ is_active?: boolean;
229
+
230
+ last_name?: boolean;
231
+
232
+ location?: Employment.Location;
233
+
234
+ manager?: Employment.Manager;
235
+
236
+ middle_name?: boolean;
237
+
238
+ start_date?: boolean;
239
+
240
+ title?: boolean;
241
+ }
242
+
243
+ export namespace Employment {
244
+ export interface Department {
245
+ name?: boolean;
246
+ }
247
+
248
+ export interface Employment {
249
+ subtype?: boolean;
250
+
251
+ type?: boolean;
252
+ }
253
+
254
+ export interface Income {
255
+ amount?: boolean;
256
+
257
+ currency?: boolean;
258
+
259
+ unit?: boolean;
260
+ }
261
+
262
+ export interface Location {
263
+ city?: boolean;
264
+
265
+ country?: boolean;
266
+
267
+ line1?: boolean;
268
+
269
+ line2?: boolean;
270
+
271
+ postal_code?: boolean;
272
+
273
+ state?: boolean;
274
+ }
275
+
276
+ export interface Manager {
277
+ id?: boolean;
278
+ }
279
+ }
280
+
281
+ export interface Individual {
282
+ id?: boolean;
283
+
284
+ dob?: boolean;
285
+
286
+ emails?: Individual.Emails;
287
+
288
+ encrypted_ssn?: boolean;
289
+
290
+ ethnicity?: boolean;
291
+
292
+ first_name?: boolean;
293
+
294
+ gender?: boolean;
295
+
296
+ last_name?: boolean;
297
+
298
+ middle_name?: boolean;
299
+
300
+ phone_numbers?: Individual.PhoneNumbers;
301
+
302
+ preferred_name?: boolean;
303
+
304
+ residence?: Individual.Residence;
305
+
306
+ ssn?: boolean;
307
+ }
308
+
309
+ export namespace Individual {
310
+ export interface Emails {
311
+ data?: boolean;
312
+
313
+ type?: boolean;
314
+ }
315
+
316
+ export interface PhoneNumbers {
317
+ data?: boolean;
318
+
319
+ type?: boolean;
320
+ }
321
+
322
+ export interface Residence {
323
+ city?: boolean;
324
+
325
+ country?: boolean;
326
+
327
+ line1?: boolean;
328
+
329
+ line2?: boolean;
330
+
331
+ postal_code?: boolean;
332
+
333
+ state?: boolean;
334
+ }
335
+ }
336
+
337
+ export interface PayStatement {
338
+ paging?: PayStatement.Paging;
339
+
340
+ pay_statements?: PayStatement.PayStatements;
341
+ }
342
+
343
+ export namespace PayStatement {
344
+ export interface Paging {
345
+ count: boolean;
346
+
347
+ offset: boolean;
348
+ }
349
+
350
+ export interface PayStatements {
351
+ earnings?: PayStatements.Earnings;
352
+
353
+ employee_deductions?: PayStatements.EmployeeDeductions;
354
+
355
+ employer_deductions?: PayStatements.EmployerDeductions;
356
+
357
+ gross_pay?: boolean;
358
+
359
+ individual_id?: boolean;
360
+
361
+ net_pay?: boolean;
362
+
363
+ payment_method?: boolean;
364
+
365
+ taxes?: PayStatements.Taxes;
366
+
367
+ total_hours?: boolean;
368
+
369
+ type?: boolean;
370
+ }
371
+
372
+ export namespace PayStatements {
373
+ export interface Earnings {
374
+ amount?: boolean;
375
+
376
+ currency?: boolean;
377
+
378
+ name?: boolean;
379
+
380
+ type?: boolean;
381
+ }
382
+
383
+ export interface EmployeeDeductions {
384
+ amount?: boolean;
385
+
386
+ currency?: boolean;
387
+
388
+ name?: boolean;
389
+
390
+ pre_tax?: boolean;
391
+
392
+ type?: boolean;
393
+ }
394
+
395
+ export interface EmployerDeductions {
396
+ amount?: boolean;
397
+
398
+ currency?: boolean;
399
+
400
+ name?: boolean;
401
+ }
402
+
403
+ export interface Taxes {
404
+ amount?: boolean;
405
+
406
+ currency?: boolean;
407
+
408
+ employer?: boolean;
409
+
410
+ name?: boolean;
411
+
412
+ type?: boolean;
413
+ }
414
+ }
415
+ }
416
+
417
+ export interface Payment {
418
+ id?: boolean;
419
+
420
+ company_debit?: boolean;
421
+
422
+ debit_date?: boolean;
423
+
424
+ employee_taxes?: boolean;
425
+
426
+ employer_taxes?: boolean;
427
+
428
+ gross_pay?: boolean;
429
+
430
+ individual_ids?: boolean;
431
+
432
+ net_pay?: boolean;
433
+
434
+ pay_date?: boolean;
435
+
436
+ pay_period?: Payment.PayPeriod;
437
+ }
438
+
439
+ export namespace Payment {
440
+ export interface PayPeriod {
441
+ end_date?: boolean;
442
+
443
+ start_date?: boolean;
444
+ }
445
+ }
446
+ }
447
+ }
448
+ }
449
+
62
450
  export namespace Providers {
63
451
  export import Provider = ProvidersAPI.Provider;
64
452
  export import ProvidersSinglePage = ProvidersAPI.ProvidersSinglePage;
@@ -6,13 +6,16 @@ import * as RequestForwardingAPI from "./request-forwarding";
6
6
 
7
7
  export class RequestForwarding extends APIResource {
8
8
  /**
9
- * The Forward API allows you to make direct requests to an employment system.
9
+ * The Forward API allows you to make direct requests to an employment system. If
10
+ * Finch’s unified API doesn’t have a data model that cleanly fits your needs, then
11
+ * Forward allows you to push or pull data models directly against an integration’s
12
+ * API.
10
13
  */
11
14
  forward(
12
15
  body: RequestForwardingForwardParams,
13
16
  options?: Core.RequestOptions,
14
17
  ): Core.APIPromise<RequestForwardingForwardResponse> {
15
- return this.post('/forward', { body, ...options });
18
+ return this._client.post('/forward', { body, ...options });
16
19
  }
17
20
  }
18
21
 
@@ -64,7 +67,7 @@ export namespace RequestForwardingForwardResponse {
64
67
 
65
68
  /**
66
69
  * The HTTP method that was specified for the forwarded request. Valid values
67
- * include: `GET`, `POST`, `PUT` , `DELETE`, and `PATCH`.
70
+ * include: `GET` , `POST` , `PUT` , `DELETE` , and `PATCH`.
68
71
  */
69
72
  method: string;
70
73
 
@@ -83,8 +86,8 @@ export namespace RequestForwardingForwardResponse {
83
86
 
84
87
  export interface RequestForwardingForwardParams {
85
88
  /**
86
- * The HTTP method for the forwarded request. Valid values include: `GET`, `POST`,
87
- * `PUT`, `DELETE`, and `PATCH`.
89
+ * The HTTP method for the forwarded request. Valid values include: `GET` , `POST`
90
+ * , `PUT` , `DELETE` , and `PATCH`.
88
91
  */
89
92
  method: string;
90
93
 
@@ -0,0 +1,62 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+
3
+ /**
4
+ * - `supported`: This operation is supported by both the provider and Finch <br>
5
+ * - `not_supported_by_finch`: This operation is not supported by Finch but
6
+ * supported by the provider <br>
7
+ * - `not_supported_by_provider`: This operation is not supported by the provider,
8
+ * so Finch cannot support <br>
9
+ * - `client_access_only`: This behavior is supported by the provider, but only
10
+ * available to the client and not to Finch
11
+ */
12
+ export type OperationSupport =
13
+ | 'supported'
14
+ | 'not_supported_by_finch'
15
+ | 'not_supported_by_provider'
16
+ | 'client_access_only';
17
+
18
+ export interface OperationSupportMatrix {
19
+ /**
20
+ * - `supported`: This operation is supported by both the provider and Finch <br>
21
+ * - `not_supported_by_finch`: This operation is not supported by Finch but
22
+ * supported by the provider <br>
23
+ * - `not_supported_by_provider`: This operation is not supported by the provider,
24
+ * so Finch cannot support <br>
25
+ * - `client_access_only`: This behavior is supported by the provider, but only
26
+ * available to the client and not to Finch
27
+ */
28
+ create?: OperationSupport;
29
+
30
+ /**
31
+ * - `supported`: This operation is supported by both the provider and Finch <br>
32
+ * - `not_supported_by_finch`: This operation is not supported by Finch but
33
+ * supported by the provider <br>
34
+ * - `not_supported_by_provider`: This operation is not supported by the provider,
35
+ * so Finch cannot support <br>
36
+ * - `client_access_only`: This behavior is supported by the provider, but only
37
+ * available to the client and not to Finch
38
+ */
39
+ delete?: OperationSupport;
40
+
41
+ /**
42
+ * - `supported`: This operation is supported by both the provider and Finch <br>
43
+ * - `not_supported_by_finch`: This operation is not supported by Finch but
44
+ * supported by the provider <br>
45
+ * - `not_supported_by_provider`: This operation is not supported by the provider,
46
+ * so Finch cannot support <br>
47
+ * - `client_access_only`: This behavior is supported by the provider, but only
48
+ * available to the client and not to Finch
49
+ */
50
+ read?: OperationSupport;
51
+
52
+ /**
53
+ * - `supported`: This operation is supported by both the provider and Finch <br>
54
+ * - `not_supported_by_finch`: This operation is not supported by Finch but
55
+ * supported by the provider <br>
56
+ * - `not_supported_by_provider`: This operation is not supported by the provider,
57
+ * so Finch cannot support <br>
58
+ * - `client_access_only`: This behavior is supported by the provider, but only
59
+ * available to the client and not to Finch
60
+ */
61
+ update?: OperationSupport;
62
+ }
@@ -11,7 +11,7 @@ export class Webhooks extends APIResource {
11
11
  unwrap(
12
12
  payload: string,
13
13
  headers: HeadersLike,
14
- secret: string | undefined | null = this.client.webhookSecret,
14
+ secret: string | undefined | null = this._client.webhookSecret,
15
15
  ): Object {
16
16
  this.verifySignature(payload, headers, secret);
17
17
  return JSON.parse(payload);
@@ -86,7 +86,7 @@ export class Webhooks extends APIResource {
86
86
  verifySignature(
87
87
  body: string,
88
88
  headers: HeadersLike,
89
- secret: string | undefined | null = this.client.webhookSecret,
89
+ secret: string | undefined | null = this._client.webhookSecret,
90
90
  ): void {
91
91
  const parsedSecret = this.parseSecret(secret);
92
92
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '5.9.1'; // x-release-please-version
1
+ export const VERSION = '5.11.0'; // x-release-please-version