@tryfinch/finch-api 5.14.3 → 5.16.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.
- package/CHANGELOG.md +41 -0
- package/LICENSE +1 -1
- package/_shims/index.d.ts +1 -1
- package/_shims/registry.d.ts +1 -1
- package/_shims/registry.d.ts.map +1 -1
- package/core.d.ts +14 -12
- package/core.d.ts.map +1 -1
- package/core.js +43 -15
- package/core.js.map +1 -1
- package/core.mjs +43 -15
- package/core.mjs.map +1 -1
- package/index.d.mts +27 -1
- package/index.d.ts +27 -1
- package/index.d.ts.map +1 -1
- package/index.js +50 -5
- package/index.js.map +1 -1
- package/index.mjs +50 -5
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/access-tokens.d.ts +23 -0
- package/resources/access-tokens.d.ts.map +1 -0
- package/resources/access-tokens.js +17 -0
- package/resources/access-tokens.js.map +1 -0
- package/resources/access-tokens.mjs +13 -0
- package/resources/access-tokens.mjs.map +1 -0
- package/resources/account.d.ts +14 -0
- package/resources/account.d.ts.map +1 -1
- package/resources/account.js.map +1 -1
- package/resources/account.mjs.map +1 -1
- package/resources/index.d.ts +2 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/sandbox/company.d.ts +195 -0
- package/resources/sandbox/company.d.ts.map +1 -0
- package/resources/sandbox/company.js +17 -0
- package/resources/sandbox/company.js.map +1 -0
- package/resources/sandbox/company.mjs +13 -0
- package/resources/sandbox/company.mjs.map +1 -0
- package/resources/sandbox/connections/accounts.d.ts +51 -0
- package/resources/sandbox/connections/accounts.d.ts.map +1 -0
- package/resources/sandbox/connections/accounts.js +24 -0
- package/resources/sandbox/connections/accounts.js.map +1 -0
- package/resources/sandbox/connections/accounts.mjs +20 -0
- package/resources/sandbox/connections/accounts.mjs.map +1 -0
- package/resources/sandbox/connections/connections.d.ts +39 -0
- package/resources/sandbox/connections/connections.d.ts.map +1 -0
- package/resources/sandbox/connections/connections.js +46 -0
- package/resources/sandbox/connections/connections.js.map +1 -0
- package/resources/sandbox/connections/connections.mjs +19 -0
- package/resources/sandbox/connections/connections.mjs.map +1 -0
- package/resources/sandbox/connections/index.d.ts +3 -0
- package/resources/sandbox/connections/index.d.ts.map +1 -0
- package/resources/sandbox/connections/index.js +9 -0
- package/resources/sandbox/connections/index.js.map +1 -0
- package/resources/sandbox/connections/index.mjs +4 -0
- package/resources/sandbox/connections/index.mjs.map +1 -0
- package/resources/sandbox/directory.d.ts +156 -0
- package/resources/sandbox/directory.d.ts.map +1 -0
- package/resources/sandbox/directory.js +17 -0
- package/resources/sandbox/directory.js.map +1 -0
- package/resources/sandbox/directory.mjs +13 -0
- package/resources/sandbox/directory.mjs.map +1 -0
- package/resources/sandbox/employment.d.ts +216 -0
- package/resources/sandbox/employment.d.ts.map +1 -0
- package/resources/sandbox/employment.js +18 -0
- package/resources/sandbox/employment.js.map +1 -0
- package/resources/sandbox/employment.mjs +14 -0
- package/resources/sandbox/employment.mjs.map +1 -0
- package/resources/sandbox/index.d.ts +9 -0
- package/resources/sandbox/index.d.ts.map +1 -0
- package/resources/sandbox/index.js +21 -0
- package/resources/sandbox/index.js.map +1 -0
- package/resources/sandbox/index.mjs +10 -0
- package/resources/sandbox/index.mjs.map +1 -0
- package/resources/sandbox/individual.d.ts +124 -0
- package/resources/sandbox/individual.d.ts.map +1 -0
- package/resources/sandbox/individual.js +18 -0
- package/resources/sandbox/individual.js.map +1 -0
- package/resources/sandbox/individual.mjs +14 -0
- package/resources/sandbox/individual.mjs.map +1 -0
- package/resources/sandbox/jobs/configuration.d.ts +28 -0
- package/resources/sandbox/jobs/configuration.d.ts.map +1 -0
- package/resources/sandbox/jobs/configuration.js +23 -0
- package/resources/sandbox/jobs/configuration.js.map +1 -0
- package/resources/sandbox/jobs/configuration.mjs +19 -0
- package/resources/sandbox/jobs/configuration.mjs.map +1 -0
- package/resources/sandbox/jobs/index.d.ts +3 -0
- package/resources/sandbox/jobs/index.d.ts.map +1 -0
- package/resources/sandbox/jobs/index.js +9 -0
- package/resources/sandbox/jobs/index.js.map +1 -0
- package/resources/sandbox/jobs/index.mjs +4 -0
- package/resources/sandbox/jobs/index.mjs.map +1 -0
- package/resources/sandbox/jobs/jobs.d.ts +12 -0
- package/resources/sandbox/jobs/jobs.d.ts.map +1 -0
- package/resources/sandbox/jobs/jobs.js +40 -0
- package/resources/sandbox/jobs/jobs.js.map +1 -0
- package/resources/sandbox/jobs/jobs.mjs +13 -0
- package/resources/sandbox/jobs/jobs.mjs.map +1 -0
- package/resources/sandbox/payment.d.ts +154 -0
- package/resources/sandbox/payment.d.ts.map +1 -0
- package/resources/sandbox/payment.js +18 -0
- package/resources/sandbox/payment.js.map +1 -0
- package/resources/sandbox/payment.mjs +14 -0
- package/resources/sandbox/payment.mjs.map +1 -0
- package/resources/sandbox/sandbox.d.ts +39 -0
- package/resources/sandbox/sandbox.d.ts.map +1 -0
- package/resources/sandbox/sandbox.js +58 -0
- package/resources/sandbox/sandbox.js.map +1 -0
- package/resources/sandbox/sandbox.mjs +31 -0
- package/resources/sandbox/sandbox.mjs.map +1 -0
- package/resources/shared.d.ts +1 -0
- package/resources/shared.d.ts.map +1 -1
- package/src/_shims/index.d.ts +1 -1
- package/src/_shims/node-runtime.ts +1 -1
- package/src/_shims/registry.ts +1 -1
- package/src/_shims/web-runtime.ts +1 -1
- package/src/core.ts +69 -32
- package/src/index.ts +76 -4
- package/src/lib/.keep +4 -0
- package/src/resources/access-tokens.ts +36 -0
- package/src/resources/account.ts +19 -0
- package/src/resources/index.ts +2 -0
- package/src/resources/sandbox/company.ts +252 -0
- package/src/resources/sandbox/connections/accounts.ts +83 -0
- package/src/resources/sandbox/connections/connections.ts +58 -0
- package/src/resources/sandbox/connections/index.ts +10 -0
- package/src/resources/sandbox/directory.ts +210 -0
- package/src/resources/sandbox/employment.ts +279 -0
- package/src/resources/sandbox/index.ts +10 -0
- package/src/resources/sandbox/individual.ts +193 -0
- package/src/resources/sandbox/jobs/configuration.ts +44 -0
- package/src/resources/sandbox/jobs/index.ts +9 -0
- package/src/resources/sandbox/jobs/jobs.ts +15 -0
- package/src/resources/sandbox/payment.ts +215 -0
- package/src/resources/sandbox/sandbox.ts +42 -0
- package/src/resources/shared.ts +8 -0
- package/src/uploads.ts +2 -2
- package/src/version.ts +1 -1
- package/uploads.d.ts +2 -2
- package/uploads.d.ts.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import * as Core from '@tryfinch/finch-api/core';
|
|
2
|
+
import { APIResource } from '@tryfinch/finch-api/resource';
|
|
3
|
+
import * as IndividualAPI from '@tryfinch/finch-api/resources/sandbox/individual';
|
|
4
|
+
import * as HRISAPI from '@tryfinch/finch-api/resources/hris/hris';
|
|
5
|
+
export declare class Individual extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Update sandbox individual
|
|
8
|
+
*/
|
|
9
|
+
update(individualId: string, body?: IndividualUpdateParams, options?: Core.RequestOptions): Core.APIPromise<IndividualUpdateResponse>;
|
|
10
|
+
update(individualId: string, options?: Core.RequestOptions): Core.APIPromise<IndividualUpdateResponse>;
|
|
11
|
+
}
|
|
12
|
+
export interface IndividualUpdateResponse {
|
|
13
|
+
/**
|
|
14
|
+
* A stable Finch `id` (UUID v4) for an individual in the company.
|
|
15
|
+
*/
|
|
16
|
+
id?: string;
|
|
17
|
+
dob?: string | null;
|
|
18
|
+
emails?: Array<IndividualUpdateResponse.Email> | null;
|
|
19
|
+
/**
|
|
20
|
+
* Social Security Number of the individual in **encrypted** format. This field is
|
|
21
|
+
* only available with the `ssn` scope enabled and the
|
|
22
|
+
* `options: { include: ['ssn'] }` param set in the body.
|
|
23
|
+
*/
|
|
24
|
+
encrypted_ssn?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* The EEOC-defined ethnicity of the individual.
|
|
27
|
+
*/
|
|
28
|
+
ethnicity?: 'asian' | 'white' | 'black_or_african_american' | 'native_hawaiian_or_pacific_islander' | 'american_indian_or_alaska_native' | 'hispanic_or_latino' | 'two_or_more_races' | 'decline_to_specify' | null;
|
|
29
|
+
/**
|
|
30
|
+
* The legal first name of the individual.
|
|
31
|
+
*/
|
|
32
|
+
first_name?: string | null;
|
|
33
|
+
/**
|
|
34
|
+
* The gender of the individual.
|
|
35
|
+
*/
|
|
36
|
+
gender?: 'female' | 'male' | 'other' | 'decline_to_specify' | null;
|
|
37
|
+
/**
|
|
38
|
+
* The legal last name of the individual.
|
|
39
|
+
*/
|
|
40
|
+
last_name?: string | null;
|
|
41
|
+
/**
|
|
42
|
+
* The legal middle name of the individual.
|
|
43
|
+
*/
|
|
44
|
+
middle_name?: string | null;
|
|
45
|
+
phone_numbers?: Array<IndividualUpdateResponse.PhoneNumber | null> | null;
|
|
46
|
+
/**
|
|
47
|
+
* The preferred name of the individual.
|
|
48
|
+
*/
|
|
49
|
+
preferred_name?: string | null;
|
|
50
|
+
residence?: HRISAPI.Location | null;
|
|
51
|
+
/**
|
|
52
|
+
* Social Security Number of the individual. This field is only available with the
|
|
53
|
+
* `ssn` scope enabled and the `options: { include: ['ssn'] }` param set in the
|
|
54
|
+
* body.
|
|
55
|
+
*/
|
|
56
|
+
ssn?: string | null;
|
|
57
|
+
}
|
|
58
|
+
export declare namespace IndividualUpdateResponse {
|
|
59
|
+
interface Email {
|
|
60
|
+
data?: string;
|
|
61
|
+
type?: 'work' | 'personal';
|
|
62
|
+
}
|
|
63
|
+
interface PhoneNumber {
|
|
64
|
+
data?: string;
|
|
65
|
+
type?: 'work' | 'personal';
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
export interface IndividualUpdateParams {
|
|
69
|
+
dob?: string | null;
|
|
70
|
+
emails?: Array<IndividualUpdateParams.Email> | null;
|
|
71
|
+
/**
|
|
72
|
+
* Social Security Number of the individual in **encrypted** format. This field is
|
|
73
|
+
* only available with the `ssn` scope enabled and the
|
|
74
|
+
* `options: { include: ['ssn'] }` param set in the body.
|
|
75
|
+
*/
|
|
76
|
+
encrypted_ssn?: string | null;
|
|
77
|
+
/**
|
|
78
|
+
* The EEOC-defined ethnicity of the individual.
|
|
79
|
+
*/
|
|
80
|
+
ethnicity?: 'asian' | 'white' | 'black_or_african_american' | 'native_hawaiian_or_pacific_islander' | 'american_indian_or_alaska_native' | 'hispanic_or_latino' | 'two_or_more_races' | 'decline_to_specify' | null;
|
|
81
|
+
/**
|
|
82
|
+
* The legal first name of the individual.
|
|
83
|
+
*/
|
|
84
|
+
first_name?: string | null;
|
|
85
|
+
/**
|
|
86
|
+
* The gender of the individual.
|
|
87
|
+
*/
|
|
88
|
+
gender?: 'female' | 'male' | 'other' | 'decline_to_specify' | null;
|
|
89
|
+
/**
|
|
90
|
+
* The legal last name of the individual.
|
|
91
|
+
*/
|
|
92
|
+
last_name?: string | null;
|
|
93
|
+
/**
|
|
94
|
+
* The legal middle name of the individual.
|
|
95
|
+
*/
|
|
96
|
+
middle_name?: string | null;
|
|
97
|
+
phone_numbers?: Array<IndividualUpdateParams.PhoneNumber | null> | null;
|
|
98
|
+
/**
|
|
99
|
+
* The preferred name of the individual.
|
|
100
|
+
*/
|
|
101
|
+
preferred_name?: string | null;
|
|
102
|
+
residence?: HRISAPI.Location | null;
|
|
103
|
+
/**
|
|
104
|
+
* Social Security Number of the individual. This field is only available with the
|
|
105
|
+
* `ssn` scope enabled and the `options: { include: ['ssn'] }` param set in the
|
|
106
|
+
* body.
|
|
107
|
+
*/
|
|
108
|
+
ssn?: string | null;
|
|
109
|
+
}
|
|
110
|
+
export declare namespace IndividualUpdateParams {
|
|
111
|
+
interface Email {
|
|
112
|
+
data?: string;
|
|
113
|
+
type?: 'work' | 'personal';
|
|
114
|
+
}
|
|
115
|
+
interface PhoneNumber {
|
|
116
|
+
data?: string;
|
|
117
|
+
type?: 'work' | 'personal';
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
export declare namespace Individual {
|
|
121
|
+
export import IndividualUpdateResponse = IndividualAPI.IndividualUpdateResponse;
|
|
122
|
+
export import IndividualUpdateParams = IndividualAPI.IndividualUpdateParams;
|
|
123
|
+
}
|
|
124
|
+
//# sourceMappingURL=individual.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"individual.d.ts","sourceRoot":"","sources":["../../src/resources/sandbox/individual.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,OAAO,KAAK,aAAa,MAAM,kDAAkD,CAAC;AAClF,OAAO,KAAK,OAAO,MAAM,yCAAyC,CAAC;AAEnE,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,IAAI,CAAC,EAAE,sBAAsB,EAC7B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,wBAAwB,CAAC;IAC5C,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,wBAAwB,CAAC;CAWvG;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpB,MAAM,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;IAEtD;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B;;OAEG;IACH,SAAS,CAAC,EACN,OAAO,GACP,OAAO,GACP,2BAA2B,GAC3B,qCAAqC,GACrC,kCAAkC,GAClC,oBAAoB,GACpB,mBAAmB,GACnB,oBAAoB,GAC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,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,MAAM,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,oBAAoB,GAAG,IAAI,CAAC;IAEnE;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,aAAa,CAAC,EAAE,KAAK,CAAC,sBAAsB,CAAC,WAAW,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;IAExE;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B,SAAS,CAAC,EAAE,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;IAEpC;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAED,yBAAiB,sBAAsB,CAAC;IACtC,UAAiB,KAAK;QACpB,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;KAC5B;IAED,UAAiB,WAAW;QAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;KAC5B;CACF;AAED,yBAAiB,UAAU,CAAC;IAC1B,MAAM,QAAQ,wBAAwB,GAAG,aAAa,CAAC,wBAAwB,CAAC;IAChF,MAAM,QAAQ,sBAAsB,GAAG,aAAa,CAAC,sBAAsB,CAAC;CAC7E"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Individual = void 0;
|
|
5
|
+
const resource_1 = require("@tryfinch/finch-api/resource");
|
|
6
|
+
const core_1 = require("@tryfinch/finch-api/core");
|
|
7
|
+
class Individual extends resource_1.APIResource {
|
|
8
|
+
update(individualId, body = {}, options) {
|
|
9
|
+
if ((0, core_1.isRequestOptions)(body)) {
|
|
10
|
+
return this.update(individualId, {}, body);
|
|
11
|
+
}
|
|
12
|
+
return this._client.put(`/sandbox/individual/${individualId}`, { body, ...options });
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.Individual = Individual;
|
|
16
|
+
(function (Individual) {
|
|
17
|
+
})(Individual = exports.Individual || (exports.Individual = {}));
|
|
18
|
+
//# sourceMappingURL=individual.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"individual.js","sourceRoot":"","sources":["../../src/resources/sandbox/individual.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,2DAA2D;AAC3D,mDAA4D;AAI5D,MAAa,UAAW,SAAQ,sBAAW;IAUzC,MAAM,CACJ,YAAoB,EACpB,OAAqD,EAAE,EACvD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;SAC5C;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF;AApBD,gCAoBC;AAiKD,WAAiB,UAAU;AAG3B,CAAC,EAHgB,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAG1B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
import { APIResource } from '@tryfinch/finch-api/resource';
|
|
3
|
+
import { isRequestOptions } from '@tryfinch/finch-api/core';
|
|
4
|
+
export class Individual extends APIResource {
|
|
5
|
+
update(individualId, body = {}, options) {
|
|
6
|
+
if (isRequestOptions(body)) {
|
|
7
|
+
return this.update(individualId, {}, body);
|
|
8
|
+
}
|
|
9
|
+
return this._client.put(`/sandbox/individual/${individualId}`, { body, ...options });
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
(function (Individual) {
|
|
13
|
+
})(Individual || (Individual = {}));
|
|
14
|
+
//# sourceMappingURL=individual.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"individual.mjs","sourceRoot":"","sources":["../../src/resources/sandbox/individual.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,8BAA8B;OACnD,EAAE,gBAAgB,EAAE,MAAM,0BAA0B;AAI3D,MAAM,OAAO,UAAW,SAAQ,WAAW;IAUzC,MAAM,CACJ,YAAoB,EACpB,OAAqD,EAAE,EACvD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;SAC5C;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF;AAiKD,WAAiB,UAAU;AAG3B,CAAC,EAHgB,UAAU,KAAV,UAAU,QAG1B"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as Core from '@tryfinch/finch-api/core';
|
|
2
|
+
import { APIResource } from '@tryfinch/finch-api/resource';
|
|
3
|
+
import * as ConfigurationAPI from '@tryfinch/finch-api/resources/sandbox/jobs/configuration';
|
|
4
|
+
export declare class Configuration extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get configurations for sandbox jobs
|
|
7
|
+
*/
|
|
8
|
+
retrieve(options?: Core.RequestOptions): Core.APIPromise<ConfigurationRetrieveResponse>;
|
|
9
|
+
/**
|
|
10
|
+
* Update configurations for sandbox jobs
|
|
11
|
+
*/
|
|
12
|
+
update(body: ConfigurationUpdateParams, options?: Core.RequestOptions): Core.APIPromise<SandboxJobConfiguration>;
|
|
13
|
+
}
|
|
14
|
+
export interface SandboxJobConfiguration {
|
|
15
|
+
completion_status: 'complete' | 'reauth_error' | 'permissions_error' | 'error';
|
|
16
|
+
type: 'data_sync_all';
|
|
17
|
+
}
|
|
18
|
+
export type ConfigurationRetrieveResponse = Array<SandboxJobConfiguration>;
|
|
19
|
+
export interface ConfigurationUpdateParams {
|
|
20
|
+
completion_status: 'complete' | 'reauth_error' | 'permissions_error' | 'error';
|
|
21
|
+
type: 'data_sync_all';
|
|
22
|
+
}
|
|
23
|
+
export declare namespace Configuration {
|
|
24
|
+
export import SandboxJobConfiguration = ConfigurationAPI.SandboxJobConfiguration;
|
|
25
|
+
export import ConfigurationRetrieveResponse = ConfigurationAPI.ConfigurationRetrieveResponse;
|
|
26
|
+
export import ConfigurationUpdateParams = ConfigurationAPI.ConfigurationUpdateParams;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=configuration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../src/resources/sandbox/jobs/configuration.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,KAAK,gBAAgB,MAAM,0DAA0D,CAAC;AAE7F,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAIvF;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,uBAAuB,CAAC;CAG5C;AAED,MAAM,WAAW,uBAAuB;IACtC,iBAAiB,EAAE,UAAU,GAAG,cAAc,GAAG,mBAAmB,GAAG,OAAO,CAAC;IAE/E,IAAI,EAAE,eAAe,CAAC;CACvB;AAED,MAAM,MAAM,6BAA6B,GAAG,KAAK,CAAC,uBAAuB,CAAC,CAAC;AAE3E,MAAM,WAAW,yBAAyB;IACxC,iBAAiB,EAAE,UAAU,GAAG,cAAc,GAAG,mBAAmB,GAAG,OAAO,CAAC;IAE/E,IAAI,EAAE,eAAe,CAAC;CACvB;AAED,yBAAiB,aAAa,CAAC;IAC7B,MAAM,QAAQ,uBAAuB,GAAG,gBAAgB,CAAC,uBAAuB,CAAC;IACjF,MAAM,QAAQ,6BAA6B,GAAG,gBAAgB,CAAC,6BAA6B,CAAC;IAC7F,MAAM,QAAQ,yBAAyB,GAAG,gBAAgB,CAAC,yBAAyB,CAAC;CACtF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Configuration = void 0;
|
|
5
|
+
const resource_1 = require("@tryfinch/finch-api/resource");
|
|
6
|
+
class Configuration extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Get configurations for sandbox jobs
|
|
9
|
+
*/
|
|
10
|
+
retrieve(options) {
|
|
11
|
+
return this._client.get('/sandbox/jobs/configuration', options);
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Update configurations for sandbox jobs
|
|
15
|
+
*/
|
|
16
|
+
update(body, options) {
|
|
17
|
+
return this._client.put('/sandbox/jobs/configuration', { body, ...options });
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.Configuration = Configuration;
|
|
21
|
+
(function (Configuration) {
|
|
22
|
+
})(Configuration = exports.Configuration || (exports.Configuration = {}));
|
|
23
|
+
//# sourceMappingURL=configuration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../src/resources/sandbox/jobs/configuration.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,2DAA2D;AAG3D,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;OAEG;IACH,QAAQ,CAAC,OAA6B;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,IAA+B,EAC/B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF;AAjBD,sCAiBC;AAgBD,WAAiB,aAAa;AAI9B,CAAC,EAJgB,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAI7B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
import { APIResource } from '@tryfinch/finch-api/resource';
|
|
3
|
+
export class Configuration extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Get configurations for sandbox jobs
|
|
6
|
+
*/
|
|
7
|
+
retrieve(options) {
|
|
8
|
+
return this._client.get('/sandbox/jobs/configuration', options);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Update configurations for sandbox jobs
|
|
12
|
+
*/
|
|
13
|
+
update(body, options) {
|
|
14
|
+
return this._client.put('/sandbox/jobs/configuration', { body, ...options });
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
(function (Configuration) {
|
|
18
|
+
})(Configuration || (Configuration = {}));
|
|
19
|
+
//# sourceMappingURL=configuration.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configuration.mjs","sourceRoot":"","sources":["../../../src/resources/sandbox/jobs/configuration.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,8BAA8B;AAG1D,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,QAAQ,CAAC,OAA6B;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,IAA+B,EAC/B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF;AAgBD,WAAiB,aAAa;AAI9B,CAAC,EAJgB,aAAa,KAAb,aAAa,QAI7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/sandbox/jobs/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EACL,uBAAuB,EACvB,6BAA6B,EAC7B,yBAAyB,EACzB,aAAa,GACd,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Configuration = exports.Jobs = void 0;
|
|
5
|
+
var jobs_1 = require("./jobs.js");
|
|
6
|
+
Object.defineProperty(exports, "Jobs", { enumerable: true, get: function () { return jobs_1.Jobs; } });
|
|
7
|
+
var configuration_1 = require("./configuration.js");
|
|
8
|
+
Object.defineProperty(exports, "Configuration", { enumerable: true, get: function () { return configuration_1.Configuration; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/sandbox/jobs/index.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAErD,kCAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,oDAKyB;AADvB,8GAAA,aAAa,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/sandbox/jobs/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAE9C,EAAE,IAAI,EAAE;OACR,EAIL,aAAa,GACd"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { APIResource } from '@tryfinch/finch-api/resource';
|
|
2
|
+
import * as ConfigurationAPI from '@tryfinch/finch-api/resources/sandbox/jobs/configuration';
|
|
3
|
+
export declare class Jobs extends APIResource {
|
|
4
|
+
configuration: ConfigurationAPI.Configuration;
|
|
5
|
+
}
|
|
6
|
+
export declare namespace Jobs {
|
|
7
|
+
export import Configuration = ConfigurationAPI.Configuration;
|
|
8
|
+
export import SandboxJobConfiguration = ConfigurationAPI.SandboxJobConfiguration;
|
|
9
|
+
export import ConfigurationRetrieveResponse = ConfigurationAPI.ConfigurationRetrieveResponse;
|
|
10
|
+
export import ConfigurationUpdateParams = ConfigurationAPI.ConfigurationUpdateParams;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=jobs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jobs.d.ts","sourceRoot":"","sources":["../../../src/resources/sandbox/jobs/jobs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,KAAK,gBAAgB,MAAM,0DAA0D,CAAC;AAE7F,qBAAa,IAAK,SAAQ,WAAW;IACnC,aAAa,EAAE,gBAAgB,CAAC,aAAa,CAAoD;CAClG;AAED,yBAAiB,IAAI,CAAC;IACpB,MAAM,QAAQ,aAAa,GAAG,gBAAgB,CAAC,aAAa,CAAC;IAC7D,MAAM,QAAQ,uBAAuB,GAAG,gBAAgB,CAAC,uBAAuB,CAAC;IACjF,MAAM,QAAQ,6BAA6B,GAAG,gBAAgB,CAAC,6BAA6B,CAAC;IAC7F,MAAM,QAAQ,yBAAyB,GAAG,gBAAgB,CAAC,yBAAyB,CAAC;CACtF"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.Jobs = void 0;
|
|
28
|
+
const resource_1 = require("@tryfinch/finch-api/resource");
|
|
29
|
+
const ConfigurationAPI = __importStar(require("@tryfinch/finch-api/resources/sandbox/jobs/configuration"));
|
|
30
|
+
class Jobs extends resource_1.APIResource {
|
|
31
|
+
constructor() {
|
|
32
|
+
super(...arguments);
|
|
33
|
+
this.configuration = new ConfigurationAPI.Configuration(this._client);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.Jobs = Jobs;
|
|
37
|
+
(function (Jobs) {
|
|
38
|
+
Jobs.Configuration = ConfigurationAPI.Configuration;
|
|
39
|
+
})(Jobs = exports.Jobs || (exports.Jobs = {}));
|
|
40
|
+
//# sourceMappingURL=jobs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jobs.js","sourceRoot":"","sources":["../../../src/resources/sandbox/jobs/jobs.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;AAErD,2DAA2D;AAC3D,2GAA6F;AAE7F,MAAa,IAAK,SAAQ,sBAAW;IAArC;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACnG,CAAC;CAAA;AAFD,oBAEC;AAED,WAAiB,IAAI;IACL,kBAAa,GAAG,gBAAgB,CAAC,aAAa,CAAC;AAI/D,CAAC,EALgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAKpB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
import { APIResource } from '@tryfinch/finch-api/resource';
|
|
3
|
+
import * as ConfigurationAPI from '@tryfinch/finch-api/resources/sandbox/jobs/configuration';
|
|
4
|
+
export class Jobs extends APIResource {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(...arguments);
|
|
7
|
+
this.configuration = new ConfigurationAPI.Configuration(this._client);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
(function (Jobs) {
|
|
11
|
+
Jobs.Configuration = ConfigurationAPI.Configuration;
|
|
12
|
+
})(Jobs || (Jobs = {}));
|
|
13
|
+
//# sourceMappingURL=jobs.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jobs.mjs","sourceRoot":"","sources":["../../../src/resources/sandbox/jobs/jobs.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAE9C,EAAE,WAAW,EAAE,MAAM,8BAA8B;OACnD,KAAK,gBAAgB,MAAM,0DAA0D;AAE5F,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACnG,CAAC;CAAA;AAED,WAAiB,IAAI;IACL,kBAAa,GAAG,gBAAgB,CAAC,aAAa,CAAC;AAI/D,CAAC,EALgB,IAAI,KAAJ,IAAI,QAKpB"}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import * as Core from '@tryfinch/finch-api/core';
|
|
2
|
+
import { APIResource } from '@tryfinch/finch-api/resource';
|
|
3
|
+
import * as PaymentAPI from '@tryfinch/finch-api/resources/sandbox/payment';
|
|
4
|
+
import * as HRISAPI from '@tryfinch/finch-api/resources/hris/hris';
|
|
5
|
+
import * as BenefitsAPI from '@tryfinch/finch-api/resources/hris/benefits/benefits';
|
|
6
|
+
export declare class Payment extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Add a new sandbox payment
|
|
9
|
+
*/
|
|
10
|
+
create(body?: PaymentCreateParams, options?: Core.RequestOptions): Core.APIPromise<PaymentCreateResponse>;
|
|
11
|
+
create(options?: Core.RequestOptions): Core.APIPromise<PaymentCreateResponse>;
|
|
12
|
+
}
|
|
13
|
+
export interface PaymentCreateResponse {
|
|
14
|
+
/**
|
|
15
|
+
* The date of the payment.
|
|
16
|
+
*/
|
|
17
|
+
pay_date: string;
|
|
18
|
+
/**
|
|
19
|
+
* The ID of the payment.
|
|
20
|
+
*/
|
|
21
|
+
payment_id: string;
|
|
22
|
+
}
|
|
23
|
+
export interface PaymentCreateParams {
|
|
24
|
+
end_date?: string;
|
|
25
|
+
pay_statements?: Array<PaymentCreateParams.PayStatement>;
|
|
26
|
+
start_date?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare namespace PaymentCreateParams {
|
|
29
|
+
interface PayStatement {
|
|
30
|
+
/**
|
|
31
|
+
* The array of earnings objects associated with this pay statement
|
|
32
|
+
*/
|
|
33
|
+
earnings?: Array<PayStatement.Earning | null> | null;
|
|
34
|
+
/**
|
|
35
|
+
* The array of deductions objects associated with this pay statement.
|
|
36
|
+
*/
|
|
37
|
+
employee_deductions?: Array<PayStatement.EmployeeDeduction | null> | null;
|
|
38
|
+
employer_contributions?: Array<PayStatement.EmployerContribution | null> | null;
|
|
39
|
+
gross_pay?: HRISAPI.Money | null;
|
|
40
|
+
/**
|
|
41
|
+
* A stable Finch `id` (UUID v4) for an individual in the company
|
|
42
|
+
*/
|
|
43
|
+
individual_id?: string;
|
|
44
|
+
net_pay?: HRISAPI.Money | null;
|
|
45
|
+
/**
|
|
46
|
+
* The payment method.
|
|
47
|
+
*/
|
|
48
|
+
payment_method?: 'check' | 'direct_deposit' | null;
|
|
49
|
+
/**
|
|
50
|
+
* The array of taxes objects associated with this pay statement.
|
|
51
|
+
*/
|
|
52
|
+
taxes?: Array<PayStatement.Tax | null> | null;
|
|
53
|
+
/**
|
|
54
|
+
* The number of hours worked for this pay period
|
|
55
|
+
*/
|
|
56
|
+
total_hours?: number | null;
|
|
57
|
+
/**
|
|
58
|
+
* The type of the payment associated with the pay statement.
|
|
59
|
+
*/
|
|
60
|
+
type?: 'regular_payroll' | 'off_cycle_payroll' | 'one_time_payment' | null;
|
|
61
|
+
}
|
|
62
|
+
namespace PayStatement {
|
|
63
|
+
interface Earning {
|
|
64
|
+
/**
|
|
65
|
+
* The earnings amount in cents.
|
|
66
|
+
*/
|
|
67
|
+
amount?: number | null;
|
|
68
|
+
/**
|
|
69
|
+
* The earnings currency code.
|
|
70
|
+
*/
|
|
71
|
+
currency?: string | null;
|
|
72
|
+
/**
|
|
73
|
+
* The number of hours associated with this earning. (For salaried employees, this
|
|
74
|
+
* could be hours per pay period, `0` or `null`, depending on the provider).
|
|
75
|
+
*/
|
|
76
|
+
hours?: number | null;
|
|
77
|
+
/**
|
|
78
|
+
* The exact name of the deduction from the pay statement.
|
|
79
|
+
*/
|
|
80
|
+
name?: string | null;
|
|
81
|
+
/**
|
|
82
|
+
* The type of earning.
|
|
83
|
+
*/
|
|
84
|
+
type?: 'salary' | 'wage' | 'reimbursement' | 'overtime' | 'severance' | 'double_overtime' | 'pto' | 'sick' | 'bonus' | 'commission' | 'tips' | '1099' | 'other' | null;
|
|
85
|
+
}
|
|
86
|
+
interface EmployeeDeduction {
|
|
87
|
+
/**
|
|
88
|
+
* The deduction amount in cents.
|
|
89
|
+
*/
|
|
90
|
+
amount?: number | null;
|
|
91
|
+
/**
|
|
92
|
+
* The deduction currency.
|
|
93
|
+
*/
|
|
94
|
+
currency?: string | null;
|
|
95
|
+
/**
|
|
96
|
+
* The deduction name from the pay statement.
|
|
97
|
+
*/
|
|
98
|
+
name?: string | null;
|
|
99
|
+
/**
|
|
100
|
+
* Boolean indicating if the deduction is pre-tax.
|
|
101
|
+
*/
|
|
102
|
+
pre_tax?: boolean | null;
|
|
103
|
+
/**
|
|
104
|
+
* Type of benefit.
|
|
105
|
+
*/
|
|
106
|
+
type?: BenefitsAPI.BenefitType | null;
|
|
107
|
+
}
|
|
108
|
+
interface EmployerContribution {
|
|
109
|
+
/**
|
|
110
|
+
* The contribution amount in cents.
|
|
111
|
+
*/
|
|
112
|
+
amount?: number | null;
|
|
113
|
+
/**
|
|
114
|
+
* The contribution currency.
|
|
115
|
+
*/
|
|
116
|
+
currency?: string | null;
|
|
117
|
+
/**
|
|
118
|
+
* The contribution name from the pay statement.
|
|
119
|
+
*/
|
|
120
|
+
name?: string | null;
|
|
121
|
+
/**
|
|
122
|
+
* Type of benefit.
|
|
123
|
+
*/
|
|
124
|
+
type?: BenefitsAPI.BenefitType | null;
|
|
125
|
+
}
|
|
126
|
+
interface Tax {
|
|
127
|
+
/**
|
|
128
|
+
* The tax amount in cents.
|
|
129
|
+
*/
|
|
130
|
+
amount?: number | null;
|
|
131
|
+
/**
|
|
132
|
+
* The currency code.
|
|
133
|
+
*/
|
|
134
|
+
currency?: string | null;
|
|
135
|
+
/**
|
|
136
|
+
* `true` if the amount is paid by the employers.
|
|
137
|
+
*/
|
|
138
|
+
employer?: boolean | null;
|
|
139
|
+
/**
|
|
140
|
+
* The exact name of tax from the pay statement.
|
|
141
|
+
*/
|
|
142
|
+
name?: string | null;
|
|
143
|
+
/**
|
|
144
|
+
* The type of taxes.
|
|
145
|
+
*/
|
|
146
|
+
type?: 'state' | 'federal' | 'local' | 'fica' | null;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
export declare namespace Payment {
|
|
151
|
+
export import PaymentCreateResponse = PaymentAPI.PaymentCreateResponse;
|
|
152
|
+
export import PaymentCreateParams = PaymentAPI.PaymentCreateParams;
|
|
153
|
+
}
|
|
154
|
+
//# sourceMappingURL=payment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment.d.ts","sourceRoot":"","sources":["../../src/resources/sandbox/payment.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,OAAO,KAAK,UAAU,MAAM,+CAA+C,CAAC;AAC5E,OAAO,KAAK,OAAO,MAAM,yCAAyC,CAAC;AACnE,OAAO,KAAK,WAAW,MAAM,sDAAsD,CAAC;AAEpF,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAI,CAAC,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,qBAAqB,CAAC;IACzG,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,qBAAqB,CAAC;CAU9E;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,QAAQ,EAAE,MAA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AAG,IAAI,CAAC;YAErB;;eAEG;YACH,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,IAAI,CAAC;SACtD;KACF;CACF;AAED,yBAAiB,OAAO,CAAC;IACvB,MAAM,QAAQ,qBAAqB,GAAG,UAAU,CAAC,qBAAqB,CAAC;IACvE,MAAM,QAAQ,mBAAmB,GAAG,UAAU,CAAC,mBAAmB,CAAC;CACpE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Payment = void 0;
|
|
5
|
+
const resource_1 = require("@tryfinch/finch-api/resource");
|
|
6
|
+
const core_1 = require("@tryfinch/finch-api/core");
|
|
7
|
+
class Payment extends resource_1.APIResource {
|
|
8
|
+
create(body = {}, options) {
|
|
9
|
+
if ((0, core_1.isRequestOptions)(body)) {
|
|
10
|
+
return this.create({}, body);
|
|
11
|
+
}
|
|
12
|
+
return this._client.post('/sandbox/payment', { body, ...options });
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.Payment = Payment;
|
|
16
|
+
(function (Payment) {
|
|
17
|
+
})(Payment = exports.Payment || (exports.Payment = {}));
|
|
18
|
+
//# sourceMappingURL=payment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment.js","sourceRoot":"","sources":["../../src/resources/sandbox/payment.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,2DAA2D;AAC3D,mDAA4D;AAK5D,MAAa,OAAQ,SAAQ,sBAAW;IAMtC,MAAM,CACJ,OAAkD,EAAE,EACpD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;SAC9B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;CACF;AAfD,0BAeC;AA2LD,WAAiB,OAAO;AAGxB,CAAC,EAHgB,OAAO,GAAP,eAAO,KAAP,eAAO,QAGvB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
import { APIResource } from '@tryfinch/finch-api/resource';
|
|
3
|
+
import { isRequestOptions } from '@tryfinch/finch-api/core';
|
|
4
|
+
export class Payment extends APIResource {
|
|
5
|
+
create(body = {}, options) {
|
|
6
|
+
if (isRequestOptions(body)) {
|
|
7
|
+
return this.create({}, body);
|
|
8
|
+
}
|
|
9
|
+
return this._client.post('/sandbox/payment', { body, ...options });
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
(function (Payment) {
|
|
13
|
+
})(Payment || (Payment = {}));
|
|
14
|
+
//# sourceMappingURL=payment.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment.mjs","sourceRoot":"","sources":["../../src/resources/sandbox/payment.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,8BAA8B;OACnD,EAAE,gBAAgB,EAAE,MAAM,0BAA0B;AAK3D,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAMtC,MAAM,CACJ,OAAkD,EAAE,EACpD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;SAC9B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;CACF;AA2LD,WAAiB,OAAO;AAGxB,CAAC,EAHgB,OAAO,KAAP,OAAO,QAGvB"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { APIResource } from '@tryfinch/finch-api/resource';
|
|
2
|
+
import * as CompanyAPI from '@tryfinch/finch-api/resources/sandbox/company';
|
|
3
|
+
import * as DirectoryAPI from '@tryfinch/finch-api/resources/sandbox/directory';
|
|
4
|
+
import * as EmploymentAPI from '@tryfinch/finch-api/resources/sandbox/employment';
|
|
5
|
+
import * as IndividualAPI from '@tryfinch/finch-api/resources/sandbox/individual';
|
|
6
|
+
import * as PaymentAPI from '@tryfinch/finch-api/resources/sandbox/payment';
|
|
7
|
+
import * as ConnectionsAPI from '@tryfinch/finch-api/resources/sandbox/connections/connections';
|
|
8
|
+
import * as JobsAPI from '@tryfinch/finch-api/resources/sandbox/jobs/jobs';
|
|
9
|
+
export declare class Sandbox extends APIResource {
|
|
10
|
+
connections: ConnectionsAPI.Connections;
|
|
11
|
+
company: CompanyAPI.Company;
|
|
12
|
+
directory: DirectoryAPI.Directory;
|
|
13
|
+
individual: IndividualAPI.Individual;
|
|
14
|
+
employment: EmploymentAPI.Employment;
|
|
15
|
+
payment: PaymentAPI.Payment;
|
|
16
|
+
jobs: JobsAPI.Jobs;
|
|
17
|
+
}
|
|
18
|
+
export declare namespace Sandbox {
|
|
19
|
+
export import Connections = ConnectionsAPI.Connections;
|
|
20
|
+
export import ConnectionCreateResponse = ConnectionsAPI.ConnectionCreateResponse;
|
|
21
|
+
export import ConnectionCreateParams = ConnectionsAPI.ConnectionCreateParams;
|
|
22
|
+
export import Company = CompanyAPI.Company;
|
|
23
|
+
export import CompanyUpdateResponse = CompanyAPI.CompanyUpdateResponse;
|
|
24
|
+
export import CompanyUpdateParams = CompanyAPI.CompanyUpdateParams;
|
|
25
|
+
export import Directory = DirectoryAPI.Directory;
|
|
26
|
+
export import DirectoryCreateResponse = DirectoryAPI.DirectoryCreateResponse;
|
|
27
|
+
export import DirectoryCreateParams = DirectoryAPI.DirectoryCreateParams;
|
|
28
|
+
export import Individual = IndividualAPI.Individual;
|
|
29
|
+
export import IndividualUpdateResponse = IndividualAPI.IndividualUpdateResponse;
|
|
30
|
+
export import IndividualUpdateParams = IndividualAPI.IndividualUpdateParams;
|
|
31
|
+
export import Employment = EmploymentAPI.Employment;
|
|
32
|
+
export import EmploymentUpdateResponse = EmploymentAPI.EmploymentUpdateResponse;
|
|
33
|
+
export import EmploymentUpdateParams = EmploymentAPI.EmploymentUpdateParams;
|
|
34
|
+
export import Payment = PaymentAPI.Payment;
|
|
35
|
+
export import PaymentCreateResponse = PaymentAPI.PaymentCreateResponse;
|
|
36
|
+
export import PaymentCreateParams = PaymentAPI.PaymentCreateParams;
|
|
37
|
+
export import Jobs = JobsAPI.Jobs;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=sandbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sandbox.d.ts","sourceRoot":"","sources":["../../src/resources/sandbox/sandbox.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+CAA+C,CAAC;AAC5E,OAAO,KAAK,YAAY,MAAM,iDAAiD,CAAC;AAChF,OAAO,KAAK,aAAa,MAAM,kDAAkD,CAAC;AAClF,OAAO,KAAK,aAAa,MAAM,kDAAkD,CAAC;AAClF,OAAO,KAAK,UAAU,MAAM,+CAA+C,CAAC;AAC5E,OAAO,KAAK,cAAc,MAAM,+DAA+D,CAAC;AAChG,OAAO,KAAK,OAAO,MAAM,iDAAiD,CAAC;AAE3E,qBAAa,OAAQ,SAAQ,WAAW;IACtC,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IACvF,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IACnE,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAC7E,UAAU,EAAE,aAAa,CAAC,UAAU,CAA8C;IAClF,UAAU,EAAE,aAAa,CAAC,UAAU,CAA8C;IAClF,OAAO,EAAE,UAA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