Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@figuredev/orders-sdk

Package Overview
Dependencies
Maintainers
5
Versions
151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@figuredev/orders-sdk - npm Package Compare versions

Comparing version 0.12.34 to 0.12.36

2

lib/index.d.ts

@@ -19,3 +19,3 @@ import { InventoryInfoDTO } from "./inventory";

};
placeOrder(order: OrderDTO, ctx: UserContext): Promise<import("axios").AxiosResponse<any, any>>;
placeOrder(order: OrderDTO, ctx: UserContext): Promise<import("axios").AxiosResponse<any>>;
getOrder(ctx: UserContext, id: string): Promise<OrderDTO>;

@@ -22,0 +22,0 @@ getOrdersCount(ctx: UserContext, params: {

@@ -1,2 +0,2 @@

import { NetCollectedBreakdownByEmployeeReportDTO, TransactionByAssignmentReportDTO, TransactionByPaymentTypeByEmployeeReportDTO, TransactionByPaymentTypeReportDTO, TransactionBySourceReportDTO } from "./reportsTypes";
import { NetCollectedBreakdownByEmployeeReportDTO, NetCollectedBreakdownReportDTO, TransactionByAssignmentReportDTO, TransactionByPaymentTypeByEmployeeReportDTO, TransactionByPaymentTypeReportDTO, TransactionBySourceReportDTO } from "./reportsTypes";
import { IsoDate } from "./types";

@@ -47,3 +47,9 @@ import { UserContext } from "./utils";

}): Promise<TransactionByAssignmentReportDTO[]>;
getNetCollectedBreakdownReport(ctx: UserContext, params: {
from: IsoDate;
to: IsoDate;
assigneeIds?: string[];
locationIds?: string[];
}): Promise<NetCollectedBreakdownReportDTO[]>;
}
export {};

@@ -86,4 +86,17 @@ "use strict";

}
getNetCollectedBreakdownReport(ctx, params) {
return __awaiter(this, void 0, void 0, function* () {
return yield axios_1.default
.request({
baseURL: this.config.baseUrl,
method: "POST",
url: "/report/net-collected-breakdown",
headers: this.prepareHeaders(ctx),
data: Object.assign(Object.assign({ from: params.from, to: params.to }, (params.assigneeIds ? { assigneeIds: params.assigneeIds } : null)), (params.locationIds ? { locationIds: params.locationIds } : null)),
})
.then((r) => { var _a; return (_a = r.data) !== null && _a !== void 0 ? _a : []; });
});
}
}
exports.ReportsClient = ReportsClient;
//# sourceMappingURL=reports.js.map

@@ -49,1 +49,19 @@ export declare type TransactionByPaymentTypeReportDTO = {

};
export declare type NetCollectedBreakdownReportDTO = {
net_collected: number;
gross_revenue: number;
net_revenue: number;
refunds: number;
voids: number;
special_pricings: number;
taxes: number;
tip: number;
gratuity: number;
tips_and_gratuity: number;
historical_refunds: number;
losses: number;
forfeits: number;
service_fee: number;
cash_discount: number;
card_surcharge: number;
};
{
"name": "@figuredev/orders-sdk",
"version": "0.12.34",
"version": "0.12.36",
"license": "ISC",

@@ -5,0 +5,0 @@ "files": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc