@open-tender/types 0.4.37 → 0.4.39

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/.DS_Store ADDED
Binary file
@@ -2,4 +2,4 @@ export interface Alert {
2
2
  message: string;
3
3
  id: string;
4
4
  }
5
- export declare type Alerts = Array<Alert>;
5
+ export declare type Alerts = Alert[];
@@ -268,12 +268,26 @@ export interface OrderCreate {
268
268
  tenders?: CheckoutTenders;
269
269
  tip?: Money;
270
270
  }
271
- export interface OrderCreatePos extends Omit<OrderCreate, 'customer'> {
272
- customer: CustomerIdentify | null;
273
- }
274
271
  export interface CheckoutPoints {
275
272
  points: CheckoutConfigLoyalty;
276
273
  applied: OrderCreatePoints;
277
274
  apply: (item: CartItemWithPoints) => void;
278
275
  remove: (item: CartItemWithPoints) => void;
279
276
  }
277
+ export interface CheckoutTenderPos {
278
+ acct?: string;
279
+ amount?: Money;
280
+ cash_back?: Money;
281
+ customer_card_id?: string;
282
+ cvv?: string;
283
+ exp?: string;
284
+ gift_card_code?: string | number;
285
+ house_account_pin?: string;
286
+ save?: boolean;
287
+ tender_type: TenderType;
288
+ track_data?: string;
289
+ zip?: string;
290
+ }
291
+ export interface OrderCreatePos extends Omit<OrderCreate, 'customer'> {
292
+ customer: CustomerIdentify | null;
293
+ }
@@ -31,3 +31,4 @@ export interface KioskConfig {
31
31
  settings: KioskSettings;
32
32
  theme: AppTheme;
33
33
  }
34
+ export declare type KioskSignInType = 'PHONE' | 'QR_CODE' | 'CREDIT_CARD' | null;
@@ -2,4 +2,4 @@ export interface Alert {
2
2
  message: string;
3
3
  id: string;
4
4
  }
5
- export declare type Alerts = Array<Alert>;
5
+ export declare type Alerts = Alert[];
@@ -268,12 +268,26 @@ export interface OrderCreate {
268
268
  tenders?: CheckoutTenders;
269
269
  tip?: Money;
270
270
  }
271
- export interface OrderCreatePos extends Omit<OrderCreate, 'customer'> {
272
- customer: CustomerIdentify | null;
273
- }
274
271
  export interface CheckoutPoints {
275
272
  points: CheckoutConfigLoyalty;
276
273
  applied: OrderCreatePoints;
277
274
  apply: (item: CartItemWithPoints) => void;
278
275
  remove: (item: CartItemWithPoints) => void;
279
276
  }
277
+ export interface CheckoutTenderPos {
278
+ acct?: string;
279
+ amount?: Money;
280
+ cash_back?: Money;
281
+ customer_card_id?: string;
282
+ cvv?: string;
283
+ exp?: string;
284
+ gift_card_code?: string | number;
285
+ house_account_pin?: string;
286
+ save?: boolean;
287
+ tender_type: TenderType;
288
+ track_data?: string;
289
+ zip?: string;
290
+ }
291
+ export interface OrderCreatePos extends Omit<OrderCreate, 'customer'> {
292
+ customer: CustomerIdentify | null;
293
+ }
@@ -31,3 +31,4 @@ export interface KioskConfig {
31
31
  settings: KioskSettings;
32
32
  theme: AppTheme;
33
33
  }
34
+ export declare type KioskSignInType = 'PHONE' | 'QR_CODE' | 'CREDIT_CARD' | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.4.37",
3
+ "version": "0.4.39",
4
4
  "description": "A library of types for use with Open Tender applications that utilize our cloud-based Order API.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",