@trusted-solutions/sdit.models 0.49.0-alpha.4 → 0.49.0-alpha.6

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.
@@ -1,7 +1,7 @@
1
1
  import { Address, DayOfWeekTimePeriod, GalleryConfig, Operator, PointProvider } from '../models/store';
2
2
  import { CustomerPointDetail, MultiLanguageText, OrderDiscount } from '../models';
3
3
  import { PaymentServiceProvider, ServeType } from '../enums';
4
- import { SOPublicMenu, SOPublicCategory, SOPublicProduct, SOPublicProductAttribute, SOPublicProductAttributeCategory, SOPaymentMethod, SOValidateCart, SOOrderState, SOOrder, SOEater } from '../models/online-ordering';
4
+ import { SOPublicMenu, SOPublicCategory, SOPublicProduct, SOPublicProductAttribute, SOPublicProductAttributeCategory, SOPaymentMethod, SOValidateCart, SOOrderState, SOOrder, SOEater, SOPublicDiscountRule } from '../models/online-ordering';
5
5
  import { RoundingMode } from '../enums/rounding-mode.enum';
6
6
  /**
7
7
  * SO = SDIT Online
@@ -199,8 +199,10 @@ export interface SOGetStoreMenuRequest {
199
199
  * undefined: 現在
200
200
  */
201
201
  when?: number;
202
+ serveType?: ServeType;
202
203
  }
203
204
  export interface SOGetStoreMenuResponse {
205
+ discountRules: SOPublicDiscountRule[];
204
206
  menus: SOPublicMenu[];
205
207
  categories: SOPublicCategory[];
206
208
  products: SOPublicProduct[];
@@ -230,6 +230,16 @@ export interface SOPublicProduct {
230
230
  * 線上售完
231
231
  */
232
232
  soldOut: boolean;
233
+ discountRuleNos: string[];
234
+ labelForCustomer: {
235
+ condition?: DiscountLabel;
236
+ benefit: DiscountLabel;
237
+ }[];
238
+ }
239
+ export interface DiscountLabel {
240
+ i18nKey: string;
241
+ i18nParams: Record<string, any>;
242
+ defaultText?: string;
233
243
  }
234
244
  export interface SOPublicProductAttributeCategory {
235
245
  /**
@@ -258,3 +268,9 @@ export interface SOPublicProductAttribute {
258
268
  */
259
269
  soldOut: boolean;
260
270
  }
271
+ export interface SOPublicDiscountRule {
272
+ discountRuleNo: string;
273
+ name: string;
274
+ description: string;
275
+ isOrderLevelDiscount: boolean;
276
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trusted-solutions/sdit.models",
3
- "version": "0.49.0-alpha.4",
3
+ "version": "0.49.0-alpha.6",
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": {