washday-sdk 0.0.188 → 0.0.190
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.
package/dist/api/cashups/get.js
CHANGED
|
@@ -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
package/src/api/cashups/get.ts
CHANGED
|
@@ -9,6 +9,7 @@ const GET_CASH_UP_REPORTS = 'api/cashupreports';
|
|
|
9
9
|
export const getList = async function (this: WashdayClientInstance, storeId: string, params: {
|
|
10
10
|
pageNum?: string;
|
|
11
11
|
limit?: string;
|
|
12
|
+
cashierBoxId?: string;
|
|
12
13
|
}): Promise<any> {
|
|
13
14
|
try {
|
|
14
15
|
const config = {
|
|
@@ -17,6 +18,7 @@ export const getList = async function (this: WashdayClientInstance, storeId: str
|
|
|
17
18
|
const queryParams = generateQueryParamsStr([
|
|
18
19
|
'pageNum',
|
|
19
20
|
'limit',
|
|
21
|
+
'cashierBoxId'
|
|
20
22
|
], params);
|
|
21
23
|
return await axiosInstance.get(`${GET_CASH_UP_REPORTS}/${storeId}?${queryParams}`, config);
|
|
22
24
|
} catch (error) {
|
|
@@ -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;
|