@thera-hr/api-sdk 1.2.0-prerelease2428-staging → 1.2.0-prerelease2436-staging

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 (66) hide show
  1. package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  2. package/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  3. package/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
  4. package/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  5. package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  6. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +3 -2
  7. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +41 -40
  8. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/EditWithdrawalMethodRequest.d.ts +11 -3
  9. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +29 -29
  10. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  11. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
  12. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  13. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  14. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  15. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  16. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  17. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  18. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  19. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  20. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
  21. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  22. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  23. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
  24. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  25. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  26. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  27. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +14 -14
  28. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  29. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  30. package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  31. package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
  32. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  33. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  34. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +3 -2
  35. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +41 -40
  36. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/EditWithdrawalMethodRequest.d.ts +11 -3
  37. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +29 -29
  38. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  39. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
  40. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  41. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  42. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  43. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  44. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  45. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  46. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  47. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  48. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
  49. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  50. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  51. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
  52. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  53. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  54. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  55. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +14 -14
  56. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  57. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/EditWithdrawalMethodRequest.d.ts +2 -1
  58. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/EditWithdrawalMethodRequest.js +2 -1
  59. package/dist/version.d.ts +1 -1
  60. package/dist/version.js +1 -1
  61. package/package.json +1 -1
  62. package/reference.md +1 -0
  63. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/EditWithdrawalMethodRequest.d.ts +2 -1
  64. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/EditWithdrawalMethodRequest.js +2 -1
  65. package/version.d.ts +1 -1
  66. package/version.js +1 -1
@@ -108,7 +108,7 @@ class AipriseWebhookApi {
108
108
  const _response = yield core.fetcher({
109
109
  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)), "/aiprise/webhook/verification/callback"),
110
110
  method: "POST",
111
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
111
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
112
112
  contentType: "application/json",
113
113
  requestType: "json",
114
114
  body: serializers.api.aiprise.AiPriseVerificationCallback.jsonOrThrow(request, {
@@ -87,7 +87,7 @@ class Dev {
87
87
  const _response = yield core.fetcher({
88
88
  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)), "/dev/eor"),
89
89
  method: "POST",
90
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
90
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
91
91
  contentType: "application/json",
92
92
  requestType: "json",
93
93
  body: serializers.api.dev.AddEorEmployeeRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -113,7 +113,7 @@ class ExternalApi {
113
113
  const _response = yield core.fetcher({
114
114
  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)), "/external/v2/contractor"),
115
115
  method: "POST",
116
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
116
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
117
117
  contentType: "application/json",
118
118
  requestType: "json",
119
119
  body: serializers.api.external.ExternalCreateContractorRequestV2.jsonOrThrow(request, {
@@ -74,7 +74,7 @@ class File_ {
74
74
  const _response = yield core.fetcher({
75
75
  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)), `/contracts/${encodeURIComponent(contractId)}/generic-document`),
76
76
  method: "POST",
77
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
78
78
  contentType: "application/json",
79
79
  requestType: "json",
80
80
  body: serializers.api.services.AttachDocumentToEmploymentRequest.jsonOrThrow(request, {
@@ -125,7 +125,7 @@ class File_ {
125
125
  const _response = yield core.fetcher({
126
126
  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)), `/contracts/${encodeURIComponent(contractId)}/generic-document/${encodeURIComponent(s3Key)}`),
127
127
  method: "DELETE",
128
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
128
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
129
129
  contentType: "application/json",
130
130
  requestType: "json",
131
131
  body: serializers.api.services.DeleteDocumentFromEmploymentRequest.jsonOrThrow(request, {
@@ -173,7 +173,7 @@ class File_ {
173
173
  const _response = yield core.fetcher({
174
174
  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)), `/contracts/${encodeURIComponent(contractId)}/generic-document/${encodeURIComponent(s3Key)}/file-url`),
175
175
  method: "GET",
176
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
176
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
177
177
  contentType: "application/json",
178
178
  requestType: "json",
179
179
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -224,7 +224,7 @@ class File_ {
224
224
  const _response = yield core.fetcher({
225
225
  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)), `/contracts/eor/${encodeURIComponent(contractId)}/payslips/${encodeURIComponent(s3Key)}/fileUrl`),
226
226
  method: "GET",
227
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
227
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
228
228
  contentType: "application/json",
229
229
  requestType: "json",
230
230
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -275,7 +275,7 @@ class File_ {
275
275
  const _response = yield core.fetcher({
276
276
  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)}/contracts/eor/pay-in/${encodeURIComponent(s3Key)}/file-url`),
277
277
  method: "GET",
278
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
278
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
279
279
  contentType: "application/json",
280
280
  requestType: "json",
281
281
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -77,7 +77,7 @@ class AccountingApi {
77
77
  const _response = yield core.fetcher({
78
78
  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)}/accounting/settings`),
79
79
  method: "PUT",
80
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
81
81
  contentType: "application/json",
82
82
  requestType: "json",
83
83
  body: serializers.api.thera.accounting.ModifyAccountingIntegrationSetting.jsonOrThrow(request, {
@@ -124,7 +124,7 @@ class AccountingApi {
124
124
  const _response = yield core.fetcher({
125
125
  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)}/accounting/info`),
126
126
  method: "GET",
127
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
127
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
128
128
  contentType: "application/json",
129
129
  requestType: "json",
130
130
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -174,7 +174,7 @@ class AccountingApi {
174
174
  const _response = yield core.fetcher({
175
175
  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)}/accounting/account-mapping`),
176
176
  method: "GET",
177
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
177
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
178
178
  contentType: "application/json",
179
179
  requestType: "json",
180
180
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -227,7 +227,7 @@ class AccountingApi {
227
227
  const _response = yield core.fetcher({
228
228
  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)}/accounting/authorize`),
229
229
  method: "POST",
230
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
230
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
231
231
  contentType: "application/json",
232
232
  requestType: "json",
233
233
  body: serializers.api.thera.accounting.CompleteAccountingIntegrationAuth.jsonOrThrow(request, {
@@ -312,10 +312,11 @@ export declare class BankApi {
312
312
  *
313
313
  * @example
314
314
  * await client.api.thera.bank.bankApi.editWithdrawalMethod("string", "string", {
315
- * preferred: true
315
+ * preferred: true,
316
+ * forceOffPlatformReason: "string"
316
317
  * })
317
318
  */
318
- editWithdrawalMethod(userId: string, withdrawalMethodId: string, request: TheraApi.api.thera.bank.EditWithdrawalMethodRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.EditWithdrawalMethodResponse>;
319
+ editWithdrawalMethod(userId: string, withdrawalMethodId: string, request?: TheraApi.api.thera.bank.EditWithdrawalMethodRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.EditWithdrawalMethodResponse>;
319
320
  /**
320
321
  * @param {string} userId
321
322
  * @param {string} companyId
@@ -83,7 +83,7 @@ class BankApi {
83
83
  const _response = yield core.fetcher({
84
84
  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)}/bank/account`),
85
85
  method: "GET",
86
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
87
  contentType: "application/json",
88
88
  requestType: "json",
89
89
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -142,7 +142,7 @@ class BankApi {
142
142
  const _response = yield core.fetcher({
143
143
  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)), "bank/account/update"),
144
144
  method: "POST",
145
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
145
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
146
146
  contentType: "application/json",
147
147
  queryParameters: _queryParams,
148
148
  requestType: "json",
@@ -209,7 +209,7 @@ class BankApi {
209
209
  const _response = yield core.fetcher({
210
210
  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)), "bank/account/signup/link"),
211
211
  method: "POST",
212
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
212
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
213
213
  contentType: "application/json",
214
214
  queryParameters: _queryParams,
215
215
  requestType: "json",
@@ -268,7 +268,7 @@ class BankApi {
268
268
  const _response = yield core.fetcher({
269
269
  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)), "bank/account/signup/complete"),
270
270
  method: "POST",
271
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
271
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
272
272
  contentType: "application/json",
273
273
  requestType: "json",
274
274
  body: serializers.api.thera.bank.CompleteAccountSignupRequest.jsonOrThrow(request, {
@@ -320,7 +320,7 @@ class BankApi {
320
320
  const _response = yield core.fetcher({
321
321
  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)), "bank/stripe/attach"),
322
322
  method: "POST",
323
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
323
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
324
324
  contentType: "application/json",
325
325
  requestType: "json",
326
326
  body: serializers.api.thera.bank.ReattachStripeAccountMandateRequest.jsonOrThrow(request, {
@@ -369,7 +369,7 @@ class BankApi {
369
369
  const _response = yield core.fetcher({
370
370
  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)}/payment-methods`),
371
371
  method: "GET",
372
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
372
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
373
373
  contentType: "application/json",
374
374
  requestType: "json",
375
375
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -422,7 +422,7 @@ class BankApi {
422
422
  const _response = yield core.fetcher({
423
423
  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)}/payment-methods/${encodeURIComponent(paymentMethodId)}`),
424
424
  method: "DELETE",
425
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
425
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
426
426
  contentType: "application/json",
427
427
  requestType: "json",
428
428
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -469,7 +469,7 @@ class BankApi {
469
469
  const _response = yield core.fetcher({
470
470
  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)}/payment-methods/${encodeURIComponent(paymentMethodId)}/select-for-w2`),
471
471
  method: "POST",
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.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
473
473
  contentType: "application/json",
474
474
  requestType: "json",
475
475
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -524,7 +524,7 @@ class BankApi {
524
524
  const _response = yield core.fetcher({
525
525
  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)), "bank/account/signup/verify"),
526
526
  method: "POST",
527
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
527
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
528
528
  contentType: "application/json",
529
529
  queryParameters: _queryParams,
530
530
  requestType: "json",
@@ -588,7 +588,7 @@ class BankApi {
588
588
  const _response = yield core.fetcher({
589
589
  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)}/autopay`),
590
590
  method: "POST",
591
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
591
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
592
592
  contentType: "application/json",
593
593
  requestType: "json",
594
594
  body: serializers.api.thera.bank.SetBulkAutoPayForTeamsRequest.jsonOrThrow(request, {
@@ -642,7 +642,7 @@ class BankApi {
642
642
  const _response = yield core.fetcher({
643
643
  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)}/teams/${encodeURIComponent(teamId)}/autopay`),
644
644
  method: "POST",
645
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
645
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
646
646
  contentType: "application/json",
647
647
  requestType: "json",
648
648
  body: serializers.api.thera.bank.SetAutoPayRequest.jsonOrThrow(request, {
@@ -700,7 +700,7 @@ class BankApi {
700
700
  const _response = yield core.fetcher({
701
701
  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)), "worker/supported-withdrawal-method-currencies"),
702
702
  method: "GET",
703
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
703
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
704
704
  contentType: "application/json",
705
705
  queryParameters: _queryParams,
706
706
  requestType: "json",
@@ -752,7 +752,7 @@ class BankApi {
752
752
  const _response = yield core.fetcher({
753
753
  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)), "worker/supported-bank-transfer-currencies"),
754
754
  method: "GET",
755
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
755
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
756
756
  contentType: "application/json",
757
757
  requestType: "json",
758
758
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -814,7 +814,7 @@ class BankApi {
814
814
  const _response = yield core.fetcher({
815
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)), `workers/${encodeURIComponent(userId)}/withdrawal-methods/${encodeURIComponent(paymentMethodId)}/withdrawal-limits`),
816
816
  method: "GET",
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.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
818
818
  contentType: "application/json",
819
819
  queryParameters: _queryParams,
820
820
  requestType: "json",
@@ -873,7 +873,7 @@ class BankApi {
873
873
  const _response = yield core.fetcher({
874
874
  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)), "worker/withdrawal-minimum-by-currency"),
875
875
  method: "GET",
876
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
876
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
877
877
  contentType: "application/json",
878
878
  queryParameters: _queryParams,
879
879
  requestType: "json",
@@ -936,7 +936,7 @@ class BankApi {
936
936
  const _response = yield core.fetcher({
937
937
  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)), `workers/${encodeURIComponent(userId)}/withdrawal-methods/${encodeURIComponent(paymentMethodId)}/withdrawal-minimum`),
938
938
  method: "GET",
939
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
939
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
940
940
  contentType: "application/json",
941
941
  queryParameters: _queryParams,
942
942
  requestType: "json",
@@ -1009,7 +1009,7 @@ class BankApi {
1009
1009
  const _response = yield core.fetcher({
1010
1010
  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)), "worker/supported-withdrawal-methods"),
1011
1011
  method: "POST",
1012
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1012
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1013
1013
  contentType: "application/json",
1014
1014
  requestType: "json",
1015
1015
  body: serializers.api.thera.bank.WithdrawalMethodsRequest.jsonOrThrow(request, {
@@ -1085,7 +1085,7 @@ class BankApi {
1085
1085
  const _response = yield core.fetcher({
1086
1086
  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)), `worker/${encodeURIComponent(userId)}/withdrawal-method`),
1087
1087
  method: "POST",
1088
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1088
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1089
1089
  contentType: "application/json",
1090
1090
  requestType: "json",
1091
1091
  body: serializers.api.thera.bank.WithdrawalMethodsRequest.jsonOrThrow(request, {
@@ -1139,7 +1139,7 @@ class BankApi {
1139
1139
  const _response = yield core.fetcher({
1140
1140
  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)), `worker/${encodeURIComponent(userId)}/withdrawal-method/${encodeURIComponent(withdrawalMethodId)}`),
1141
1141
  method: "DELETE",
1142
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1142
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1143
1143
  contentType: "application/json",
1144
1144
  requestType: "json",
1145
1145
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1184,16 +1184,17 @@ class BankApi {
1184
1184
  *
1185
1185
  * @example
1186
1186
  * await client.api.thera.bank.bankApi.editWithdrawalMethod("string", "string", {
1187
- * preferred: true
1187
+ * preferred: true,
1188
+ * forceOffPlatformReason: "string"
1188
1189
  * })
1189
1190
  */
1190
- editWithdrawalMethod(userId, withdrawalMethodId, request, requestOptions) {
1191
- return __awaiter(this, void 0, void 0, function* () {
1191
+ editWithdrawalMethod(userId_1, withdrawalMethodId_1) {
1192
+ return __awaiter(this, arguments, void 0, function* (userId, withdrawalMethodId, request = {}, requestOptions) {
1192
1193
  var _a;
1193
1194
  const _response = yield core.fetcher({
1194
1195
  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)), `worker/${encodeURIComponent(userId)}/withdrawal-method/${encodeURIComponent(withdrawalMethodId)}`),
1195
1196
  method: "PATCH",
1196
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1197
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1197
1198
  contentType: "application/json",
1198
1199
  requestType: "json",
1199
1200
  body: serializers.api.thera.bank.EditWithdrawalMethodRequest.jsonOrThrow(request, {
@@ -1255,7 +1256,7 @@ class BankApi {
1255
1256
  const _response = yield core.fetcher({
1256
1257
  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)}/workers/${encodeURIComponent(userId)}/payout-preview`),
1257
1258
  method: "POST",
1258
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1259
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1259
1260
  contentType: "application/json",
1260
1261
  requestType: "json",
1261
1262
  body: serializers.api.thera.bank.InitiateWorkerWithdrawalRequest.jsonOrThrow(request, {
@@ -1319,7 +1320,7 @@ class BankApi {
1319
1320
  const _response = yield core.fetcher({
1320
1321
  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)}/workers/${encodeURIComponent(userId)}/quote`),
1321
1322
  method: "GET",
1322
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1323
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1323
1324
  contentType: "application/json",
1324
1325
  queryParameters: _queryParams,
1325
1326
  requestType: "json",
@@ -1379,7 +1380,7 @@ class BankApi {
1379
1380
  const _response = yield core.fetcher({
1380
1381
  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)}/workers/${encodeURIComponent(userId)}/withdraw`),
1381
1382
  method: "POST",
1382
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1383
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1383
1384
  contentType: "application/json",
1384
1385
  requestType: "json",
1385
1386
  body: serializers.api.thera.bank.InitiateWorkerWithdrawalRequest.jsonOrThrow(request, {
@@ -1441,7 +1442,7 @@ class BankApi {
1441
1442
  const _response = yield core.fetcher({
1442
1443
  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)}/workers/${encodeURIComponent(userId)}/payout`),
1443
1444
  method: "POST",
1444
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1445
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1445
1446
  contentType: "application/json",
1446
1447
  requestType: "json",
1447
1448
  body: serializers.api.thera.bank.InitiateWorkerWithdrawalRequest.jsonOrThrow(request, {
@@ -1495,7 +1496,7 @@ class BankApi {
1495
1496
  const _response = yield core.fetcher({
1496
1497
  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)}/workers/${encodeURIComponent(userId)}/balances`),
1497
1498
  method: "GET",
1498
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1499
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1499
1500
  contentType: "application/json",
1500
1501
  requestType: "json",
1501
1502
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1546,7 +1547,7 @@ class BankApi {
1546
1547
  const _response = yield core.fetcher({
1547
1548
  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)}/workers/${encodeURIComponent(userId)}/transactions`),
1548
1549
  method: "GET",
1549
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1550
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1550
1551
  contentType: "application/json",
1551
1552
  requestType: "json",
1552
1553
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1596,7 +1597,7 @@ class BankApi {
1596
1597
  const _response = yield core.fetcher({
1597
1598
  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)), `workers/withdrawals/delivery-estimate/${encodeURIComponent(withdrawalId)}`),
1598
1599
  method: "GET",
1599
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1600
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1600
1601
  contentType: "application/json",
1601
1602
  requestType: "json",
1602
1603
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1668,7 +1669,7 @@ class BankApi {
1668
1669
  const _response = yield core.fetcher({
1669
1670
  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)}/pay-ins`),
1670
1671
  method: "GET",
1671
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1672
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1672
1673
  contentType: "application/json",
1673
1674
  queryParameters: _queryParams,
1674
1675
  requestType: "json",
@@ -1720,7 +1721,7 @@ class BankApi {
1720
1721
  const _response = yield core.fetcher({
1721
1722
  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)}/pay-ins/${encodeURIComponent(payInId)}`),
1722
1723
  method: "GET",
1723
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1724
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1724
1725
  contentType: "application/json",
1725
1726
  requestType: "json",
1726
1727
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1775,7 +1776,7 @@ class BankApi {
1775
1776
  const _response = yield core.fetcher({
1776
1777
  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)}/pay-ins/off-platform/${encodeURIComponent(payInId)}`),
1777
1778
  method: "DELETE",
1778
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1779
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1779
1780
  contentType: "application/json",
1780
1781
  requestType: "json",
1781
1782
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1834,7 +1835,7 @@ class BankApi {
1834
1835
  const _response = yield core.fetcher({
1835
1836
  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)), "currency/convert"),
1836
1837
  method: "GET",
1837
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1838
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1838
1839
  contentType: "application/json",
1839
1840
  queryParameters: _queryParams,
1840
1841
  requestType: "json",
@@ -1889,7 +1890,7 @@ class BankApi {
1889
1890
  const _response = yield core.fetcher({
1890
1891
  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)}/workers/${encodeURIComponent(userId)}/auto-withdrawals`),
1891
1892
  method: "POST",
1892
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1893
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1893
1894
  contentType: "application/json",
1894
1895
  requestType: "json",
1895
1896
  body: serializers.api.thera.bank.SetAutoWithdrawalRequest.jsonOrThrow(request, {
@@ -1944,7 +1945,7 @@ class BankApi {
1944
1945
  const _response = yield core.fetcher({
1945
1946
  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)), "bank/check/payment-method"),
1946
1947
  method: "POST",
1947
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1948
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1948
1949
  contentType: "application/json",
1949
1950
  requestType: "json",
1950
1951
  body: serializers.api.thera.bank.CreateCheckPaymentMethodFromPlaidRequest.jsonOrThrow(request, {
@@ -1994,7 +1995,7 @@ class BankApi {
1994
1995
  const _response = yield core.fetcher({
1995
1996
  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)), "bank/stripe/payment-method"),
1996
1997
  method: "POST",
1997
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1998
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1998
1999
  contentType: "application/json",
1999
2000
  requestType: "json",
2000
2001
  body: serializers.api.thera.bank.CreateStripePaymentMethodFromPlaidRequest.jsonOrThrow(request, {
@@ -2048,7 +2049,7 @@ class BankApi {
2048
2049
  const _response = yield core.fetcher({
2049
2050
  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)}/auto-approve-settings`),
2050
2051
  method: "POST",
2051
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
2052
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
2052
2053
  contentType: "application/json",
2053
2054
  requestType: "json",
2054
2055
  body: serializers.api.thera.bank.SetBulkAutoApproveInvoiceForTeamsRequest.jsonOrThrow(request, {
@@ -2104,7 +2105,7 @@ class BankApi {
2104
2105
  const _response = yield core.fetcher({
2105
2106
  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)}/payments/${encodeURIComponent(paymentId)}`),
2106
2107
  method: "GET",
2107
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
2108
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
2108
2109
  contentType: "application/json",
2109
2110
  queryParameters: _queryParams,
2110
2111
  requestType: "json",
@@ -2157,7 +2158,7 @@ class BankApi {
2157
2158
  const _response = yield core.fetcher({
2158
2159
  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)}/pay-ins/count`),
2159
2160
  method: "GET",
2160
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2428-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2428-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
2161
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2436-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2436-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
2161
2162
  contentType: "application/json",
2162
2163
  requestType: "json",
2163
2164
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -4,10 +4,18 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * preferred: true
7
+ * preferred: true,
8
+ * forceOffPlatformReason: "string"
8
9
  * }
9
10
  */
10
11
  export interface EditWithdrawalMethodRequest {
11
- /** For now, exception is thrown if this is set to false; you can't remove a preferred payment method without setting a new one. */
12
- preferred: boolean;
12
+ /** If provided, sets this withdrawal method as preferred (true) or not preferred (false). If not provided, the preferred status remains unchanged. */
13
+ preferred?: boolean;
14
+ /**
15
+ * If provided, switches this withdrawal method to off-platform with the given reason. This will update
16
+ * the poweredBy field to OFFPLATFORM and if the method was previously powered by Wise, it will clear
17
+ * the wiseRecipientAccountId and log it for audit purposes.
18
+ *
19
+ */
20
+ forceOffPlatformReason?: string;
13
21
  }