washday-sdk 0.0.188 → 0.0.189
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.
|
@@ -13,7 +13,7 @@ export const updateCompanyTaxInfoCertificates = function (companyId, data) {
|
|
|
13
13
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14
14
|
try {
|
|
15
15
|
const config = {
|
|
16
|
-
headers: { Authorization: `Bearer ${this.apiToken}
|
|
16
|
+
headers: { Authorization: `Bearer ${this.apiToken}`, 'Content-Type': false }
|
|
17
17
|
};
|
|
18
18
|
const response = yield axiosInstance.post(`${GET_SET_COMPANIES}/${companyId}/taxInfo/certificates`, data, config);
|
|
19
19
|
return response;
|
package/package.json
CHANGED
|
@@ -2,10 +2,10 @@ import { WashdayClientInstance } from "../../interfaces/Api";
|
|
|
2
2
|
import axiosInstance from "../axiosInstance";
|
|
3
3
|
const GET_SET_COMPANIES = 'api/company';
|
|
4
4
|
|
|
5
|
-
export const updateCompanyTaxInfoCertificates = async function (this: WashdayClientInstance, companyId: string, data:
|
|
5
|
+
export const updateCompanyTaxInfoCertificates = async function (this: WashdayClientInstance, companyId: string, data: FormData): Promise<any> {
|
|
6
6
|
try {
|
|
7
7
|
const config = {
|
|
8
|
-
headers: { Authorization: `Bearer ${this.apiToken}
|
|
8
|
+
headers: { Authorization: `Bearer ${this.apiToken}`, 'Content-Type': false }
|
|
9
9
|
};
|
|
10
10
|
const response = await axiosInstance.post(`${GET_SET_COMPANIES}/${companyId}/taxInfo/certificates`, data, config);
|
|
11
11
|
return response;
|