@figuredev/business-config-sdk
Advanced tools
Comparing version 0.13.0 to 0.14.0
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 |
{ | ||
"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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
37909
798
44
1