@trusted-solutions/sdit.models 0.40.0-alpha.3 → 0.40.0-alpha.5
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.
|
@@ -205,7 +205,6 @@ export interface SOValidateMutationRequest {
|
|
|
205
205
|
*/
|
|
206
206
|
expectedPickupAt?: number;
|
|
207
207
|
cart: SOValidateCart;
|
|
208
|
-
customerEmail?: string;
|
|
209
208
|
}
|
|
210
209
|
/**
|
|
211
210
|
* @throw `SOOrderError`
|
|
@@ -264,7 +263,7 @@ export interface SOSendOrderRequest {
|
|
|
264
263
|
/** 內用桌ID serveType === dineIn 時有效 */
|
|
265
264
|
tableId?: string;
|
|
266
265
|
/** 折抵點數 */
|
|
267
|
-
points?: CustomerPointDetail
|
|
266
|
+
points?: CustomerPointDetail;
|
|
268
267
|
}
|
|
269
268
|
/**
|
|
270
269
|
* @throw `SOOrderError`
|
|
@@ -143,7 +143,7 @@ export interface SOOrder {
|
|
|
143
143
|
transactionId?: string;
|
|
144
144
|
paymentServiceProvider?: PaymentServiceProvider;
|
|
145
145
|
/** 折抵點數 */
|
|
146
|
-
points?: CustomerPointDetail
|
|
146
|
+
points?: CustomerPointDetail;
|
|
147
147
|
}
|
|
148
148
|
export interface SOUnavailableCartItem {
|
|
149
149
|
menuItemType: 'product' | 'attribute';
|
package/models/order.d.ts
CHANGED
|
@@ -8,7 +8,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
10
|
import { Receipt, Transaction } from './receipt';
|
|
11
|
-
import { Customer } from './customer';
|
|
11
|
+
import { Customer, CustomerPointDetail } from './customer';
|
|
12
12
|
import { Address, Operator } from './store';
|
|
13
13
|
import { OnlinePlatformType, OOReasonCode, OnlineOrderMappingWarningCode } from './online-integration';
|
|
14
14
|
import { SOEater, SOOperateParty } from './online-ordering';
|
|
@@ -184,7 +184,7 @@ export interface Order extends BaseOrder {
|
|
|
184
184
|
/**
|
|
185
185
|
* 訂單使用的點數
|
|
186
186
|
*/
|
|
187
|
-
points?:
|
|
187
|
+
points?: CustomerPointDetail[];
|
|
188
188
|
}
|
|
189
189
|
export interface OrderItem {
|
|
190
190
|
id?: string;
|
|
@@ -459,7 +459,3 @@ export interface ClosingSalesProductDetail {
|
|
|
459
459
|
amount: number;
|
|
460
460
|
quantity: number;
|
|
461
461
|
}
|
|
462
|
-
export interface pointsDetail {
|
|
463
|
-
points_name: string;
|
|
464
|
-
redeem_points: number;
|
|
465
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trusted-solutions/sdit.models",
|
|
3
|
-
"version": "0.40.0-alpha.
|
|
3
|
+
"version": "0.40.0-alpha.5",
|
|
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": {
|