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

@figuredev/business-config-sdk

Package Overview
Dependencies
Maintainers
6
Versions
147
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@figuredev/business-config-sdk - npm Package Compare versions

Comparing version 0.13.0 to 0.14.0

6

lib/index.d.ts
import { UserContext } from "./utils";
import { PhysicalPrinterDTO, PrinterDTO, PrinterType } from "./printers";
import { AssignmentDTO } from "./assignments";
import { SettingDTO } from "./settings";
import { PaymentGatewayDTO, PaymentSettingDTO, SettingDTO } from "./settings";
import { AccountDTO } from "./account";

@@ -27,2 +27,5 @@ import { LocationDTO, LocationPreviewDTO } from "./location";

};
export declare type GetPaymentSettingsQueryParams = {
gateway: PaymentGatewayDTO;
};
export declare type GetLocationPreviewsQueryParams = {

@@ -68,2 +71,3 @@ locationIds?: string[];

getSettings(ctx: UserContext, params: GetSettingsQueryParams): Promise<SettingDTO[]>;
getPaymentSettings(ctx: UserContext, params: GetPaymentSettingsQueryParams): Promise<PaymentSettingDTO>;
/** @deprecated in favor of getSchematizedLayouts **/

@@ -70,0 +74,0 @@ getSchematized(ctx: UserContext, params?: GetSchematizedQueryParams): Promise<SchematizedLayoutDTO>;

@@ -196,2 +196,17 @@ "use strict";

}
getPaymentSettings(ctx, params) {
return __awaiter(this, void 0, void 0, function* () {
return yield axios_1.default
.request({
baseURL: this.config.baseUrl,
method: "GET",
url: "/setting/payment",
headers: this.prepareHeaders(ctx),
params: {
gateway: params.gateway,
},
})
.then((r) => r.data);
});
}
/** @deprecated in favor of getSchematizedLayouts **/

@@ -198,0 +213,0 @@ getSchematized(ctx, params) {

@@ -8,1 +8,43 @@ export declare type SettingDTO = {

};
export declare enum PaymentGatewayDTO {
CardPointe = "cardpointe",
Bolt = "bolt",
Converge = "converge",
USAePay = "usaepay",
Dejavoo = "dejavoo",
TSYS = "tsys"
}
export declare type PaymentSettingDTO = {
bolt?: PaymentSettingBolt;
cardpointe?: PaymentSettingCardPointe;
converge?: PaymentSettingConverge;
usaepay?: PaymentSettingUSAePay;
dejavoo?: PaymentSettingDejavoo;
tsys?: PaymentSettingTSys;
};
export declare type PaymentSettingBolt = {
merchantId?: string;
hsn?: string;
};
export declare type PaymentSettingCardPointe = {
merchantId?: string;
};
export declare type PaymentSettingConverge = {
merchantId?: string;
userId?: string;
pin?: string;
};
export declare type PaymentSettingUSAePay = {
sourceCode?: string;
pin?: string;
};
export declare type PaymentSettingDejavoo = {
registerId?: string;
authKey?: string;
};
export declare type PaymentSettingTSys = {
deviceId?: string;
transactionKey?: string;
developerId?: string;
merchantId?: string;
};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PaymentGatewayDTO = void 0;
var PaymentGatewayDTO;
(function (PaymentGatewayDTO) {
PaymentGatewayDTO["CardPointe"] = "cardpointe";
PaymentGatewayDTO["Bolt"] = "bolt";
PaymentGatewayDTO["Converge"] = "converge";
PaymentGatewayDTO["USAePay"] = "usaepay";
PaymentGatewayDTO["Dejavoo"] = "dejavoo";
PaymentGatewayDTO["TSYS"] = "tsys";
})(PaymentGatewayDTO = exports.PaymentGatewayDTO || (exports.PaymentGatewayDTO = {}));
//# sourceMappingURL=settings.js.map

2

package.json
{
"name": "@figuredev/business-config-sdk",
"version": "0.13.0",
"version": "0.14.0",
"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