@figuredev/business-config-sdk
Advanced tools
Comparing version 0.15.68 to 0.15.69
@@ -19,2 +19,3 @@ import { AccountDTO, PreparedImageUploadDTO } from "./account"; | ||
import { TableManagementDTO } from "./tableManagement"; | ||
import { TaxPreviewDTO } from "./tax"; | ||
import { TerminalDTO, TerminalPreviewDTO } from "./terminal"; | ||
@@ -98,2 +99,3 @@ import { UserContext } from "./utils"; | ||
getLocationPreviews(ctx: UserContext, params: GetLocationPreviewsQueryParams): Promise<LocationPreviewDTO[]>; | ||
getTaxesPreview(ctx: UserContext, params: GetLocationPreviewsQueryParams): Promise<TaxPreviewDTO[]>; | ||
getOnlineOrderingTheme(ctx: UserContext): Promise<OnlineOrderingThemeDTO | null>; | ||
@@ -100,0 +102,0 @@ getTerminal(ctx: UserContext, id: string): Promise<TerminalDTO | null>; |
@@ -88,2 +88,15 @@ "use strict"; | ||
} | ||
getTaxesPreview(ctx, params) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
method: "GET", | ||
url: "/tax/preview", | ||
headers: this.prepareHeaders(ctx), | ||
params: { | ||
locationIds: params.locationIds, | ||
}, | ||
}).then((r) => r.data); | ||
}); | ||
} | ||
getOnlineOrderingTheme(ctx) { | ||
@@ -90,0 +103,0 @@ return __awaiter(this, void 0, void 0, function* () { |
{ | ||
"name": "@figuredev/business-config-sdk", | ||
"version": "0.15.68", | ||
"version": "0.15.69", | ||
"license": "ISC", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
76787
74
1699