@dodobrands/pos-receipts-plugin-contracts 5.13.2 → 5.13.3

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/dist/index.d.cts CHANGED
@@ -538,7 +538,7 @@ interface CashRegisterSettings {
538
538
  };
539
539
  }
540
540
 
541
- type BaseReceiptRefundInfo = {
541
+ type ReceiptRefundInfo = {
542
542
  /** The payment provider used for this transaction (e.g. "Ibox", "KaspiQr"). */
543
543
  paymentProvider: PaymentProvider;
544
544
  /** The final status of the payment at the time of printing. */
@@ -549,21 +549,6 @@ type BaseReceiptRefundInfo = {
549
549
  */
550
550
  orderRefundResult?: OrderRefundResult;
551
551
  };
552
- type KioskRefundInfo = BaseReceiptRefundInfo & {
553
- refundSource: RefundSource.Kiosk;
554
- };
555
- type RestaurantCashierRefundInfo = BaseReceiptRefundInfo & {
556
- refundSource: RefundSource.RestaurantCashier;
557
- };
558
- type JobRefundInfo = BaseReceiptRefundInfo & {
559
- refundSource: RefundSource.RefundJob;
560
- };
561
- /**
562
- * Refund context passed to the receipt plugin when printing a refund receipt.
563
- * Discriminated union on `refundSource` — add source-specific fields to the
564
- * corresponding branch as needed.
565
- */
566
- type ReceiptRefundInfo = KioskRefundInfo | RestaurantCashierRefundInfo | JobRefundInfo;
567
552
 
568
553
  /**
569
554
  * Obsolete Receipt interface backward compatibility.
@@ -577,7 +562,7 @@ interface HandleRefundRequestClear {
577
562
  refundInfo?: ReceiptRefundInfo;
578
563
  }
579
564
 
580
- type BaseReceiptPaymentInfo = {
565
+ type ReceiptPaymentInfo = {
581
566
  /** The payment provider used for this transaction (e.g. "Ibox", "KaspiQr"). */
582
567
  paymentProvider: PaymentProvider;
583
568
  /** The final status of the payment at the time of printing. */
@@ -588,18 +573,6 @@ type BaseReceiptPaymentInfo = {
588
573
  */
589
574
  orderPaymentResult?: OrderPaymentResult;
590
575
  };
591
- type KioskPaymentInfo = BaseReceiptPaymentInfo & {
592
- paymentSource: PaymentSource.Kiosk;
593
- };
594
- type RestaurantCashierPaymentInfo = BaseReceiptPaymentInfo & {
595
- paymentSource: PaymentSource.RestaurantCashier;
596
- };
597
- /**
598
- * Payment context passed to the receipt plugin when printing a receipt.
599
- * Discriminated union on `paymentSource` — add source-specific fields to the
600
- * corresponding branch as needed.
601
- */
602
- type ReceiptPaymentInfo = KioskPaymentInfo | RestaurantCashierPaymentInfo;
603
576
 
604
577
  /**
605
578
  * Obsolete Receipt interface backward compatibility.
@@ -752,4 +725,4 @@ declare enum DigitalReceiptNotificationPreference {
752
725
  PhoneSms = "PhoneSms"
753
726
  }
754
727
 
755
- export { type AddedIngredient, Business, type CardInfo, type CardPaymentResult, type CardRefundResult, type CashRegister, type CashRegisterSettings, type Cashier, type Country, type CountryIsoCode, type CreateScopeOptions, type Customer, type DepositCashOptions, DigitalReceiptNotificationPreference, type DigitalReceiptView, type DigitalReceiptViewType, type ErrorMessageMetadataWith, type Fields, type HTMLContentData, type HTMLContentType, type HandleRefundRequest, type HandleRefundRequestClear, type HandleSaleRequest, type HandleSaleRequestClear, type ICashRegister, type IDigitalReceipt, type ILogger, type Image, type InitializationOptions, type JobRefundInfo, type KazakhstanProductData, type KioskPaymentInfo, type KioskRefundInfo, KnownCountryCodes, type KyrgyzstanProductData, type Loyalty, type MakeZReportOptions, type MarkingCodes, type Message, type MessageMetadata, type MessageMetadataWith, type MessageWith, type Money, type OperationIdentifiers, type Order, type OrderPaymentResult, type OrderPrice, type OrderRefundResult, OrderSource, OrderType, type Organization, OwnerType, type PaymentInfo, PaymentMode, type PaymentProvider, type PaymentResult, PaymentSource, PaymentStatus, PaymentType, type PreviousReceipt, type PrintParams, type PrintTextOptions, type PrintedFiscalReceipt, type PrintedNonFiscalReceipt, type PrintedReceipt, type PrintedRefundReceipt, type Product, type ProductPrice, type ProductSpecificData, type QRData, type QRIdData, type QRIdType, type QrPaymentResult, type QrRefundResult, type Receipt, type ReceiptPaymentInfo, type ReceiptRefundInfo, type RefundInfo, type RefundResult, RefundSource, type RestaurantCashierPaymentInfo, type RestaurantCashierRefundInfo, type SlipData, type SlipType, type Store, type Tax, type Taxpayer, type TextSlipData, type TextSlipType, type UzbekistanProductData, type WithdrawCashOptions };
728
+ export { type AddedIngredient, Business, type CardInfo, type CardPaymentResult, type CardRefundResult, type CashRegister, type CashRegisterSettings, type Cashier, type Country, type CountryIsoCode, type CreateScopeOptions, type Customer, type DepositCashOptions, DigitalReceiptNotificationPreference, type DigitalReceiptView, type DigitalReceiptViewType, type ErrorMessageMetadataWith, type Fields, type HTMLContentData, type HTMLContentType, type HandleRefundRequest, type HandleRefundRequestClear, type HandleSaleRequest, type HandleSaleRequestClear, type ICashRegister, type IDigitalReceipt, type ILogger, type Image, type InitializationOptions, type KazakhstanProductData, KnownCountryCodes, type KyrgyzstanProductData, type Loyalty, type MakeZReportOptions, type MarkingCodes, type Message, type MessageMetadata, type MessageMetadataWith, type MessageWith, type Money, type OperationIdentifiers, type Order, type OrderPaymentResult, type OrderPrice, type OrderRefundResult, OrderSource, OrderType, type Organization, OwnerType, type PaymentInfo, PaymentMode, type PaymentProvider, type PaymentResult, PaymentSource, PaymentStatus, PaymentType, type PreviousReceipt, type PrintParams, type PrintTextOptions, type PrintedFiscalReceipt, type PrintedNonFiscalReceipt, type PrintedReceipt, type PrintedRefundReceipt, type Product, type ProductPrice, type ProductSpecificData, type QRData, type QRIdData, type QRIdType, type QrPaymentResult, type QrRefundResult, type Receipt, type ReceiptPaymentInfo, type ReceiptRefundInfo, type RefundInfo, type RefundResult, RefundSource, type SlipData, type SlipType, type Store, type Tax, type Taxpayer, type TextSlipData, type TextSlipType, type UzbekistanProductData, type WithdrawCashOptions };
package/dist/index.d.ts CHANGED
@@ -538,7 +538,7 @@ interface CashRegisterSettings {
538
538
  };
539
539
  }
540
540
 
541
- type BaseReceiptRefundInfo = {
541
+ type ReceiptRefundInfo = {
542
542
  /** The payment provider used for this transaction (e.g. "Ibox", "KaspiQr"). */
543
543
  paymentProvider: PaymentProvider;
544
544
  /** The final status of the payment at the time of printing. */
@@ -549,21 +549,6 @@ type BaseReceiptRefundInfo = {
549
549
  */
550
550
  orderRefundResult?: OrderRefundResult;
551
551
  };
552
- type KioskRefundInfo = BaseReceiptRefundInfo & {
553
- refundSource: RefundSource.Kiosk;
554
- };
555
- type RestaurantCashierRefundInfo = BaseReceiptRefundInfo & {
556
- refundSource: RefundSource.RestaurantCashier;
557
- };
558
- type JobRefundInfo = BaseReceiptRefundInfo & {
559
- refundSource: RefundSource.RefundJob;
560
- };
561
- /**
562
- * Refund context passed to the receipt plugin when printing a refund receipt.
563
- * Discriminated union on `refundSource` — add source-specific fields to the
564
- * corresponding branch as needed.
565
- */
566
- type ReceiptRefundInfo = KioskRefundInfo | RestaurantCashierRefundInfo | JobRefundInfo;
567
552
 
568
553
  /**
569
554
  * Obsolete Receipt interface backward compatibility.
@@ -577,7 +562,7 @@ interface HandleRefundRequestClear {
577
562
  refundInfo?: ReceiptRefundInfo;
578
563
  }
579
564
 
580
- type BaseReceiptPaymentInfo = {
565
+ type ReceiptPaymentInfo = {
581
566
  /** The payment provider used for this transaction (e.g. "Ibox", "KaspiQr"). */
582
567
  paymentProvider: PaymentProvider;
583
568
  /** The final status of the payment at the time of printing. */
@@ -588,18 +573,6 @@ type BaseReceiptPaymentInfo = {
588
573
  */
589
574
  orderPaymentResult?: OrderPaymentResult;
590
575
  };
591
- type KioskPaymentInfo = BaseReceiptPaymentInfo & {
592
- paymentSource: PaymentSource.Kiosk;
593
- };
594
- type RestaurantCashierPaymentInfo = BaseReceiptPaymentInfo & {
595
- paymentSource: PaymentSource.RestaurantCashier;
596
- };
597
- /**
598
- * Payment context passed to the receipt plugin when printing a receipt.
599
- * Discriminated union on `paymentSource` — add source-specific fields to the
600
- * corresponding branch as needed.
601
- */
602
- type ReceiptPaymentInfo = KioskPaymentInfo | RestaurantCashierPaymentInfo;
603
576
 
604
577
  /**
605
578
  * Obsolete Receipt interface backward compatibility.
@@ -752,4 +725,4 @@ declare enum DigitalReceiptNotificationPreference {
752
725
  PhoneSms = "PhoneSms"
753
726
  }
754
727
 
755
- export { type AddedIngredient, Business, type CardInfo, type CardPaymentResult, type CardRefundResult, type CashRegister, type CashRegisterSettings, type Cashier, type Country, type CountryIsoCode, type CreateScopeOptions, type Customer, type DepositCashOptions, DigitalReceiptNotificationPreference, type DigitalReceiptView, type DigitalReceiptViewType, type ErrorMessageMetadataWith, type Fields, type HTMLContentData, type HTMLContentType, type HandleRefundRequest, type HandleRefundRequestClear, type HandleSaleRequest, type HandleSaleRequestClear, type ICashRegister, type IDigitalReceipt, type ILogger, type Image, type InitializationOptions, type JobRefundInfo, type KazakhstanProductData, type KioskPaymentInfo, type KioskRefundInfo, KnownCountryCodes, type KyrgyzstanProductData, type Loyalty, type MakeZReportOptions, type MarkingCodes, type Message, type MessageMetadata, type MessageMetadataWith, type MessageWith, type Money, type OperationIdentifiers, type Order, type OrderPaymentResult, type OrderPrice, type OrderRefundResult, OrderSource, OrderType, type Organization, OwnerType, type PaymentInfo, PaymentMode, type PaymentProvider, type PaymentResult, PaymentSource, PaymentStatus, PaymentType, type PreviousReceipt, type PrintParams, type PrintTextOptions, type PrintedFiscalReceipt, type PrintedNonFiscalReceipt, type PrintedReceipt, type PrintedRefundReceipt, type Product, type ProductPrice, type ProductSpecificData, type QRData, type QRIdData, type QRIdType, type QrPaymentResult, type QrRefundResult, type Receipt, type ReceiptPaymentInfo, type ReceiptRefundInfo, type RefundInfo, type RefundResult, RefundSource, type RestaurantCashierPaymentInfo, type RestaurantCashierRefundInfo, type SlipData, type SlipType, type Store, type Tax, type Taxpayer, type TextSlipData, type TextSlipType, type UzbekistanProductData, type WithdrawCashOptions };
728
+ export { type AddedIngredient, Business, type CardInfo, type CardPaymentResult, type CardRefundResult, type CashRegister, type CashRegisterSettings, type Cashier, type Country, type CountryIsoCode, type CreateScopeOptions, type Customer, type DepositCashOptions, DigitalReceiptNotificationPreference, type DigitalReceiptView, type DigitalReceiptViewType, type ErrorMessageMetadataWith, type Fields, type HTMLContentData, type HTMLContentType, type HandleRefundRequest, type HandleRefundRequestClear, type HandleSaleRequest, type HandleSaleRequestClear, type ICashRegister, type IDigitalReceipt, type ILogger, type Image, type InitializationOptions, type KazakhstanProductData, KnownCountryCodes, type KyrgyzstanProductData, type Loyalty, type MakeZReportOptions, type MarkingCodes, type Message, type MessageMetadata, type MessageMetadataWith, type MessageWith, type Money, type OperationIdentifiers, type Order, type OrderPaymentResult, type OrderPrice, type OrderRefundResult, OrderSource, OrderType, type Organization, OwnerType, type PaymentInfo, PaymentMode, type PaymentProvider, type PaymentResult, PaymentSource, PaymentStatus, PaymentType, type PreviousReceipt, type PrintParams, type PrintTextOptions, type PrintedFiscalReceipt, type PrintedNonFiscalReceipt, type PrintedReceipt, type PrintedRefundReceipt, type Product, type ProductPrice, type ProductSpecificData, type QRData, type QRIdData, type QRIdType, type QrPaymentResult, type QrRefundResult, type Receipt, type ReceiptPaymentInfo, type ReceiptRefundInfo, type RefundInfo, type RefundResult, RefundSource, type SlipData, type SlipType, type Store, type Tax, type Taxpayer, type TextSlipData, type TextSlipType, type UzbekistanProductData, type WithdrawCashOptions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dodobrands/pos-receipts-plugin-contracts",
3
- "version": "5.13.2",
3
+ "version": "5.13.3",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",