@dodobrands/pos-receipts-plugin-contracts 5.14.0 → 5.15.1

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 CHANGED
@@ -1 +1 @@
1
- "use strict";var r=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var e=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var b=(a,t)=>{for(var o in t)r(a,o,{get:t[o],enumerable:!0})},A=(a,t,o,f)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of e(t))!N.call(a,i)&&i!==o&&r(a,i,{get:()=>t[i],enumerable:!(f=R(t,i))||f.enumerable});return a};var D=a=>A(r({},"__esModule",{value:!0}),a);var P={};b(P,{Business:()=>x,DigitalReceiptNotificationPreference:()=>z,KnownCountryCodes:()=>l,OrderSource:()=>p,OrderType:()=>m,OwnerType:()=>g,PaymentMode:()=>n,PaymentSource:()=>s,PaymentStatus:()=>k,PaymentType:()=>v,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||{}),g=(a=>(a[a.Resail=0]="Resail",a[a.OwnProduction=1]="OwnProduction",a[a.Service=2]="Service",a))(g||{}),n=(a=>(a.Card="Card",a.QR="QR",a))(n||{}),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.Delivery=1]="Delivery",a[a.Pickup=2]="Pickup",a[a.Stationary=3]="Stationary",a[a.PersonalFood=4]="PersonalFood",a[a.ShopWindowSupply=5]="ShopWindowSupply",a))(m||{}),p=(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))(p||{}),v=(a=>(a[a.Cash=0]="Cash",a[a.BankCard=1]="BankCard",a[a.InternetAcquiring=2]="InternetAcquiring",a[a.Aggregator=3]="Aggregator",a))(v||{});var z=(i=>(i.NotSpecified="NotSpecified",i.None="None",i.Email="Email",i.PhoneSms="PhoneSms",i))(z||{});0&&(module.exports={Business,DigitalReceiptNotificationPreference,KnownCountryCodes,OrderSource,OrderType,OwnerType,PaymentMode,PaymentSource,PaymentStatus,PaymentType,RefundSource});
1
+ "use strict";var r=Object.defineProperty;var e=Object.getOwnPropertyDescriptor;var N=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var B=(a,t)=>{for(var o in t)r(a,o,{get:t[o],enumerable:!0})},A=(a,t,o,f)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of N(t))!b.call(a,i)&&i!==o&&r(a,i,{get:()=>t[i],enumerable:!(f=e(t,i))||f.enumerable});return a};var D=a=>A(r({},"__esModule",{value:!0}),a);var F={};B(F,{Business:()=>s,CertificateType:()=>m,DigitalReceiptNotificationPreference:()=>R,KnownCountryCodes:()=>x,OrderSource:()=>p,OrderType:()=>v,OwnerType:()=>l,PaymentMode:()=>g,PaymentSource:()=>n,PaymentStatus:()=>k,PaymentType:()=>z,RefundSource:()=>h});module.exports=D(F);var s=(a=>(a.DodoPizza="dodopizza",a.Drinkit="drinkit",a))(s||{}),x=(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))(x||{}),l=(a=>(a[a.Resail=0]="Resail",a[a.OwnProduction=1]="OwnProduction",a[a.Service=2]="Service",a))(l||{}),g=(a=>(a.Card="Card",a.QR="QR",a))(g||{}),n=(a=>(a[a.RestaurantCashier=0]="RestaurantCashier",a[a.Kiosk=1]="Kiosk",a))(n||{}),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||{}),p=(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))(p||{}),z=(a=>(a[a.Cash=0]="Cash",a[a.BankCard=1]="BankCard",a[a.InternetAcquiring=2]="InternetAcquiring",a[a.Aggregator=3]="Aggregator",a))(z||{});var R=(i=>(i.NotSpecified="NotSpecified",i.None="None",i.Email="Email",i.PhoneSms="PhoneSms",i))(R||{});0&&(module.exports={Business,CertificateType,DigitalReceiptNotificationPreference,KnownCountryCodes,OrderSource,OrderType,OwnerType,PaymentMode,PaymentSource,PaymentStatus,PaymentType,RefundSource});
package/dist/index.d.cts CHANGED
@@ -5,15 +5,11 @@ declare enum Business {
5
5
  /**
6
6
  * Dodo Pizza business.
7
7
  */
8
- DodoPizza = "dodoPizza",
8
+ DodoPizza = "dodopizza",
9
9
  /**
10
10
  * Drinkit business.
11
11
  */
12
- Drinkit = "drinkit",
13
- /**
14
- * Doner42 business.
15
- */
16
- Doner42 = "doner42"
12
+ Drinkit = "drinkit"
17
13
  }
18
14
 
19
15
  /**
@@ -332,9 +328,20 @@ interface Receipt {
332
328
  Cashier?: Cashier;
333
329
  /** Url of the image to print on the receipt. */
334
330
  Image?: Image;
331
+ /** Information about the certificate used for the purchase. */
332
+ CertificateInfo?: CertificateInfo;
335
333
  /** @internal */
336
334
  IdempotencyKey: string;
337
335
  }
336
+ interface CertificateInfo {
337
+ Id: string;
338
+ Name: string;
339
+ Amount: number;
340
+ CertificateType: CertificateType;
341
+ }
342
+ declare enum CertificateType {
343
+ B2B = 1
344
+ }
338
345
  interface Cashier {
339
346
  /** Cashier name */
340
347
  Name: string;
@@ -740,4 +747,4 @@ declare enum DigitalReceiptNotificationPreference {
740
747
  PhoneSms = "PhoneSms"
741
748
  }
742
749
 
743
- 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 RussiaProductData, type SlipData, type SlipType, type Store, type Tax, type Taxpayer, type TextSlipData, type TextSlipType, type UzbekistanProductData, type WithdrawCashOptions };
750
+ 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
@@ -5,15 +5,11 @@ declare enum Business {
5
5
  /**
6
6
  * Dodo Pizza business.
7
7
  */
8
- DodoPizza = "dodoPizza",
8
+ DodoPizza = "dodopizza",
9
9
  /**
10
10
  * Drinkit business.
11
11
  */
12
- Drinkit = "drinkit",
13
- /**
14
- * Doner42 business.
15
- */
16
- Doner42 = "doner42"
12
+ Drinkit = "drinkit"
17
13
  }
18
14
 
19
15
  /**
@@ -332,9 +328,20 @@ interface Receipt {
332
328
  Cashier?: Cashier;
333
329
  /** Url of the image to print on the receipt. */
334
330
  Image?: Image;
331
+ /** Information about the certificate used for the purchase. */
332
+ CertificateInfo?: CertificateInfo;
335
333
  /** @internal */
336
334
  IdempotencyKey: string;
337
335
  }
336
+ interface CertificateInfo {
337
+ Id: string;
338
+ Name: string;
339
+ Amount: number;
340
+ CertificateType: CertificateType;
341
+ }
342
+ declare enum CertificateType {
343
+ B2B = 1
344
+ }
338
345
  interface Cashier {
339
346
  /** Cashier name */
340
347
  Name: string;
@@ -740,4 +747,4 @@ declare enum DigitalReceiptNotificationPreference {
740
747
  PhoneSms = "PhoneSms"
741
748
  }
742
749
 
743
- 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 RussiaProductData, type SlipData, type SlipType, type Store, type Tax, type Taxpayer, type TextSlipData, type TextSlipType, type UzbekistanProductData, type WithdrawCashOptions };
750
+ 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 t=(a=>(a.DodoPizza="dodoPizza",a.Drinkit="drinkit",a.Doner42="doner42",a))(t||{}),o=(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))(o||{}),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||{}),g=(a=>(a.RestaurantCashier="RestaurantCashier",a.RefundJob="RefundJob",a.Kiosk="Kiosk",a))(g||{}),n=(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))(n||{}),s=(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))(s||{}),k=(a=>(a[a.Cash=0]="Cash",a[a.BankCard=1]="BankCard",a[a.InternetAcquiring=2]="InternetAcquiring",a[a.Aggregator=3]="Aggregator",a))(k||{});var h=(i=>(i.NotSpecified="NotSpecified",i.None="None",i.Email="Email",i.PhoneSms="PhoneSms",i))(h||{});export{t as Business,h as DigitalReceiptNotificationPreference,o as KnownCountryCodes,s as OrderSource,n as OrderType,r as OwnerType,f as PaymentMode,x as PaymentSource,l as PaymentStatus,k as PaymentType,g as RefundSource};
1
+ var t=(a=>(a.DodoPizza="dodopizza",a.Drinkit="drinkit",a))(t||{}),o=(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))(o||{}),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||{}),s=(a=>(a[a.RestaurantCashier=0]="RestaurantCashier",a[a.Kiosk=1]="Kiosk",a))(s||{}),x=(a=>(a.NotFound="NotFound",a.PaymentPending="PaymentPending",a.PaymentCompleted="PaymentCompleted",a.RefundPending="RefundPending",a.RefundCompleted="RefundCompleted",a.NotNeeded="NotNeeded",a))(x||{}),l=(a=>(a.RestaurantCashier="RestaurantCashier",a.RefundJob="RefundJob",a.Kiosk="Kiosk",a))(l||{}),g=(a=>(a[a.B2B=1]="B2B",a))(g||{}),n=(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))(n||{}),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{t as Business,g as CertificateType,m as DigitalReceiptNotificationPreference,o as KnownCountryCodes,k as OrderSource,n as OrderType,r as OwnerType,f as PaymentMode,s as PaymentSource,x as PaymentStatus,h as PaymentType,l as RefundSource};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dodobrands/pos-receipts-plugin-contracts",
3
- "version": "5.14.0",
3
+ "version": "5.15.1",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",