@passly-nl/data 1.0.0-rc.3 → 1.0.0-rc.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.
- package/dist/index.d.mts +1 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/service/MerchantStatisticsService.ts +11 -1
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import type { ApexOptions } from 'apexcharts';
|
|
|
3
3
|
|
|
4
4
|
export class MerchantStatisticsService extends BaseService {
|
|
5
5
|
async getRevenueTrend(merchantId: string): Promise<BaseResponse<ApexOptions>> {
|
|
6
|
-
return this
|
|
6
|
+
return await this
|
|
7
7
|
.request(`/merchants/${merchantId}/statistics/revenue-trend`)
|
|
8
8
|
.method('get')
|
|
9
9
|
.queryString(QueryString.builder()
|
|
@@ -11,4 +11,14 @@ export class MerchantStatisticsService extends BaseService {
|
|
|
11
11
|
.bearerToken()
|
|
12
12
|
.run();
|
|
13
13
|
}
|
|
14
|
+
|
|
15
|
+
async getStatus(merchantId: string): Promise<BaseResponse<boolean>> {
|
|
16
|
+
return await this
|
|
17
|
+
.request(`/merchants/${merchantId}/statistics/status`)
|
|
18
|
+
.method('get')
|
|
19
|
+
.queryString(QueryString.builder()
|
|
20
|
+
.append('language', 'nl'))
|
|
21
|
+
.bearerToken()
|
|
22
|
+
.run();
|
|
23
|
+
}
|
|
14
24
|
}
|