washday-sdk 1.6.56 → 1.6.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/interfaces/Store.ts
CHANGED
|
@@ -48,6 +48,10 @@ export interface ICustomersAppConfig {
|
|
|
48
48
|
}[]
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
export interface IPublicReceiptConfig {
|
|
52
|
+
showEvidence?: boolean
|
|
53
|
+
}
|
|
54
|
+
|
|
51
55
|
export interface IStore {
|
|
52
56
|
name: string,
|
|
53
57
|
streetAddress?: string,
|
|
@@ -85,6 +89,7 @@ export interface IStore {
|
|
|
85
89
|
ticketStructure?: ITicketStructure | null,
|
|
86
90
|
ticketForLaundryStructure?: ITicketForLaundryStructure | null,
|
|
87
91
|
labelTicketStructure?: ILabelTicketStructure | null,
|
|
92
|
+
publicReceiptConfig?: IPublicReceiptConfig,
|
|
88
93
|
ticketScanMode?: 'order' | 'customer',
|
|
89
94
|
storeDiscounts: IStoreDiscount | null,
|
|
90
95
|
discountCodes: IDiscountCode | null,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IPublicReceiptConfig, IStore } from "../src/interfaces/Store";
|
|
2
|
+
|
|
3
|
+
describe("store public receipt config types", () => {
|
|
4
|
+
it("accepts publicReceiptConfig.showEvidence", () => {
|
|
5
|
+
const publicReceiptConfig: IPublicReceiptConfig = {
|
|
6
|
+
showEvidence: false,
|
|
7
|
+
};
|
|
8
|
+
const store: Partial<IStore> = {
|
|
9
|
+
publicReceiptConfig,
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
expect(store.publicReceiptConfig?.showEvidence).toBe(false);
|
|
13
|
+
});
|
|
14
|
+
});
|