@figuredev/orders-sdk
Advanced tools
Comparing version 0.13.0 to 0.13.1
@@ -10,2 +10,3 @@ import { Maybe } from "@figurepos/fgr-lib-backend/lib/types"; | ||
import { UserContext } from "./utils"; | ||
import { CustomerDTO } from "./customer"; | ||
declare type OrdersClientConfig = { | ||
@@ -71,2 +72,3 @@ baseUrl: string; | ||
getPreparedFileUploadUrl(ctx: UserContext, filename: string, fileType: string, fileUploadType: FileUploadTypeDTO): Promise<PreparedFileUploadDTO | null>; | ||
getCustomerById(ctx: UserContext, id: string): Promise<CustomerDTO>; | ||
private prepareHeaders; | ||
@@ -73,0 +75,0 @@ private post; |
@@ -146,2 +146,5 @@ "use strict"; | ||
} | ||
getCustomerById(ctx, id) { | ||
return this.get(ctx, `/customer/${id}`); | ||
} | ||
prepareHeaders(ctx) { | ||
@@ -148,0 +151,0 @@ return Object.assign(Object.assign(Object.assign({ "fgr-service-token": this.config.secret }, (ctx.accountId ? { "twbrds-account-id": ctx.accountId } : null)), (ctx.locationId ? { "twbrds-location-id": ctx.locationId } : null)), (ctx.terminalId ? { "twbrds-terminal-id": ctx.terminalId } : null)); |
{ | ||
"name": "@figuredev/orders-sdk", | ||
"version": "0.13.0", | ||
"version": "0.13.1", | ||
"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
78397
42
1501