@trusted-solutions/sdit.models 0.63.0-alpha.3 → 0.63.2-alpha.0
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/lambda/online-integration.d.ts +10 -0
- package/lambda/online-ordering.d.ts +38 -3
- package/lambda/request/invoice.d.ts +8 -7
- package/lambda/request/store.d.ts +3 -0
- package/lambda/response/store.d.ts +2 -1
- package/models/store.d.ts +0 -3
- package/models/store.js.map +1 -1
- package/package.json +1 -1
|
@@ -23,11 +23,16 @@ export interface RejectOnlineOrderRequest {
|
|
|
23
23
|
operator: Operator;
|
|
24
24
|
reasonCode: OOReasonCode;
|
|
25
25
|
reason?: string;
|
|
26
|
+
releaseAvailability?: boolean;
|
|
26
27
|
}
|
|
27
28
|
export interface RejectOnlineOrderResponse {
|
|
28
29
|
storeId: string;
|
|
29
30
|
orderId: string;
|
|
30
31
|
partialUpdateOrder: Partial<Order>;
|
|
32
|
+
availabilityRelease?: {
|
|
33
|
+
released: boolean;
|
|
34
|
+
message?: string;
|
|
35
|
+
};
|
|
31
36
|
}
|
|
32
37
|
export interface CancelOnlineOrderRequest {
|
|
33
38
|
storeId: string;
|
|
@@ -35,12 +40,17 @@ export interface CancelOnlineOrderRequest {
|
|
|
35
40
|
operator: Operator;
|
|
36
41
|
reasonCode: OOReasonCode;
|
|
37
42
|
reason?: string;
|
|
43
|
+
releaseAvailability?: boolean;
|
|
38
44
|
}
|
|
39
45
|
export interface CancelOnlineOrderResponse {
|
|
40
46
|
storeId: string;
|
|
41
47
|
orderId: string;
|
|
42
48
|
partialUpdateOrder: Partial<Order>;
|
|
43
49
|
voidedReceipt?: Receipt;
|
|
50
|
+
availabilityRelease?: {
|
|
51
|
+
released: boolean;
|
|
52
|
+
message?: string;
|
|
53
|
+
};
|
|
44
54
|
}
|
|
45
55
|
export interface CompleteOnlineOrderRequest {
|
|
46
56
|
storeId: string;
|
|
@@ -204,7 +204,7 @@ export interface SOGetStoreInfoResponse {
|
|
|
204
204
|
* "subtotal": serviceCharge = (subtotal * servicePercent)
|
|
205
205
|
* "subtotal+discount": serviceCharge = ((subtotal+discount) * servicePercent)
|
|
206
206
|
*/
|
|
207
|
-
serviceBase?:
|
|
207
|
+
serviceBase?: 'subtotal' | 'subtotal+discount';
|
|
208
208
|
/**
|
|
209
209
|
* LINE LIFF app id,用於 LIFF 初始化
|
|
210
210
|
* 由店家/品牌設定,無值時不初始化 LIFF
|
|
@@ -257,6 +257,41 @@ export interface SOGetMyMemberCouponsRequest {
|
|
|
257
257
|
}
|
|
258
258
|
export interface SOGetMyMemberCouponsResponse extends MultipleItems<SOMemberCoupon> {
|
|
259
259
|
}
|
|
260
|
+
/**
|
|
261
|
+
* `GET /online-ordering/v4/private/member/overview` 的對外請求格式
|
|
262
|
+
*/
|
|
263
|
+
export interface SOGetMyMemberOverviewRequest {
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* 線上點餐對外會員概要 DTO
|
|
267
|
+
* 目前欄位對齊 POSKY CRM overview
|
|
268
|
+
*/
|
|
269
|
+
export interface SOMemberOverview {
|
|
270
|
+
memberNo: string;
|
|
271
|
+
memberPoolNo: string;
|
|
272
|
+
idpSub: string | null;
|
|
273
|
+
name: string;
|
|
274
|
+
birthday: string | null;
|
|
275
|
+
gender: number | null;
|
|
276
|
+
email: string | null;
|
|
277
|
+
phoneNumber: string | null;
|
|
278
|
+
address: string | null;
|
|
279
|
+
carrier: string | null;
|
|
280
|
+
totalPoints: number;
|
|
281
|
+
expiringPoints: number;
|
|
282
|
+
expirationDatetime: string | null;
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* `GET /online-ordering/v4/private/member/overview` 的對外回傳格式
|
|
286
|
+
* 未入會時回 `{ isMember: false, member: null }`
|
|
287
|
+
* 系統異常走既有 API 錯誤流程,不包成 200 回傳
|
|
288
|
+
*/
|
|
289
|
+
export interface SOGetMyMemberOverviewResponse {
|
|
290
|
+
/** 目前登入者是否已加入該品牌會員池 */
|
|
291
|
+
isMember: boolean;
|
|
292
|
+
/** 已入會時回會員資料,否則為 null */
|
|
293
|
+
member: SOMemberOverview | null;
|
|
294
|
+
}
|
|
260
295
|
/*******************************/
|
|
261
296
|
/*******************************/
|
|
262
297
|
export interface SOValidateMutationRequest {
|
|
@@ -325,8 +360,8 @@ export interface SOValidateMutationResponse {
|
|
|
325
360
|
*/
|
|
326
361
|
usedPoints?: number;
|
|
327
362
|
/**
|
|
328
|
-
|
|
329
|
-
|
|
363
|
+
* 本次折抵金額
|
|
364
|
+
*/
|
|
330
365
|
pointsDiscountAmount?: number;
|
|
331
366
|
/** 點數異常訊息 */
|
|
332
367
|
pointsErrorMsg?: string;
|
|
@@ -94,6 +94,12 @@ export interface CreateOrderRequest {
|
|
|
94
94
|
storeId: string;
|
|
95
95
|
item: Order;
|
|
96
96
|
}
|
|
97
|
+
export interface BuyerInvoicePreference {
|
|
98
|
+
buyerId: string | null;
|
|
99
|
+
loveCode: string | null;
|
|
100
|
+
carrierId: string | null;
|
|
101
|
+
carrierType: InvoiceCarrierType;
|
|
102
|
+
}
|
|
97
103
|
export interface AttachPaymentRequest {
|
|
98
104
|
storeId: string;
|
|
99
105
|
orderId: string;
|
|
@@ -102,13 +108,8 @@ export interface AttachPaymentRequest {
|
|
|
102
108
|
item: OrderPayment;
|
|
103
109
|
/** 櫃檯、自助結帳機結帳 */
|
|
104
110
|
unpaid?: boolean;
|
|
105
|
-
/**
|
|
106
|
-
|
|
107
|
-
buyerId: string | null;
|
|
108
|
-
loveCode: string | null;
|
|
109
|
-
carrierId: string | null;
|
|
110
|
-
carrierType: InvoiceCarrierType;
|
|
111
|
-
};
|
|
111
|
+
/** 發票由POS開立時,消費者選擇的統編、捐贈碼或載具偏好 */
|
|
112
|
+
buyerInvoicePreference?: BuyerInvoicePreference;
|
|
112
113
|
}
|
|
113
114
|
export interface RegisterIssueInvoiceRequest {
|
|
114
115
|
storeId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Store, DailySummary, SimpleStore, TimeInfo } from "../../models";
|
|
1
|
+
import { Brand, Store, DailySummary, SimpleStore, TimeInfo } from "../../models";
|
|
2
2
|
import { SingleItem, MultipleItems, BatchResponse } from "./common";
|
|
3
3
|
/**
|
|
4
4
|
* Lambda result to kiosk-admin
|
|
@@ -12,6 +12,7 @@ export interface GetStoresResponse extends MultipleItems<SimpleStore> {
|
|
|
12
12
|
}
|
|
13
13
|
export interface GetStoreByIdResponse extends SingleItem<Store> {
|
|
14
14
|
}
|
|
15
|
+
export declare type GetBrandByStoreIdResponse = Brand | null;
|
|
15
16
|
export interface UpdateStoreResponse extends SingleItem<Store> {
|
|
16
17
|
}
|
|
17
18
|
export interface SetAdminPinCodeResponse {
|
package/models/store.d.ts
CHANGED
|
@@ -251,9 +251,6 @@ export interface Store {
|
|
|
251
251
|
/** 品牌 */
|
|
252
252
|
brandNo?: string;
|
|
253
253
|
brand?: Brand;
|
|
254
|
-
storePointsEnabled?: boolean;
|
|
255
|
-
storePointsProvider?: PointProvider;
|
|
256
|
-
storePointsName?: string;
|
|
257
254
|
/** 加入購物車時,是否與相同品相合併 */
|
|
258
255
|
onlineMergeSameItem?: boolean;
|
|
259
256
|
/** 內用服務費 1~100(%) undefined為關閉 */
|
package/models/store.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/models/store.ts"],"names":[],"mappings":";;;AAEA,oCAAmH;
|
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/models/store.ts"],"names":[],"mappings":";;;AAEA,oCAAmH;AAiSnH,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,gCAAe,CAAA;IACf,kDAAiC,CAAA;AACnC,CAAC,EAHW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAGxB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trusted-solutions/sdit.models",
|
|
3
|
-
"version": "0.63.
|
|
3
|
+
"version": "0.63.2-alpha.0",
|
|
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": {
|