@thera-hr/api-sdk 0.0.1-prerelease2687-dev-anthony → 0.0.1-prerelease2702-dev-anthony

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 (75) 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/services/resources/file/client/Client.js +5 -5
  4. package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  5. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +18 -0
  6. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +93 -31
  7. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +0 -1
  8. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/{client/requests → types}/SetAutoPayRequest.d.ts +0 -8
  9. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoPayForTeamsRequest.d.ts +7 -0
  10. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +2 -0
  11. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +2 -0
  12. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  13. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  14. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  15. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  16. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  17. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  18. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  19. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  20. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +5 -5
  21. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  22. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
  23. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  24. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  25. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +10 -10
  26. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  27. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  28. package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  29. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  30. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  31. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +18 -0
  32. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +93 -31
  33. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +0 -1
  34. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/{client/requests → types}/SetAutoPayRequest.d.ts +0 -8
  35. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetAutoPayRequest.js +5 -0
  36. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoPayForTeamsRequest.d.ts +7 -0
  37. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoPayForTeamsRequest.js +5 -0
  38. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +2 -0
  39. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +2 -0
  40. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  41. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  42. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  43. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  44. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  45. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  46. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  47. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  48. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +5 -5
  49. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  50. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
  51. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  52. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  53. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +10 -10
  54. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  55. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +0 -1
  56. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.js +1 -3
  57. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetAutoPayRequest.d.ts +13 -0
  58. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/{client/requests → types}/SetAutoPayRequest.js +1 -1
  59. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoPayForTeamsRequest.d.ts +13 -0
  60. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoPayForTeamsRequest.js +34 -0
  61. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +2 -0
  62. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +2 -0
  63. package/package.json +1 -1
  64. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +0 -1
  65. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.js +1 -3
  66. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetAutoPayRequest.d.ts +13 -0
  67. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/{client/requests → types}/SetAutoPayRequest.js +1 -1
  68. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoPayForTeamsRequest.d.ts +13 -0
  69. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoPayForTeamsRequest.js +34 -0
  70. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +2 -0
  71. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +2 -0
  72. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SetAutoPayRequest.d.ts +0 -13
  73. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SetAutoPayRequest.d.ts +0 -13
  74. /package/api/resources/api/resources/thera/resources/bank/resources/bankApi/{client/requests → types}/SetAutoPayRequest.js +0 -0
  75. /package/{dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SetAutoPayRequest.js → api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoPayForTeamsRequest.js} +0 -0
@@ -101,7 +101,7 @@ class AipriseWebhookApi {
101
101
  Authorization: yield this._getAuthorizationHeader(),
102
102
  "X-Fern-Language": "JavaScript",
103
103
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
104
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
104
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
105
105
  "X-Fern-Runtime": core.RUNTIME.type,
106
106
  "X-Fern-Runtime-Version": core.RUNTIME.version,
107
107
  },
@@ -80,7 +80,7 @@ class Dev {
80
80
  Authorization: yield this._getAuthorizationHeader(),
81
81
  "X-Fern-Language": "JavaScript",
82
82
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
83
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
83
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
84
84
  "X-Fern-Runtime": core.RUNTIME.type,
85
85
  "X-Fern-Runtime-Version": core.RUNTIME.version,
86
86
  },
@@ -67,7 +67,7 @@ class File_ {
67
67
  Authorization: yield this._getAuthorizationHeader(),
68
68
  "X-Fern-Language": "JavaScript",
69
69
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
70
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
70
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
71
71
  "X-Fern-Runtime": core.RUNTIME.type,
72
72
  "X-Fern-Runtime-Version": core.RUNTIME.version,
73
73
  },
@@ -123,7 +123,7 @@ class File_ {
123
123
  Authorization: yield this._getAuthorizationHeader(),
124
124
  "X-Fern-Language": "JavaScript",
125
125
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
126
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
126
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
127
127
  "X-Fern-Runtime": core.RUNTIME.type,
128
128
  "X-Fern-Runtime-Version": core.RUNTIME.version,
129
129
  },
@@ -176,7 +176,7 @@ class File_ {
176
176
  Authorization: yield this._getAuthorizationHeader(),
177
177
  "X-Fern-Language": "JavaScript",
178
178
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
179
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
179
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
180
180
  "X-Fern-Runtime": core.RUNTIME.type,
181
181
  "X-Fern-Runtime-Version": core.RUNTIME.version,
182
182
  },
@@ -232,7 +232,7 @@ class File_ {
232
232
  Authorization: yield this._getAuthorizationHeader(),
233
233
  "X-Fern-Language": "JavaScript",
234
234
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
235
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
235
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
236
236
  "X-Fern-Runtime": core.RUNTIME.type,
237
237
  "X-Fern-Runtime-Version": core.RUNTIME.version,
238
238
  },
@@ -288,7 +288,7 @@ class File_ {
288
288
  Authorization: yield this._getAuthorizationHeader(),
289
289
  "X-Fern-Language": "JavaScript",
290
290
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
291
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
291
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
292
292
  "X-Fern-Runtime": core.RUNTIME.type,
293
293
  "X-Fern-Runtime-Version": core.RUNTIME.version,
294
294
  },
@@ -70,7 +70,7 @@ class AccountingApi {
70
70
  Authorization: yield this._getAuthorizationHeader(),
71
71
  "X-Fern-Language": "JavaScript",
72
72
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
73
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
73
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
74
74
  "X-Fern-Runtime": core.RUNTIME.type,
75
75
  "X-Fern-Runtime-Version": core.RUNTIME.version,
76
76
  },
@@ -122,7 +122,7 @@ class AccountingApi {
122
122
  Authorization: yield this._getAuthorizationHeader(),
123
123
  "X-Fern-Language": "JavaScript",
124
124
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
125
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
125
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
126
126
  "X-Fern-Runtime": core.RUNTIME.type,
127
127
  "X-Fern-Runtime-Version": core.RUNTIME.version,
128
128
  },
@@ -177,7 +177,7 @@ class AccountingApi {
177
177
  Authorization: yield this._getAuthorizationHeader(),
178
178
  "X-Fern-Language": "JavaScript",
179
179
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
180
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
180
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
181
181
  "X-Fern-Runtime": core.RUNTIME.type,
182
182
  "X-Fern-Runtime-Version": core.RUNTIME.version,
183
183
  },
@@ -235,7 +235,7 @@ class AccountingApi {
235
235
  Authorization: yield this._getAuthorizationHeader(),
236
236
  "X-Fern-Language": "JavaScript",
237
237
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
238
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
238
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
239
239
  "X-Fern-Runtime": core.RUNTIME.type,
240
240
  "X-Fern-Runtime-Version": core.RUNTIME.version,
241
241
  },
@@ -127,6 +127,24 @@ export declare class BankApi {
127
127
  * })
128
128
  */
129
129
  verifyBankSignup(request: TheraApi.api.thera.bank.VerifyAccountSignupRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.GetBankAccountVerificationToken>;
130
+ /**
131
+ * Bulk Set Autopay For Teams in a Company
132
+ *
133
+ * @param {string} companyId
134
+ * @param {TheraApi.api.thera.bank.SetBulkAutoPayForTeamsRequest} request
135
+ * @param {BankApi.RequestOptions} requestOptions - Request-specific configuration.
136
+ *
137
+ * @example
138
+ * await client.api.thera.bank.bankApi.setAutoPayForTeams("string", {
139
+ * autopayRequestByTeamId: {
140
+ * "string": {
141
+ * enabled: true,
142
+ * paymentMethodId: "string"
143
+ * }
144
+ * }
145
+ * })
146
+ */
147
+ setAutoPayForTeams(companyId: string, request: TheraApi.api.thera.bank.SetBulkAutoPayForTeamsRequest, requestOptions?: BankApi.RequestOptions): Promise<void>;
130
148
  /**
131
149
  * Adjust autopay settings for a given team
132
150
  *
@@ -76,7 +76,7 @@ class BankApi {
76
76
  Authorization: yield this._getAuthorizationHeader(),
77
77
  "X-Fern-Language": "JavaScript",
78
78
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
79
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
79
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
80
80
  "X-Fern-Runtime": core.RUNTIME.type,
81
81
  "X-Fern-Runtime-Version": core.RUNTIME.version,
82
82
  },
@@ -140,7 +140,7 @@ class BankApi {
140
140
  Authorization: yield this._getAuthorizationHeader(),
141
141
  "X-Fern-Language": "JavaScript",
142
142
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
143
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
143
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
144
144
  "X-Fern-Runtime": core.RUNTIME.type,
145
145
  "X-Fern-Runtime-Version": core.RUNTIME.version,
146
146
  },
@@ -212,7 +212,7 @@ class BankApi {
212
212
  Authorization: yield this._getAuthorizationHeader(),
213
213
  "X-Fern-Language": "JavaScript",
214
214
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
215
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
215
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
216
216
  "X-Fern-Runtime": core.RUNTIME.type,
217
217
  "X-Fern-Runtime-Version": core.RUNTIME.version,
218
218
  },
@@ -276,7 +276,7 @@ class BankApi {
276
276
  Authorization: yield this._getAuthorizationHeader(),
277
277
  "X-Fern-Language": "JavaScript",
278
278
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
279
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
279
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
280
280
  "X-Fern-Runtime": core.RUNTIME.type,
281
281
  "X-Fern-Runtime-Version": core.RUNTIME.version,
282
282
  },
@@ -333,7 +333,7 @@ class BankApi {
333
333
  Authorization: yield this._getAuthorizationHeader(),
334
334
  "X-Fern-Language": "JavaScript",
335
335
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
336
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
336
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
337
337
  "X-Fern-Runtime": core.RUNTIME.type,
338
338
  "X-Fern-Runtime-Version": core.RUNTIME.version,
339
339
  },
@@ -387,7 +387,7 @@ class BankApi {
387
387
  Authorization: yield this._getAuthorizationHeader(),
388
388
  "X-Fern-Language": "JavaScript",
389
389
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
390
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
390
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
391
391
  "X-Fern-Runtime": core.RUNTIME.type,
392
392
  "X-Fern-Runtime-Version": core.RUNTIME.version,
393
393
  },
@@ -445,7 +445,7 @@ class BankApi {
445
445
  Authorization: yield this._getAuthorizationHeader(),
446
446
  "X-Fern-Language": "JavaScript",
447
447
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
448
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
448
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
449
449
  "X-Fern-Runtime": core.RUNTIME.type,
450
450
  "X-Fern-Runtime-Version": core.RUNTIME.version,
451
451
  },
@@ -497,7 +497,7 @@ class BankApi {
497
497
  Authorization: yield this._getAuthorizationHeader(),
498
498
  "X-Fern-Language": "JavaScript",
499
499
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
500
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
500
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
501
501
  "X-Fern-Runtime": core.RUNTIME.type,
502
502
  "X-Fern-Runtime-Version": core.RUNTIME.version,
503
503
  },
@@ -557,7 +557,7 @@ class BankApi {
557
557
  Authorization: yield this._getAuthorizationHeader(),
558
558
  "X-Fern-Language": "JavaScript",
559
559
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
560
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
560
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
561
561
  "X-Fern-Runtime": core.RUNTIME.type,
562
562
  "X-Fern-Runtime-Version": core.RUNTIME.version,
563
563
  },
@@ -600,6 +600,68 @@ class BankApi {
600
600
  }
601
601
  });
602
602
  }
603
+ /**
604
+ * Bulk Set Autopay For Teams in a Company
605
+ *
606
+ * @param {string} companyId
607
+ * @param {TheraApi.api.thera.bank.SetBulkAutoPayForTeamsRequest} request
608
+ * @param {BankApi.RequestOptions} requestOptions - Request-specific configuration.
609
+ *
610
+ * @example
611
+ * await client.api.thera.bank.bankApi.setAutoPayForTeams("string", {
612
+ * autopayRequestByTeamId: {
613
+ * "string": {
614
+ * enabled: true,
615
+ * paymentMethodId: "string"
616
+ * }
617
+ * }
618
+ * })
619
+ */
620
+ setAutoPayForTeams(companyId, request, requestOptions) {
621
+ return __awaiter(this, void 0, void 0, function* () {
622
+ const _response = yield core.fetcher({
623
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `company/${encodeURIComponent(companyId)}/autopay`),
624
+ method: "POST",
625
+ headers: {
626
+ Authorization: yield this._getAuthorizationHeader(),
627
+ "X-Fern-Language": "JavaScript",
628
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
629
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
630
+ "X-Fern-Runtime": core.RUNTIME.type,
631
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
632
+ },
633
+ contentType: "application/json",
634
+ body: yield serializers.api.thera.bank.SetBulkAutoPayForTeamsRequest.jsonOrThrow(request, {
635
+ unrecognizedObjectKeys: "strip",
636
+ }),
637
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
638
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
639
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
640
+ });
641
+ if (_response.ok) {
642
+ return;
643
+ }
644
+ if (_response.error.reason === "status-code") {
645
+ throw new errors.TheraApiError({
646
+ statusCode: _response.error.statusCode,
647
+ body: _response.error.body,
648
+ });
649
+ }
650
+ switch (_response.error.reason) {
651
+ case "non-json":
652
+ throw new errors.TheraApiError({
653
+ statusCode: _response.error.statusCode,
654
+ body: _response.error.rawBody,
655
+ });
656
+ case "timeout":
657
+ throw new errors.TheraApiTimeoutError();
658
+ case "unknown":
659
+ throw new errors.TheraApiError({
660
+ message: _response.error.errorMessage,
661
+ });
662
+ }
663
+ });
664
+ }
603
665
  /**
604
666
  * Adjust autopay settings for a given team
605
667
  *
@@ -623,7 +685,7 @@ class BankApi {
623
685
  Authorization: yield this._getAuthorizationHeader(),
624
686
  "X-Fern-Language": "JavaScript",
625
687
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
626
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
688
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
627
689
  "X-Fern-Runtime": core.RUNTIME.type,
628
690
  "X-Fern-Runtime-Version": core.RUNTIME.version,
629
691
  },
@@ -684,7 +746,7 @@ class BankApi {
684
746
  Authorization: yield this._getAuthorizationHeader(),
685
747
  "X-Fern-Language": "JavaScript",
686
748
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
687
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
749
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
688
750
  "X-Fern-Runtime": core.RUNTIME.type,
689
751
  "X-Fern-Runtime-Version": core.RUNTIME.version,
690
752
  },
@@ -741,7 +803,7 @@ class BankApi {
741
803
  Authorization: yield this._getAuthorizationHeader(),
742
804
  "X-Fern-Language": "JavaScript",
743
805
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
744
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
806
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
745
807
  "X-Fern-Runtime": core.RUNTIME.type,
746
808
  "X-Fern-Runtime-Version": core.RUNTIME.version,
747
809
  },
@@ -808,7 +870,7 @@ class BankApi {
808
870
  Authorization: yield this._getAuthorizationHeader(),
809
871
  "X-Fern-Language": "JavaScript",
810
872
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
811
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
873
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
812
874
  "X-Fern-Runtime": core.RUNTIME.type,
813
875
  "X-Fern-Runtime-Version": core.RUNTIME.version,
814
876
  },
@@ -872,7 +934,7 @@ class BankApi {
872
934
  Authorization: yield this._getAuthorizationHeader(),
873
935
  "X-Fern-Language": "JavaScript",
874
936
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
875
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
937
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
876
938
  "X-Fern-Runtime": core.RUNTIME.type,
877
939
  "X-Fern-Runtime-Version": core.RUNTIME.version,
878
940
  },
@@ -940,7 +1002,7 @@ class BankApi {
940
1002
  Authorization: yield this._getAuthorizationHeader(),
941
1003
  "X-Fern-Language": "JavaScript",
942
1004
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
943
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
1005
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
944
1006
  "X-Fern-Runtime": core.RUNTIME.type,
945
1007
  "X-Fern-Runtime-Version": core.RUNTIME.version,
946
1008
  },
@@ -1018,7 +1080,7 @@ class BankApi {
1018
1080
  Authorization: yield this._getAuthorizationHeader(),
1019
1081
  "X-Fern-Language": "JavaScript",
1020
1082
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
1021
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
1083
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
1022
1084
  "X-Fern-Runtime": core.RUNTIME.type,
1023
1085
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1024
1086
  },
@@ -1099,7 +1161,7 @@ class BankApi {
1099
1161
  Authorization: yield this._getAuthorizationHeader(),
1100
1162
  "X-Fern-Language": "JavaScript",
1101
1163
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
1102
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
1164
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
1103
1165
  "X-Fern-Runtime": core.RUNTIME.type,
1104
1166
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1105
1167
  },
@@ -1158,7 +1220,7 @@ class BankApi {
1158
1220
  Authorization: yield this._getAuthorizationHeader(),
1159
1221
  "X-Fern-Language": "JavaScript",
1160
1222
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
1161
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
1223
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
1162
1224
  "X-Fern-Runtime": core.RUNTIME.type,
1163
1225
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1164
1226
  },
@@ -1217,7 +1279,7 @@ class BankApi {
1217
1279
  Authorization: yield this._getAuthorizationHeader(),
1218
1280
  "X-Fern-Language": "JavaScript",
1219
1281
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
1220
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
1282
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
1221
1283
  "X-Fern-Runtime": core.RUNTIME.type,
1222
1284
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1223
1285
  },
@@ -1284,7 +1346,7 @@ class BankApi {
1284
1346
  Authorization: yield this._getAuthorizationHeader(),
1285
1347
  "X-Fern-Language": "JavaScript",
1286
1348
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
1287
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
1349
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
1288
1350
  "X-Fern-Runtime": core.RUNTIME.type,
1289
1351
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1290
1352
  },
@@ -1351,7 +1413,7 @@ class BankApi {
1351
1413
  Authorization: yield this._getAuthorizationHeader(),
1352
1414
  "X-Fern-Language": "JavaScript",
1353
1415
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
1354
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
1416
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
1355
1417
  "X-Fern-Runtime": core.RUNTIME.type,
1356
1418
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1357
1419
  },
@@ -1410,7 +1472,7 @@ class BankApi {
1410
1472
  Authorization: yield this._getAuthorizationHeader(),
1411
1473
  "X-Fern-Language": "JavaScript",
1412
1474
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
1413
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
1475
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
1414
1476
  "X-Fern-Runtime": core.RUNTIME.type,
1415
1477
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1416
1478
  },
@@ -1466,7 +1528,7 @@ class BankApi {
1466
1528
  Authorization: yield this._getAuthorizationHeader(),
1467
1529
  "X-Fern-Language": "JavaScript",
1468
1530
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
1469
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
1531
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
1470
1532
  "X-Fern-Runtime": core.RUNTIME.type,
1471
1533
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1472
1534
  },
@@ -1521,7 +1583,7 @@ class BankApi {
1521
1583
  Authorization: yield this._getAuthorizationHeader(),
1522
1584
  "X-Fern-Language": "JavaScript",
1523
1585
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
1524
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
1586
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
1525
1587
  "X-Fern-Runtime": core.RUNTIME.type,
1526
1588
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1527
1589
  },
@@ -1588,7 +1650,7 @@ class BankApi {
1588
1650
  Authorization: yield this._getAuthorizationHeader(),
1589
1651
  "X-Fern-Language": "JavaScript",
1590
1652
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
1591
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
1653
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
1592
1654
  "X-Fern-Runtime": core.RUNTIME.type,
1593
1655
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1594
1656
  },
@@ -1645,7 +1707,7 @@ class BankApi {
1645
1707
  Authorization: yield this._getAuthorizationHeader(),
1646
1708
  "X-Fern-Language": "JavaScript",
1647
1709
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
1648
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
1710
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
1649
1711
  "X-Fern-Runtime": core.RUNTIME.type,
1650
1712
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1651
1713
  },
@@ -1705,7 +1767,7 @@ class BankApi {
1705
1767
  Authorization: yield this._getAuthorizationHeader(),
1706
1768
  "X-Fern-Language": "JavaScript",
1707
1769
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
1708
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
1770
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
1709
1771
  "X-Fern-Runtime": core.RUNTIME.type,
1710
1772
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1711
1773
  },
@@ -1769,7 +1831,7 @@ class BankApi {
1769
1831
  Authorization: yield this._getAuthorizationHeader(),
1770
1832
  "X-Fern-Language": "JavaScript",
1771
1833
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
1772
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
1834
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
1773
1835
  "X-Fern-Runtime": core.RUNTIME.type,
1774
1836
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1775
1837
  },
@@ -1829,7 +1891,7 @@ class BankApi {
1829
1891
  Authorization: yield this._getAuthorizationHeader(),
1830
1892
  "X-Fern-Language": "JavaScript",
1831
1893
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
1832
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
1894
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
1833
1895
  "X-Fern-Runtime": core.RUNTIME.type,
1834
1896
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1835
1897
  },
@@ -1889,7 +1951,7 @@ class BankApi {
1889
1951
  Authorization: yield this._getAuthorizationHeader(),
1890
1952
  "X-Fern-Language": "JavaScript",
1891
1953
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
1892
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
1954
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
1893
1955
  "X-Fern-Runtime": core.RUNTIME.type,
1894
1956
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1895
1957
  },
@@ -1944,7 +2006,7 @@ class BankApi {
1944
2006
  Authorization: yield this._getAuthorizationHeader(),
1945
2007
  "X-Fern-Language": "JavaScript",
1946
2008
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
1947
- "X-Fern-SDK-Version": "0.0.1-prerelease2687-dev-anthony",
2009
+ "X-Fern-SDK-Version": "0.0.1-prerelease2702-dev-anthony",
1948
2010
  "X-Fern-Runtime": core.RUNTIME.type,
1949
2011
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1950
2012
  },
@@ -1,7 +1,6 @@
1
1
  export { type PlaidUpdateFlowLinkTokenRequest } from "./PlaidUpdateFlowLinkTokenRequest";
2
2
  export { type GenerateBankSignupRequest } from "./GenerateBankSignupRequest";
3
3
  export { type VerifyAccountSignupRequest } from "./VerifyAccountSignupRequest";
4
- export { type SetAutoPayRequest } from "./SetAutoPayRequest";
5
4
  export { type GetWithdrawalMethodCurrenciesRequest } from "./GetWithdrawalMethodCurrenciesRequest";
6
5
  export { type GetWithdrawalLimitsByMethodRequest } from "./GetWithdrawalLimitsByMethodRequest";
7
6
  export { type GetWithdrawalMinimumByCurrencyRequest } from "./GetWithdrawalMinimumByCurrencyRequest";
@@ -1,19 +1,11 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- /**
5
- * @example
6
- * {
7
- * enabled: true,
8
- * paymentMethodId: "string"
9
- * }
10
- */
11
4
  export interface SetAutoPayRequest {
12
5
  /**
13
6
  * If enabled, all fixed rate invoices will automatically be paid x days in advance of their due date, where x is
14
7
  * the number of days that the company has set for their invoices to be available ahead of their due date. A payment method id
15
8
  * must be included if this is set to on.
16
- *
17
9
  */
18
10
  enabled: boolean;
19
11
  /** For now, this should be the Stripe payment method id */
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../../../../../../index";
5
+ export interface SetBulkAutoPayForTeamsRequest {
6
+ autopayRequestByTeamId: Record<string, TheraApi.api.thera.bank.SetAutoPayRequest>;
7
+ }
@@ -1,3 +1,5 @@
1
+ export * from "./SetAutoPayRequest";
2
+ export * from "./SetBulkAutoPayForTeamsRequest";
1
3
  export * from "./ReattachStripeAccountMandateRequest";
2
4
  export * from "./CompleteAccountSignupRequest";
3
5
  export * from "./GetPaymentMethodsResponse";
@@ -14,6 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./SetAutoPayRequest"), exports);
18
+ __exportStar(require("./SetBulkAutoPayForTeamsRequest"), exports);
17
19
  __exportStar(require("./ReattachStripeAccountMandateRequest"), exports);
18
20
  __exportStar(require("./CompleteAccountSignupRequest"), exports);
19
21
  __exportStar(require("./GetPaymentMethodsResponse"), exports);