@figuredev/business-config-sdk
Advanced tools
Comparing version 0.10.1 to 0.10.2
@@ -39,3 +39,2 @@ import { UserContext } from "./utils"; | ||
locationIds?: string[]; | ||
code?: string; | ||
}; | ||
@@ -57,3 +56,3 @@ export declare class BusinessConfigClient { | ||
getAssignments(ctx: UserContext, params: GetAssignmentsQueryParams): Promise<AssignmentDTO[]>; | ||
retrievePricingForPromoCode(ctx: UserContext, promoCode: string): Promise<PricingDTO | null>; | ||
getPricingByPromoCode(ctx: UserContext, promoCode: string): Promise<PricingDTO | null>; | ||
getPricing(ctx: UserContext, id: string): Promise<PricingDTO | null>; | ||
@@ -60,0 +59,0 @@ getPrinters(ctx: UserContext, params?: GetPrintersQueryParams): Promise<PrinterDTO[]>; |
@@ -104,3 +104,3 @@ "use strict"; | ||
} | ||
retrievePricingForPromoCode(ctx, promoCode) { | ||
getPricingByPromoCode(ctx, promoCode) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
@@ -111,7 +111,4 @@ return yield axios_1.default | ||
method: "POST", | ||
url: "/pricing/promo-code", | ||
url: `/pricing/promo-code/${promoCode}`, | ||
headers: this.prepareHeaders(ctx), | ||
data: { | ||
promoCode: promoCode, | ||
}, | ||
}) | ||
@@ -118,0 +115,0 @@ .then((r) => r.data); |
{ | ||
"name": "@figuredev/business-config-sdk", | ||
"version": "0.10.1", | ||
"version": "0.10.2", | ||
"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
29229
608