@trusted-solutions/sdit.models 0.18.0-alpha.16 → 0.18.0-alpha.20

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.
@@ -0,0 +1,7 @@
1
+ export declare const clientEndpoints: {
2
+ KshopOnline: {
3
+ dev: string;
4
+ qa: string;
5
+ prod: string;
6
+ };
7
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.clientEndpoints = void 0;
4
+ exports.clientEndpoints = {
5
+ KshopOnline: {
6
+ dev: 'http://localhost:4200',
7
+ qa: 'https://kshop-online-qa.trusted-sol.com',
8
+ prod: 'https://kshop-online.trusted-sol.com',
9
+ }
10
+ };
11
+ //# sourceMappingURL=client-endpoints.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-endpoints.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/constants/client-endpoints.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;IAC7B,WAAW,EAAE;QACX,GAAG,EAAE,uBAAuB;QAC5B,EAAE,EAAE,yCAAyC;QAC7C,IAAI,EAAE,sCAAsC;KAC7C;CACF,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from './industry';
2
2
  export * from './district-zip.taiwan';
3
+ export * from './client-endpoints';
@@ -3,4 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./industry"), exports);
5
5
  tslib_1.__exportStar(require("./district-zip.taiwan"), exports);
6
+ tslib_1.__exportStar(require("./client-endpoints"), exports);
6
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/constants/index.ts"],"names":[],"mappings":";;;AAAA,qDAA2B;AAC3B,gEAAsC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/constants/index.ts"],"names":[],"mappings":";;;AAAA,qDAA2B;AAC3B,gEAAsC;AACtC,6DAAmC"}
@@ -112,7 +112,7 @@ export interface SOValidateMutationRequest {
112
112
  traceId: string;
113
113
  /**
114
114
  * 預計取餐時間 timestamp ms
115
- * 不給值 = 盡快
115
+ * 不給值 = 盡快
116
116
  */
117
117
  expectedPickupAt?: number;
118
118
  cart: SOValidateCart;
@@ -124,7 +124,7 @@ export interface SOValidateMutationResponse {
124
124
  storeId: string;
125
125
  traceId: string;
126
126
  /**
127
- * 小計
127
+ * 小計
128
128
  */
129
129
  subtotal: number;
130
130
  /**
@@ -147,6 +147,10 @@ export interface SOSendOrderRequest {
147
147
  serveType: ServeType;
148
148
  eater: SOEater;
149
149
  cart: SOValidateCart;
150
+ /**
151
+ * 是否為現場付款
152
+ * 選擇現場付款的訂單,會馬上成立無法再改付款方式。
153
+ */
150
154
  isOnSitePayment: boolean;
151
155
  /**
152
156
  * 包裝、免洗餐具
@@ -154,7 +158,7 @@ export interface SOSendOrderRequest {
154
158
  includeDisposableItems: boolean;
155
159
  /**
156
160
  * 預計取餐時間 timestamp ms
157
- * 不給值 = 盡快
161
+ * 不給值 = 盡快
158
162
  */
159
163
  expectedPickupAt?: number;
160
164
  }
@@ -175,6 +179,18 @@ export interface SOGetPaymentUrlRequest {
175
179
  storeId: string;
176
180
  /** online Order Id */
177
181
  id: string;
182
+ /**
183
+ * 以MyPay為例
184
+ * 可在產生付款網址時,決定returnUrl
185
+ * 若不填寫,則以MyPay特約店家後台設定的為主
186
+ */
187
+ successReturnUrl?: string;
188
+ /**
189
+ * 以MyPay為例
190
+ * 可在產生付款網址時,決定returnUrl
191
+ * 若不填寫,則以MyPay特約店家後台設定的為主
192
+ */
193
+ failureReturnUrl?: string;
178
194
  }
179
195
  export interface SOGetPaymentUrlResponse {
180
196
  payUrl: string;
@@ -183,13 +199,13 @@ export interface SOGetPaymentUrlResponse {
183
199
  /*******************************/
184
200
  export interface SOCancelOrderRequest {
185
201
  storeId: string;
186
- /** POS Order Id */
187
- orderId: string;
202
+ /** online order id */
203
+ id: string;
188
204
  }
189
205
  export interface SOCancelOrderResponse {
190
206
  storeId: string;
191
- /** POS Order Id */
192
- orderId: string;
207
+ /** online order id */
208
+ id: string;
193
209
  state: SOOrderState;
194
210
  }
195
211
  /*******************************/
package/models/order.d.ts CHANGED
@@ -111,8 +111,6 @@ export interface Order {
111
111
  expectedPickupAt?: number;
112
112
  /** 訂單取消方 */
113
113
  canceledByParty?: SOOperateParty;
114
- /** 消費者是否選擇線上付款 */
115
- isOnSitePayment?: boolean;
116
114
  /**
117
115
  * 線上點餐、UberEats等等外送平台,線上成功收款後的
118
116
  * Transaction會暫時存在這個Property,待POS接單後,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trusted-solutions/sdit.models",
3
- "version": "0.18.0-alpha.16",
3
+ "version": "0.18.0-alpha.20",
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": {