@trusted-solutions/sdit.models 0.40.0-alpha.2 → 0.40.0-alpha.4

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,5 +1,5 @@
1
1
  import { Address, DayOfWeekTimePeriod, GalleryConfig, Operator } from '../models/store';
2
- import { MultiLanguageText, OrderDiscount } from '../models';
2
+ import { CustomerPointDetail, MultiLanguageText, OrderDiscount } from '../models';
3
3
  import { PaymentServiceProvider, ServeType } from '../enums';
4
4
  import { SOPublicMenu, SOPublicCategory, SOPublicProduct, SOPublicProductAttribute, SOPublicProductAttributeCategory, SOPaymentMethod, SOValidateCart, SOOrderState, SOOrder, SOEater } from '../models/online-ordering';
5
5
  import { RoundingMode } from '../enums/rounding-mode.enum';
@@ -263,7 +263,7 @@ export interface SOSendOrderRequest {
263
263
  /** 內用桌ID serveType === dineIn 時有效 */
264
264
  tableId?: string;
265
265
  /** 折抵點數 */
266
- redeemPoints?: number;
266
+ points?: CustomerPointDetail;
267
267
  }
268
268
  /**
269
269
  * @throw `SOOrderError`
@@ -31,3 +31,7 @@ export interface ProductOrderRate {
31
31
  name: string;
32
32
  rate: number;
33
33
  }
34
+ export interface CustomerPointDetail {
35
+ pointsName: string;
36
+ redeemPoints: number;
37
+ }
@@ -1,5 +1,5 @@
1
1
  import { PaymentServiceProvider, PaymentType, ServeType } from '../enums';
2
- import { MultiLanguageText, OrderDiscount, Quantity, OOReasonCode } from '../models';
2
+ import { MultiLanguageText, OrderDiscount, Quantity, OOReasonCode, CustomerPointDetail } from '../models';
3
3
  import { Address, DayOfWeekTimePeriod } from './store';
4
4
  export interface SOOrderError {
5
5
  type: SOOrderErrorType;
@@ -143,7 +143,7 @@ export interface SOOrder {
143
143
  transactionId?: string;
144
144
  paymentServiceProvider?: PaymentServiceProvider;
145
145
  /** 折抵點數 */
146
- redeemPoints?: number;
146
+ points?: CustomerPointDetail;
147
147
  }
148
148
  export interface SOUnavailableCartItem {
149
149
  menuItemType: 'product' | 'attribute';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trusted-solutions/sdit.models",
3
- "version": "0.40.0-alpha.2",
3
+ "version": "0.40.0-alpha.4",
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": {