@trusted-solutions/sdit.models 0.18.0-alpha.14 → 0.18.0-alpha.15

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/models/order.d.ts CHANGED
@@ -7,7 +7,7 @@ import { InvoiceConfig, Tax } from './invoice-config';
7
7
  import { InvoiceCarrierType } from './../enums/invoice-carrier-type';
8
8
  import { OrderStatus } from '../enums/order-status';
9
9
  import { DiscountModuleTypeEnum, OrderSourceType, CloseType, OrderItemPaidStatus, OrderItemStatus } from '../enums';
10
- import { Receipt } from './receipt';
10
+ import { Receipt, Transaction } from './receipt';
11
11
  import { Customer } from './customer';
12
12
  import { Operator } from './store';
13
13
  import { OnlinePlatformType, OOReasonCode, OnlineOrderMappingWarningCode } from './online-integration';
@@ -113,6 +113,12 @@ export interface Order {
113
113
  canceledByParty?: SOOperateParty;
114
114
  /** 消費者是否選擇線上付款 */
115
115
  isOnSitePayment?: boolean;
116
+ /**
117
+ * 線上點餐、UberEats等等外送平台,線上成功收款後的
118
+ * Transaction會暫時存在這個Property,待POS接單後,
119
+ * 再將這個Transaction包成Receipt
120
+ */
121
+ externalPayment?: Transaction;
116
122
  }
117
123
  export interface OrderItem {
118
124
  id?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trusted-solutions/sdit.models",
3
- "version": "0.18.0-alpha.14",
3
+ "version": "0.18.0-alpha.15",
4
4
  "description": "TODO: Give a short introduction of your project. Let this section explain the objectives or the motivation behind this project.",
5
5
  "main": "index.js",
6
6
  "scripts": {