@erp-galoper/types 1.0.755 → 1.0.757

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.
Files changed (2) hide show
  1. package/openapi.ts +993 -738
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -5635,7 +5635,7 @@ export interface paths {
5635
5635
  patch: operations["common_currency_views_update_currency"];
5636
5636
  trace?: never;
5637
5637
  };
5638
- "/api/v1/pos/sessions/": {
5638
+ "/api/v1/pos/sessions": {
5639
5639
  parameters: {
5640
5640
  query?: never;
5641
5641
  header?: never;
@@ -5644,17 +5644,16 @@ export interface paths {
5644
5644
  };
5645
5645
  /**
5646
5646
  * List Sessions
5647
- * @description Endpoint to list sessions
5648
- * Possible Responses:
5649
- * - 200:
5650
- * - ListSessionSchema
5651
- * - 400:
5652
- * - invalidFilterFormat
5653
- * - paginationError
5654
- * - 403:
5655
- * - permissionDenied
5656
- * - 500:
5657
- * - internalServerError
5647
+ * @description Endpoint for listing sessions.
5648
+ *
5649
+ * Responses:
5650
+ * - 200: SessionListSchema
5651
+ * - 400: invalidFilterFormat
5652
+ * - 403: permissionDenied
5653
+ * - 500: serverError
5654
+ *
5655
+ * Permission key:
5656
+ * - session: ['view']
5658
5657
  */
5659
5658
  get: operations["pos_session_views_list_sessions"];
5660
5659
  put?: never;
@@ -5665,7 +5664,7 @@ export interface paths {
5665
5664
  patch?: never;
5666
5665
  trace?: never;
5667
5666
  };
5668
- "/api/v1/pos/sessions/{id}/x-report/": {
5667
+ "/api/v1/pos/sessions/{id}": {
5669
5668
  parameters: {
5670
5669
  query?: never;
5671
5670
  header?: never;
@@ -5673,23 +5672,19 @@ export interface paths {
5673
5672
  cookie?: never;
5674
5673
  };
5675
5674
  /**
5676
- * Get X Report
5677
- * @description Endpoint to get X report
5678
- * Possible Responses:
5679
- * - 200:
5680
- * - XReportSchema
5681
- * - 400:
5682
- * - invalidFilterFormat
5683
- * - paginationError
5684
- * - sessionNotClosed
5685
- * - 403:
5686
- * - permissionDenied
5687
- * - 404:
5688
- * - sessionDoesNotExist
5689
- * - settingsDoesNotExist
5690
- * - companyDoesNotExist
5675
+ * Get Session
5676
+ * @description Endpoint for retrieving a specific session by ID.
5677
+ *
5678
+ * Responses:
5679
+ * - 200: SessionSchema
5680
+ * - 403: permissionDenied
5681
+ * - 404: sessionDoesNotExist
5682
+ * - 500: serverError
5683
+ *
5684
+ * Permission key:
5685
+ * - session: ['view']
5691
5686
  */
5692
- get: operations["pos_session_views_get_x_report"];
5687
+ get: operations["pos_session_views_get_session"];
5693
5688
  put?: never;
5694
5689
  post?: never;
5695
5690
  delete?: never;
@@ -5698,7 +5693,7 @@ export interface paths {
5698
5693
  patch?: never;
5699
5694
  trace?: never;
5700
5695
  };
5701
- "/api/v1/pos/sessions/{id}/invoices/": {
5696
+ "/api/v1/pos/sessions/{id}/x-report/": {
5702
5697
  parameters: {
5703
5698
  query?: never;
5704
5699
  header?: never;
@@ -5706,22 +5701,13 @@ export interface paths {
5706
5701
  cookie?: never;
5707
5702
  };
5708
5703
  /**
5709
- * Get Invoices
5710
- * @description endpoint to get invoices
5711
- * Possible Responses:
5712
- * - 200:
5713
- * - ListInvoiceSchema
5714
- * - 400:
5715
- * - invalidFilterFormat
5716
- * - paginationError
5717
- * - 403:
5718
- * - permissionDenied
5719
- * - 404:
5720
- * - sessionDoesNotExist
5721
- * - 500:
5722
- * - internalServerError
5704
+ * Get Session X Report
5705
+ * @description Get X-Report data for a specific session
5706
+ *
5707
+ * Permission key:
5708
+ * - x_report: ['view']
5723
5709
  */
5724
- get: operations["pos_session_views_get_invoices"];
5710
+ get: operations["pos_session_views_get_session_x_report"];
5725
5711
  put?: never;
5726
5712
  post?: never;
5727
5713
  delete?: never;
@@ -5730,7 +5716,7 @@ export interface paths {
5730
5716
  patch?: never;
5731
5717
  trace?: never;
5732
5718
  };
5733
- "/api/v1/pos/sessions/{id}/exchanged_invoices/": {
5719
+ "/api/v1/pos/sessions/z-report/": {
5734
5720
  parameters: {
5735
5721
  query?: never;
5736
5722
  header?: never;
@@ -5738,22 +5724,21 @@ export interface paths {
5738
5724
  cookie?: never;
5739
5725
  };
5740
5726
  /**
5741
- * Get Exchange Invoices
5742
- * @description endpoint to get exchanged invoices
5743
- * Possible Responses:
5744
- * - 200:
5745
- * - ListInvoiceSchema
5746
- * - 400:
5747
- * - invalidFilterFormat
5748
- * - paginationError
5749
- * - 403:
5750
- * - permissionDenied
5751
- * - 404:
5752
- * - sessionDoesNotExist
5753
- * - 500:
5754
- * - internalServerError
5727
+ * Get Session Z Report
5728
+ * @description Get Z-Report data for multiple sessions.
5729
+ * Can be filtered by either date range or specific session IDs.
5730
+ *
5731
+ * **Responses:**
5732
+ * - 200: Z-Report data
5733
+ * - 400: - invalidParameters
5734
+ * - 403: - permissionDenied
5735
+ * - 404: - sessionDoesNotExist
5736
+ * - 500: - serverError
5737
+ *
5738
+ * Permission key:
5739
+ * - z_report: ['view']
5755
5740
  */
5756
- get: operations["pos_session_views_get_exchange_invoices"];
5741
+ get: operations["pos_session_views_get_session_z_report"];
5757
5742
  put?: never;
5758
5743
  post?: never;
5759
5744
  delete?: never;
@@ -5762,7 +5747,7 @@ export interface paths {
5762
5747
  patch?: never;
5763
5748
  trace?: never;
5764
5749
  };
5765
- "/api/v1/pos/sessions/{id}/return_invoices/": {
5750
+ "/api/v1/pos/invoices": {
5766
5751
  parameters: {
5767
5752
  query?: never;
5768
5753
  header?: never;
@@ -5770,22 +5755,24 @@ export interface paths {
5770
5755
  cookie?: never;
5771
5756
  };
5772
5757
  /**
5773
- * Get Return Invoices
5774
- * @description endpoint to get return invoices
5775
- * Possible Responses:
5776
- * - 200:
5777
- * - ListInvoiceSchema
5778
- * - 400:
5758
+ * List Invoices
5759
+ * @description Endpoint for listing invoices with search, date range filter, and pagination.
5760
+ *
5761
+ * Query Parameters:
5762
+ * - `start_date`: Start date for filtering (YYYY-MM-DD)
5763
+ * - `end_date`: End date for filtering (YYYY-MM-DD)
5764
+ * - `search`: Search invoices by type, barcode, or customer details
5765
+ * - `page`: Page number
5766
+ * - `pageSize`: Number of invoices per page
5767
+ *
5768
+ * Responses:
5769
+ * - 200: CustomerListSchema
5770
+ * - 400: paginationError
5779
5771
  * - invalidFilterFormat
5780
- * - paginationError
5781
- * - 403:
5782
- * - permissionDenied
5783
- * - 404:
5784
- * - sessionDoesNotExist
5785
- * - 500:
5786
- * - internalServerError
5772
+ * - 403: permissionDenied
5773
+ * - 500: serverError
5787
5774
  */
5788
- get: operations["pos_session_views_get_return_invoices"];
5775
+ get: operations["pos_invoice_views_list_invoices"];
5789
5776
  put?: never;
5790
5777
  post?: never;
5791
5778
  delete?: never;
@@ -5794,7 +5781,7 @@ export interface paths {
5794
5781
  patch?: never;
5795
5782
  trace?: never;
5796
5783
  };
5797
- "/api/v1/pos/sessions/invoices/{id}/": {
5784
+ "/api/v1/pos/invoices/{id}/": {
5798
5785
  parameters: {
5799
5786
  query?: never;
5800
5787
  header?: never;
@@ -5802,19 +5789,24 @@ export interface paths {
5802
5789
  cookie?: never;
5803
5790
  };
5804
5791
  /**
5805
- * Get Invoice
5806
- * @description Get invoice by id
5807
- * possible responses:
5808
- * 200:
5809
- * - InvoiceInfoSchema
5810
- * 404:
5811
- * - invoiceDoesNotExist
5812
- * 403:
5813
- * - permissionDenied
5814
- * 500:
5815
- * - internalServerError
5792
+ * Get Pos Invoice
5793
+ * @description Endpoint for retrieving a single POS invoice by ID.
5794
+ *
5795
+ * **Request Headers:**
5796
+ *
5797
+ * Responses:
5798
+ * - 200: POSInvoiceSchema
5799
+ * - 403: permissionDenied
5800
+ * - noModuleAccess
5801
+ * - noBranchAccess
5802
+ * - 404: posInvoiceDoesNotExist
5803
+ * - 500: serverError
5804
+ *
5805
+ * **Permissions:**
5806
+ * - No explicit permission key is checked within the function logic itself, but the user must have the `is_cashier` attribute
5807
+ * set to `True` to successfully create a session. This implicitly acts as a role-based permission.
5816
5808
  */
5817
- get: operations["pos_invoice_views_get_invoice"];
5809
+ get: operations["pos_invoice_views_get_pos_invoice"];
5818
5810
  put?: never;
5819
5811
  post?: never;
5820
5812
  delete?: never;
@@ -5823,7 +5815,7 @@ export interface paths {
5823
5815
  patch?: never;
5824
5816
  trace?: never;
5825
5817
  };
5826
- "/api/v1/pos/sessions/exchanges/{id}/": {
5818
+ "/api/v1/pos/gift-receipts": {
5827
5819
  parameters: {
5828
5820
  query?: never;
5829
5821
  header?: never;
@@ -5831,19 +5823,29 @@ export interface paths {
5831
5823
  cookie?: never;
5832
5824
  };
5833
5825
  /**
5834
- * Get Exchange Invoice
5835
- * @description Get exchange by id
5836
- * possible responses:
5837
- * 200:
5838
- * - InvoiceInfoSchema
5839
- * 404:
5840
- * - invoiceNotFound
5841
- * 403:
5842
- * - permissionDenied
5843
- * 500:
5844
- * - internalServerError
5826
+ * List Gift Receipts
5827
+ * @description Endpoint for listing gift receipts with search, date range filter, and pagination.
5828
+ *
5829
+ * Query Parameters:
5830
+ * - `start_date`: Start date for filtering (YYYY-MM-DD)
5831
+ * - `end_date`: End date for filtering (YYYY-MM-DD)
5832
+ * - `search`: Search gift receipts by barcode, invoice details, or customer phone number, email, or name, item name, item barcode, item category name, item brand name
5833
+ * - `page`: Page number
5834
+ * - `pageSize`: Number of gift receipts per page
5835
+ *
5836
+ * Responses:
5837
+ * - 200: GiftReceiptListSchema
5838
+ * - 400: paginationError
5839
+ * - invalidFilterFormat
5840
+ * - invalidDateFormat
5841
+ * - 403: permissionDenied
5842
+ * - 500: serverError
5843
+ *
5844
+ * **Permissions:**
5845
+ * - No explicit permission key is checked within the function logic itself, but the user must have the `is_cashier`
5846
+ * attribute set to `True` to successfully create a session. This implicitly acts as a role-based permission.
5845
5847
  */
5846
- get: operations["pos_invoice_views_get_exchange_invoice"];
5848
+ get: operations["pos_invoice_gift_receipt_views_list_gift_receipts"];
5847
5849
  put?: never;
5848
5850
  post?: never;
5849
5851
  delete?: never;
@@ -5852,7 +5854,7 @@ export interface paths {
5852
5854
  patch?: never;
5853
5855
  trace?: never;
5854
5856
  };
5855
- "/api/v1/pos/sessions/returns/{id}/": {
5857
+ "/api/v1/pos/gift-receipts/{id}/": {
5856
5858
  parameters: {
5857
5859
  query?: never;
5858
5860
  header?: never;
@@ -5860,19 +5862,21 @@ export interface paths {
5860
5862
  cookie?: never;
5861
5863
  };
5862
5864
  /**
5863
- * Get Return Invoice
5864
- * @description Get return by id
5865
- * possible responses:
5866
- * 200:
5867
- * - InvoiceInfoSchema
5868
- * 404:
5869
- * - invoiceNotFound
5870
- * 403:
5871
- * - permissionDenied
5872
- * 500:
5873
- * - internalServerError
5865
+ * Get Gift Receipt
5866
+ * @description Endpoint for retrieving a single gift receipt by ID.
5867
+ *
5868
+ * Responses:
5869
+ * - 200: GiftReceiptSchema
5870
+ * - 403: permissionDenied
5871
+ * - noBranchAccess
5872
+ * - 404: giftReceiptDoesNotExist
5873
+ * - 500: serverError
5874
+ *
5875
+ * **Permissions:**
5876
+ * - No explicit permission key is checked within the function logic itself, but the user must have the `is_cashier`
5877
+ * attribute set to `True` to successfully create a session. This implicitly acts as a role-based permission.
5874
5878
  */
5875
- get: operations["pos_invoice_views_get_return_invoice"];
5879
+ get: operations["pos_invoice_gift_receipt_views_get_gift_receipt"];
5876
5880
  put?: never;
5877
5881
  post?: never;
5878
5882
  delete?: never;
@@ -18953,6 +18957,18 @@ export interface components {
18953
18957
  BasePermissionsSchema_Inventory_WarehouseEnum: "add" | "change" | "delete" | "view";
18954
18958
  /** BasePermissionsSchema_Pos */
18955
18959
  BasePermissionsSchema_Pos: {
18960
+ /**
18961
+ * Giftreceipt
18962
+ * @description giftreceipt actions
18963
+ * @default []
18964
+ */
18965
+ giftreceipt: components["schemas"]["BasePermissionsSchema_Pos_GiftreceiptEnum"][];
18966
+ /**
18967
+ * Invoice
18968
+ * @description invoice actions
18969
+ * @default []
18970
+ */
18971
+ invoice: components["schemas"]["BasePermissionsSchema_Pos_InvoiceEnum"][];
18956
18972
  /**
18957
18973
  * Session
18958
18974
  * @description session actions
@@ -18960,11 +18976,21 @@ export interface components {
18960
18976
  */
18961
18977
  session: components["schemas"]["BasePermissionsSchema_Pos_SessionEnum"][];
18962
18978
  };
18979
+ /**
18980
+ * BasePermissionsSchema_Pos_GiftreceiptEnum
18981
+ * @constant
18982
+ */
18983
+ BasePermissionsSchema_Pos_GiftreceiptEnum: "view";
18984
+ /**
18985
+ * BasePermissionsSchema_Pos_InvoiceEnum
18986
+ * @constant
18987
+ */
18988
+ BasePermissionsSchema_Pos_InvoiceEnum: "view";
18963
18989
  /**
18964
18990
  * BasePermissionsSchema_Pos_SessionEnum
18965
- * @enum {string}
18991
+ * @constant
18966
18992
  */
18967
- BasePermissionsSchema_Pos_SessionEnum: "add" | "change" | "delete" | "view";
18993
+ BasePermissionsSchema_Pos_SessionEnum: "view";
18968
18994
  /** BasePermissionsSchema_Project */
18969
18995
  BasePermissionsSchema_Project: {
18970
18996
  /**
@@ -27109,357 +27135,609 @@ export interface components {
27109
27135
  /** Usdrate */
27110
27136
  usdRate?: number;
27111
27137
  };
27112
- /** ListSessionSchema */
27113
- ListSessionSchema: {
27138
+ /**
27139
+ * SessionStatus
27140
+ * @enum {string}
27141
+ */
27142
+ SessionStatus: "opened" | "closed";
27143
+ /** SessionListSchema */
27144
+ SessionListSchema: {
27114
27145
  info: components["schemas"]["PageInfoSchema"];
27115
27146
  /** Results */
27116
27147
  results: components["schemas"]["SessionSchema"][];
27117
27148
  };
27118
27149
  /** SessionSchema */
27119
27150
  SessionSchema: {
27151
+ /**
27152
+ * Datecreated
27153
+ * Format: date-time
27154
+ */
27155
+ dateCreated: string;
27156
+ /** Datemodified */
27157
+ dateModified: string | null;
27158
+ createdBy: components["schemas"]["RecordUserSchema"];
27159
+ modifiedBy: components["schemas"]["RecordUserSchema"] | null;
27120
27160
  /**
27121
27161
  * Id
27122
27162
  * Format: uuid
27123
27163
  */
27124
27164
  id: string;
27125
- user: components["schemas"]["UserInfo"];
27165
+ /** Name */
27166
+ name: string;
27167
+ user: components["schemas"]["UserSummaryInfo"];
27126
27168
  /**
27127
27169
  * Startdate
27128
27170
  * Format: date-time
27129
27171
  */
27130
27172
  startDate: string;
27131
27173
  /** Enddate */
27132
- endDate: string | null;
27174
+ endDate?: string | null;
27175
+ /** Primaryopeningbalance */
27176
+ primaryOpeningBalance: number;
27177
+ /** Secondaryopeningbalance */
27178
+ secondaryOpeningBalance: number | null;
27179
+ /** Primaryclosingbalance */
27180
+ primaryClosingBalance: number | null;
27181
+ /** Secondaryclosingbalance */
27182
+ secondaryClosingBalance: number | null;
27133
27183
  /** Posted */
27134
- posted: boolean | null;
27135
- /** Audited */
27136
- audited: boolean | null;
27137
- /** Closed */
27138
- closed: boolean;
27139
- };
27140
- /** UserInfo */
27141
- UserInfo: {
27184
+ posted: boolean;
27185
+ status: components["schemas"]["SessionStatus"];
27186
+ };
27187
+ /** UserSummaryInfo */
27188
+ UserSummaryInfo: {
27142
27189
  /** Id */
27143
27190
  id: number;
27144
27191
  /** Username */
27145
27192
  username: string;
27146
27193
  };
27147
- /** CompanyInfoSchema */
27148
- CompanyInfoSchema: {
27149
- /** Name */
27150
- name: string;
27151
- /** Address */
27152
- address: string;
27153
- /** Phone */
27154
- phone: string;
27155
- /** Currency */
27156
- currency: string;
27157
- };
27158
- /** CountSchema */
27159
- CountSchema: {
27160
- /** Paidinvoices */
27161
- paidInvoices: number;
27162
- /** Paidexchanges */
27163
- paidExchanges: number;
27164
- /** Paidreturns */
27165
- paidReturns: number;
27166
- /** Voidinvoices */
27167
- voidInvoices: number;
27168
- /** Voidexchanges */
27169
- voidExchanges: number;
27170
- /** Voidreturns */
27171
- voidReturns: number;
27172
- };
27173
- /** SessionInfoSchema */
27174
- SessionInfoSchema: {
27175
- /**
27176
- * Sessionstartat
27177
- * Format: date-time
27178
- */
27179
- sessionStartAt: string;
27180
- /**
27181
- * Sessionclosedat
27182
- * Format: date-time
27183
- */
27184
- sessionClosedAt: string;
27185
- /** Cashier */
27186
- cashier: string;
27187
- /** Openingbalanceusd */
27188
- openingBalanceUsd: number;
27189
- /** Openingbalancecompany */
27190
- openingBalanceCompany: number;
27191
- /** Closedbalanceusd */
27192
- closedBalanceUsd: number;
27193
- /** Closedbalancecompany */
27194
- closedBalanceCompany: number;
27195
- };
27196
- /** TotalsSchema */
27197
- TotalsSchema: {
27198
- /** Totalsalesusd */
27199
- totalSalesUsd: number;
27200
- /** Totalsalescompany */
27201
- totalSalesCompany: number;
27202
- /** Totaldiscountsusd */
27203
- totalDiscountsUsd: number;
27204
- /** Totaldiscountscompany */
27205
- totalDiscountsCompany: number;
27206
- /** Totalrefundsusd */
27207
- totalRefundsUsd: number;
27208
- /** Totalrefundscompany */
27209
- totalRefundsCompany: number;
27210
- /** Netsalesusd */
27211
- netSalesUsd: number;
27212
- /** Netsalescompany */
27213
- netSalesCompany: number;
27194
+ /** XReportDiscountsDataSchema */
27195
+ XReportDiscountsDataSchema: {
27196
+ /** Totaldiscounts */
27197
+ totalDiscounts: number;
27198
+ /** Secondarytotaldiscounts */
27199
+ secondaryTotalDiscounts?: number | null;
27200
+ /** Totalinvoices */
27201
+ totalInvoices: number;
27202
+ /** Totalitems */
27203
+ totalItems: number;
27204
+ };
27205
+ /** XReportExchangesDataSchema */
27206
+ XReportExchangesDataSchema: {
27207
+ /** Totalexchanges */
27208
+ totalExchanges: number;
27209
+ /** Secondarytotalexchanges */
27210
+ secondaryTotalExchanges?: number | null;
27211
+ /** Totalinvoices */
27212
+ totalInvoices: number;
27213
+ /** Totalitems */
27214
+ totalItems: number;
27215
+ };
27216
+ /** XReportExpectedCashDataSchema */
27217
+ XReportExpectedCashDataSchema: {
27218
+ /** Expectedcashprimary */
27219
+ expectedCashPrimary: number;
27220
+ /** Expectedcashsecondary */
27221
+ expectedCashSecondary?: number | null;
27222
+ };
27223
+ /** XReportReturnsDataSchema */
27224
+ XReportReturnsDataSchema: {
27225
+ /** Totalreturns */
27226
+ totalReturns: number;
27227
+ /** Secondarytotalreturns */
27228
+ secondaryTotalReturns?: number | null;
27229
+ /** Totalinvoices */
27230
+ totalInvoices: number;
27231
+ /** Totalitems */
27232
+ totalItems: number;
27233
+ };
27234
+ /** XReportSalesDataSchema */
27235
+ XReportSalesDataSchema: {
27236
+ /** Totalsales */
27237
+ totalSales: number;
27238
+ /** Secondarytotalsales */
27239
+ secondaryTotalSales?: number | null;
27240
+ /** Totalinvoices */
27241
+ totalInvoices: number;
27242
+ /** Totalitems */
27243
+ totalItems: number;
27214
27244
  };
27215
27245
  /** XReportSchema */
27216
27246
  XReportSchema: {
27217
- companyInfo: components["schemas"]["CompanyInfoSchema"];
27218
- sessionInfo: components["schemas"]["SessionInfoSchema"];
27219
- totals: components["schemas"]["TotalsSchema"];
27220
- counts: components["schemas"]["CountSchema"];
27221
- /** Expectedcashusd */
27222
- expectedCashUsd: number;
27223
- /** Note */
27224
- note: string;
27247
+ summary: components["schemas"]["XReportSummarySchema"];
27248
+ salesData: components["schemas"]["XReportSalesDataSchema"];
27249
+ returnsData: components["schemas"]["XReportReturnsDataSchema"];
27250
+ voidedData: components["schemas"]["XReportVoidedDataSchema"];
27251
+ voidedItemsData: components["schemas"]["XReportVoidedItemsDataSchema"];
27252
+ exchangesData: components["schemas"]["XReportExchangesDataSchema"];
27253
+ voidedExchangesData: components["schemas"]["XReportVoidedExchangesDataSchema"];
27254
+ voidedReturnsData: components["schemas"]["XReportVoidedReturnsDataSchema"];
27255
+ discountsData: components["schemas"]["XReportDiscountsDataSchema"];
27256
+ taxData: components["schemas"]["XReportTaxDataSchema"];
27257
+ expectedCashData: components["schemas"]["XReportExpectedCashDataSchema"];
27258
+ /**
27259
+ * Multicurrencyenabled
27260
+ * @description if enabled, show secondary currency data
27261
+ */
27262
+ multiCurrencyEnabled: boolean;
27263
+ };
27264
+ /** XReportSummarySchema */
27265
+ XReportSummarySchema: {
27266
+ session?: components["schemas"]["SessionSchema"] | null;
27267
+ /**
27268
+ * Exportdate
27269
+ * Format: date-time
27270
+ */
27271
+ exportDate: string;
27272
+ };
27273
+ /** XReportTaxDataSchema */
27274
+ XReportTaxDataSchema: {
27275
+ /** Totaltax */
27276
+ totalTax: number;
27277
+ /** Secondarytotaltax */
27278
+ secondaryTotalTax?: number | null;
27279
+ };
27280
+ /** XReportVoidedDataSchema */
27281
+ XReportVoidedDataSchema: {
27282
+ /** Totalvoided */
27283
+ totalVoided: number;
27284
+ /** Secondarytotalvoided */
27285
+ secondaryTotalVoided?: number | null;
27286
+ /** Totalinvoices */
27287
+ totalInvoices: number;
27288
+ /** Totalitems */
27289
+ totalItems: number;
27290
+ };
27291
+ /** XReportVoidedExchangesDataSchema */
27292
+ XReportVoidedExchangesDataSchema: {
27293
+ /** Totalvoided */
27294
+ totalVoided: number;
27295
+ /** Secondarytotalvoided */
27296
+ secondaryTotalVoided?: number | null;
27297
+ /** Totalinvoices */
27298
+ totalInvoices: number;
27299
+ /** Totalitems */
27300
+ totalItems: number;
27301
+ };
27302
+ /** XReportVoidedItemsDataSchema */
27303
+ XReportVoidedItemsDataSchema: {
27304
+ /** Totalvoided */
27305
+ totalVoided: number;
27306
+ /** Secondarytotalvoided */
27307
+ secondaryTotalVoided?: number | null;
27308
+ /** Totalitems */
27309
+ totalItems: number;
27310
+ };
27311
+ /** XReportVoidedReturnsDataSchema */
27312
+ XReportVoidedReturnsDataSchema: {
27313
+ /** Totalvoided */
27314
+ totalVoided: number;
27315
+ /** Secondarytotalvoided */
27316
+ secondaryTotalVoided?: number | null;
27317
+ /** Totalinvoices */
27318
+ totalInvoices: number;
27319
+ /** Totalitems */
27320
+ totalItems: number;
27321
+ };
27322
+ /** BreakdownItemSchema */
27323
+ BreakdownItemSchema: {
27324
+ /** Name */
27325
+ name: string;
27326
+ /** Amount */
27327
+ amount: number;
27328
+ /** Secondaryamount */
27329
+ secondaryAmount?: number | null;
27330
+ /** Itemcount */
27331
+ itemCount: number;
27225
27332
  };
27226
- /** CustomerInfo */
27227
- CustomerInfo: {
27333
+ /** CurrencySummarySchema */
27334
+ CurrencySummarySchema: {
27228
27335
  /** Id */
27229
27336
  id: number;
27230
- /** Firstname */
27231
- firstName?: string | null;
27232
- /** Lastname */
27233
- lastName?: string | null;
27234
- /** Company */
27235
- company?: string | null;
27236
- /** Phone1 */
27237
- phone1?: string | null;
27238
- /** Phone2 */
27239
- phone2?: string | null;
27337
+ /** Code */
27338
+ code: string;
27339
+ /** Name */
27340
+ name: string;
27240
27341
  };
27241
- /** InvoiceSchema */
27242
- InvoiceSchema: {
27243
- /**
27244
- * Id
27245
- * Format: uuid
27246
- */
27247
- id: string;
27248
- /** Invoicenumber */
27249
- invoiceNumber: string;
27250
- customer: components["schemas"]["CustomerInfo"];
27251
- currency: components["schemas"]["CurrencyList"];
27252
- /**
27253
- * Status
27254
- * @example in_progress
27255
- */
27256
- status: string;
27257
- /**
27258
- * Barcode
27259
- * @example 123456789
27260
- */
27261
- barcode: number;
27262
- /**
27263
- * Companysubtotal
27264
- * @example 1
27265
- */
27266
- companySubTotal: number;
27267
- /**
27268
- * Companyitemsdiscountamount
27269
- * @example 1
27342
+ /** TaxBreakdownItemSchema */
27343
+ TaxBreakdownItemSchema: {
27344
+ /** Name */
27345
+ name: string;
27346
+ /** Rate */
27347
+ rate: number;
27348
+ /** Amount */
27349
+ amount: number;
27350
+ /** Secondaryamount */
27351
+ secondaryAmount?: number | null;
27352
+ };
27353
+ /** ZReportDateRangeSchema */
27354
+ ZReportDateRangeSchema: {
27355
+ /** Startdate */
27356
+ startDate?: string | null;
27357
+ /** Enddate */
27358
+ endDate?: string | null;
27359
+ };
27360
+ /** ZReportDiscountsDataSchema */
27361
+ ZReportDiscountsDataSchema: {
27362
+ /** Totaldiscounts */
27363
+ totalDiscounts: number;
27364
+ /** Secondarytotaldiscounts */
27365
+ secondaryTotalDiscounts?: number | null;
27366
+ /** Totalinvoices */
27367
+ totalInvoices: number;
27368
+ /** Totalitems */
27369
+ totalItems: number;
27370
+ /** Groupeddata */
27371
+ groupedData: components["schemas"]["BreakdownItemSchema"][];
27372
+ };
27373
+ /** ZReportExchangesDataSchema */
27374
+ ZReportExchangesDataSchema: {
27375
+ /** Totalexchanges */
27376
+ totalExchanges: number;
27377
+ /** Secondarytotalexchanges */
27378
+ secondaryTotalExchanges?: number | null;
27379
+ /** Totalinvoices */
27380
+ totalInvoices: number;
27381
+ /** Totalitems */
27382
+ totalItems: number;
27383
+ /** Groupeddata */
27384
+ groupedData: components["schemas"]["BreakdownItemSchema"][];
27385
+ };
27386
+ /** ZReportExpectedCashDataSchema */
27387
+ ZReportExpectedCashDataSchema: {
27388
+ /** Expectedcashprimary */
27389
+ expectedCashPrimary: number;
27390
+ /** Expectedcashsecondary */
27391
+ expectedCashSecondary?: number | null;
27392
+ /** Totalopeningbalanceprimary */
27393
+ totalOpeningBalancePrimary: number;
27394
+ /** Totalopeningbalancesecondary */
27395
+ totalOpeningBalanceSecondary?: number | null;
27396
+ /** Totalclosingbalanceprimary */
27397
+ totalClosingBalancePrimary: number;
27398
+ /** Totalclosingbalancesecondary */
27399
+ totalClosingBalanceSecondary?: number | null;
27400
+ };
27401
+ /** ZReportReturnsDataSchema */
27402
+ ZReportReturnsDataSchema: {
27403
+ /** Totalreturns */
27404
+ totalReturns: number;
27405
+ /** Secondarytotalreturns */
27406
+ secondaryTotalReturns?: number | null;
27407
+ /** Totalinvoices */
27408
+ totalInvoices: number;
27409
+ /** Totalitems */
27410
+ totalItems: number;
27411
+ /** Groupeddata */
27412
+ groupedData: components["schemas"]["BreakdownItemSchema"][];
27413
+ };
27414
+ /** ZReportSalesDataSchema */
27415
+ ZReportSalesDataSchema: {
27416
+ /** Totalsales */
27417
+ totalSales: number;
27418
+ /** Secondarytotalsales */
27419
+ secondaryTotalSales?: number | null;
27420
+ /** Totalinvoices */
27421
+ totalInvoices: number;
27422
+ /** Totalitems */
27423
+ totalItems: number;
27424
+ /** Groupeddata */
27425
+ groupedData: components["schemas"]["BreakdownItemSchema"][];
27426
+ };
27427
+ /** ZReportSchema */
27428
+ ZReportSchema: {
27429
+ summary: components["schemas"]["ZReportSummarySchema"];
27430
+ salesData: components["schemas"]["ZReportSalesDataSchema"];
27431
+ returnsData: components["schemas"]["ZReportReturnsDataSchema"];
27432
+ exchangesData: components["schemas"]["ZReportExchangesDataSchema"];
27433
+ voidedData: components["schemas"]["ZReportVoidedDataSchema"];
27434
+ voidedExchangeData: components["schemas"]["ZReportVoidedExchangesDataSchema"];
27435
+ voidedReturnData: components["schemas"]["ZReportVoidedReturnsDataSchema"];
27436
+ voidedItemsData: components["schemas"]["ZReportVoidedItemsDataSchema"];
27437
+ discountsData: components["schemas"]["ZReportDiscountsDataSchema"];
27438
+ taxData: components["schemas"]["ZReportTaxDataSchema"];
27439
+ expectedCashData: components["schemas"]["ZReportExpectedCashDataSchema"];
27440
+ /** Multicurrencyenabled */
27441
+ multiCurrencyEnabled: boolean;
27442
+ /** Reportgroupby */
27443
+ reportGroupBy: string;
27444
+ primaryCurrency: components["schemas"]["CurrencySummarySchema"];
27445
+ secondaryCurrency?: components["schemas"]["CurrencySummarySchema"] | null;
27446
+ };
27447
+ /** ZReportSummarySchema */
27448
+ ZReportSummarySchema: {
27449
+ /** Sessioncount */
27450
+ sessionCount: number;
27451
+ /**
27452
+ * Exportdate
27453
+ * Format: date-time
27270
27454
  */
27271
- companyItemsDiscountAmount: number;
27455
+ exportDate: string;
27456
+ dateRange?: components["schemas"]["ZReportDateRangeSchema"] | null;
27457
+ /** Sessions */
27458
+ sessions?: string[] | null;
27459
+ };
27460
+ /** ZReportTaxDataSchema */
27461
+ ZReportTaxDataSchema: {
27462
+ /** Totaltax */
27463
+ totalTax: number;
27464
+ /** Secondarytotaltax */
27465
+ secondaryTotalTax?: number | null;
27466
+ /** Groupeddata */
27467
+ groupedData: components["schemas"]["TaxBreakdownItemSchema"][];
27468
+ };
27469
+ /** ZReportVoidedDataSchema */
27470
+ ZReportVoidedDataSchema: {
27471
+ /** Totalvoided */
27472
+ totalVoided: number;
27473
+ /** Secondarytotalvoided */
27474
+ secondaryTotalVoided?: number | null;
27475
+ /** Totalinvoices */
27476
+ totalInvoices: number;
27477
+ /** Totalitems */
27478
+ totalItems: number;
27479
+ /** Groupeddata */
27480
+ groupedData: components["schemas"]["BreakdownItemSchema"][];
27481
+ };
27482
+ /** ZReportVoidedExchangesDataSchema */
27483
+ ZReportVoidedExchangesDataSchema: {
27484
+ /** Totalvoided */
27485
+ totalVoided: number;
27486
+ /** Secondarytotalvoided */
27487
+ secondaryTotalVoided?: number | null;
27488
+ /** Totalinvoices */
27489
+ totalInvoices: number;
27490
+ /** Totalitems */
27491
+ totalItems: number;
27492
+ /** Groupeddata */
27493
+ groupedData: components["schemas"]["BreakdownItemSchema"][];
27494
+ };
27495
+ /** ZReportVoidedItemsDataSchema */
27496
+ ZReportVoidedItemsDataSchema: {
27497
+ /** Totalvoided */
27498
+ totalVoided: number;
27499
+ /** Secondarytotalvoided */
27500
+ secondaryTotalVoided?: number | null;
27501
+ /** Totalitems */
27502
+ totalItems: number;
27503
+ /** Groupeddata */
27504
+ groupedData: components["schemas"]["BreakdownItemSchema"][];
27505
+ };
27506
+ /** ZReportVoidedReturnsDataSchema */
27507
+ ZReportVoidedReturnsDataSchema: {
27508
+ /** Totalvoided */
27509
+ totalVoided: number;
27510
+ /** Secondarytotalvoided */
27511
+ secondaryTotalVoided?: number | null;
27512
+ /** Totalinvoices */
27513
+ totalInvoices: number;
27514
+ /** Totalitems */
27515
+ totalItems: number;
27516
+ /** Groupeddata */
27517
+ groupedData: components["schemas"]["BreakdownItemSchema"][];
27518
+ };
27519
+ /**
27520
+ * InvoiceStatus
27521
+ * @enum {string}
27522
+ */
27523
+ InvoiceStatus: "in_progress" | "on_hold" | "voided" | "completed";
27524
+ /** CustomerSharedSchema */
27525
+ CustomerSharedSchema: {
27526
+ /** Id */
27527
+ id: number;
27528
+ /** Name */
27529
+ name: string;
27530
+ /** Accountnumber */
27531
+ accountNumber: string;
27532
+ /** Phone */
27533
+ phone?: string | null;
27534
+ type: components["schemas"]["TypeOfCustomerValue"];
27535
+ currency: components["schemas"]["CurrencySummaryInfo"] | null;
27272
27536
  /**
27273
- * Companytotaldiscountamount
27274
- * @example 1
27537
+ * Currencies
27538
+ * @default []
27275
27539
  */
27276
- companyTotalDiscountAmount: number;
27540
+ currencies: components["schemas"]["CurrencySummaryInfo"][];
27541
+ };
27542
+ /** GiftReceiptItemSummarySchema */
27543
+ GiftReceiptItemSummarySchema: {
27277
27544
  /**
27278
- * Usdtotaldiscountamount
27279
- * @example 1
27545
+ * Id
27546
+ * Format: uuid
27280
27547
  */
27281
- usdTotalDiscountAmount: number;
27548
+ id: string;
27549
+ /** Quantity */
27550
+ quantity: number;
27551
+ };
27552
+ /** GiftReceiptSummarySchema */
27553
+ GiftReceiptSummarySchema: {
27282
27554
  /**
27283
- * Companynetitemstotal
27284
- * @example 1
27555
+ * Id
27556
+ * Format: uuid
27285
27557
  */
27286
- companyNetItemsTotal: number;
27558
+ id: string;
27559
+ /** Receiptnumber */
27560
+ receiptNumber: string;
27287
27561
  /**
27288
- * Totalcompany
27289
- * @example 1
27562
+ * Date
27563
+ * Format: date-time
27290
27564
  */
27291
- totalCompany: number;
27565
+ date: string;
27566
+ };
27567
+ /**
27568
+ * InvoiceItemStatus
27569
+ * @enum {string}
27570
+ */
27571
+ InvoiceItemStatus: "purchased" | "returned" | "voided" | "exchanged";
27572
+ /** InvoiceListSchema */
27573
+ InvoiceListSchema: {
27574
+ info: components["schemas"]["PageInfoSchema"];
27575
+ /** Results */
27576
+ results: components["schemas"]["POSInvoiceSchema"][];
27577
+ };
27578
+ /**
27579
+ * InvoiceType
27580
+ * @enum {string}
27581
+ */
27582
+ InvoiceType: "default" | "exchange" | "return";
27583
+ /** ItemInvoiceSummarySchema */
27584
+ ItemInvoiceSummarySchema: {
27292
27585
  /**
27293
- * Companytax
27294
- * @example 1
27586
+ * Id
27587
+ * Format: uuid
27295
27588
  */
27296
- companyTax: number;
27589
+ id: string;
27590
+ item: components["schemas"]["ItemSummaryInfo"];
27591
+ /** @description This field is the package of the item. */
27592
+ itemPackage: components["schemas"]["ItemPackageSummarySchema"] | null;
27297
27593
  /**
27298
- * Companynettotal
27299
- * @example 1
27594
+ * @description
27595
+ * if the item is voided it cant be modified,
27596
+ * if the invoice type is default the item status is purchased or voided,
27597
+ * if the invoice type is exchange the item status is purchased, returned or voided,
27598
+ *
27599
+ * @default purchased
27300
27600
  */
27301
- companyNetTotal: number;
27601
+ status: components["schemas"]["InvoiceItemStatus"];
27602
+ /** Quantity */
27603
+ quantity: number;
27302
27604
  /**
27303
- * Usdsubtotal
27304
- * @example 1
27605
+ * Unitprice
27606
+ * @description This field is a number representing the unit price of the item.
27305
27607
  */
27306
- usdSubTotal: number;
27608
+ unitPrice: string;
27307
27609
  /**
27308
- * Usditemsdiscountamount
27309
- * @example 1
27610
+ * Primarysubtotal
27611
+ * @description This field is a number representing the primary subtotal of the invoice.
27310
27612
  */
27311
- usdItemsDiscountAmount: number;
27613
+ primarySubtotal: string;
27312
27614
  /**
27313
- * Usdnetitemstotal
27314
- * @example 1
27615
+ * Secondarysubtotal
27616
+ * @description
27617
+ * This field is a number representing the secondary subtotal of the invoice.
27618
+ * This field is visible only if multicurrency is enabled.
27619
+ *
27315
27620
  */
27316
- usdNetItemsTotal: number;
27621
+ secondarySubtotal: string | null;
27317
27622
  /**
27318
- * Totalusd
27319
- * @example 1
27623
+ * Discount
27624
+ * @default 0
27320
27625
  */
27321
- totalUsd: number;
27626
+ discount: number;
27322
27627
  /**
27323
- * Usdtax
27324
- * @example 1
27628
+ * Primarytotal
27629
+ * @description This field is a number representing the primary total of the item.
27325
27630
  */
27326
- usdTax: number;
27631
+ primaryTotal: string;
27327
27632
  /**
27328
- * Usdnettotal
27329
- * @example 1
27633
+ * Secondarytotal
27634
+ * @description
27635
+ * This field is a number representing the secondary total of the item.
27636
+ * This field is visible only if multicurrency is enabled.
27637
+ *
27330
27638
  */
27331
- usdNetTotal: number;
27639
+ secondaryTotal: string | null;
27332
27640
  /**
27333
- * Usdinvoicediscount
27334
- * @default 0
27335
- * @example 1
27641
+ * Remainingquantity
27642
+ * @description This field is a number representing the remaining quantity of the item.
27336
27643
  */
27337
- usdInvoiceDiscount: number | null;
27644
+ remainingQuantity: number;
27338
27645
  /**
27339
- * Companyinvoicediscount
27340
- * @default 0
27341
- * @example 1
27646
+ * Promotionsandoffers
27647
+ * @description A list of promotions and offers applied to the sales invoice.
27648
+ * @default []
27342
27649
  */
27343
- companyInvoiceDiscount: number | null;
27344
- };
27345
- /** ListInvoiceSchema */
27346
- ListInvoiceSchema: {
27347
- info: components["schemas"]["PageInfoSchema"];
27348
- /** Results */
27349
- results: components["schemas"]["InvoiceSchema"][];
27650
+ promotionsAndOffers: components["schemas"]["PromotionsAndOffersSharedSchema"][];
27350
27651
  };
27351
- /** ListReturnSchema */
27352
- ListReturnSchema: {
27353
- info: components["schemas"]["PageInfoSchema"];
27354
- /** Results */
27355
- results: components["schemas"]["ReturnSchema"][];
27652
+ /** ItemSummaryInfo */
27653
+ ItemSummaryInfo: {
27654
+ /** Id */
27655
+ id: number;
27656
+ /** Name */
27657
+ name: string;
27356
27658
  };
27357
- /** ReturnSchema */
27358
- ReturnSchema: {
27659
+ /** POSInvoiceItemSchema */
27660
+ POSInvoiceItemSchema: {
27359
27661
  /**
27360
27662
  * Id
27361
27663
  * Format: uuid
27362
27664
  */
27363
27665
  id: string;
27364
- /** Returnnumber */
27365
- returnNumber: string;
27366
- customer: components["schemas"]["CustomerInfo"];
27367
- currency: components["schemas"]["CurrencyList"];
27368
- /**
27369
- * Status
27370
- * @example in_progress
27371
- */
27372
- status: string;
27373
- /**
27374
- * Barcode
27375
- * @example 123456789
27376
- */
27377
- barcode: number;
27378
- /**
27379
- * Companysubtotal
27380
- * @example 1
27381
- */
27382
- companySubTotal: number;
27383
- /**
27384
- * Companyitemsdiscountamount
27385
- * @example 1
27386
- */
27387
- companyItemsDiscountAmount: number;
27388
- /**
27389
- * Companytotaldiscountamount
27390
- * @example 1
27391
- */
27392
- companyTotalDiscountAmount: number;
27393
- /**
27394
- * Usdtotaldiscountamount
27395
- * @example 1
27396
- */
27397
- usdTotalDiscountAmount: number;
27398
- /**
27399
- * Companynetitemstotal
27400
- * @example 1
27401
- */
27402
- companyNetItemsTotal: number;
27403
- /**
27404
- * Totalcompany
27405
- * @example 1
27406
- */
27407
- totalCompany: number;
27666
+ item: components["schemas"]["ItemSummaryInfo"];
27667
+ /** @description This field is the package of the item. */
27668
+ itemPackage: components["schemas"]["ItemPackageSummarySchema"] | null;
27408
27669
  /**
27409
- * Companytax
27410
- * @example 1
27670
+ * @description
27671
+ * if the item is voided it cant be modified,
27672
+ * if the invoice type is default the item status is purchased or voided,
27673
+ * if the invoice type is exchange the item status is purchased, returned or voided,
27674
+ *
27675
+ * @default purchased
27411
27676
  */
27412
- companyTax: number;
27677
+ status: components["schemas"]["InvoiceItemStatus"];
27678
+ relatedInvoiceItem?: components["schemas"]["ItemInvoiceSummarySchema"] | null;
27679
+ giftReceiptItem?: components["schemas"]["GiftReceiptItemSummarySchema"] | null;
27680
+ /** Quantity */
27681
+ quantity: number;
27413
27682
  /**
27414
- * Companynettotal
27415
- * @example 1
27683
+ * Unitprice
27684
+ * @description This field is a number representing the unit price of the item.
27416
27685
  */
27417
- companyNetTotal: number;
27686
+ unitPrice: string;
27418
27687
  /**
27419
- * Usdsubtotal
27420
- * @example 1
27688
+ * Primarysubtotal
27689
+ * @description This field is a number representing the primary subtotal of the invoice.
27421
27690
  */
27422
- usdSubTotal: number;
27691
+ primarySubtotal: string;
27423
27692
  /**
27424
- * Usditemsdiscountamount
27425
- * @example 1
27693
+ * Secondarysubtotal
27694
+ * @description
27695
+ * This field is a number representing the secondary subtotal of the invoice.
27696
+ * This field is visible only if multicurrency is enabled.
27697
+ *
27426
27698
  */
27427
- usdItemsDiscountAmount: number;
27699
+ secondarySubtotal: string | null;
27428
27700
  /**
27429
- * Usdnetitemstotal
27430
- * @example 1
27701
+ * Discount
27702
+ * @default 0
27431
27703
  */
27432
- usdNetItemsTotal: number;
27704
+ discount: number;
27433
27705
  /**
27434
- * Totalusd
27435
- * @example 1
27706
+ * Primarytotal
27707
+ * @description This field is a number representing the primary total of the item.
27436
27708
  */
27437
- totalUsd: number;
27709
+ primaryTotal: string;
27438
27710
  /**
27439
- * Usdtax
27440
- * @example 1
27711
+ * Secondarytotal
27712
+ * @description
27713
+ * This field is a number representing the secondary total of the item.
27714
+ * This field is visible only if multicurrency is enabled.
27715
+ *
27441
27716
  */
27442
- usdTax: number;
27717
+ secondaryTotal: string | null;
27443
27718
  /**
27444
- * Usdnettotal
27445
- * @example 1
27719
+ * Remainingquantity
27720
+ * @description This field is a number representing the remaining quantity of the item.
27446
27721
  */
27447
- usdNetTotal: number;
27722
+ remainingQuantity: number;
27448
27723
  /**
27449
- * Usdinvoicediscount
27450
- * @default 0
27451
- * @example 1
27724
+ * Promotionsandoffers
27725
+ * @description A list of promotions and offers applied to the sales invoice.
27726
+ * @default []
27452
27727
  */
27453
- usdInvoiceDiscount: number | null;
27728
+ promotionsAndOffers: components["schemas"]["PromotionsAndOffersSharedSchema"][];
27729
+ };
27730
+ /** POSInvoiceSchema */
27731
+ POSInvoiceSchema: {
27454
27732
  /**
27455
- * Companyinvoicediscount
27456
- * @default 0
27457
- * @example 1
27733
+ * Datecreated
27734
+ * Format: date-time
27458
27735
  */
27459
- companyInvoiceDiscount: number | null;
27460
- };
27461
- /** InvoiceInfoSchema */
27462
- InvoiceInfoSchema: {
27736
+ dateCreated: string;
27737
+ /** Datemodified */
27738
+ dateModified: string | null;
27739
+ createdBy: components["schemas"]["RecordUserSchema"];
27740
+ modifiedBy: components["schemas"]["RecordUserSchema"] | null;
27463
27741
  /**
27464
27742
  * Id
27465
27743
  * Format: uuid
@@ -27467,327 +27745,341 @@ export interface components {
27467
27745
  id: string;
27468
27746
  /** Invoicenumber */
27469
27747
  invoiceNumber: string;
27470
- customer: components["schemas"]["CustomerInfo"];
27471
- currency: components["schemas"]["CurrencyList"];
27472
27748
  /**
27473
- * Status
27474
- * @example in_progress
27475
- */
27476
- status: string;
27477
- /**
27478
- * Barcode
27479
- * @example 123456789
27480
- */
27481
- barcode: number;
27482
- /**
27483
- * Companysubtotal
27484
- * @example 1
27485
- */
27486
- companySubTotal: number;
27487
- /**
27488
- * Companyitemsdiscountamount
27489
- * @example 1
27490
- */
27491
- companyItemsDiscountAmount: number;
27492
- /**
27493
- * Companytotaldiscountamount
27494
- * @example 1
27495
- */
27496
- companyTotalDiscountAmount: number;
27497
- /**
27498
- * Usdtotaldiscountamount
27499
- * @example 1
27749
+ * Date
27750
+ * Format: date-time
27500
27751
  */
27501
- usdTotalDiscountAmount: number;
27752
+ date: string;
27753
+ customer: components["schemas"]["CustomerSharedSchema"];
27754
+ status: components["schemas"]["InvoiceStatus"];
27755
+ /** Barcode */
27756
+ barcode: string;
27757
+ type: components["schemas"]["InvoiceType"];
27758
+ session: components["schemas"]["SessionSummarySchema"];
27759
+ relatedInvoice?: components["schemas"]["PosInvoiceSummarySchema"] | null;
27760
+ giftReceipt?: components["schemas"]["GiftReceiptSummarySchema"] | null;
27502
27761
  /**
27503
- * Companynetitemstotal
27504
- * @example 1
27762
+ * Primarysubtotal
27763
+ * @description This field is a number representing the primary subtotal of the invoice.
27505
27764
  */
27506
- companyNetItemsTotal: number;
27765
+ primarySubtotal: string;
27507
27766
  /**
27508
- * Totalcompany
27509
- * @example 1
27767
+ * Secondarysubtotal
27768
+ * @description
27769
+ * This field is a number representing the secondary subtotal of the invoice.
27770
+ * This field is visible only if multicurrency is enabled.
27771
+ *
27510
27772
  */
27511
- totalCompany: number;
27773
+ secondarySubtotal: string | null;
27512
27774
  /**
27513
- * Companytax
27514
- * @example 1
27775
+ * Discount
27776
+ * @default 0
27515
27777
  */
27516
- companyTax: number;
27778
+ discount: number | null;
27517
27779
  /**
27518
- * Companynettotal
27519
- * @example 1
27780
+ * Primarydiscountedtotal
27781
+ * @description This field is a number representing the primary discounted total of the invoice.
27520
27782
  */
27521
- companyNetTotal: number;
27783
+ primaryDiscountedTotal: string;
27522
27784
  /**
27523
- * Usdsubtotal
27524
- * @example 1
27785
+ * Secondarydiscountedtotal
27786
+ * @description
27787
+ * This field is a number representing the secondary discounted total of the invoice.
27788
+ * This field is visible only if multicurrency is enabled.
27789
+ *
27525
27790
  */
27526
- usdSubTotal: number;
27791
+ secondaryDiscountedTotal: string | null;
27527
27792
  /**
27528
- * Usditemsdiscountamount
27529
- * @example 1
27793
+ * Primarytaxamount
27794
+ * @description This field is a number representing the primary tax amount of the invoice.
27530
27795
  */
27531
- usdItemsDiscountAmount: number;
27796
+ primaryTaxAmount: string;
27532
27797
  /**
27533
- * Usdnetitemstotal
27534
- * @example 1
27798
+ * Secondarytaxamount
27799
+ * @description
27800
+ * This field is a number representing the secondary tax amount of the invoice.
27801
+ * This field is visible only if multicurrency is enabled.
27802
+ *
27535
27803
  */
27536
- usdNetItemsTotal: number;
27804
+ secondaryTaxAmount: string | null;
27537
27805
  /**
27538
- * Totalusd
27539
- * @example 1
27806
+ * Primarytotal
27807
+ * @description This field is a number representing the primary total of the invoice.
27540
27808
  */
27541
- totalUsd: number;
27809
+ primaryTotal: string;
27542
27810
  /**
27543
- * Usdtax
27544
- * @example 1
27811
+ * Secondarytotal
27812
+ * @description
27813
+ * This field is a number representing the secondary total of the invoice.
27814
+ * This field is visible only if multicurrency is enabled.
27815
+ *
27545
27816
  */
27546
- usdTax: number;
27817
+ secondaryTotal?: string | null;
27547
27818
  /**
27548
- * Usdnettotal
27549
- * @example 1
27819
+ * Promotionsandoffers
27820
+ * @description A list of promotions and offers applied to the sales invoice.
27821
+ * @default []
27550
27822
  */
27551
- usdNetTotal: number;
27823
+ promotionsAndOffers: components["schemas"]["PromotionsAndOffersSharedSchema"][];
27824
+ /** Items */
27825
+ items: components["schemas"]["POSInvoiceItemSchema"][];
27552
27826
  /**
27553
- * Usdinvoicediscount
27554
- * @default 0
27555
- * @example 1
27827
+ * Payments
27828
+ * @description A list of payments applied to the sales invoice.
27556
27829
  */
27557
- usdInvoiceDiscount: number | null;
27830
+ payments: components["schemas"]["POSPaymentSchema"][];
27558
27831
  /**
27559
- * Companyinvoicediscount
27560
- * @default 0
27561
- * @example 1
27832
+ * Refunds
27833
+ * @description A list of refunds applied to the sales invoice.
27562
27834
  */
27563
- companyInvoiceDiscount: number | null;
27564
- /** Invoiceitems */
27565
- invoiceItems: components["schemas"]["InvoiceItemGetSchema"][];
27566
- /** Invoicepayments */
27567
- invoicePayments: components["schemas"]["InvoicePaymentSchema"][];
27835
+ refunds: components["schemas"]["POSRefundSchema"][];
27568
27836
  };
27569
- /** InvoiceItemGetSchema */
27570
- InvoiceItemGetSchema: {
27571
- item: components["schemas"]["Item"];
27837
+ /**
27838
+ * POSPaymentSchema
27839
+ * @description Schema for payment response after creation or retrieval.
27840
+ *
27841
+ * Includes all payment details and calculated currencies.
27842
+ * Used for API responses when returning payment information.
27843
+ */
27844
+ POSPaymentSchema: {
27572
27845
  /**
27573
27846
  * Id
27574
27847
  * Format: uuid
27575
- * @example bae46f14-14a3-4f47-a29c-ff89a3588708
27848
+ * @description Unique identifier for the payment (UUID format). Used for referencing this payment in the system.
27576
27849
  */
27577
27850
  id: string;
27578
27851
  /**
27579
- * Quantity
27580
- * @example 1
27852
+ * Amount
27853
+ * @description Payment amount in the specified currency (should be treated as a number). The actual amount provided by the customer.
27581
27854
  */
27582
- quantity: number;
27855
+ amount: string;
27856
+ /** @description Currency information used for this payment. Contains currency ID, name, code, and other relevant information. If multi-currency is disabled, this will always be the primary currency. If multi-currency is enabled, this can be either primary or secondary currency. */
27857
+ currency: components["schemas"]["CurrencySummaryInfo"];
27583
27858
  /**
27584
- * Status
27585
- * @example purchased
27859
+ * Rate
27860
+ * @description Exchange rate used for currency conversion (should be treated as a number). Taken from the invoice at the time of payment to ensure consistency. Used to convert between primary and secondary currencies.Only include if multi-currency is enabled
27586
27861
  */
27587
- status: string;
27862
+ rate?: string | null;
27588
27863
  /**
27589
- * Discount
27590
- * @example 1
27864
+ * Primarychangedue
27865
+ * @description Change given in primary currency (should be treated as a number). The amount returned to the customer in the business's primary currency. Primary currency is the company's currency
27591
27866
  */
27592
- discount: number;
27867
+ primaryChangeDue?: string | null;
27593
27868
  /**
27594
- * Companyunitprice
27595
- * @example 1
27869
+ * Secondarychangedue
27870
+ * @description Change given in secondary currency (should be treated as a number). The amount returned to the customer in the secondary currency if applicable. Secondary currency is the company's currency set as secondary currency in system settings. This will be zero when multi-currency is disabled.
27596
27871
  */
27597
- companyUnitPrice: number;
27872
+ secondaryChangeDue?: string | null;
27873
+ };
27874
+ /**
27875
+ * POSRefundSchema
27876
+ * @description Schema for refund response after creation or retrieval.
27877
+ *
27878
+ * Includes all refund details and calculated currencies.
27879
+ * Used for API responses when returning refund information.
27880
+ */
27881
+ POSRefundSchema: {
27598
27882
  /**
27599
- * Subtotalcompany
27600
- * @example 1
27883
+ * Datecreated
27884
+ * Format: date-time
27601
27885
  */
27602
- subTotalCompany: number;
27886
+ dateCreated: string;
27887
+ /** Datemodified */
27888
+ dateModified: string | null;
27889
+ createdBy: components["schemas"]["RecordUserSchema"];
27890
+ modifiedBy: components["schemas"]["RecordUserSchema"] | null;
27603
27891
  /**
27604
- * Totalcompany
27605
- * @example 1
27892
+ * Id
27893
+ * Format: uuid
27894
+ * @description Unique identifier for the refund (UUID format). Used for referencing this refund in the system.
27606
27895
  */
27607
- totalCompany: number;
27896
+ id: string;
27608
27897
  /**
27609
- * Companytax
27610
- * @example 1
27898
+ * Amount
27899
+ * @description Refund amount in the specified currency (should be treated as a number). The actual amount refunded to the customer.
27611
27900
  */
27612
- companyTax: number;
27901
+ amount: string;
27902
+ /** @description Currency information used for this refund. Contains currency ID, name, code, and other relevant information. If multi-currency is disabled, this will always be the primary currency. If multi-currency is enabled, this can be either primary or secondary currency. */
27903
+ currency: components["schemas"]["CurrencySummaryInfo"];
27613
27904
  /**
27614
- * Companynettotal
27615
- * @example 1
27905
+ * Rate
27906
+ * @description Exchange rate used for currency conversion (should be treated as a number). Taken from the invoice at the time of refund to ensure consistency. Used to convert between primary and secondary currencies.
27616
27907
  */
27617
- companyNetTotal: number;
27908
+ rate: string;
27618
27909
  /**
27619
- * Usdunitprice
27620
- * @example 1
27910
+ * Primaryrefunddue
27911
+ * @description Change given in primary currency (should be treated as a number). The amount the customer returns as change in the business's primary currency. Primary currency is the company's default currency set in system settings.
27621
27912
  */
27622
- usdUnitPrice: number;
27913
+ primaryRefundDue: string;
27623
27914
  /**
27624
- * Subtotalusd
27625
- * @example 1
27915
+ * Secondaryrefunddue
27916
+ * @description Change given in secondary currency (should be treated as a number). The amount the customer returns as change in the secondary currency if applicable. Secondary currency is any currency that is not the company's default currency. This will be zero when multi-currency is disabled.
27626
27917
  */
27627
- subTotalUsd: number;
27918
+ secondaryRefundDue: string;
27919
+ };
27920
+ /** PosInvoiceSummarySchema */
27921
+ PosInvoiceSummarySchema: {
27628
27922
  /**
27629
- * Totalusd
27630
- * @example 1
27923
+ * Id
27924
+ * Format: uuid
27631
27925
  */
27632
- totalUsd: number;
27926
+ id: string;
27927
+ /** Invoicenumber */
27928
+ invoiceNumber: string;
27633
27929
  /**
27634
- * Usdtax
27635
- * @example 1
27930
+ * Date
27931
+ * Format: date-time
27636
27932
  */
27637
- usdTax: number;
27933
+ date: string;
27934
+ customer: components["schemas"]["CustomerSharedSchema"];
27935
+ };
27936
+ /** PromotionsAndOffersSharedSchema */
27937
+ PromotionsAndOffersSharedSchema: {
27638
27938
  /**
27639
- * Usdnettotal
27640
- * @example 1
27939
+ * Id
27940
+ * Format: uuid
27641
27941
  */
27642
- usdNetTotal: number;
27643
- };
27644
- /** InvoicePaymentSchema */
27645
- InvoicePaymentSchema: {
27646
- /** Amount */
27647
- amount: number;
27648
- /** Changeduecompany */
27649
- changeDueCompany: number;
27650
- /** Changedueusd */
27651
- changeDueUsd: number;
27652
- currency: components["schemas"]["CurrencyList"];
27653
- /** @example cash */
27654
- paymentMethod: components["schemas"]["PaymentMethodSchema"];
27655
- };
27656
- /** Item */
27657
- Item: {
27658
- /** Barcode */
27659
- barcode: string;
27660
- /** Name */
27661
- name: string;
27662
- /** Id */
27663
- id: number;
27664
- };
27665
- /** PaymentMethodSchema */
27666
- PaymentMethodSchema: {
27667
- /** Id */
27668
- id: number;
27942
+ id: string;
27669
27943
  /** Name */
27670
27944
  name: string;
27945
+ /** Promotiontype */
27946
+ promotionType: string;
27947
+ /** Discountvalue */
27948
+ discountValue: number | null;
27949
+ currency: components["schemas"]["CurrencySummaryInfo"] | null;
27671
27950
  };
27672
- /** PosRefundSchema */
27673
- PosRefundSchema: {
27674
- /** Amount */
27675
- amount: number;
27676
- /** Customeradditionalpaymentcompany */
27677
- customerAdditionalPaymentCompany: number;
27678
- /** Customeradditionalpaymentusd */
27679
- customerAdditionalPaymentUsd: number;
27680
- currency: components["schemas"]["CurrencyList"];
27681
- /** @example cash */
27682
- paymentMethod: components["schemas"]["PaymentMethodSchema"];
27683
- };
27684
- /** ReturnInvoiceInfoSchema */
27685
- ReturnInvoiceInfoSchema: {
27951
+ /** SessionSummarySchema */
27952
+ SessionSummarySchema: {
27686
27953
  /**
27687
27954
  * Id
27688
27955
  * Format: uuid
27689
27956
  */
27690
27957
  id: string;
27691
- /** Returnnumber */
27692
- returnNumber: string;
27693
- customer: components["schemas"]["CustomerInfo"];
27694
- currency: components["schemas"]["CurrencyList"];
27695
- /**
27696
- * Status
27697
- * @example in_progress
27698
- */
27699
- status: string;
27700
27958
  /**
27701
- * Barcode
27702
- * @example 123456789
27703
- */
27704
- barcode: number;
27705
- /**
27706
- * Companysubtotal
27707
- * @example 1
27708
- */
27709
- companySubTotal: number;
27710
- /**
27711
- * Companyitemsdiscountamount
27712
- * @example 1
27713
- */
27714
- companyItemsDiscountAmount: number;
27715
- /**
27716
- * Companytotaldiscountamount
27717
- * @example 1
27718
- */
27719
- companyTotalDiscountAmount: number;
27720
- /**
27721
- * Usdtotaldiscountamount
27722
- * @example 1
27723
- */
27724
- usdTotalDiscountAmount: number;
27725
- /**
27726
- * Companynetitemstotal
27727
- * @example 1
27728
- */
27729
- companyNetItemsTotal: number;
27730
- /**
27731
- * Totalcompany
27732
- * @example 1
27959
+ * Startdate
27960
+ * Format: date-time
27733
27961
  */
27734
- totalCompany: number;
27962
+ startDate: string;
27963
+ /** Enddate */
27964
+ endDate?: string | null;
27965
+ status: components["schemas"]["SessionStatus"];
27966
+ };
27967
+ /** GiftReceiptItemSchema */
27968
+ GiftReceiptItemSchema: {
27735
27969
  /**
27736
- * Companytax
27737
- * @example 1
27970
+ * Id
27971
+ * Format: uuid
27738
27972
  */
27739
- companyTax: number;
27973
+ id: string;
27974
+ invoiceItem: components["schemas"]["POSInvoiceItemSummarySchema"];
27975
+ /** Quantity */
27976
+ quantity: number;
27977
+ /** Primarysubtotal */
27978
+ primarySubtotal?: string | null;
27979
+ /** Secondarysubtotal */
27980
+ secondarySubtotal?: string | null;
27981
+ /** Primarytaxamount */
27982
+ primaryTaxAmount?: string | null;
27983
+ /** Secondarytaxamount */
27984
+ secondaryTaxAmount?: string | null;
27985
+ /** Primarytotal */
27986
+ primaryTotal?: string | null;
27987
+ /** Secondarytotal */
27988
+ secondaryTotal?: string | null;
27989
+ /** Remainingquantity */
27990
+ remainingQuantity?: number | null;
27991
+ };
27992
+ /** GiftReceiptListSchema */
27993
+ GiftReceiptListSchema: {
27994
+ info: components["schemas"]["PageInfoSchema"];
27995
+ /** Results */
27996
+ results: components["schemas"]["GiftReceiptSchema"][];
27997
+ };
27998
+ /** GiftReceiptSchema */
27999
+ GiftReceiptSchema: {
27740
28000
  /**
27741
- * Companynettotal
27742
- * @example 1
28001
+ * Datecreated
28002
+ * Format: date-time
27743
28003
  */
27744
- companyNetTotal: number;
28004
+ dateCreated: string;
28005
+ /** Datemodified */
28006
+ dateModified: string | null;
28007
+ createdBy: components["schemas"]["RecordUserSchema"];
28008
+ modifiedBy: components["schemas"]["RecordUserSchema"] | null;
27745
28009
  /**
27746
- * Usdsubtotal
27747
- * @example 1
28010
+ * Id
28011
+ * Format: uuid
27748
28012
  */
27749
- usdSubTotal: number;
28013
+ id: string;
28014
+ /** Receiptnumber */
28015
+ receiptNumber: string;
27750
28016
  /**
27751
- * Usditemsdiscountamount
27752
- * @example 1
28017
+ * Date
28018
+ * Format: date-time
27753
28019
  */
27754
- usdItemsDiscountAmount: number;
28020
+ date: string;
28021
+ invoice: components["schemas"]["PosInvoiceSummarySchema"];
28022
+ /** Barcode */
28023
+ barcode: string;
28024
+ /** Primarysubtotal */
28025
+ primarySubtotal?: string | null;
28026
+ /** Secondarysubtotal */
28027
+ secondarySubtotal?: string | null;
28028
+ /** Primarytaxamount */
28029
+ primaryTaxAmount?: string | null;
28030
+ /** Secondarytaxamount */
28031
+ secondaryTaxAmount?: string | null;
28032
+ /** Primarytotal */
28033
+ primaryTotal?: string | null;
28034
+ /** Secondarytotal */
28035
+ secondaryTotal?: string | null;
28036
+ /** Items */
28037
+ items: components["schemas"]["GiftReceiptItemSchema"][];
28038
+ };
28039
+ /** POSInvoiceItemSummarySchema */
28040
+ POSInvoiceItemSummarySchema: {
27755
28041
  /**
27756
- * Usdnetitemstotal
27757
- * @example 1
28042
+ * Id
28043
+ * Format: uuid
27758
28044
  */
27759
- usdNetItemsTotal: number;
28045
+ id: string;
28046
+ item: components["schemas"]["ItemSummaryInfo"];
28047
+ /** @description This field is the package of the item. */
28048
+ itemPackage: components["schemas"]["ItemPackageSummarySchema"] | null;
27760
28049
  /**
27761
- * Totalusd
27762
- * @example 1
28050
+ * @description
28051
+ * if the item is voided it cant be modified,
28052
+ * if the invoice type is default the item status is purchased or voided,
28053
+ * if the invoice type is exchange the item status is purchased, retuned or voided,
28054
+ *
28055
+ * @default purchased
27763
28056
  */
27764
- totalUsd: number;
28057
+ status: components["schemas"]["InvoiceItemStatus"];
28058
+ /** Quantity */
28059
+ quantity: number;
27765
28060
  /**
27766
- * Usdtax
27767
- * @example 1
28061
+ * Unitprice
28062
+ * @description This field is a number representing the unit price of the item.
27768
28063
  */
27769
- usdTax: number;
28064
+ unitPrice: string;
27770
28065
  /**
27771
- * Usdnettotal
27772
- * @example 1
28066
+ * Discount
28067
+ * @default 0
27773
28068
  */
27774
- usdNetTotal: number;
28069
+ discount: number;
27775
28070
  /**
27776
- * Usdinvoicediscount
27777
- * @default 0
27778
- * @example 1
28071
+ * Primarytotal
28072
+ * @description This field is a number representing the primary total of the item.
27779
28073
  */
27780
- usdInvoiceDiscount: number | null;
28074
+ primaryTotal: string;
27781
28075
  /**
27782
- * Companyinvoicediscount
27783
- * @default 0
27784
- * @example 1
28076
+ * Secondarytotal
28077
+ * @description
28078
+ * This field is a number representing the secondary total of the item.
28079
+ * This field is visible only if multicurrency is enabled.
28080
+ *
27785
28081
  */
27786
- companyInvoiceDiscount: number | null;
27787
- /** Invoiceitems */
27788
- invoiceItems: components["schemas"]["InvoiceItemGetSchema"][];
27789
- /** Invoicerefunds */
27790
- invoiceRefunds: components["schemas"]["PosRefundSchema"][];
28082
+ secondaryTotal: string | null;
27791
28083
  };
27792
28084
  /** CitySchema */
27793
28085
  CitySchema: {
@@ -27904,24 +28196,6 @@ export interface components {
27904
28196
  /** Price */
27905
28197
  price: number | string;
27906
28198
  };
27907
- /** CustomerSharedSchema */
27908
- CustomerSharedSchema: {
27909
- /** Id */
27910
- id: number;
27911
- /** Name */
27912
- name: string;
27913
- /** Accountnumber */
27914
- accountNumber: string;
27915
- /** Phone */
27916
- phone?: string | null;
27917
- type: components["schemas"]["TypeOfCustomerValue"];
27918
- currency: components["schemas"]["CurrencySummaryInfo"] | null;
27919
- /**
27920
- * Currencies
27921
- * @default []
27922
- */
27923
- currencies: components["schemas"]["CurrencySummaryInfo"][];
27924
- };
27925
28199
  /** ListShippingMethods */
27926
28200
  ListShippingMethods: {
27927
28201
  info: components["schemas"]["PageInfoSchema"];
@@ -30746,15 +31020,6 @@ export interface components {
30746
31020
  */
30747
31021
  paymentInAdvanceAccountNonResident?: number;
30748
31022
  };
30749
- /** CurrencySummarySchema */
30750
- CurrencySummarySchema: {
30751
- /** Id */
30752
- id: number;
30753
- /** Code */
30754
- code: string;
30755
- /** Name */
30756
- name: string;
30757
- };
30758
31023
  /**
30759
31024
  * ReportGroupBy
30760
31025
  * @enum {string}
@@ -33751,13 +34016,6 @@ export interface components {
33751
34016
  /** Totaldifference */
33752
34017
  totalDifference: number;
33753
34018
  };
33754
- /** ItemSummaryInfo */
33755
- ItemSummaryInfo: {
33756
- /** Id */
33757
- id: number;
33758
- /** Name */
33759
- name: string;
33760
- };
33761
34019
  /** PurchaseInvoiceDifferenceSchema */
33762
34020
  PurchaseInvoiceDifferenceSchema: {
33763
34021
  /** Itemdifferences */
@@ -37056,13 +37314,6 @@ export interface components {
37056
37314
  * @enum {string}
37057
37315
  */
37058
37316
  EmployeeType: "receivable" | "payable";
37059
- /** UserSummaryInfo */
37060
- UserSummaryInfo: {
37061
- /** Id */
37062
- id: number;
37063
- /** Username */
37064
- username: string;
37065
- };
37066
37317
  /** CreateBankAccountsSchema */
37067
37318
  CreateBankAccountsSchema: {
37068
37319
  /** Name */
@@ -39437,21 +39688,6 @@ export interface components {
39437
39688
  /** Name */
39438
39689
  name: string;
39439
39690
  };
39440
- /** PromotionsAndOffersSharedSchema */
39441
- PromotionsAndOffersSharedSchema: {
39442
- /**
39443
- * Id
39444
- * Format: uuid
39445
- */
39446
- id: string;
39447
- /** Name */
39448
- name: string;
39449
- /** Promotiontype */
39450
- promotionType: string;
39451
- /** Discountvalue */
39452
- discountValue: number | null;
39453
- currency: components["schemas"]["CurrencySummaryInfo"] | null;
39454
- };
39455
39691
  /** SalesPriceListSummaryInfo */
39456
39692
  SalesPriceListSummaryInfo: {
39457
39693
  /**
@@ -59439,6 +59675,16 @@ export interface operations {
59439
59675
  page?: number;
59440
59676
  /** @description Page size */
59441
59677
  pageSize?: number;
59678
+ /** @description Filter by session status (e.g., 'opened') */
59679
+ status?: components["schemas"]["SessionStatus"] | null;
59680
+ /** @description Filter sessions from this date (YYYY-MM-DD) */
59681
+ startDate?: string | null;
59682
+ /** @description Filter sessions until this date (YYYY-MM-DD) */
59683
+ endDate?: string | null;
59684
+ /** @description Filter by user ID (requires appropriate permissions) */
59685
+ userId?: number | null;
59686
+ /** @description Filter by session name */
59687
+ name?: string | null;
59442
59688
  };
59443
59689
  header?: never;
59444
59690
  path?: never;
@@ -59452,7 +59698,7 @@ export interface operations {
59452
59698
  [name: string]: unknown;
59453
59699
  };
59454
59700
  content: {
59455
- "application/json": components["schemas"]["ListSessionSchema"];
59701
+ "application/json": components["schemas"]["SessionListSchema"];
59456
59702
  };
59457
59703
  };
59458
59704
  /** @description Bad Request */
@@ -59461,7 +59707,7 @@ export interface operations {
59461
59707
  [name: string]: unknown;
59462
59708
  };
59463
59709
  content: {
59464
- "application/json": components["schemas"]["MessageResponse"];
59710
+ "application/json": components["schemas"]["ErrorMessages"];
59465
59711
  };
59466
59712
  };
59467
59713
  /** @description Forbidden */
@@ -59484,7 +59730,7 @@ export interface operations {
59484
59730
  };
59485
59731
  };
59486
59732
  };
59487
- pos_session_views_get_x_report: {
59733
+ pos_session_views_get_session: {
59488
59734
  parameters: {
59489
59735
  query?: never;
59490
59736
  header?: never;
@@ -59501,7 +59747,7 @@ export interface operations {
59501
59747
  [name: string]: unknown;
59502
59748
  };
59503
59749
  content: {
59504
- "application/json": components["schemas"]["XReportSchema"];
59750
+ "application/json": components["schemas"]["SessionSchema"];
59505
59751
  };
59506
59752
  };
59507
59753
  /** @description Bad Request */
@@ -59510,7 +59756,7 @@ export interface operations {
59510
59756
  [name: string]: unknown;
59511
59757
  };
59512
59758
  content: {
59513
- "application/json": components["schemas"]["MessageResponse"];
59759
+ "application/json": components["schemas"]["ErrorMessages"];
59514
59760
  };
59515
59761
  };
59516
59762
  /** @description Forbidden */
@@ -59531,16 +59777,20 @@ export interface operations {
59531
59777
  "application/json": components["schemas"]["MessageResponse"];
59532
59778
  };
59533
59779
  };
59780
+ /** @description Internal Server Error */
59781
+ 500: {
59782
+ headers: {
59783
+ [name: string]: unknown;
59784
+ };
59785
+ content: {
59786
+ "application/json": components["schemas"]["MessageResponse"];
59787
+ };
59788
+ };
59534
59789
  };
59535
59790
  };
59536
- pos_session_views_get_invoices: {
59791
+ pos_session_views_get_session_x_report: {
59537
59792
  parameters: {
59538
- query?: {
59539
- /** @description Page number */
59540
- page?: number;
59541
- /** @description Page size */
59542
- pageSize?: number;
59543
- };
59793
+ query?: never;
59544
59794
  header?: never;
59545
59795
  path: {
59546
59796
  id: string;
@@ -59555,7 +59805,7 @@ export interface operations {
59555
59805
  [name: string]: unknown;
59556
59806
  };
59557
59807
  content: {
59558
- "application/json": components["schemas"]["ListInvoiceSchema"];
59808
+ "application/json": components["schemas"]["XReportSchema"];
59559
59809
  };
59560
59810
  };
59561
59811
  /** @description Bad Request */
@@ -59564,16 +59814,7 @@ export interface operations {
59564
59814
  [name: string]: unknown;
59565
59815
  };
59566
59816
  content: {
59567
- "application/json": components["schemas"]["MessageResponse"];
59568
- };
59569
- };
59570
- /** @description Unauthorized */
59571
- 401: {
59572
- headers: {
59573
- [name: string]: unknown;
59574
- };
59575
- content: {
59576
- "application/json": components["schemas"]["MessageResponse"];
59817
+ "application/json": components["schemas"]["ErrorMessages"];
59577
59818
  };
59578
59819
  };
59579
59820
  /** @description Forbidden */
@@ -59605,18 +59846,18 @@ export interface operations {
59605
59846
  };
59606
59847
  };
59607
59848
  };
59608
- pos_session_views_get_exchange_invoices: {
59849
+ pos_session_views_get_session_z_report: {
59609
59850
  parameters: {
59610
59851
  query?: {
59611
- /** @description Page number */
59612
- page?: number;
59613
- /** @description Page size */
59614
- pageSize?: number;
59852
+ /** @description Start date (YYYY-MM-DD) */
59853
+ start_date?: string | null;
59854
+ /** @description End date (YYYY-MM-DD) */
59855
+ end_date?: string | null;
59856
+ /** @description Session IDs filtered by status 'closed' */
59857
+ session_ids?: string[] | null;
59615
59858
  };
59616
59859
  header?: never;
59617
- path: {
59618
- id: string;
59619
- };
59860
+ path?: never;
59620
59861
  cookie?: never;
59621
59862
  };
59622
59863
  requestBody?: never;
@@ -59627,7 +59868,7 @@ export interface operations {
59627
59868
  [name: string]: unknown;
59628
59869
  };
59629
59870
  content: {
59630
- "application/json": components["schemas"]["ListInvoiceSchema"];
59871
+ "application/json": components["schemas"]["ZReportSchema"];
59631
59872
  };
59632
59873
  };
59633
59874
  /** @description Bad Request */
@@ -59636,11 +59877,11 @@ export interface operations {
59636
59877
  [name: string]: unknown;
59637
59878
  };
59638
59879
  content: {
59639
- "application/json": components["schemas"]["MessageResponse"];
59880
+ "application/json": components["schemas"]["ErrorMessages"];
59640
59881
  };
59641
59882
  };
59642
- /** @description Unauthorized */
59643
- 401: {
59883
+ /** @description Forbidden */
59884
+ 403: {
59644
59885
  headers: {
59645
59886
  [name: string]: unknown;
59646
59887
  };
@@ -59668,18 +59909,28 @@ export interface operations {
59668
59909
  };
59669
59910
  };
59670
59911
  };
59671
- pos_session_views_get_return_invoices: {
59912
+ pos_invoice_views_list_invoices: {
59672
59913
  parameters: {
59673
59914
  query?: {
59674
59915
  /** @description Page number */
59675
59916
  page?: number;
59676
59917
  /** @description Page size */
59677
59918
  pageSize?: number;
59919
+ /** @description Search by invoice type, barcode, customer first name, customer last name, status, primary_total, secondary_total, customer__phone1, customer__phone2 */
59920
+ search?: string | null;
59921
+ /** @description Filter invoices by status */
59922
+ status?: components["schemas"]["InvoiceStatus"] | null;
59923
+ /** @description Filter invoices by invoice number */
59924
+ invoiceNumber?: string | null;
59925
+ /** @description Filter invoices by session ID, it should be the current session by default */
59926
+ session_id?: string | null;
59927
+ /** @description Filter invoices from this date (YYYY-MM-DD) */
59928
+ start_date?: string | null;
59929
+ /** @description Filter invoices up to this date (YYYY-MM-DD) */
59930
+ end_date?: string | null;
59678
59931
  };
59679
59932
  header?: never;
59680
- path: {
59681
- id: string;
59682
- };
59933
+ path?: never;
59683
59934
  cookie?: never;
59684
59935
  };
59685
59936
  requestBody?: never;
@@ -59690,7 +59941,7 @@ export interface operations {
59690
59941
  [name: string]: unknown;
59691
59942
  };
59692
59943
  content: {
59693
- "application/json": components["schemas"]["ListReturnSchema"];
59944
+ "application/json": components["schemas"]["InvoiceListSchema"];
59694
59945
  };
59695
59946
  };
59696
59947
  /** @description Bad Request */
@@ -59699,20 +59950,11 @@ export interface operations {
59699
59950
  [name: string]: unknown;
59700
59951
  };
59701
59952
  content: {
59702
- "application/json": components["schemas"]["MessageResponse"];
59703
- };
59704
- };
59705
- /** @description Unauthorized */
59706
- 401: {
59707
- headers: {
59708
- [name: string]: unknown;
59709
- };
59710
- content: {
59711
- "application/json": components["schemas"]["MessageResponse"];
59953
+ "application/json": components["schemas"]["ErrorMessages"];
59712
59954
  };
59713
59955
  };
59714
- /** @description Not Found */
59715
- 404: {
59956
+ /** @description Forbidden */
59957
+ 403: {
59716
59958
  headers: {
59717
59959
  [name: string]: unknown;
59718
59960
  };
@@ -59731,7 +59973,7 @@ export interface operations {
59731
59973
  };
59732
59974
  };
59733
59975
  };
59734
- pos_invoice_views_get_invoice: {
59976
+ pos_invoice_views_get_pos_invoice: {
59735
59977
  parameters: {
59736
59978
  query?: never;
59737
59979
  header?: never;
@@ -59748,7 +59990,7 @@ export interface operations {
59748
59990
  [name: string]: unknown;
59749
59991
  };
59750
59992
  content: {
59751
- "application/json": components["schemas"]["InvoiceInfoSchema"];
59993
+ "application/json": components["schemas"]["POSInvoiceSchema"];
59752
59994
  };
59753
59995
  };
59754
59996
  /** @description Forbidden */
@@ -59780,13 +60022,26 @@ export interface operations {
59780
60022
  };
59781
60023
  };
59782
60024
  };
59783
- pos_invoice_views_get_exchange_invoice: {
60025
+ pos_invoice_gift_receipt_views_list_gift_receipts: {
59784
60026
  parameters: {
59785
- query?: never;
59786
- header?: never;
59787
- path: {
59788
- id: string;
60027
+ query?: {
60028
+ /** @description Page number */
60029
+ page?: number;
60030
+ /** @description Page size */
60031
+ pageSize?: number;
60032
+ /** @description Search by gift receipt barcode, invoice number, customer first name, customer last name, customer phone number, customer email, item name, item barcode, item category name, item brand name */
60033
+ search?: string | null;
60034
+ /** @description Filter gift receipts by receipt number */
60035
+ receiptNumber?: string | null;
60036
+ /** @description Filter gift receipts by session ID, it should be the current session by default */
60037
+ session_id?: string | null;
60038
+ /** @description Filter gift receipts from this date (YYYY-MM-DD) */
60039
+ start_date?: string | null;
60040
+ /** @description Filter gift receipts up to this date (YYYY-MM-DD) */
60041
+ end_date?: string | null;
59789
60042
  };
60043
+ header?: never;
60044
+ path?: never;
59790
60045
  cookie?: never;
59791
60046
  };
59792
60047
  requestBody?: never;
@@ -59797,20 +60052,20 @@ export interface operations {
59797
60052
  [name: string]: unknown;
59798
60053
  };
59799
60054
  content: {
59800
- "application/json": components["schemas"]["InvoiceInfoSchema"];
60055
+ "application/json": components["schemas"]["GiftReceiptListSchema"];
59801
60056
  };
59802
60057
  };
59803
- /** @description Forbidden */
59804
- 403: {
60058
+ /** @description Bad Request */
60059
+ 400: {
59805
60060
  headers: {
59806
60061
  [name: string]: unknown;
59807
60062
  };
59808
60063
  content: {
59809
- "application/json": components["schemas"]["MessageResponse"];
60064
+ "application/json": components["schemas"]["ErrorMessages"];
59810
60065
  };
59811
60066
  };
59812
- /** @description Not Found */
59813
- 404: {
60067
+ /** @description Forbidden */
60068
+ 403: {
59814
60069
  headers: {
59815
60070
  [name: string]: unknown;
59816
60071
  };
@@ -59829,7 +60084,7 @@ export interface operations {
59829
60084
  };
59830
60085
  };
59831
60086
  };
59832
- pos_invoice_views_get_return_invoice: {
60087
+ pos_invoice_gift_receipt_views_get_gift_receipt: {
59833
60088
  parameters: {
59834
60089
  query?: never;
59835
60090
  header?: never;
@@ -59846,7 +60101,7 @@ export interface operations {
59846
60101
  [name: string]: unknown;
59847
60102
  };
59848
60103
  content: {
59849
- "application/json": components["schemas"]["ReturnInvoiceInfoSchema"];
60104
+ "application/json": components["schemas"]["GiftReceiptSchema"];
59850
60105
  };
59851
60106
  };
59852
60107
  /** @description Forbidden */