@posx/core 5.5.192 → 5.5.194
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/build/index.d.ts +17 -5
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/package.publish.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -1193,7 +1193,7 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
1193
1193
|
* @param options - Additional options for the line.
|
|
1194
1194
|
* @returns The updated invoice.
|
|
1195
1195
|
*/
|
|
1196
|
-
addItemToLine(invoice: IInvoice, customer: ICustomer, appConfig: IAppConfig, item: IItem, modifiers?: IInvoiceCoreLine[],
|
|
1196
|
+
addItemToLine(invoice: IInvoice, customer: ICustomer, appConfig: IAppConfig, item: IItem, modifiers?: IInvoiceCoreLine[], lineOptions?: LineOptions, createNewLine?: boolean, comboLineUid?: string, comboGroupUid?: string): IInvoiceLine;
|
|
1197
1197
|
/**
|
|
1198
1198
|
* Duplicates an invoice line
|
|
1199
1199
|
* @param invoice - The invoice to duplicate the line in.
|
|
@@ -1331,7 +1331,7 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
1331
1331
|
duplicateComboLines(invoice: IInvoice, comboLine: IInvoiceLine): IInvoice;
|
|
1332
1332
|
}
|
|
1333
1333
|
export class LineOperationService extends InvoiceBaseService implements ILineOperationService {
|
|
1334
|
-
addItemToLine(invoice: IInvoice, customer: ICustomer, appConfig: IAppConfig, item: IItem, modifiers?: IInvoiceCoreLine[], lineOptions?: LineOptions, createNewLine?: boolean, comboLineUid?: string): IInvoiceLine;
|
|
1334
|
+
addItemToLine(invoice: IInvoice, customer: ICustomer, appConfig: IAppConfig, item: IItem, modifiers?: IInvoiceCoreLine[], lineOptions?: LineOptions, createNewLine?: boolean, comboLineUid?: string, comboGroupUid?: string): IInvoiceLine;
|
|
1335
1335
|
duplicateLine(invoice: IInvoice, line: IInvoiceLine): IInvoice;
|
|
1336
1336
|
calibrateDuplicates(invoice: IInvoice): IInvoice;
|
|
1337
1337
|
toInvoiceCoreLine(modifier: ICoreItem, quantity?: number): IInvoiceCoreLine;
|
|
@@ -1345,7 +1345,7 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
1345
1345
|
addModifierQuantity(modifiers: IInvoiceCoreLine[], modifier: IInvoiceCoreLine, quantity?: number): IInvoiceCoreLine[];
|
|
1346
1346
|
changeModifierPrice(modifier: IInvoiceCoreLine, price: number): IInvoiceCoreLine;
|
|
1347
1347
|
overwriteNoteToLine(line: IInvoiceLine, note: string): IInvoiceLine;
|
|
1348
|
-
findOrCreateLine(invoice: IInvoice, item: IItem, quantity: number, price?: number, modifiers?: IInvoiceCoreLine[], remark?: string, createNewLine?: boolean, comboLineUid?: string): IInvoiceLine;
|
|
1348
|
+
findOrCreateLine(invoice: IInvoice, item: IItem, quantity: number, price?: number, modifiers?: IInvoiceCoreLine[], remark?: string, createNewLine?: boolean, comboLineUid?: string, comboGroupUid?: string): IInvoiceLine;
|
|
1349
1349
|
private createInvoiceLine;
|
|
1350
1350
|
protected compareModifiers(target: IInvoiceCoreLine[], source: IInvoiceCoreLine[]): boolean;
|
|
1351
1351
|
/**
|
|
@@ -2204,6 +2204,10 @@ declare module '@posx/core/types/config.type' {
|
|
|
2204
2204
|
loyalty_program: LoyaltyProgram;
|
|
2205
2205
|
constructor();
|
|
2206
2206
|
}
|
|
2207
|
+
export enum PaynowMethod {
|
|
2208
|
+
FomoOnlinePaynow = "PNWO",
|
|
2209
|
+
WyoPaynow = "WPPN"
|
|
2210
|
+
}
|
|
2207
2211
|
export type TDynamicOrderQR = {
|
|
2208
2212
|
default_order_flow: OrderFlow;
|
|
2209
2213
|
select_order_flow: boolean;
|
|
@@ -2213,12 +2217,14 @@ declare module '@posx/core/types/config.type' {
|
|
|
2213
2217
|
enable_membership: boolean;
|
|
2214
2218
|
login_call_to_action_text: string;
|
|
2215
2219
|
menu_banner_image_url: string;
|
|
2220
|
+
paynow_method: PaynowMethod;
|
|
2216
2221
|
dynamic_order_qr: TDynamicOrderQR;
|
|
2217
2222
|
}
|
|
2218
2223
|
export class OnlineOrderConfig implements IOnlineOrderConfig {
|
|
2219
2224
|
enable_membership: boolean;
|
|
2220
2225
|
login_call_to_action_text: string;
|
|
2221
2226
|
menu_banner_image_url: string;
|
|
2227
|
+
paynow_method: PaynowMethod.WyoPaynow;
|
|
2222
2228
|
dynamic_order_qr: TDynamicOrderQR;
|
|
2223
2229
|
constructor();
|
|
2224
2230
|
}
|
|
@@ -4249,12 +4255,18 @@ declare module '@posx/core/types/product.type' {
|
|
|
4249
4255
|
product_uid: string;
|
|
4250
4256
|
/** price of the item */
|
|
4251
4257
|
amount: number;
|
|
4258
|
+
/** name of the price */
|
|
4259
|
+
name: string;
|
|
4260
|
+
/** name translations */
|
|
4261
|
+
name_translations: Record<string, string>;
|
|
4252
4262
|
}
|
|
4253
4263
|
export class Price extends AppCoreModel implements IPrice {
|
|
4254
4264
|
lookup_keys: any[];
|
|
4255
4265
|
product_uid: string;
|
|
4256
4266
|
uid: string;
|
|
4257
4267
|
amount: number;
|
|
4268
|
+
name: string;
|
|
4269
|
+
name_translations: Record<string, string>;
|
|
4258
4270
|
constructor();
|
|
4259
4271
|
}
|
|
4260
4272
|
/**
|
|
@@ -4306,7 +4318,7 @@ declare module '@posx/core/types/product.type' {
|
|
|
4306
4318
|
/** Item unique id */
|
|
4307
4319
|
item_uid: string;
|
|
4308
4320
|
/** Combo item */
|
|
4309
|
-
combo_item:
|
|
4321
|
+
combo_item: IItem;
|
|
4310
4322
|
/** Price of the item in combo */
|
|
4311
4323
|
price: number;
|
|
4312
4324
|
/** Meta data */
|
|
@@ -4333,7 +4345,7 @@ declare module '@posx/core/types/product.type' {
|
|
|
4333
4345
|
}
|
|
4334
4346
|
export class ComboGroupItem implements IComboGroupItem {
|
|
4335
4347
|
item_uid: string;
|
|
4336
|
-
combo_item:
|
|
4348
|
+
combo_item: Item;
|
|
4337
4349
|
price: number;
|
|
4338
4350
|
sequence: number;
|
|
4339
4351
|
meta: Record<string, unknown>;
|