@thera-hr/api-sdk 1.1.1-prerelease2389-dev-2 → 1.1.1-prerelease2393-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.
Files changed (130) 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 +41 -12
  7. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +204 -64
  8. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/{ExportWorkerInvoicesRequest.d.ts → ExportWorkerInvoicesCsvRequest.d.ts} +2 -7
  9. package/{dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerInvoicesRequest.d.ts → api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerInvoicesJsonRequest.d.ts} +2 -7
  10. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/{ExportWorkerWithdrawalsRequest.d.ts → ExportWorkerWithdrawalsCsvRequest.d.ts} +2 -7
  11. package/{dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerWithdrawalsRequest.d.ts → api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerWithdrawalsJsonRequest.d.ts} +2 -7
  12. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +4 -2
  13. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.d.ts +23 -0
  14. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.js +5 -0
  15. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.d.ts +9 -0
  16. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.js +5 -0
  17. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.d.ts +19 -0
  18. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.js +5 -0
  19. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +3 -0
  20. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +3 -0
  21. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +29 -29
  22. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  23. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
  24. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  25. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  26. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  27. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  28. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  29. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  30. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  31. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  32. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
  33. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  34. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  35. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
  36. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  37. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  38. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  39. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +14 -14
  40. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  41. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  42. package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  43. package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
  44. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  45. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  46. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +41 -12
  47. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +204 -64
  48. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerInvoicesCsvRequest.d.ts +25 -0
  49. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerInvoicesCsvRequest.js +5 -0
  50. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerInvoicesJsonRequest.d.ts +25 -0
  51. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerInvoicesJsonRequest.js +5 -0
  52. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerWithdrawalsCsvRequest.d.ts +20 -0
  53. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerWithdrawalsCsvRequest.js +5 -0
  54. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerWithdrawalsJsonRequest.d.ts +20 -0
  55. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerWithdrawalsJsonRequest.js +5 -0
  56. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +4 -2
  57. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.d.ts +23 -0
  58. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.js +5 -0
  59. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.d.ts +9 -0
  60. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.js +5 -0
  61. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.d.ts +19 -0
  62. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.js +5 -0
  63. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +3 -0
  64. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +3 -0
  65. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +29 -29
  66. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  67. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
  68. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  69. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  70. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  71. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  72. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  73. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  74. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  75. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  76. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
  77. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  78. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  79. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
  80. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  81. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  82. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  83. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +14 -14
  84. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  85. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerInvoicesCsv.d.ts +9 -0
  86. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerInvoicesCsv.js +41 -0
  87. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerInvoicesJson.d.ts +11 -0
  88. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerInvoicesJson.js +42 -0
  89. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerWithdrawalsCsv.d.ts +9 -0
  90. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerWithdrawalsCsv.js +41 -0
  91. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerWithdrawalsJson.d.ts +11 -0
  92. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerWithdrawalsJson.js +42 -0
  93. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.d.ts +4 -0
  94. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.js +5 -1
  95. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.d.ts +29 -0
  96. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.js +60 -0
  97. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.d.ts +15 -0
  98. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.js +46 -0
  99. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.d.ts +25 -0
  100. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.js +56 -0
  101. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +3 -0
  102. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +3 -0
  103. package/dist/version.d.ts +1 -1
  104. package/dist/version.js +1 -1
  105. package/package.json +1 -1
  106. package/reference.md +173 -10
  107. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerInvoicesCsv.d.ts +9 -0
  108. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerInvoicesCsv.js +41 -0
  109. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerInvoicesJson.d.ts +11 -0
  110. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerInvoicesJson.js +42 -0
  111. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerWithdrawalsCsv.d.ts +9 -0
  112. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerWithdrawalsCsv.js +41 -0
  113. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerWithdrawalsJson.d.ts +11 -0
  114. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerWithdrawalsJson.js +42 -0
  115. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.d.ts +4 -0
  116. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.js +5 -1
  117. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.d.ts +29 -0
  118. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.js +60 -0
  119. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.d.ts +15 -0
  120. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.js +46 -0
  121. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.d.ts +25 -0
  122. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.js +56 -0
  123. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +3 -0
  124. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +3 -0
  125. package/version.d.ts +1 -1
  126. package/version.js +1 -1
  127. /package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/{ExportWorkerInvoicesRequest.js → ExportWorkerInvoicesCsvRequest.js} +0 -0
  128. /package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/{ExportWorkerWithdrawalsRequest.js → ExportWorkerInvoicesJsonRequest.js} +0 -0
  129. /package/{dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerInvoicesRequest.js → api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerWithdrawalsCsvRequest.js} +0 -0
  130. /package/{dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerWithdrawalsRequest.js → api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerWithdrawalsJsonRequest.js} +0 -0
@@ -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.1.1-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "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.1.1-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "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.1.1-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "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.1.1-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "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.1.1-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "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.1.1-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "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.1.1-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "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.1.1-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "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.1.1-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "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.1.1-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "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.1.1-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "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.1.1-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "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.1.1-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "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.1.1-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "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.1.1-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "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.1.1-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-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
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.1.1-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "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.1.1-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "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.1.1-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "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.1.1-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "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.1.1-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "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.1.1-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "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.1.1-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "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.1.1-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "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.1.1-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "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.1.1-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "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.1.1-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "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.1.1-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "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.1.1-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "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.1.1-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "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.1.1-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "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.1.1-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "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.1.1-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "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.1.1-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "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.1.1-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "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.1.1-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "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.1.1-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "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.1.1-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "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,
@@ -1194,7 +1194,7 @@ class BankApi {
1194
1194
  const _response = yield core.fetcher({
1195
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)}`),
1196
1196
  method: "PATCH",
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.1.1-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "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.1.1-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1198
1198
  contentType: "application/json",
1199
1199
  requestType: "json",
1200
1200
  body: serializers.api.thera.bank.EditWithdrawalMethodRequest.jsonOrThrow(request, {
@@ -1256,7 +1256,7 @@ class BankApi {
1256
1256
  const _response = yield core.fetcher({
1257
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`),
1258
1258
  method: "POST",
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.1.1-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "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.1.1-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1260
1260
  contentType: "application/json",
1261
1261
  requestType: "json",
1262
1262
  body: serializers.api.thera.bank.InitiateWorkerWithdrawalRequest.jsonOrThrow(request, {
@@ -1320,7 +1320,7 @@ class BankApi {
1320
1320
  const _response = yield core.fetcher({
1321
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`),
1322
1322
  method: "GET",
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.1.1-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "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.1.1-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1324
1324
  contentType: "application/json",
1325
1325
  queryParameters: _queryParams,
1326
1326
  requestType: "json",
@@ -1380,7 +1380,7 @@ class BankApi {
1380
1380
  const _response = yield core.fetcher({
1381
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`),
1382
1382
  method: "POST",
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.1.1-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "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.1.1-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1384
1384
  contentType: "application/json",
1385
1385
  requestType: "json",
1386
1386
  body: serializers.api.thera.bank.InitiateWorkerWithdrawalRequest.jsonOrThrow(request, {
@@ -1442,7 +1442,7 @@ class BankApi {
1442
1442
  const _response = yield core.fetcher({
1443
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`),
1444
1444
  method: "POST",
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.1.1-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "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.1.1-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1446
1446
  contentType: "application/json",
1447
1447
  requestType: "json",
1448
1448
  body: serializers.api.thera.bank.InitiateWorkerWithdrawalRequest.jsonOrThrow(request, {
@@ -1496,7 +1496,7 @@ class BankApi {
1496
1496
  const _response = yield core.fetcher({
1497
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`),
1498
1498
  method: "GET",
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.1.1-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "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.1.1-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1500
1500
  contentType: "application/json",
1501
1501
  requestType: "json",
1502
1502
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1555,7 +1555,7 @@ class BankApi {
1555
1555
  const _response = yield core.fetcher({
1556
1556
  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`),
1557
1557
  method: "GET",
1558
- 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-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1558
+ 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-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1559
1559
  contentType: "application/json",
1560
1560
  queryParameters: _queryParams,
1561
1561
  requestType: "json",
@@ -1610,7 +1610,7 @@ class BankApi {
1610
1610
  const _response = yield core.fetcher({
1611
1611
  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/${encodeURIComponent(transactionId)}`),
1612
1612
  method: "GET",
1613
- 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-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1613
+ 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-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1614
1614
  contentType: "application/json",
1615
1615
  requestType: "json",
1616
1616
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1648,25 +1648,24 @@ class BankApi {
1648
1648
  });
1649
1649
  }
1650
1650
  /**
1651
- * Export worker invoices in CSV or JSON format with optional filtering by contracts and date range
1651
+ * Export worker invoices as CSV with optional filtering by contracts and date range
1652
1652
  *
1653
1653
  * @param {string} userId
1654
1654
  * @param {string} companyId
1655
- * @param {TheraApi.api.thera.bank.ExportWorkerInvoicesRequest} request
1655
+ * @param {TheraApi.api.thera.bank.ExportWorkerInvoicesCsvRequest} request
1656
1656
  * @param {BankApi.RequestOptions} requestOptions - Request-specific configuration.
1657
1657
  *
1658
1658
  * @example
1659
- * await client.api.thera.bank.bankApi.exportWorkerInvoices("string", "string", {
1659
+ * await client.api.thera.bank.bankApi.exportWorkerInvoicesCsv("string", "string", {
1660
1660
  * contractIds: "string",
1661
1661
  * startDate: "2023-01-15",
1662
- * endDate: "2023-01-15",
1663
- * format: "string"
1662
+ * endDate: "2023-01-15"
1664
1663
  * })
1665
1664
  */
1666
- exportWorkerInvoices(userId_1, companyId_1) {
1665
+ exportWorkerInvoicesCsv(userId_1, companyId_1) {
1667
1666
  return __awaiter(this, arguments, void 0, function* (userId, companyId, request = {}, requestOptions) {
1668
1667
  var _a;
1669
- const { contractIds, startDate, endDate, format } = request;
1668
+ const { contractIds, startDate, endDate } = request;
1670
1669
  const _queryParams = {};
1671
1670
  if (contractIds != null) {
1672
1671
  _queryParams["contractIds"] = contractIds;
@@ -1677,13 +1676,80 @@ class BankApi {
1677
1676
  if (endDate != null) {
1678
1677
  _queryParams["endDate"] = endDate;
1679
1678
  }
1680
- if (format != null) {
1681
- _queryParams["format"] = format;
1679
+ const _response = yield core.fetcher({
1680
+ 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)}/invoices/export/csv`),
1681
+ method: "GET",
1682
+ 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-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1683
+ contentType: "application/json",
1684
+ queryParameters: _queryParams,
1685
+ requestType: "json",
1686
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1687
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1688
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1689
+ });
1690
+ if (_response.ok) {
1691
+ return serializers.api.thera.bank.bankApi.exportWorkerInvoicesCsv.Response.parseOrThrow(_response.body, {
1692
+ unrecognizedObjectKeys: "passthrough",
1693
+ allowUnrecognizedUnionMembers: true,
1694
+ allowUnrecognizedEnumValues: true,
1695
+ skipValidation: true,
1696
+ breadcrumbsPrefix: ["response"],
1697
+ });
1698
+ }
1699
+ if (_response.error.reason === "status-code") {
1700
+ throw new errors.TheraApiError({
1701
+ statusCode: _response.error.statusCode,
1702
+ body: _response.error.body,
1703
+ });
1704
+ }
1705
+ switch (_response.error.reason) {
1706
+ case "non-json":
1707
+ throw new errors.TheraApiError({
1708
+ statusCode: _response.error.statusCode,
1709
+ body: _response.error.rawBody,
1710
+ });
1711
+ case "timeout":
1712
+ throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /companies/{companyId}/workers/{userId}/invoices/export/csv.");
1713
+ case "unknown":
1714
+ throw new errors.TheraApiError({
1715
+ message: _response.error.errorMessage,
1716
+ });
1717
+ }
1718
+ });
1719
+ }
1720
+ /**
1721
+ * Export worker invoices as JSON array with optional filtering by contracts and date range
1722
+ *
1723
+ * @param {string} userId
1724
+ * @param {string} companyId
1725
+ * @param {TheraApi.api.thera.bank.ExportWorkerInvoicesJsonRequest} request
1726
+ * @param {BankApi.RequestOptions} requestOptions - Request-specific configuration.
1727
+ *
1728
+ * @example
1729
+ * await client.api.thera.bank.bankApi.exportWorkerInvoicesJson("string", "string", {
1730
+ * contractIds: "string",
1731
+ * startDate: "2023-01-15",
1732
+ * endDate: "2023-01-15"
1733
+ * })
1734
+ */
1735
+ exportWorkerInvoicesJson(userId_1, companyId_1) {
1736
+ return __awaiter(this, arguments, void 0, function* (userId, companyId, request = {}, requestOptions) {
1737
+ var _a;
1738
+ const { contractIds, startDate, endDate } = request;
1739
+ const _queryParams = {};
1740
+ if (contractIds != null) {
1741
+ _queryParams["contractIds"] = contractIds;
1742
+ }
1743
+ if (startDate != null) {
1744
+ _queryParams["startDate"] = startDate;
1745
+ }
1746
+ if (endDate != null) {
1747
+ _queryParams["endDate"] = endDate;
1682
1748
  }
1683
1749
  const _response = yield core.fetcher({
1684
- 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)}/invoices/export`),
1750
+ 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)}/invoices/export/json`),
1685
1751
  method: "GET",
1686
- 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-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1752
+ 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-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1687
1753
  contentType: "application/json",
1688
1754
  queryParameters: _queryParams,
1689
1755
  requestType: "json",
@@ -1692,7 +1758,13 @@ class BankApi {
1692
1758
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1693
1759
  });
1694
1760
  if (_response.ok) {
1695
- return _response.body;
1761
+ return serializers.api.thera.bank.bankApi.exportWorkerInvoicesJson.Response.parseOrThrow(_response.body, {
1762
+ unrecognizedObjectKeys: "passthrough",
1763
+ allowUnrecognizedUnionMembers: true,
1764
+ allowUnrecognizedEnumValues: true,
1765
+ skipValidation: true,
1766
+ breadcrumbsPrefix: ["response"],
1767
+ });
1696
1768
  }
1697
1769
  if (_response.error.reason === "status-code") {
1698
1770
  throw new errors.TheraApiError({
@@ -1707,7 +1779,7 @@ class BankApi {
1707
1779
  body: _response.error.rawBody,
1708
1780
  });
1709
1781
  case "timeout":
1710
- throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /companies/{companyId}/workers/{userId}/invoices/export.");
1782
+ throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /companies/{companyId}/workers/{userId}/invoices/export/json.");
1711
1783
  case "unknown":
1712
1784
  throw new errors.TheraApiError({
1713
1785
  message: _response.error.errorMessage,
@@ -1716,24 +1788,23 @@ class BankApi {
1716
1788
  });
1717
1789
  }
1718
1790
  /**
1719
- * Export worker withdrawals in CSV or JSON format with optional filtering by date range
1791
+ * Export worker withdrawals as CSV with optional filtering by date range
1720
1792
  *
1721
1793
  * @param {string} userId
1722
1794
  * @param {string} companyId
1723
- * @param {TheraApi.api.thera.bank.ExportWorkerWithdrawalsRequest} request
1795
+ * @param {TheraApi.api.thera.bank.ExportWorkerWithdrawalsCsvRequest} request
1724
1796
  * @param {BankApi.RequestOptions} requestOptions - Request-specific configuration.
1725
1797
  *
1726
1798
  * @example
1727
- * await client.api.thera.bank.bankApi.exportWorkerWithdrawals("string", "string", {
1799
+ * await client.api.thera.bank.bankApi.exportWorkerWithdrawalsCsv("string", "string", {
1728
1800
  * startDate: "2023-01-15",
1729
- * endDate: "2023-01-15",
1730
- * format: "string"
1801
+ * endDate: "2023-01-15"
1731
1802
  * })
1732
1803
  */
1733
- exportWorkerWithdrawals(userId_1, companyId_1) {
1804
+ exportWorkerWithdrawalsCsv(userId_1, companyId_1) {
1734
1805
  return __awaiter(this, arguments, void 0, function* (userId, companyId, request = {}, requestOptions) {
1735
1806
  var _a;
1736
- const { startDate, endDate, format } = request;
1807
+ const { startDate, endDate } = request;
1737
1808
  const _queryParams = {};
1738
1809
  if (startDate != null) {
1739
1810
  _queryParams["startDate"] = startDate;
@@ -1741,13 +1812,76 @@ class BankApi {
1741
1812
  if (endDate != null) {
1742
1813
  _queryParams["endDate"] = endDate;
1743
1814
  }
1744
- if (format != null) {
1745
- _queryParams["format"] = format;
1815
+ const _response = yield core.fetcher({
1816
+ 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)}/withdrawals/export/csv`),
1817
+ method: "GET",
1818
+ 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-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1819
+ contentType: "application/json",
1820
+ queryParameters: _queryParams,
1821
+ requestType: "json",
1822
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1823
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1824
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1825
+ });
1826
+ if (_response.ok) {
1827
+ return serializers.api.thera.bank.bankApi.exportWorkerWithdrawalsCsv.Response.parseOrThrow(_response.body, {
1828
+ unrecognizedObjectKeys: "passthrough",
1829
+ allowUnrecognizedUnionMembers: true,
1830
+ allowUnrecognizedEnumValues: true,
1831
+ skipValidation: true,
1832
+ breadcrumbsPrefix: ["response"],
1833
+ });
1834
+ }
1835
+ if (_response.error.reason === "status-code") {
1836
+ throw new errors.TheraApiError({
1837
+ statusCode: _response.error.statusCode,
1838
+ body: _response.error.body,
1839
+ });
1840
+ }
1841
+ switch (_response.error.reason) {
1842
+ case "non-json":
1843
+ throw new errors.TheraApiError({
1844
+ statusCode: _response.error.statusCode,
1845
+ body: _response.error.rawBody,
1846
+ });
1847
+ case "timeout":
1848
+ throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /companies/{companyId}/workers/{userId}/withdrawals/export/csv.");
1849
+ case "unknown":
1850
+ throw new errors.TheraApiError({
1851
+ message: _response.error.errorMessage,
1852
+ });
1853
+ }
1854
+ });
1855
+ }
1856
+ /**
1857
+ * Export worker withdrawals as JSON array with optional filtering by date range
1858
+ *
1859
+ * @param {string} userId
1860
+ * @param {string} companyId
1861
+ * @param {TheraApi.api.thera.bank.ExportWorkerWithdrawalsJsonRequest} request
1862
+ * @param {BankApi.RequestOptions} requestOptions - Request-specific configuration.
1863
+ *
1864
+ * @example
1865
+ * await client.api.thera.bank.bankApi.exportWorkerWithdrawalsJson("string", "string", {
1866
+ * startDate: "2023-01-15",
1867
+ * endDate: "2023-01-15"
1868
+ * })
1869
+ */
1870
+ exportWorkerWithdrawalsJson(userId_1, companyId_1) {
1871
+ return __awaiter(this, arguments, void 0, function* (userId, companyId, request = {}, requestOptions) {
1872
+ var _a;
1873
+ const { startDate, endDate } = request;
1874
+ const _queryParams = {};
1875
+ if (startDate != null) {
1876
+ _queryParams["startDate"] = startDate;
1877
+ }
1878
+ if (endDate != null) {
1879
+ _queryParams["endDate"] = endDate;
1746
1880
  }
1747
1881
  const _response = yield core.fetcher({
1748
- 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)}/withdrawals/export`),
1882
+ 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)}/withdrawals/export/json`),
1749
1883
  method: "GET",
1750
- 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-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1884
+ 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-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1751
1885
  contentType: "application/json",
1752
1886
  queryParameters: _queryParams,
1753
1887
  requestType: "json",
@@ -1756,7 +1890,13 @@ class BankApi {
1756
1890
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1757
1891
  });
1758
1892
  if (_response.ok) {
1759
- return _response.body;
1893
+ return serializers.api.thera.bank.bankApi.exportWorkerWithdrawalsJson.Response.parseOrThrow(_response.body, {
1894
+ unrecognizedObjectKeys: "passthrough",
1895
+ allowUnrecognizedUnionMembers: true,
1896
+ allowUnrecognizedEnumValues: true,
1897
+ skipValidation: true,
1898
+ breadcrumbsPrefix: ["response"],
1899
+ });
1760
1900
  }
1761
1901
  if (_response.error.reason === "status-code") {
1762
1902
  throw new errors.TheraApiError({
@@ -1771,7 +1911,7 @@ class BankApi {
1771
1911
  body: _response.error.rawBody,
1772
1912
  });
1773
1913
  case "timeout":
1774
- throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /companies/{companyId}/workers/{userId}/withdrawals/export.");
1914
+ throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /companies/{companyId}/workers/{userId}/withdrawals/export/json.");
1775
1915
  case "unknown":
1776
1916
  throw new errors.TheraApiError({
1777
1917
  message: _response.error.errorMessage,
@@ -1792,7 +1932,7 @@ class BankApi {
1792
1932
  const _response = yield core.fetcher({
1793
1933
  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)}`),
1794
1934
  method: "GET",
1795
- 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-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1935
+ 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-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1796
1936
  contentType: "application/json",
1797
1937
  requestType: "json",
1798
1938
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1864,7 +2004,7 @@ class BankApi {
1864
2004
  const _response = yield core.fetcher({
1865
2005
  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`),
1866
2006
  method: "GET",
1867
- 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-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
2007
+ 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-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1868
2008
  contentType: "application/json",
1869
2009
  queryParameters: _queryParams,
1870
2010
  requestType: "json",
@@ -1916,7 +2056,7 @@ class BankApi {
1916
2056
  const _response = yield core.fetcher({
1917
2057
  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)}`),
1918
2058
  method: "GET",
1919
- 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-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
2059
+ 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-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1920
2060
  contentType: "application/json",
1921
2061
  requestType: "json",
1922
2062
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1971,7 +2111,7 @@ class BankApi {
1971
2111
  const _response = yield core.fetcher({
1972
2112
  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)}`),
1973
2113
  method: "DELETE",
1974
- 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-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
2114
+ 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-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1975
2115
  contentType: "application/json",
1976
2116
  requestType: "json",
1977
2117
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -2030,7 +2170,7 @@ class BankApi {
2030
2170
  const _response = yield core.fetcher({
2031
2171
  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"),
2032
2172
  method: "GET",
2033
- 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-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
2173
+ 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-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
2034
2174
  contentType: "application/json",
2035
2175
  queryParameters: _queryParams,
2036
2176
  requestType: "json",
@@ -2085,7 +2225,7 @@ class BankApi {
2085
2225
  const _response = yield core.fetcher({
2086
2226
  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`),
2087
2227
  method: "POST",
2088
- 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-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
2228
+ 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-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
2089
2229
  contentType: "application/json",
2090
2230
  requestType: "json",
2091
2231
  body: serializers.api.thera.bank.SetAutoWithdrawalRequest.jsonOrThrow(request, {
@@ -2140,7 +2280,7 @@ class BankApi {
2140
2280
  const _response = yield core.fetcher({
2141
2281
  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"),
2142
2282
  method: "POST",
2143
- 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-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
2283
+ 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-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
2144
2284
  contentType: "application/json",
2145
2285
  requestType: "json",
2146
2286
  body: serializers.api.thera.bank.CreateCheckPaymentMethodFromPlaidRequest.jsonOrThrow(request, {
@@ -2190,7 +2330,7 @@ class BankApi {
2190
2330
  const _response = yield core.fetcher({
2191
2331
  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"),
2192
2332
  method: "POST",
2193
- 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-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
2333
+ 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-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
2194
2334
  contentType: "application/json",
2195
2335
  requestType: "json",
2196
2336
  body: serializers.api.thera.bank.CreateStripePaymentMethodFromPlaidRequest.jsonOrThrow(request, {
@@ -2244,7 +2384,7 @@ class BankApi {
2244
2384
  const _response = yield core.fetcher({
2245
2385
  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`),
2246
2386
  method: "POST",
2247
- 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-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
2387
+ 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-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
2248
2388
  contentType: "application/json",
2249
2389
  requestType: "json",
2250
2390
  body: serializers.api.thera.bank.SetBulkAutoApproveInvoiceForTeamsRequest.jsonOrThrow(request, {
@@ -2300,7 +2440,7 @@ class BankApi {
2300
2440
  const _response = yield core.fetcher({
2301
2441
  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)}`),
2302
2442
  method: "GET",
2303
- 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-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
2443
+ 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-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
2304
2444
  contentType: "application/json",
2305
2445
  queryParameters: _queryParams,
2306
2446
  requestType: "json",
@@ -2353,7 +2493,7 @@ class BankApi {
2353
2493
  const _response = yield core.fetcher({
2354
2494
  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`),
2355
2495
  method: "GET",
2356
- 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-prerelease2389-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2389-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
2496
+ 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-prerelease2393-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2393-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
2357
2497
  contentType: "application/json",
2358
2498
  requestType: "json",
2359
2499
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,