@trusted-solutions/sdit.models 0.40.0-alpha.0 → 0.40.0-alpha.2
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 +8 -0
- package/models/store.d.ts +8 -0
- package/package.json +1 -1
package/models/order.d.ts
CHANGED
|
@@ -181,6 +181,10 @@ export interface Order extends BaseOrder {
|
|
|
181
181
|
* 再將這個Transaction包成Receipt
|
|
182
182
|
*/
|
|
183
183
|
externalPayment?: Transaction;
|
|
184
|
+
/**
|
|
185
|
+
* 訂單使用的點數
|
|
186
|
+
*/
|
|
187
|
+
points?: pointsDetail[];
|
|
184
188
|
}
|
|
185
189
|
export interface OrderItem {
|
|
186
190
|
id?: string;
|
|
@@ -455,3 +459,7 @@ export interface ClosingSalesProductDetail {
|
|
|
455
459
|
amount: number;
|
|
456
460
|
quantity: number;
|
|
457
461
|
}
|
|
462
|
+
export interface pointsDetail {
|
|
463
|
+
points_name: string;
|
|
464
|
+
redeem_points: number;
|
|
465
|
+
}
|
package/models/store.d.ts
CHANGED
|
@@ -190,6 +190,14 @@ export interface Store {
|
|
|
190
190
|
onlineStoreDeliveryFreeThresholdAmount?: number;
|
|
191
191
|
/** 最大外送距離(km) */
|
|
192
192
|
onlineStoreDeliveryDistanceLimit?: number;
|
|
193
|
+
/** Cognito user pool 登入的 OIDC provider */
|
|
194
|
+
onlineAvailableFederatedProvider?: string;
|
|
195
|
+
/** 是否開放訪客點餐 */
|
|
196
|
+
onlineAvailableGuest?: boolean;
|
|
197
|
+
/** 可以使用的使用者群組 */
|
|
198
|
+
onlineAvailableStoreUserGroup?: string;
|
|
199
|
+
/** 是否啟用集點 */
|
|
200
|
+
onlineStorePointsEnabled?: boolean;
|
|
193
201
|
}
|
|
194
202
|
export interface SimpleStore {
|
|
195
203
|
id: string;
|
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.2",
|
|
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": {
|