@posx/core 5.5.200 → 5.5.202

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 CHANGED
@@ -1363,6 +1363,12 @@ declare module '@posx/core/services/invoice.service' {
1363
1363
  * Interface for invoice operation service that extends line operation service
1364
1364
  */
1365
1365
  export interface IInvoiceOperationService extends ILineOperationService {
1366
+ /**
1367
+ * Adds an invoice
1368
+ * @param invoice - The invoice to add
1369
+ * @returns A promise that resolves with the added invoice options
1370
+ */
1371
+ addInvoice(invoice: IInvoice): Promise<IInvoice>;
1366
1372
  /**
1367
1373
  * Hold an invoice
1368
1374
  * @param invoice - The invoice to hold
@@ -1577,6 +1583,7 @@ declare module '@posx/core/services/invoice.service' {
1577
1583
  sliceInvoice(invoice: IInvoice): IInvoice[];
1578
1584
  }
1579
1585
  export class InvoiceOperationService extends LineOperationService implements IInvoiceOperationService {
1586
+ addInvoice(invoice: IInvoice): Promise<IInvoice>;
1580
1587
  createInvoice(invoice: IInvoice, sectionItem: ISectionItem, employee?: IEmployee): Promise<CreateInvoiceOptions>;
1581
1588
  updateInvoice(invoice: IInvoice, sectionItem: ISectionItem, employee?: IEmployee): Promise<UpdateInvoiceOptions>;
1582
1589
  cancelInvoice(invoice: IInvoice, sectionItem: ISectionItem, employee?: IEmployee): Promise<CancelInvoiceOptions>;
@@ -3586,7 +3593,8 @@ declare module '@posx/core/types/payment.type' {
3586
3593
  export enum PaymentStatus {
3587
3594
  STARTED = "payment_started",
3588
3595
  COMPLETED = "payment_completed",
3589
- FAILED = "payment_failed"
3596
+ FAILED = "payment_failed",
3597
+ CANCELLED = "payment_cancelled"
3590
3598
  }
3591
3599
 
3592
3600
  }