pancake-client-sdk
Version:
Official TypeScript SDK for Pancake POS API
18 lines • 554 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BaseResource = void 0;
class BaseResource {
constructor(client) {
this.client = client;
this.shopId = client.shopId;
}
getShopPath(path, shopId) {
const effectiveShopId = shopId || this.shopId;
if (!effectiveShopId) {
throw new Error('Shop ID is required but not provided');
}
return `/shops/${effectiveShopId}${path}`;
}
}
exports.BaseResource = BaseResource;
//# sourceMappingURL=base.js.map