@dodobrands/pos-receipts-plugin-contracts 5.13.4 → 5.15.0
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.cjs +1 -1
- package/dist/index.d.cts +20 -2
- package/dist/index.d.ts +20 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var r=Object.defineProperty;var
|
|
1
|
+
"use strict";var r=Object.defineProperty;var e=Object.getOwnPropertyDescriptor;var N=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var A=(a,o)=>{for(var t in o)r(a,t,{get:o[t],enumerable:!0})},B=(a,o,t,f)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of N(o))!b.call(a,i)&&i!==t&&r(a,i,{get:()=>o[i],enumerable:!(f=e(o,i))||f.enumerable});return a};var D=a=>B(r({},"__esModule",{value:!0}),a);var P={};A(P,{Business:()=>x,CertificateType:()=>m,DigitalReceiptNotificationPreference:()=>p,KnownCountryCodes:()=>l,OrderSource:()=>z,OrderType:()=>v,OwnerType:()=>n,PaymentMode:()=>g,PaymentSource:()=>s,PaymentStatus:()=>k,PaymentType:()=>R,RefundSource:()=>h});module.exports=D(P);var x=(a=>(a.DodoPizza="dodoPizza",a.Drinkit="drinkit",a.Doner42="doner42",a))(x||{}),l=(a=>(a[a.Belarus=112]="Belarus",a[a.Kazakhstan=398]="Kazakhstan",a[a.Russia=643]="Russia",a[a.Uzbekistan=860]="Uzbekistan",a[a.Kyrgyzstan=417]="Kyrgyzstan",a))(l||{}),n=(a=>(a[a.Resail=0]="Resail",a[a.OwnProduction=1]="OwnProduction",a[a.Service=2]="Service",a))(n||{}),g=(a=>(a.Card="Card",a.QR="QR",a))(g||{}),s=(a=>(a[a.RestaurantCashier=0]="RestaurantCashier",a[a.Kiosk=1]="Kiosk",a))(s||{}),k=(a=>(a.NotFound="NotFound",a.PaymentPending="PaymentPending",a.PaymentCompleted="PaymentCompleted",a.RefundPending="RefundPending",a.RefundCompleted="RefundCompleted",a.NotNeeded="NotNeeded",a))(k||{}),h=(a=>(a.RestaurantCashier="RestaurantCashier",a.RefundJob="RefundJob",a.Kiosk="Kiosk",a))(h||{}),m=(a=>(a[a.B2B=1]="B2B",a))(m||{}),v=(a=>(a[a.Delivery=1]="Delivery",a[a.Pickup=2]="Pickup",a[a.Stationary=3]="Stationary",a[a.PersonalFood=4]="PersonalFood",a[a.ShopWindowSupply=5]="ShopWindowSupply",a))(v||{}),z=(a=>(a[a.Telephone=0]="Telephone",a[a.Site=1]="Site",a[a.Restaurant=2]="Restaurant",a[a.DefectOrder=3]="DefectOrder",a[a.Mobile=4]="Mobile",a[a.Pizzeria=5]="Pizzeria",a[a.Aggregator=6]="Aggregator",a[a.Kiosk=7]="Kiosk",a))(z||{}),R=(a=>(a[a.Cash=0]="Cash",a[a.BankCard=1]="BankCard",a[a.InternetAcquiring=2]="InternetAcquiring",a[a.Aggregator=3]="Aggregator",a))(R||{});var p=(i=>(i.NotSpecified="NotSpecified",i.None="None",i.Email="Email",i.PhoneSms="PhoneSms",i))(p||{});0&&(module.exports={Business,CertificateType,DigitalReceiptNotificationPreference,KnownCountryCodes,OrderSource,OrderType,OwnerType,PaymentMode,PaymentSource,PaymentStatus,PaymentType,RefundSource});
|
package/dist/index.d.cts
CHANGED
|
@@ -48,7 +48,7 @@ declare enum KnownCountryCodes {
|
|
|
48
48
|
Kyrgyzstan = 417
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
type ProductSpecificData = UzbekistanProductData | KazakhstanProductData | KyrgyzstanProductData | null;
|
|
51
|
+
type ProductSpecificData = UzbekistanProductData | KazakhstanProductData | KyrgyzstanProductData | RussiaProductData | null;
|
|
52
52
|
interface UzbekistanProductData {
|
|
53
53
|
/** Identification code of products and services for Uzbekistan */
|
|
54
54
|
ikpu: string;
|
|
@@ -73,6 +73,12 @@ interface KyrgyzstanProductData {
|
|
|
73
73
|
/** `product` — if entry is resold, `service` — if entry is prepared in-house. */
|
|
74
74
|
entryType?: 'product' | 'service';
|
|
75
75
|
}
|
|
76
|
+
interface RussiaProductData {
|
|
77
|
+
/** if `true` - product should not be printed on the receipt if it has a zero price
|
|
78
|
+
* if `false` or `undefined` - product should be printed on the receipt regardless of its price
|
|
79
|
+
*/
|
|
80
|
+
excludeFromReceiptWithZeroPrice?: boolean;
|
|
81
|
+
}
|
|
76
82
|
|
|
77
83
|
type Message = {
|
|
78
84
|
content: string;
|
|
@@ -326,9 +332,20 @@ interface Receipt {
|
|
|
326
332
|
Cashier?: Cashier;
|
|
327
333
|
/** Url of the image to print on the receipt. */
|
|
328
334
|
Image?: Image;
|
|
335
|
+
/** Information about the certificate used for the purchase. */
|
|
336
|
+
CertificateInfo?: CertificateInfo;
|
|
329
337
|
/** @internal */
|
|
330
338
|
IdempotencyKey: string;
|
|
331
339
|
}
|
|
340
|
+
interface CertificateInfo {
|
|
341
|
+
Id: string;
|
|
342
|
+
Name: string;
|
|
343
|
+
Amount: number;
|
|
344
|
+
CertificateType: CertificateType;
|
|
345
|
+
}
|
|
346
|
+
declare enum CertificateType {
|
|
347
|
+
B2B = 1
|
|
348
|
+
}
|
|
332
349
|
interface Cashier {
|
|
333
350
|
/** Cashier name */
|
|
334
351
|
Name: string;
|
|
@@ -426,6 +443,7 @@ interface Product {
|
|
|
426
443
|
Uzbekistan?: UzbekistanProductData;
|
|
427
444
|
Kazakhstan?: KazakhstanProductData;
|
|
428
445
|
Kyrgyzstan?: KyrgyzstanProductData;
|
|
446
|
+
Russia?: RussiaProductData;
|
|
429
447
|
};
|
|
430
448
|
}
|
|
431
449
|
interface ProductPrice {
|
|
@@ -733,4 +751,4 @@ declare enum DigitalReceiptNotificationPreference {
|
|
|
733
751
|
PhoneSms = "PhoneSms"
|
|
734
752
|
}
|
|
735
753
|
|
|
736
|
-
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 FiscalizationPayload, 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 };
|
|
754
|
+
export { type AddedIngredient, Business, type CardInfo, type CardPaymentResult, type CardRefundResult, type CashRegister, type CashRegisterSettings, type Cashier, type CertificateInfo, CertificateType, type Country, type CountryIsoCode, type CreateScopeOptions, type Customer, type DepositCashOptions, DigitalReceiptNotificationPreference, type DigitalReceiptView, type DigitalReceiptViewType, type ErrorMessageMetadataWith, type Fields, type FiscalizationPayload, 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 RussiaProductData, type SlipData, type SlipType, type Store, type Tax, type Taxpayer, type TextSlipData, type TextSlipType, type UzbekistanProductData, type WithdrawCashOptions };
|
package/dist/index.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ declare enum KnownCountryCodes {
|
|
|
48
48
|
Kyrgyzstan = 417
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
type ProductSpecificData = UzbekistanProductData | KazakhstanProductData | KyrgyzstanProductData | null;
|
|
51
|
+
type ProductSpecificData = UzbekistanProductData | KazakhstanProductData | KyrgyzstanProductData | RussiaProductData | null;
|
|
52
52
|
interface UzbekistanProductData {
|
|
53
53
|
/** Identification code of products and services for Uzbekistan */
|
|
54
54
|
ikpu: string;
|
|
@@ -73,6 +73,12 @@ interface KyrgyzstanProductData {
|
|
|
73
73
|
/** `product` — if entry is resold, `service` — if entry is prepared in-house. */
|
|
74
74
|
entryType?: 'product' | 'service';
|
|
75
75
|
}
|
|
76
|
+
interface RussiaProductData {
|
|
77
|
+
/** if `true` - product should not be printed on the receipt if it has a zero price
|
|
78
|
+
* if `false` or `undefined` - product should be printed on the receipt regardless of its price
|
|
79
|
+
*/
|
|
80
|
+
excludeFromReceiptWithZeroPrice?: boolean;
|
|
81
|
+
}
|
|
76
82
|
|
|
77
83
|
type Message = {
|
|
78
84
|
content: string;
|
|
@@ -326,9 +332,20 @@ interface Receipt {
|
|
|
326
332
|
Cashier?: Cashier;
|
|
327
333
|
/** Url of the image to print on the receipt. */
|
|
328
334
|
Image?: Image;
|
|
335
|
+
/** Information about the certificate used for the purchase. */
|
|
336
|
+
CertificateInfo?: CertificateInfo;
|
|
329
337
|
/** @internal */
|
|
330
338
|
IdempotencyKey: string;
|
|
331
339
|
}
|
|
340
|
+
interface CertificateInfo {
|
|
341
|
+
Id: string;
|
|
342
|
+
Name: string;
|
|
343
|
+
Amount: number;
|
|
344
|
+
CertificateType: CertificateType;
|
|
345
|
+
}
|
|
346
|
+
declare enum CertificateType {
|
|
347
|
+
B2B = 1
|
|
348
|
+
}
|
|
332
349
|
interface Cashier {
|
|
333
350
|
/** Cashier name */
|
|
334
351
|
Name: string;
|
|
@@ -426,6 +443,7 @@ interface Product {
|
|
|
426
443
|
Uzbekistan?: UzbekistanProductData;
|
|
427
444
|
Kazakhstan?: KazakhstanProductData;
|
|
428
445
|
Kyrgyzstan?: KyrgyzstanProductData;
|
|
446
|
+
Russia?: RussiaProductData;
|
|
429
447
|
};
|
|
430
448
|
}
|
|
431
449
|
interface ProductPrice {
|
|
@@ -733,4 +751,4 @@ declare enum DigitalReceiptNotificationPreference {
|
|
|
733
751
|
PhoneSms = "PhoneSms"
|
|
734
752
|
}
|
|
735
753
|
|
|
736
|
-
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 FiscalizationPayload, 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 };
|
|
754
|
+
export { type AddedIngredient, Business, type CardInfo, type CardPaymentResult, type CardRefundResult, type CashRegister, type CashRegisterSettings, type Cashier, type CertificateInfo, CertificateType, type Country, type CountryIsoCode, type CreateScopeOptions, type Customer, type DepositCashOptions, DigitalReceiptNotificationPreference, type DigitalReceiptView, type DigitalReceiptViewType, type ErrorMessageMetadataWith, type Fields, type FiscalizationPayload, 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 RussiaProductData, type SlipData, type SlipType, type Store, type Tax, type Taxpayer, type TextSlipData, type TextSlipType, type UzbekistanProductData, type WithdrawCashOptions };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var o=(a=>(a.DodoPizza="dodoPizza",a.Drinkit="drinkit",a.Doner42="doner42",a))(o||{}),t=(a=>(a[a.Belarus=112]="Belarus",a[a.Kazakhstan=398]="Kazakhstan",a[a.Russia=643]="Russia",a[a.Uzbekistan=860]="Uzbekistan",a[a.Kyrgyzstan=417]="Kyrgyzstan",a))(t||{}),r=(a=>(a[a.Resail=0]="Resail",a[a.OwnProduction=1]="OwnProduction",a[a.Service=2]="Service",a))(r||{}),f=(a=>(a.Card="Card",a.QR="QR",a))(f||{}),x=(a=>(a[a.RestaurantCashier=0]="RestaurantCashier",a[a.Kiosk=1]="Kiosk",a))(x||{}),l=(a=>(a.NotFound="NotFound",a.PaymentPending="PaymentPending",a.PaymentCompleted="PaymentCompleted",a.RefundPending="RefundPending",a.RefundCompleted="RefundCompleted",a.NotNeeded="NotNeeded",a))(l||{}),n=(a=>(a.RestaurantCashier="RestaurantCashier",a.RefundJob="RefundJob",a.Kiosk="Kiosk",a))(n||{}),g=(a=>(a[a.B2B=1]="B2B",a))(g||{}),s=(a=>(a[a.Delivery=1]="Delivery",a[a.Pickup=2]="Pickup",a[a.Stationary=3]="Stationary",a[a.PersonalFood=4]="PersonalFood",a[a.ShopWindowSupply=5]="ShopWindowSupply",a))(s||{}),k=(a=>(a[a.Telephone=0]="Telephone",a[a.Site=1]="Site",a[a.Restaurant=2]="Restaurant",a[a.DefectOrder=3]="DefectOrder",a[a.Mobile=4]="Mobile",a[a.Pizzeria=5]="Pizzeria",a[a.Aggregator=6]="Aggregator",a[a.Kiosk=7]="Kiosk",a))(k||{}),h=(a=>(a[a.Cash=0]="Cash",a[a.BankCard=1]="BankCard",a[a.InternetAcquiring=2]="InternetAcquiring",a[a.Aggregator=3]="Aggregator",a))(h||{});var m=(i=>(i.NotSpecified="NotSpecified",i.None="None",i.Email="Email",i.PhoneSms="PhoneSms",i))(m||{});export{o as Business,g as CertificateType,m as DigitalReceiptNotificationPreference,t as KnownCountryCodes,k as OrderSource,s as OrderType,r as OwnerType,f as PaymentMode,x as PaymentSource,l as PaymentStatus,h as PaymentType,n as RefundSource};
|