@open-tender/types 0.4.28 → 0.4.29

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.
@@ -1,8 +1,8 @@
1
1
  import { RequestedAt } from '../datetimes';
2
2
  import { CardType, CardTypeName, DeviceType, Money, OrderType, PrepType, ServiceType, TenderStatus, TenderType } from '../global';
3
3
  import { CheckoutErrorParams } from '../request';
4
- import { Cart, CartItemWithPoints } from './cart';
5
- import { Address } from './customer';
4
+ import { Cart } from './cart';
5
+ import { Address, CustomerIdentify } from './customer';
6
6
  import { Order, OrderCustomer, OrderDiscounts, OrderFulfillment, OrderSurcharge } from './order';
7
7
  export interface SimpleCartOption {
8
8
  id: number;
@@ -268,9 +268,6 @@ export interface OrderCreate {
268
268
  tenders?: CheckoutTenders;
269
269
  tip?: Money;
270
270
  }
271
- export interface CheckoutPoints {
272
- points: CheckoutConfigLoyalty;
273
- applied: OrderCreatePoints;
274
- apply: (item: CartItemWithPoints) => void;
275
- remove: (item: CartItemWithPoints) => void;
271
+ export interface OrderCreatePos extends Omit<OrderCreate, 'customer'> {
272
+ customer: CustomerIdentify | null;
276
273
  }
@@ -1,8 +1,8 @@
1
1
  import { RequestedAt } from '../datetimes';
2
2
  import { CardType, CardTypeName, DeviceType, Money, OrderType, PrepType, ServiceType, TenderStatus, TenderType } from '../global';
3
3
  import { CheckoutErrorParams } from '../request';
4
- import { Cart, CartItemWithPoints } from './cart';
5
- import { Address } from './customer';
4
+ import { Cart } from './cart';
5
+ import { Address, CustomerIdentify } from './customer';
6
6
  import { Order, OrderCustomer, OrderDiscounts, OrderFulfillment, OrderSurcharge } from './order';
7
7
  export interface SimpleCartOption {
8
8
  id: number;
@@ -268,9 +268,6 @@ export interface OrderCreate {
268
268
  tenders?: CheckoutTenders;
269
269
  tip?: Money;
270
270
  }
271
- export interface CheckoutPoints {
272
- points: CheckoutConfigLoyalty;
273
- applied: OrderCreatePoints;
274
- apply: (item: CartItemWithPoints) => void;
275
- remove: (item: CartItemWithPoints) => void;
271
+ export interface OrderCreatePos extends Omit<OrderCreate, 'customer'> {
272
+ customer: CustomerIdentify | null;
276
273
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.4.28",
3
+ "version": "0.4.29",
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",