@trusted-solutions/sdit.models 0.63.0-alpha.5 → 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.
@@ -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?: "subtotal" | "subtotal+discount";
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
- /** POS開立發票 */
106
- posInvoiceConfig?: {
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;
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為關閉 */
@@ -1 +1 @@
1
- {"version":3,"file":"store.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/models/store.ts"],"names":[],"mappings":";;;AAEA,oCAAmH;AAoSnH,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,gCAAe,CAAA;IACf,kDAAiC,CAAA;AACnC,CAAC,EAHW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAGxB"}
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.0-alpha.5",
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": {