@thera-hr/api-sdk 1.1.1-prerelease2714-dev-3 → 1.1.1-prerelease2716-dev-2
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/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
- package/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
- package/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
- package/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
- package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +39 -39
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +29 -29
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
- package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
- package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
- package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
- package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
- package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.d.ts +4 -29
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +18 -88
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/AddCompanyBankingDetailsRequest.d.ts +4 -12
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js +0 -1
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/api/resources/db/resources/company/types/CompanyBankingDetails.d.ts +5 -13
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
- package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
- package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +39 -39
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +29 -29
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
- package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
- package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.d.ts +4 -29
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +18 -88
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/AddCompanyBankingDetailsRequest.d.ts +4 -12
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js +0 -1
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/dist/api/resources/db/resources/company/types/CompanyBankingDetails.d.ts +5 -13
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/index.js +1 -3
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js +0 -1
- package/dist/serialization/resources/db/resources/company/types/CompanyBankingDetails.d.ts +4 -4
- package/dist/serialization/resources/db/resources/company/types/CompanyBankingDetails.js +4 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +4 -89
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/index.d.ts +0 -1
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/index.js +1 -3
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.d.ts +0 -1
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js +0 -1
- package/serialization/resources/db/resources/company/types/CompanyBankingDetails.d.ts +4 -4
- package/serialization/resources/db/resources/company/types/CompanyBankingDetails.js +4 -4
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/UpdateCompanyIncorporationInfoRequest.d.ts +0 -23
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/UpdateCompanyIncorporationInfoRequest.js +0 -5
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/UpdateCompanyIncorporationInfoResponse.d.ts +0 -5
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/UpdateCompanyIncorporationInfoResponse.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/UpdateCompanyIncorporationInfoRequest.d.ts +0 -23
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/UpdateCompanyIncorporationInfoRequest.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/UpdateCompanyIncorporationInfoResponse.d.ts +0 -5
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/UpdateCompanyIncorporationInfoResponse.js +0 -5
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/UpdateCompanyIncorporationInfoRequest.d.ts +0 -16
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/UpdateCompanyIncorporationInfoRequest.js +0 -47
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/UpdateCompanyIncorporationInfoResponse.d.ts +0 -11
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/UpdateCompanyIncorporationInfoResponse.js +0 -41
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/UpdateCompanyIncorporationInfoRequest.d.ts +0 -16
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/UpdateCompanyIncorporationInfoRequest.js +0 -47
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/UpdateCompanyIncorporationInfoResponse.d.ts +0 -11
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/UpdateCompanyIncorporationInfoResponse.js +0 -41
package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js
CHANGED
|
@@ -57,68 +57,6 @@ class TpApi {
|
|
|
57
57
|
constructor(_options) {
|
|
58
58
|
this._options = _options;
|
|
59
59
|
}
|
|
60
|
-
/**
|
|
61
|
-
* Update company incorporation information (NAICS code, establishment date, incorporation state,
|
|
62
|
-
* and legal structure). This should be called before submitting beneficiary details.
|
|
63
|
-
*
|
|
64
|
-
* @param {string} companyId
|
|
65
|
-
* @param {TheraApi.api.thera.tp.UpdateCompanyIncorporationInfoRequest} request
|
|
66
|
-
* @param {TpApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
|
-
*
|
|
68
|
-
* @example
|
|
69
|
-
* await client.api.thera.tp.tpApi.updateCompanyIncorporationInfo("string", {
|
|
70
|
-
* naics: "string",
|
|
71
|
-
* establishedOn: "2023-01-15",
|
|
72
|
-
* incorporationState: "string",
|
|
73
|
-
* legalStructure: "ccorp"
|
|
74
|
-
* })
|
|
75
|
-
*/
|
|
76
|
-
updateCompanyIncorporationInfo(companyId, request, requestOptions) {
|
|
77
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
-
var _a;
|
|
79
|
-
const _response = yield core.fetcher({
|
|
80
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/incorporation-info`),
|
|
81
|
-
method: "POST",
|
|
82
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2714-dev-3", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2714-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
83
|
-
contentType: "application/json",
|
|
84
|
-
requestType: "json",
|
|
85
|
-
body: serializers.api.thera.tp.UpdateCompanyIncorporationInfoRequest.jsonOrThrow(request, {
|
|
86
|
-
unrecognizedObjectKeys: "strip",
|
|
87
|
-
}),
|
|
88
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
89
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
90
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
91
|
-
});
|
|
92
|
-
if (_response.ok) {
|
|
93
|
-
return serializers.api.thera.tp.UpdateCompanyIncorporationInfoResponse.parseOrThrow(_response.body, {
|
|
94
|
-
unrecognizedObjectKeys: "passthrough",
|
|
95
|
-
allowUnrecognizedUnionMembers: true,
|
|
96
|
-
allowUnrecognizedEnumValues: true,
|
|
97
|
-
skipValidation: true,
|
|
98
|
-
breadcrumbsPrefix: ["response"],
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
if (_response.error.reason === "status-code") {
|
|
102
|
-
throw new errors.TheraApiError({
|
|
103
|
-
statusCode: _response.error.statusCode,
|
|
104
|
-
body: _response.error.body,
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
switch (_response.error.reason) {
|
|
108
|
-
case "non-json":
|
|
109
|
-
throw new errors.TheraApiError({
|
|
110
|
-
statusCode: _response.error.statusCode,
|
|
111
|
-
body: _response.error.rawBody,
|
|
112
|
-
});
|
|
113
|
-
case "timeout":
|
|
114
|
-
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling POST /companies/{companyId}/incorporation-info.");
|
|
115
|
-
case "unknown":
|
|
116
|
-
throw new errors.TheraApiError({
|
|
117
|
-
message: _response.error.errorMessage,
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
60
|
/**
|
|
123
61
|
* Final step of company onboarding, if the company is using Thera banking.
|
|
124
62
|
*
|
|
@@ -129,18 +67,10 @@ class TpApi {
|
|
|
129
67
|
* @example
|
|
130
68
|
* await client.api.thera.tp.tpApi.addCompanyBankingDetails("string", {
|
|
131
69
|
* details: {
|
|
132
|
-
* establishedOn:
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
* "key": "value"
|
|
137
|
-
* },
|
|
138
|
-
* legalStructure: {
|
|
139
|
-
* "key": "value"
|
|
140
|
-
* },
|
|
141
|
-
* naics: {
|
|
142
|
-
* "key": "value"
|
|
143
|
-
* },
|
|
70
|
+
* establishedOn: "2023-01-15",
|
|
71
|
+
* incorporationState: "string",
|
|
72
|
+
* legalStructure: "ccorp",
|
|
73
|
+
* naics: "string",
|
|
144
74
|
* callerUserBeneficiaryInformation: {
|
|
145
75
|
* dateOfBirth: "2023-01-15",
|
|
146
76
|
* emailAddress: "string",
|
|
@@ -197,7 +127,7 @@ class TpApi {
|
|
|
197
127
|
const _response = yield core.fetcher({
|
|
198
128
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/banking-details`),
|
|
199
129
|
method: "POST",
|
|
200
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
130
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2716-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2716-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
201
131
|
contentType: "application/json",
|
|
202
132
|
requestType: "json",
|
|
203
133
|
body: serializers.api.thera.tp.AddCompanyBankingDetailsRequest.jsonOrThrow(request, {
|
|
@@ -251,7 +181,7 @@ class TpApi {
|
|
|
251
181
|
const _response = yield core.fetcher({
|
|
252
182
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "naics-codes"),
|
|
253
183
|
method: "GET",
|
|
254
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
184
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2716-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2716-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
255
185
|
contentType: "application/json",
|
|
256
186
|
requestType: "json",
|
|
257
187
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -313,7 +243,7 @@ class TpApi {
|
|
|
313
243
|
const _response = yield core.fetcher({
|
|
314
244
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/process-funds`),
|
|
315
245
|
method: "POST",
|
|
316
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
246
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2716-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2716-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
317
247
|
contentType: "application/json",
|
|
318
248
|
requestType: "json",
|
|
319
249
|
body: serializers.api.thera.tp.ProcessFundsTransfer.jsonOrThrow(request, {
|
|
@@ -365,7 +295,7 @@ class TpApi {
|
|
|
365
295
|
const _response = yield core.fetcher({
|
|
366
296
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/create-counterparty`),
|
|
367
297
|
method: "POST",
|
|
368
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
298
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2716-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2716-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
369
299
|
contentType: "application/json",
|
|
370
300
|
requestType: "json",
|
|
371
301
|
body: serializers.api.thera.tp.CreateCounterPartyForBankingRequest.jsonOrThrow(request, {
|
|
@@ -414,7 +344,7 @@ class TpApi {
|
|
|
414
344
|
const _response = yield core.fetcher({
|
|
415
345
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/fetch-accounts`),
|
|
416
346
|
method: "GET",
|
|
417
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
347
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2716-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2716-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
418
348
|
contentType: "application/json",
|
|
419
349
|
requestType: "json",
|
|
420
350
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -469,7 +399,7 @@ class TpApi {
|
|
|
469
399
|
const _response = yield core.fetcher({
|
|
470
400
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/fetch-accounts/${encodeURIComponent(accountId)}`),
|
|
471
401
|
method: "GET",
|
|
472
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
402
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2716-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2716-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
473
403
|
contentType: "application/json",
|
|
474
404
|
queryParameters: _queryParams,
|
|
475
405
|
requestType: "json",
|
|
@@ -520,7 +450,7 @@ class TpApi {
|
|
|
520
450
|
const _response = yield core.fetcher({
|
|
521
451
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/transfer-fbo-omnibus`),
|
|
522
452
|
method: "POST",
|
|
523
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
453
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2716-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2716-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
524
454
|
contentType: "application/json",
|
|
525
455
|
requestType: "json",
|
|
526
456
|
body: serializers.api.thera.tp.TransferFundsToOmnibusAccount.jsonOrThrow(request, {
|
|
@@ -570,7 +500,7 @@ class TpApi {
|
|
|
570
500
|
const _response = yield core.fetcher({
|
|
571
501
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/fetch-transactions/${encodeURIComponent(accountId)}`),
|
|
572
502
|
method: "GET",
|
|
573
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
503
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2716-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2716-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
574
504
|
contentType: "application/json",
|
|
575
505
|
requestType: "json",
|
|
576
506
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -623,7 +553,7 @@ class TpApi {
|
|
|
623
553
|
const _response = yield core.fetcher({
|
|
624
554
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/tp-transaction/${encodeURIComponent(transactionId)}`),
|
|
625
555
|
method: "GET",
|
|
626
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
556
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2716-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2716-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
627
557
|
contentType: "application/json",
|
|
628
558
|
requestType: "json",
|
|
629
559
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -687,7 +617,7 @@ class TpApi {
|
|
|
687
617
|
const _response = yield core.fetcher({
|
|
688
618
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "webhook/tp/external-transfer-funds"),
|
|
689
619
|
method: "POST",
|
|
690
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
620
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2716-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2716-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
691
621
|
contentType: "application/json",
|
|
692
622
|
queryParameters: _queryParams,
|
|
693
623
|
requestType: "json",
|
|
@@ -765,7 +695,7 @@ class TpApi {
|
|
|
765
695
|
const _response = yield core.fetcher({
|
|
766
696
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/withdraw-funds`),
|
|
767
697
|
method: "POST",
|
|
768
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
698
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2716-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2716-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
769
699
|
contentType: "application/json",
|
|
770
700
|
requestType: "json",
|
|
771
701
|
body: serializers.api.thera.tp.WithdrawalTheraCash.jsonOrThrow(request, {
|
|
@@ -830,7 +760,7 @@ class TpApi {
|
|
|
830
760
|
const _response = yield core.fetcher({
|
|
831
761
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/ach-transfers`),
|
|
832
762
|
method: "GET",
|
|
833
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
763
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2716-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2716-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
834
764
|
contentType: "application/json",
|
|
835
765
|
queryParameters: _queryParams,
|
|
836
766
|
requestType: "json",
|
|
@@ -884,7 +814,7 @@ class TpApi {
|
|
|
884
814
|
const _response = yield core.fetcher({
|
|
885
815
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/ach-transfers/${encodeURIComponent(achId)}`),
|
|
886
816
|
method: "GET",
|
|
887
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
817
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2716-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2716-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
888
818
|
contentType: "application/json",
|
|
889
819
|
requestType: "json",
|
|
890
820
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -937,7 +867,7 @@ class TpApi {
|
|
|
937
867
|
const _response = yield core.fetcher({
|
|
938
868
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/ach-transfers/${encodeURIComponent(achId)}/retry`),
|
|
939
869
|
method: "POST",
|
|
940
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
870
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2716-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2716-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
941
871
|
contentType: "application/json",
|
|
942
872
|
requestType: "json",
|
|
943
873
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -6,18 +6,10 @@ import * as TheraApi from "../../../../../../../../../../index";
|
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
8
|
* details: {
|
|
9
|
-
* establishedOn:
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* "key": "value"
|
|
14
|
-
* },
|
|
15
|
-
* legalStructure: {
|
|
16
|
-
* "key": "value"
|
|
17
|
-
* },
|
|
18
|
-
* naics: {
|
|
19
|
-
* "key": "value"
|
|
20
|
-
* },
|
|
9
|
+
* establishedOn: "2023-01-15",
|
|
10
|
+
* incorporationState: "string",
|
|
11
|
+
* legalStructure: "ccorp",
|
|
12
|
+
* naics: "string",
|
|
21
13
|
* callerUserBeneficiaryInformation: {
|
|
22
14
|
* dateOfBirth: "2023-01-15",
|
|
23
15
|
* emailAddress: "string",
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { type UpdateCompanyIncorporationInfoRequest } from "./UpdateCompanyIncorporationInfoRequest";
|
|
2
1
|
export { type AddCompanyBankingDetailsRequest } from "./AddCompanyBankingDetailsRequest";
|
|
3
2
|
export { type TpAccountRequest } from "./TpAccountRequest";
|
|
4
3
|
export { type ExternalTransferFundRequest } from "./ExternalTransferFundRequest";
|
|
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./UpdateCompanyIncorporationInfoResponse"), exports);
|
|
18
17
|
__exportStar(require("./AddCompanyBankingDetailsResponse"), exports);
|
|
19
18
|
__exportStar(require("./GetIndustryCodesResponse"), exports);
|
|
20
19
|
__exportStar(require("./IndustryCodes"), exports);
|
package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js
CHANGED
|
@@ -78,7 +78,7 @@ class UserApi {
|
|
|
78
78
|
const _response = yield core.fetcher({
|
|
79
79
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `company/${encodeURIComponent(companyId)}/user/${encodeURIComponent(userId)}`),
|
|
80
80
|
method: "POST",
|
|
81
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
81
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2716-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2716-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
82
82
|
contentType: "application/json",
|
|
83
83
|
requestType: "json",
|
|
84
84
|
body: serializers.api.thera.user.SetUserComplianceSettingsRequest.jsonOrThrow(request, {
|
|
@@ -139,7 +139,7 @@ class UserApi {
|
|
|
139
139
|
const _response = yield core.fetcher({
|
|
140
140
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `company/${encodeURIComponent(companyId)}/user`),
|
|
141
141
|
method: "GET",
|
|
142
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
142
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2716-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2716-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
143
143
|
contentType: "application/json",
|
|
144
144
|
queryParameters: _queryParams,
|
|
145
145
|
requestType: "json",
|
|
@@ -197,7 +197,7 @@ class UserApi {
|
|
|
197
197
|
const _response = yield core.fetcher({
|
|
198
198
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "user"),
|
|
199
199
|
method: "GET",
|
|
200
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
200
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2716-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2716-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
201
201
|
contentType: "application/json",
|
|
202
202
|
queryParameters: _queryParams,
|
|
203
203
|
requestType: "json",
|
|
@@ -2,20 +2,12 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as TheraApi from "../../../../../index";
|
|
5
|
-
/**
|
|
6
|
-
* Banking details for a company. Company incorporation fields (establishedOn, incorporationState,
|
|
7
|
-
* legalStructure, naics) are optional and can be saved separately before beneficiary submission
|
|
8
|
-
* via the updateCompanyIncorporationInfo endpoint.
|
|
9
|
-
*/
|
|
10
5
|
export interface CompanyBankingDetails {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
legalStructure?: TheraApi.db.CompanyLegalStructure;
|
|
17
|
-
/** NAICS sector code that accurately describes the industry the business operates in. Optional - can be saved separately. */
|
|
18
|
-
naics?: string;
|
|
6
|
+
establishedOn: string;
|
|
7
|
+
incorporationState: string;
|
|
8
|
+
legalStructure: TheraApi.db.CompanyLegalStructure;
|
|
9
|
+
/** NAICS sector code that accurately describes the industry the business operates in. */
|
|
10
|
+
naics: string;
|
|
19
11
|
/**
|
|
20
12
|
* Whoever is filling out the onboarding form must fill out beneficiary information even if they don't
|
|
21
13
|
* own 25% or more of the company.
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AddCompanyBankingDetailsRequest =
|
|
4
|
-
var UpdateCompanyIncorporationInfoRequest_1 = require("./UpdateCompanyIncorporationInfoRequest");
|
|
5
|
-
Object.defineProperty(exports, "UpdateCompanyIncorporationInfoRequest", { enumerable: true, get: function () { return UpdateCompanyIncorporationInfoRequest_1.UpdateCompanyIncorporationInfoRequest; } });
|
|
3
|
+
exports.AddCompanyBankingDetailsRequest = void 0;
|
|
6
4
|
var AddCompanyBankingDetailsRequest_1 = require("./AddCompanyBankingDetailsRequest");
|
|
7
5
|
Object.defineProperty(exports, "AddCompanyBankingDetailsRequest", { enumerable: true, get: function () { return AddCompanyBankingDetailsRequest_1.AddCompanyBankingDetailsRequest; } });
|
package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js
CHANGED
|
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./UpdateCompanyIncorporationInfoResponse"), exports);
|
|
18
17
|
__exportStar(require("./AddCompanyBankingDetailsResponse"), exports);
|
|
19
18
|
__exportStar(require("./GetIndustryCodesResponse"), exports);
|
|
20
19
|
__exportStar(require("./IndustryCodes"), exports);
|
|
@@ -10,10 +10,10 @@ import { AddCompanyBeneficiary } from "./AddCompanyBeneficiary";
|
|
|
10
10
|
export declare const CompanyBankingDetails: core.serialization.ObjectSchema<serializers.db.CompanyBankingDetails.Raw, TheraApi.db.CompanyBankingDetails>;
|
|
11
11
|
export declare namespace CompanyBankingDetails {
|
|
12
12
|
interface Raw {
|
|
13
|
-
establishedOn
|
|
14
|
-
incorporationState
|
|
15
|
-
legalStructure
|
|
16
|
-
naics
|
|
13
|
+
establishedOn: string;
|
|
14
|
+
incorporationState: string;
|
|
15
|
+
legalStructure: CompanyLegalStructure.Raw;
|
|
16
|
+
naics: string;
|
|
17
17
|
callerUserBeneficiaryInformation: CompanyBeneficiary.Raw;
|
|
18
18
|
beneficiaries: AddCompanyBeneficiary.Raw[];
|
|
19
19
|
}
|
|
@@ -42,10 +42,10 @@ const CompanyLegalStructure_1 = require("./CompanyLegalStructure");
|
|
|
42
42
|
const CompanyBeneficiary_1 = require("./CompanyBeneficiary");
|
|
43
43
|
const AddCompanyBeneficiary_1 = require("./AddCompanyBeneficiary");
|
|
44
44
|
exports.CompanyBankingDetails = core.serialization.object({
|
|
45
|
-
establishedOn: core.serialization.string()
|
|
46
|
-
incorporationState: core.serialization.string()
|
|
47
|
-
legalStructure: CompanyLegalStructure_1.CompanyLegalStructure
|
|
48
|
-
naics: core.serialization.string()
|
|
45
|
+
establishedOn: core.serialization.string(),
|
|
46
|
+
incorporationState: core.serialization.string(),
|
|
47
|
+
legalStructure: CompanyLegalStructure_1.CompanyLegalStructure,
|
|
48
|
+
naics: core.serialization.string(),
|
|
49
49
|
callerUserBeneficiaryInformation: CompanyBeneficiary_1.CompanyBeneficiary,
|
|
50
50
|
beneficiaries: core.serialization.list(AddCompanyBeneficiary_1.AddCompanyBeneficiary),
|
|
51
51
|
});
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.1.1-
|
|
1
|
+
export declare const SDK_VERSION = "1.1.1-prerelease2716-dev-2";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -13327,83 +13327,6 @@ await client.api.thera.timetracking.timetrackingApi.getTimeTrackingHistory("stri
|
|
|
13327
13327
|
|
|
13328
13328
|
## Treasury Prime
|
|
13329
13329
|
|
|
13330
|
-
<details><summary><code>client.api.thera.tp.tpApi.<a href="/src/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.ts">updateCompanyIncorporationInfo</a>(companyId, { ...params }) -> TheraApi.UpdateCompanyIncorporationInfoResponse</code></summary>
|
|
13331
|
-
<dl>
|
|
13332
|
-
<dd>
|
|
13333
|
-
|
|
13334
|
-
#### 📝 Description
|
|
13335
|
-
|
|
13336
|
-
<dl>
|
|
13337
|
-
<dd>
|
|
13338
|
-
|
|
13339
|
-
<dl>
|
|
13340
|
-
<dd>
|
|
13341
|
-
|
|
13342
|
-
Update company incorporation information (NAICS code, establishment date, incorporation state,
|
|
13343
|
-
and legal structure). This should be called before submitting beneficiary details.
|
|
13344
|
-
|
|
13345
|
-
</dd>
|
|
13346
|
-
</dl>
|
|
13347
|
-
</dd>
|
|
13348
|
-
</dl>
|
|
13349
|
-
|
|
13350
|
-
#### 🔌 Usage
|
|
13351
|
-
|
|
13352
|
-
<dl>
|
|
13353
|
-
<dd>
|
|
13354
|
-
|
|
13355
|
-
<dl>
|
|
13356
|
-
<dd>
|
|
13357
|
-
|
|
13358
|
-
```typescript
|
|
13359
|
-
await client.api.thera.tp.tpApi.updateCompanyIncorporationInfo("string", {
|
|
13360
|
-
naics: "string",
|
|
13361
|
-
establishedOn: "2023-01-15",
|
|
13362
|
-
incorporationState: "string",
|
|
13363
|
-
legalStructure: "ccorp",
|
|
13364
|
-
});
|
|
13365
|
-
```
|
|
13366
|
-
|
|
13367
|
-
</dd>
|
|
13368
|
-
</dl>
|
|
13369
|
-
</dd>
|
|
13370
|
-
</dl>
|
|
13371
|
-
|
|
13372
|
-
#### ⚙️ Parameters
|
|
13373
|
-
|
|
13374
|
-
<dl>
|
|
13375
|
-
<dd>
|
|
13376
|
-
|
|
13377
|
-
<dl>
|
|
13378
|
-
<dd>
|
|
13379
|
-
|
|
13380
|
-
**companyId:** `string`
|
|
13381
|
-
|
|
13382
|
-
</dd>
|
|
13383
|
-
</dl>
|
|
13384
|
-
|
|
13385
|
-
<dl>
|
|
13386
|
-
<dd>
|
|
13387
|
-
|
|
13388
|
-
**request:** `TheraApi.api.thera.tp.UpdateCompanyIncorporationInfoRequest`
|
|
13389
|
-
|
|
13390
|
-
</dd>
|
|
13391
|
-
</dl>
|
|
13392
|
-
|
|
13393
|
-
<dl>
|
|
13394
|
-
<dd>
|
|
13395
|
-
|
|
13396
|
-
**requestOptions:** `TpApi.RequestOptions`
|
|
13397
|
-
|
|
13398
|
-
</dd>
|
|
13399
|
-
</dl>
|
|
13400
|
-
</dd>
|
|
13401
|
-
</dl>
|
|
13402
|
-
|
|
13403
|
-
</dd>
|
|
13404
|
-
</dl>
|
|
13405
|
-
</details>
|
|
13406
|
-
|
|
13407
13330
|
<details><summary><code>client.api.thera.tp.tpApi.<a href="/src/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.ts">addCompanyBankingDetails</a>(companyId, { ...params }) -> TheraApi.AddCompanyBankingDetailsResponse</code></summary>
|
|
13408
13331
|
<dl>
|
|
13409
13332
|
<dd>
|
|
@@ -13434,18 +13357,10 @@ Final step of company onboarding, if the company is using Thera banking.
|
|
|
13434
13357
|
```typescript
|
|
13435
13358
|
await client.api.thera.tp.tpApi.addCompanyBankingDetails("string", {
|
|
13436
13359
|
details: {
|
|
13437
|
-
establishedOn:
|
|
13438
|
-
|
|
13439
|
-
|
|
13440
|
-
|
|
13441
|
-
key: "value",
|
|
13442
|
-
},
|
|
13443
|
-
legalStructure: {
|
|
13444
|
-
key: "value",
|
|
13445
|
-
},
|
|
13446
|
-
naics: {
|
|
13447
|
-
key: "value",
|
|
13448
|
-
},
|
|
13360
|
+
establishedOn: "2023-01-15",
|
|
13361
|
+
incorporationState: "string",
|
|
13362
|
+
legalStructure: "ccorp",
|
|
13363
|
+
naics: "string",
|
|
13449
13364
|
callerUserBeneficiaryInformation: {
|
|
13450
13365
|
dateOfBirth: "2023-01-15",
|
|
13451
13366
|
emailAddress: "string",
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AddCompanyBankingDetailsRequest =
|
|
4
|
-
var UpdateCompanyIncorporationInfoRequest_1 = require("./UpdateCompanyIncorporationInfoRequest");
|
|
5
|
-
Object.defineProperty(exports, "UpdateCompanyIncorporationInfoRequest", { enumerable: true, get: function () { return UpdateCompanyIncorporationInfoRequest_1.UpdateCompanyIncorporationInfoRequest; } });
|
|
3
|
+
exports.AddCompanyBankingDetailsRequest = void 0;
|
|
6
4
|
var AddCompanyBankingDetailsRequest_1 = require("./AddCompanyBankingDetailsRequest");
|
|
7
5
|
Object.defineProperty(exports, "AddCompanyBankingDetailsRequest", { enumerable: true, get: function () { return AddCompanyBankingDetailsRequest_1.AddCompanyBankingDetailsRequest; } });
|
package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js
CHANGED
|
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./UpdateCompanyIncorporationInfoResponse"), exports);
|
|
18
17
|
__exportStar(require("./AddCompanyBankingDetailsResponse"), exports);
|
|
19
18
|
__exportStar(require("./GetIndustryCodesResponse"), exports);
|
|
20
19
|
__exportStar(require("./IndustryCodes"), exports);
|
|
@@ -10,10 +10,10 @@ import { AddCompanyBeneficiary } from "./AddCompanyBeneficiary";
|
|
|
10
10
|
export declare const CompanyBankingDetails: core.serialization.ObjectSchema<serializers.db.CompanyBankingDetails.Raw, TheraApi.db.CompanyBankingDetails>;
|
|
11
11
|
export declare namespace CompanyBankingDetails {
|
|
12
12
|
interface Raw {
|
|
13
|
-
establishedOn
|
|
14
|
-
incorporationState
|
|
15
|
-
legalStructure
|
|
16
|
-
naics
|
|
13
|
+
establishedOn: string;
|
|
14
|
+
incorporationState: string;
|
|
15
|
+
legalStructure: CompanyLegalStructure.Raw;
|
|
16
|
+
naics: string;
|
|
17
17
|
callerUserBeneficiaryInformation: CompanyBeneficiary.Raw;
|
|
18
18
|
beneficiaries: AddCompanyBeneficiary.Raw[];
|
|
19
19
|
}
|
|
@@ -42,10 +42,10 @@ const CompanyLegalStructure_1 = require("./CompanyLegalStructure");
|
|
|
42
42
|
const CompanyBeneficiary_1 = require("./CompanyBeneficiary");
|
|
43
43
|
const AddCompanyBeneficiary_1 = require("./AddCompanyBeneficiary");
|
|
44
44
|
exports.CompanyBankingDetails = core.serialization.object({
|
|
45
|
-
establishedOn: core.serialization.string()
|
|
46
|
-
incorporationState: core.serialization.string()
|
|
47
|
-
legalStructure: CompanyLegalStructure_1.CompanyLegalStructure
|
|
48
|
-
naics: core.serialization.string()
|
|
45
|
+
establishedOn: core.serialization.string(),
|
|
46
|
+
incorporationState: core.serialization.string(),
|
|
47
|
+
legalStructure: CompanyLegalStructure_1.CompanyLegalStructure,
|
|
48
|
+
naics: core.serialization.string(),
|
|
49
49
|
callerUserBeneficiaryInformation: CompanyBeneficiary_1.CompanyBeneficiary,
|
|
50
50
|
beneficiaries: core.serialization.list(AddCompanyBeneficiary_1.AddCompanyBeneficiary),
|
|
51
51
|
});
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.1.1-
|
|
1
|
+
export declare const SDK_VERSION = "1.1.1-prerelease2716-dev-2";
|
package/version.js
CHANGED