@thera-hr/api-sdk 0.0.3283728 → 1.1.1-THERA-2281-deployment-improvement.4

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 (147) hide show
  1. package/Client.d.ts +3 -0
  2. package/api/resources/api/client/Client.d.ts +3 -0
  3. package/api/resources/api/resources/aiprise/client/Client.d.ts +3 -0
  4. package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.d.ts +4 -1
  5. package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +3 -3
  6. package/api/resources/api/resources/services/client/Client.d.ts +3 -0
  7. package/api/resources/api/resources/services/resources/file/client/Client.d.ts +7 -4
  8. package/api/resources/api/resources/services/resources/file/client/Client.js +12 -12
  9. package/api/resources/api/resources/thera/client/Client.d.ts +3 -0
  10. package/api/resources/api/resources/thera/resources/bank/client/Client.d.ts +3 -0
  11. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +24 -21
  12. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +67 -64
  13. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWithdrawalMethodCurrenciesRequest.d.ts +1 -0
  14. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.d.ts +1 -0
  15. package/api/resources/api/resources/thera/resources/company/client/Client.d.ts +3 -0
  16. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +16 -13
  17. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +41 -47
  18. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +0 -1
  19. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/ContractorAndContracts.d.ts +10 -0
  20. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateCompanyRequest.d.ts +1 -1
  21. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +1 -0
  22. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +1 -0
  23. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.d.ts +4 -1
  24. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  25. package/api/resources/api/resources/thera/resources/contractor/client/Client.d.ts +3 -0
  26. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.d.ts +4 -1
  27. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  28. package/api/resources/api/resources/thera/resources/disbursement/client/Client.d.ts +3 -0
  29. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.d.ts +6 -3
  30. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +9 -9
  31. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.d.ts +4 -1
  32. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +3 -3
  33. package/api/resources/api/resources/thera/resources/email/client/Client.d.ts +3 -0
  34. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.d.ts +4 -1
  35. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +3 -3
  36. package/api/resources/api/resources/thera/resources/employment/client/Client.d.ts +3 -0
  37. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.d.ts +6 -3
  38. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +9 -9
  39. package/api/resources/api/resources/thera/resources/misc/client/Client.d.ts +3 -0
  40. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.d.ts +4 -1
  41. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +3 -3
  42. package/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +3 -0
  43. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +4 -1
  44. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
  45. package/api/resources/api/resources/thera/resources/user/client/Client.d.ts +3 -0
  46. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.d.ts +4 -1
  47. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  48. package/api/resources/db/resources/user/types/AiPriseVerificationResult.d.ts +2 -1
  49. package/api/resources/db/resources/user/types/BankTransfer.d.ts +1 -0
  50. package/api/resources/db/resources/user/types/PoweredBy.d.ts +8 -0
  51. package/api/resources/db/resources/user/types/PoweredBy.js +10 -0
  52. package/api/resources/db/resources/user/types/index.d.ts +1 -0
  53. package/api/resources/db/resources/user/types/index.js +1 -0
  54. package/core/fetcher/Fetcher.d.ts +2 -2
  55. package/core/index.d.ts +1 -1
  56. package/core/index.js +4 -4
  57. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +5 -5
  58. package/dist/Client.d.ts +3 -0
  59. package/dist/api/resources/api/client/Client.d.ts +3 -0
  60. package/dist/api/resources/api/resources/aiprise/client/Client.d.ts +3 -0
  61. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.d.ts +4 -1
  62. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +3 -3
  63. package/dist/api/resources/api/resources/services/client/Client.d.ts +3 -0
  64. package/dist/api/resources/api/resources/services/resources/file/client/Client.d.ts +7 -4
  65. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +12 -12
  66. package/dist/api/resources/api/resources/thera/client/Client.d.ts +3 -0
  67. package/dist/api/resources/api/resources/thera/resources/bank/client/Client.d.ts +3 -0
  68. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +24 -21
  69. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +67 -64
  70. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWithdrawalMethodCurrenciesRequest.d.ts +1 -0
  71. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.d.ts +1 -0
  72. package/dist/api/resources/api/resources/thera/resources/company/client/Client.d.ts +3 -0
  73. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +16 -13
  74. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +41 -47
  75. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +0 -1
  76. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/ContractorAndContracts.d.ts +10 -0
  77. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateCompanyRequest.d.ts +1 -1
  78. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +1 -0
  79. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +1 -0
  80. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.d.ts +4 -1
  81. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  82. package/dist/api/resources/api/resources/thera/resources/contractor/client/Client.d.ts +3 -0
  83. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.d.ts +4 -1
  84. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  85. package/dist/api/resources/api/resources/thera/resources/disbursement/client/Client.d.ts +3 -0
  86. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.d.ts +6 -3
  87. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +9 -9
  88. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.d.ts +4 -1
  89. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +3 -3
  90. package/dist/api/resources/api/resources/thera/resources/email/client/Client.d.ts +3 -0
  91. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.d.ts +4 -1
  92. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +3 -3
  93. package/dist/api/resources/api/resources/thera/resources/employment/client/Client.d.ts +3 -0
  94. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.d.ts +6 -3
  95. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +9 -9
  96. package/dist/api/resources/api/resources/thera/resources/misc/client/Client.d.ts +3 -0
  97. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.d.ts +4 -1
  98. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +3 -3
  99. package/dist/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +3 -0
  100. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +4 -1
  101. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
  102. package/dist/api/resources/api/resources/thera/resources/user/client/Client.d.ts +3 -0
  103. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.d.ts +4 -1
  104. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  105. package/dist/api/resources/db/resources/user/types/AiPriseVerificationResult.d.ts +2 -1
  106. package/dist/api/resources/db/resources/user/types/BankTransfer.d.ts +1 -0
  107. package/dist/api/resources/db/resources/user/types/PoweredBy.d.ts +8 -0
  108. package/dist/api/resources/db/resources/user/types/PoweredBy.js +10 -0
  109. package/dist/api/resources/db/resources/user/types/index.d.ts +1 -0
  110. package/dist/api/resources/db/resources/user/types/index.js +1 -0
  111. package/dist/core/fetcher/Fetcher.d.ts +2 -2
  112. package/dist/core/index.d.ts +1 -1
  113. package/dist/core/index.js +4 -4
  114. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +5 -5
  115. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.d.ts +1 -0
  116. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.js +3 -0
  117. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/ContractorAndContracts.d.ts +14 -0
  118. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/ContractorAndContracts.js +44 -0
  119. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +1 -0
  120. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +1 -0
  121. package/dist/serialization/resources/db/resources/user/types/AiPriseVerificationResult.d.ts +1 -1
  122. package/dist/serialization/resources/db/resources/user/types/AiPriseVerificationResult.js +1 -1
  123. package/dist/serialization/resources/db/resources/user/types/BankTransfer.d.ts +1 -0
  124. package/dist/serialization/resources/db/resources/user/types/BankTransfer.js +1 -0
  125. package/dist/serialization/resources/db/resources/user/types/PoweredBy.d.ts +10 -0
  126. package/dist/serialization/resources/db/resources/user/types/PoweredBy.js +31 -0
  127. package/dist/serialization/resources/db/resources/user/types/index.d.ts +1 -0
  128. package/dist/serialization/resources/db/resources/user/types/index.js +1 -0
  129. package/package.json +2 -2
  130. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.d.ts +1 -0
  131. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.js +3 -0
  132. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/ContractorAndContracts.d.ts +14 -0
  133. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/ContractorAndContracts.js +44 -0
  134. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +1 -0
  135. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +1 -0
  136. package/serialization/resources/db/resources/user/types/AiPriseVerificationResult.d.ts +1 -1
  137. package/serialization/resources/db/resources/user/types/AiPriseVerificationResult.js +1 -1
  138. package/serialization/resources/db/resources/user/types/BankTransfer.d.ts +1 -0
  139. package/serialization/resources/db/resources/user/types/BankTransfer.js +1 -0
  140. package/serialization/resources/db/resources/user/types/PoweredBy.d.ts +10 -0
  141. package/serialization/resources/db/resources/user/types/PoweredBy.js +31 -0
  142. package/serialization/resources/db/resources/user/types/index.d.ts +1 -0
  143. package/serialization/resources/db/resources/user/types/index.js +1 -0
  144. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/InviteContractorReq.d.ts +0 -8
  145. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/InviteContractorReq.d.ts +0 -8
  146. /package/api/resources/api/resources/thera/resources/company/resources/companyApi/{client/requests/InviteContractorReq.js → types/ContractorAndContracts.js} +0 -0
  147. /package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/{client/requests/InviteContractorReq.js → types/ContractorAndContracts.js} +0 -0
@@ -47,7 +47,7 @@ class File_ {
47
47
  constructor(_options) {
48
48
  this._options = _options;
49
49
  }
50
- attachDocumentToEmployment(contractId, request) {
50
+ attachDocumentToEmployment(contractId, request, requestOptions) {
51
51
  return __awaiter(this, void 0, void 0, function* () {
52
52
  const _response = yield core.fetcher({
53
53
  url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/contracts/${contractId}/generic-document`),
@@ -56,13 +56,13 @@ class File_ {
56
56
  Authorization: yield this._getAuthorizationHeader(),
57
57
  "X-Fern-Language": "JavaScript",
58
58
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
59
- "X-Fern-SDK-Version": "0.0.3283728",
59
+ "X-Fern-SDK-Version": "1.1.1-THERA-2281-deployment-improvement.4",
60
60
  },
61
61
  contentType: "application/json",
62
62
  body: yield serializers.api.services.AttachDocumentToEmploymentRequest.jsonOrThrow(request, {
63
63
  unrecognizedObjectKeys: "strip",
64
64
  }),
65
- timeoutMs: 60000,
65
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
66
66
  });
67
67
  if (_response.ok) {
68
68
  return;
@@ -88,7 +88,7 @@ class File_ {
88
88
  }
89
89
  });
90
90
  }
91
- deleteDocumentFromEmployment(contractId, s3Key, request) {
91
+ deleteDocumentFromEmployment(contractId, s3Key, request, requestOptions) {
92
92
  return __awaiter(this, void 0, void 0, function* () {
93
93
  const _response = yield core.fetcher({
94
94
  url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/contracts/${contractId}/generic-document/${s3Key}`),
@@ -97,13 +97,13 @@ class File_ {
97
97
  Authorization: yield this._getAuthorizationHeader(),
98
98
  "X-Fern-Language": "JavaScript",
99
99
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
100
- "X-Fern-SDK-Version": "0.0.3283728",
100
+ "X-Fern-SDK-Version": "1.1.1-THERA-2281-deployment-improvement.4",
101
101
  },
102
102
  contentType: "application/json",
103
103
  body: yield serializers.api.services.DeleteDocumentFromEmploymentRequest.jsonOrThrow(request, {
104
104
  unrecognizedObjectKeys: "strip",
105
105
  }),
106
- timeoutMs: 60000,
106
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
107
107
  });
108
108
  if (_response.ok) {
109
109
  return;
@@ -129,7 +129,7 @@ class File_ {
129
129
  }
130
130
  });
131
131
  }
132
- loadGenericDocumentFromEmployment(contractId, s3Key) {
132
+ loadGenericDocumentFromEmployment(contractId, s3Key, requestOptions) {
133
133
  return __awaiter(this, void 0, void 0, function* () {
134
134
  const _response = yield core.fetcher({
135
135
  url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/contracts/${contractId}/generic-document/${s3Key}/file-url`),
@@ -138,10 +138,10 @@ class File_ {
138
138
  Authorization: yield this._getAuthorizationHeader(),
139
139
  "X-Fern-Language": "JavaScript",
140
140
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
141
- "X-Fern-SDK-Version": "0.0.3283728",
141
+ "X-Fern-SDK-Version": "1.1.1-THERA-2281-deployment-improvement.4",
142
142
  },
143
143
  contentType: "application/json",
144
- timeoutMs: 60000,
144
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
145
145
  });
146
146
  if (_response.ok) {
147
147
  return yield serializers.api.services.LoadGenericDocumentFromEmploymentResponse.parseOrThrow(_response.body, {
@@ -173,7 +173,7 @@ class File_ {
173
173
  }
174
174
  });
175
175
  }
176
- loadPayslipFromEorEmployment(contractId, s3Key) {
176
+ loadPayslipFromEorEmployment(contractId, s3Key, requestOptions) {
177
177
  return __awaiter(this, void 0, void 0, function* () {
178
178
  const _response = yield core.fetcher({
179
179
  url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/contracts/eor/${contractId}/payslips/${s3Key}/fileUrl`),
@@ -182,10 +182,10 @@ class File_ {
182
182
  Authorization: yield this._getAuthorizationHeader(),
183
183
  "X-Fern-Language": "JavaScript",
184
184
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
185
- "X-Fern-SDK-Version": "0.0.3283728",
185
+ "X-Fern-SDK-Version": "1.1.1-THERA-2281-deployment-improvement.4",
186
186
  },
187
187
  contentType: "application/json",
188
- timeoutMs: 60000,
188
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
189
189
  });
190
190
  if (_response.ok) {
191
191
  return yield serializers.api.services.LoadPayslipForEorEmployeeResponse.parseOrThrow(_response.body, {
@@ -16,6 +16,9 @@ export declare namespace Thera {
16
16
  environment: core.Supplier<string>;
17
17
  token?: core.Supplier<core.BearerToken | undefined>;
18
18
  }
19
+ interface RequestOptions {
20
+ timeoutInSeconds?: number;
21
+ }
19
22
  }
20
23
  export declare class Thera {
21
24
  protected readonly _options: Thera.Options;
@@ -8,6 +8,9 @@ export declare namespace Bank {
8
8
  environment: core.Supplier<string>;
9
9
  token?: core.Supplier<core.BearerToken | undefined>;
10
10
  }
11
+ interface RequestOptions {
12
+ timeoutInSeconds?: number;
13
+ }
11
14
  }
12
15
  export declare class Bank {
13
16
  protected readonly _options: Bank.Options;
@@ -8,6 +8,9 @@ export declare namespace BankApi {
8
8
  environment: core.Supplier<string>;
9
9
  token?: core.Supplier<core.BearerToken | undefined>;
10
10
  }
11
+ interface RequestOptions {
12
+ timeoutInSeconds?: number;
13
+ }
11
14
  }
12
15
  export declare class BankApi {
13
16
  protected readonly _options: BankApi.Options;
@@ -15,53 +18,53 @@ export declare class BankApi {
15
18
  /**
16
19
  * Get Plaid Bank Account Details (employer/admin's bank account status). Contains Status, etc
17
20
  */
18
- getPlaidBankDetails(companyId: string): Promise<TheraApi.api.thera.bank.GetBankAccountDetailsResponse | undefined>;
19
- generatePlaidUpdateFlowLinkToken(request: TheraApi.api.thera.bank.PlaidUpdateFlowLinkTokenRequest): Promise<TheraApi.api.thera.bank.PlaidUpdateFlowLinkTokenResponse>;
21
+ getPlaidBankDetails(companyId: string, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.GetBankAccountDetailsResponse | undefined>;
22
+ generatePlaidUpdateFlowLinkToken(request: TheraApi.api.thera.bank.PlaidUpdateFlowLinkTokenRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.PlaidUpdateFlowLinkTokenResponse>;
20
23
  /**
21
24
  * Get Plaid's link-token
22
25
  */
23
- generateBankSignup(request?: TheraApi.api.thera.bank.GenerateBankSignupRequest): Promise<TheraApi.api.thera.bank.GetBankAccountSignupKey>;
26
+ generateBankSignup(request?: TheraApi.api.thera.bank.GenerateBankSignupRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.GetBankAccountSignupKey>;
24
27
  /**
25
28
  * Calling this API to signify that company's bank account has been provided to Plaid
26
29
  */
27
- completeBankSignup(request: TheraApi.api.thera.bank.CompleteAccountSignupRequest): Promise<void>;
30
+ completeBankSignup(request: TheraApi.api.thera.bank.CompleteAccountSignupRequest, requestOptions?: BankApi.RequestOptions): Promise<void>;
28
31
  /**
29
32
  * Used for Manual Verification. Calling this API to check in Plaid if the account has been verified
30
33
  */
31
- verifyBankSignup(request?: TheraApi.api.thera.bank.VerifyAccountSignupRequest): Promise<TheraApi.api.thera.bank.GetBankAccountVerificationToken>;
34
+ verifyBankSignup(request?: TheraApi.api.thera.bank.VerifyAccountSignupRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.GetBankAccountVerificationToken>;
32
35
  /**
33
36
  * Update Zeal's bank account with info from Plaid & send microdeposit to company's bank account during W2 onboarding for Zeal API
34
37
  */
35
- sendMicrodeposit(request?: TheraApi.api.thera.bank.SendMicroDepositRequest): Promise<void>;
38
+ sendMicrodeposit(request?: TheraApi.api.thera.bank.SendMicroDepositRequest, requestOptions?: BankApi.RequestOptions): Promise<void>;
36
39
  /**
37
40
  * Verify Microdeposit for company's bank account during W2 onboarding for Zeal API
38
41
  */
39
- verifyMicrodeposit(request: TheraApi.api.thera.bank.VerifyMicrodepositRequest): Promise<void>;
42
+ verifyMicrodeposit(request: TheraApi.api.thera.bank.VerifyMicrodepositRequest, requestOptions?: BankApi.RequestOptions): Promise<void>;
40
43
  /**
41
44
  * Get the Supported Currencies for Each Withdrawal Method
42
45
  */
43
- getWithdrawalMethodCurrencies(request: TheraApi.api.thera.bank.GetWithdrawalMethodCurrenciesRequest): Promise<TheraApi.api.thera.bank.GetWithdrawalMethodCurrenciesResponse>;
46
+ getWithdrawalMethodCurrencies(request: TheraApi.api.thera.bank.GetWithdrawalMethodCurrenciesRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.GetWithdrawalMethodCurrenciesResponse>;
44
47
  /**
45
48
  * Get the minimum amount that must be withdrawn for a given currency to avoid incurring silly fees.
46
49
  */
47
- getWithdrawalMinimumByCurrency(request: TheraApi.api.thera.bank.GetWithdrawalMinimumByCurrencyRequest): Promise<TheraApi.api.thera.bank.GetWithdrawalMinimumByCurrencyResponse>;
50
+ getWithdrawalMinimumByCurrency(request: TheraApi.api.thera.bank.GetWithdrawalMinimumByCurrencyRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.GetWithdrawalMinimumByCurrencyResponse>;
48
51
  /**
49
52
  * This endpoint should be used to dynamically create a form that allows a worker to enter their withdrawal method information. The user should initially be prompted to provide their `currency`. FE should then pass this with user's address that we've already saved in their `employeeInformation` for `recipientAddress`, and the user's first name and last name for `accountHolderName`. A response will be returned a list of `type`s that the user should select from, then provide the corresponding `details` for in the form. This is the same response returned by [this endpoint] (https://docs.wise.com/api-docs/api-reference/recipient#account-requirements) in Wise. These `details` should continue to be posted to this endpoint whenever a field with `refreshRequirementsOnChange = true` is changed to get the most up to date requirements, just like the Wise endpoint.
50
53
  */
51
- getSupportedWithdrawalMethods(request: TheraApi.api.thera.bank.WithdrawalMethodsRequest): Promise<TheraApi.api.thera.bank.SingleWithdrawalMethodResponse[]>;
54
+ getSupportedWithdrawalMethods(request: TheraApi.api.thera.bank.WithdrawalMethodsRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.SingleWithdrawalMethodResponse[]>;
52
55
  /**
53
56
  * After gathering all the dynamic fields required for the `Get Supported Withdrawal Methods`, they should be submitted here in order to save the payment method.
54
57
  */
55
- saveWithdrawalMethod(userId: string, request: TheraApi.api.thera.bank.WithdrawalMethodsRequest): Promise<TheraApi.api.thera.bank.SaveWithdrawalMethodResponse>;
56
- deleteWithdrawalMethod(userId: string, withdrawalMethodId: string): Promise<TheraApi.api.thera.bank.DeleteWithdrawalMethodResponse>;
57
- editWithdrawalMethod(userId: string, withdrawalMethodId: string, request: TheraApi.api.thera.bank.EditWithdrawalMethodRequest): Promise<TheraApi.api.thera.bank.EditWithdrawalMethodResponse>;
58
- initiateWorkerWithdrawal(userId: string, companyId: string, request: TheraApi.api.thera.bank.InitiateWorkerWithdrawalRequest): Promise<TheraApi.api.thera.bank.InitiateWorkerWithdrawalResponse>;
59
- getWorkerBalance(userId: string, companyId: string): Promise<TheraApi.api.thera.bank.GetWorkerBalancesResponse>;
60
- getWorkerTransactions(userId: string, companyId: string): Promise<TheraApi.api.thera.bank.GetWorkerTransactionsResponse>;
61
- getPayInHistory(companyId: string): Promise<TheraApi.api.thera.bank.GetPayInHistoryResponse>;
62
- getPayInDetails(companyId: string, payInId: string): Promise<TheraApi.api.thera.bank.GetPayInDetailsResponse>;
63
- getCurrencyConversion(request: TheraApi.api.thera.bank.GetCurrencyConversionRequest): Promise<TheraApi.api.thera.bank.GetCurrencyConversionResponse>;
64
- setAutoWithdrawals(userId: string, companyId: string, request: TheraApi.api.thera.bank.SetAutoWithdrawalRequest): Promise<TheraApi.api.thera.bank.SetAutoWithdrawalResponse>;
65
- createStripePaymentMethodFromPlaid(request?: TheraApi.api.thera.bank.CreateStripePaymentMethodFromPlaidRequest): Promise<void>;
58
+ saveWithdrawalMethod(userId: string, request: TheraApi.api.thera.bank.WithdrawalMethodsRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.SaveWithdrawalMethodResponse>;
59
+ deleteWithdrawalMethod(userId: string, withdrawalMethodId: string, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.DeleteWithdrawalMethodResponse>;
60
+ editWithdrawalMethod(userId: string, withdrawalMethodId: string, request: TheraApi.api.thera.bank.EditWithdrawalMethodRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.EditWithdrawalMethodResponse>;
61
+ initiateWorkerWithdrawal(userId: string, companyId: string, request: TheraApi.api.thera.bank.InitiateWorkerWithdrawalRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.InitiateWorkerWithdrawalResponse>;
62
+ getWorkerBalance(userId: string, companyId: string, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.GetWorkerBalancesResponse>;
63
+ getWorkerTransactions(userId: string, companyId: string, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.GetWorkerTransactionsResponse>;
64
+ getPayInHistory(companyId: string, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.GetPayInHistoryResponse>;
65
+ getPayInDetails(companyId: string, payInId: string, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.GetPayInDetailsResponse>;
66
+ getCurrencyConversion(request: TheraApi.api.thera.bank.GetCurrencyConversionRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.GetCurrencyConversionResponse>;
67
+ setAutoWithdrawals(userId: string, companyId: string, request: TheraApi.api.thera.bank.SetAutoWithdrawalRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.SetAutoWithdrawalResponse>;
68
+ createStripePaymentMethodFromPlaid(request?: TheraApi.api.thera.bank.CreateStripePaymentMethodFromPlaidRequest, requestOptions?: BankApi.RequestOptions): Promise<void>;
66
69
  protected _getAuthorizationHeader(): Promise<string | undefined>;
67
70
  }